Python 3.13 is coming soon, and it will leave Python’s ‘dead batteries’ behind. Now’s the time to learn how to live without them. Also, get started with Pillow, enums, and the 'ast' library. Credit: PitukTV / Shutterstock This (half-)month in Python and elsewhere: Python’s “dead batteries” are about to be removed—and soon. Here’s how to live without them. Also, get started with Pillow for image processing, and find out how Python’s built-in enum module makes working with named constants easier. And, if you’re trawling through Python source code with Python itself, there are better ways to do it. Old-school coder, meet the ast library. Top picks for Python readers on InfoWorld What you need to know about Python’s ‘dead batteries’Goodbye to ancient, unmaintained Python standard-library modules! They’re gone as of Python 3.13, and they won’t be missed. You’ll still need to know how to live without them, though, and now is the time to find out. Image processing in Python with PillowIf you’ve got pictures full of hitches, Pillow (formerly the Python Imaging Library), provides a slew of modules for prettifying them programmatically. The power of Python enumsClarify your code with named constants. What’s better: True and False, or RUNNING and STOPPED? Automate processing Python source code with the ‘ast’ moduleStop treating program code like mere text, and start treating it like what it is—something programmable and abstract. The ast module shows you the way. More good reads and Python updates elsewhere DBOS Transact: Ultra-lightweight durable execution for Python programsWrite apps that save their progress internally and nothing will throw you off track—not even a system crash. Run IPython code in LibreOffice Calc with LibrePythonistaJealous of Microsoft Office getting all the Excel-plus-Python love? Don’t be. Here’s a similar solution for LibreOffice devotees. High-performance Python with code generationEven if you don’t get faster performance by assembling Python bytecode by hand, you’ll still have a massive flex to impress your dev team. Related content feature Dataframes explained: The modern in-memory data science format Dataframes are a staple element of data science libraries and frameworks. Here's why many developers prefer them for working with in-memory data. By Serdar Yegulalp Nov 06, 2024 6 mins Data Science Data Management analysis How to support accurate revenue forecasting with data science and dataops Data science and dataops have a critical role to play in developing revenue forecasts business leaders can count on. By Isaac Sacolick Nov 05, 2024 8 mins Data Science Machine Learning Artificial Intelligence feature The best Python libraries for parallel processing Do you need to distribute a heavy Python workload across multiple CPUs or a compute cluster? These seven frameworks are up to the task. By Serdar Yegulalp Oct 23, 2024 11 mins Python Data Science Machine Learning news Julia language adds lower-overhead Memory type Dynamic language built for fast numerical computing introduces lower-level alternative to Array that delivers significant speedups and more maintainable code. By Paul Krill Oct 08, 2024 3 mins Julia Data Science Programming Languages Resources Videos