Share
Robin Beer is here to tell us all about it!
 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Bite-Sized Python News & Updates


Hey Pythonista,


Hope your week 21 is off to a good start. 💪


What are you building with Python this week? 
What new tools have you discovered?

Share it with us, or in our community of passionate Pythonistas.

We have some cool updates for you, let's dive straight into it.


Have a great week!


- Bob & Julian

Flexa’s data-driven energy revolution

Robin joined us on our podcast to discuss his exciting work at Flexa building a more affordable + efficient energy system. 😍

We talk about the fascinating process of creating a virtual power plant that enables consumers to use solar + battery resources while strategically managing when to buy and sell electricity based on market conditions and weather forecasts (bit like the stock market == interesting data problems 💪)

Not only does this system promise reduced costs, but it also enhances grid stability, offering a win-win solution for consumers and the wider energy network. 🟢 📈

Robin also shares developer + startup mechanics navigation tips. 💡


Enjoy this wide-ranging conversation with a developer (and coach) passionate about code and energy.

Watch it on YouTube

Faster type checking


Something to check out this week:

Charlie/Astral announced the preview release of ty, an extremely fast type checker and language server for Python, written in Rust.


TODO this week: use it with uvx against one or more projects...

ty GitHub repo

Clean code tip


Something I was reminded of this week reading my daily chunk of Effective Python (great book!)

Returning >= 3 values from a function?
That’s a code smell 🚨

Multiple return values are:
• easy to misorder
• hard to maintain
• brittle when refactoring

✅ Instead, return a namedtuple or frozen dataclass:

• more readable
• safer to unpack
• self-documenting

Cleaner APIs = fewer bugs 💡

See LinkedIn post

🚀 Big wins in our cohort coaching already, and more to come!

We just wrapped the first week of our new Intermediate Python Cohort, and the results are already impressive:

  • ✅ Learners improved not just in Python, but in tooling and dev workflows.

  • ✅ They’re learning from each other - peer support is creating incredible momentum.

  • ✅ Confidence is growing fast - devs are shipping and collaborating from day one.

If you're stuck in tutorials or want to sharpen your real-world skills, this is the way forward.

🔥 Next cohorts are scheduled, check your agenda.


Join the next 6-week Python cohort

🧠 Why Namespaces Are a Great Idea in Python



"Namespaces are one honking great idea – let's do more of those!" - Zen of Python


Namespaces in Python map names to objects, helping avoid conflicts and making code more modular and maintainable.

Here’s how:

  • Modules: Keep variables/functions isolated (my_module.my_func()).

  • Classes: Encapsulate data/methods per class (Person.say_hello()).

  • Functions: Use local scopes to avoid leaks (def my_func(): ...).

  • Packages: Organize related modules cleanly (package.module.func()).

💡 Tip: Prefer import re over from re import search to avoid name collisions.

Namespaces = cleaner, safer, more readable code. Embrace them.

Check out Pybites' Zen of Python Shorts


Keep pushing forward on your coding journey with PyBites as your partner. We're here to help you succeed every step of the way.

\n\n\n\n

Email Marketing by ActiveCampaign