Planet Python RSS
217 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python GUIs: Packaging PyQt6 applications into a macOS app with PyInstaller (updated for 2022)

Link: https://www.pythonguis.com/tutorials/packaging-pyqt6-applications-pyinstaller-macos-dmg/

There is not much fun in creating your own desktop applications if you can't share them with other people — whether than means publishing it commercially, sharing it online or just giving it to someon
Mike Driscoll: An Intro to Context Managers in Python (Video)

Link: https://www.blog.pythonlibrary.org/2022/06/07/an-intro-to-context-managers-video/

Context managers are a handy way to open and close files, dialogs, thread-locks and so much more! Check out this short tutorial that introduces you to the concepts of context managers by Mike Driscoll
Python Software Foundation: Welcome Chloe Gerhardson to the PSF staff!

Link: http://pyfound.blogspot.com/2022/06/welcome-chloe-gerhardson-to-psf-staff.html

With great anticipation and excitement we are happy to announce that Chloe Gerhardson (she/her) has joined the Python Software Foundation (PSF) as of Monday May 23, 2022. Chloe joins the team as Infra
Real Python: Write and Test a Python Function: Interview Practice

Link: https://realpython.com/courses/interview-practice-python-function/

Whether you’re looking to ace your coding interview or simply to level up your development skills, solving coding challenges can help you grow as a programmer. In this Real Python Code Conversation, P
Read the Docs: Read the Docs newsletter - June 2022

Link: https://blog.readthedocs.com/newsletter-june-2022/


We’re excited to welcome Benjamin Balder Bach to our team,
joining as a part-time contractor for now.
He’s a developer with a history of working as an Open Source maintainer and event organizer in th
PyCoder’s Weekly: Issue #528 (June 7, 2022)

Link: https://pycoders.com/issues/528

#528 – JUNE 7, 2022 View in Browser » Django Static Files and Templates “Static files like CSS, JavaScript, and fonts are a core piece of any modern web application. They are also typically conf
Glyph Lefkowitz: Dates And Times And Types

Link: https://blog.glyph.im/2022/06/dates-and-times-and-types.html

Python’s standard
datetime
module is very powerful. However, it has a couple of annoying flaws.
Firstly, datetimes are considered a kind of
date1, which causes problems.
Although datetime is a litera
Python Bytes: #287 Surprising ways to use Jupyter Notebooks

Link: https://pythonbytes.fm/episodes/show/287/surprising-ways-to-use-jupyter-notebooks

<p><strong>Watch the live stream:</strong></p>

<a href='https://www.youtube.com/watch?v=QwKCZ44j9b4' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>

<p><strong>About the show</strong></p>
Test and Code: 189: attrs and dataclasses - Hynek Schlawack

Link: https://testandcode.com/189

In Python, before dataclasses, we had attrs.
Before attrs, it wasn't pretty.
The story of attrs and dataclasses is actually intertwined.
They've built on each other.
And in the middle of it all, Hyne
Mike Driscoll: An Intro to the contextlib Module in Python (Video)

Link: https://www.blog.pythonlibrary.org/2022/06/08/an-intro-to-the-contextlib-module-in-python-video/

Learn how to create different types of context managers using Python's contextlib module!
You can learn more in the contextlib documentation.

Related Articles

Python's with Statement and Context Man
Python for Beginners: Check if a Key Exists in a Dictionary in Python

Link: https://www.pythonforbeginners.com/basics/check-if-a-key-exists-in-a-dictionary-in-python

We use python dictionaries to store key-value pairs. Sometimes, we need to check if a key exists in the dictionary or not. In this python tutorial, we will discuss different ways with working examples
Go Deh: Python: Yield the first item of consecutive series of equal items, from an iterable.

Link: http://paddy3118.blogspot.com/2022/06/python-yield-first-item-of-consecutive.html

 I was reading the source to the more_itertools.unique_unseen function. The function takes an iterator that may have regions where successive items are the same, and yields the item if next item is no
Nicola Iarocci: Eve 2.0 released

Link: https://nicolaiarocci.com/eve-2.0-released/

It’s been a long time coming, but I’m glad to announce that Eve 2 has finally been released today. This release drops support for Python 2, Python 3.5 and Python 3.6 hence the major version bump. Othe
Python Software Foundation: PyCon US: Successful Return to In-Person in 2022

Link: http://pyfound.blogspot.com/2022/06/pycon-us-successful-return-to-in-person.html

We held our first in-person event since 2019 in Salt Lake City last month and it was well-attended, celebratory, and safe. We had 1,753 in-person attendees and 669 online attendees. Of the in-person a
Real Python: Build a Quiz Application With Python

Link: https://realpython.com/python-quiz-application/

In this tutorial, you’ll build a Python quiz application for the terminal. The word quiz was first used in 1781 to mean eccentric person. Nowadays, it’s mostly used to describe short tests of trivia o
Matt Layman: You Don't Need JavaScript

Link: https://www.mattlayman.com/blog/2022/you-dont-need-javascript/

What If I Told You… You Don’t Need JavaScript.
This talk explores why JavaScript is not good fit for most web apps.
I then show how most web apps can do dynamic things using htmx. htmx is an extension
Python Morsels: Python's setattr function

Link: https://www.pythonmorsels.com/python-setattr/

Python's built-in setattr function can dynamically set attributes given an object, a string representing an attribute name, and a value to assign.


Table of contents

Need to dynamically set an attri
Python⇒Speed: Pandas vectorization: faster code, slower code, bloated memory

Link: https://pythonspeed.com/articles/pandas-vectorization/

When you’re processing data with Pandas, so-called “vectorized” operations can significantly speed up your code.
Or at least, that’s the theory.
In practice, in some situations Pandas vectorized opera
Python Software Foundation: The PSF's 2021 Annual Report

Link: http://pyfound.blogspot.com/2022/06/annual-report-2021.html

2021 was a challenging and exciting year for the PSF. We’ve done our best to capture some of the key numbers, details, and context in our latest annual report. Some highlights of what you’ll find in t
Python Engineering at Microsoft: Python in Visual Studio Code – June 2022 Release

Link: https://devblogs.microsoft.com/python/python-in-visual-studio-code-june-2022-release/

We’re excited to announce that the June 2022 release of the Python and Jupyter extensions for Visual Studio Code are now available. 
This release includes improvements to: 

Localization support  
Pyt