Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Podcast.__init__: Achieve Repeatable Builds Of Your Software On Any Machine With Earthly

Link: https://www.pythonpodcast.com/earthly-repeatable-build-tool-episode-351/

It doesn't matter how amazing your application is if you are unable to deliver it to your users. Frustrated with the rampant complexity involved in building and deploying software Vlad A. Ionescu crea
Python GUIs: Packaging PyQt5 applications into a macOS app with PyInstaller (updated for 2022)

Link: https://www.pythonguis.com/tutorials/packaging-pyqt5-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: PyDev of the Week: Batuhan Taskaya

Link: https://www.blog.pythonlibrary.org/2022/02/07/pydev-of-the-week-batuhan-taskaya/

This week we welcome Batuhan Taskaya (@isidentical) as our PyDev of the Week! Batuhan is a core developer of the Python language. Batuhan is also a maintainer of multiple Python packages including par
Matt Layman: Episode 16 - Setting Your Sites

Link: https://www.mattlayman.com/django-riffs/setting-sites/

On this episode, we look at how to manage settings on your Django site. What are the common techniques to make this easier to handle? Let’s find out!
Listen at djangoriffs.com or with the player below
Real Python: Python News: What's New From January 2022?

Link: https://realpython.com/python-news-january-2022/

In January 2022, the code formatter Black saw its first non-beta release and published a new stability policy. IPython, the powerful interactive Python shell, marked the release of version 8.0, its fi
death and gravity: Dealing with YAML with arbitrary tags in Python

Link: https://death.andgravity.com/any-yaml

... in which we use PyYAML to safely read and write YAML with any tags,
in a way that's as straightforward as interacting with built-in types.
If you're in a hurry,
you can find the code at the end.
Python Morsels: Making the len function work on your Python objects

Link: https://www.pythonmorsels.com/topics/making-the-len-function-work-on-your-python-objects/




In Python, you can make the built-in len function work on your objects.
The len function only works on objects that have a length
The built-in len function works on some objects, but not on others.
ItsMyCode: TypeError: method() takes 1 positional argument but 2 were given

Link: https://itsmycode.com/method-takes-1-positional-argument-but-2-were-given/

If you define a method inside a class, you should add self as the first argument. If you forget the self argument, then Python will raise TypeError: method() takes 1 positional argument but 2 were giv
Stack Abuse: Numpy Array to Tensor and Tensor to Numpy Array with PyTorch

Link: https://stackabuse.com/numpy-array-to-tensor-and-tensor-to-numpy-array-with-pytorch/

Tensors are multi-dimensional objects, and the essential data representaion block of Deep Learning frameworks such as Tensorflow and PyTorch.
A scalar has one dimension, a vector has two, and tensors
Glyph Lefkowitz: A Better Pygame Mainloop

Link: https://glyph.twistedmatrix.com/2022/02/a-better-pygame-mainloop.html

I’ve written about this
before, but in that
context I was writing mainly about frame-rate independence, and only gave a
brief mention of vertical sync; the title also mentioned Twisted, and upon
re-re
ItsMyCode: AttributeError: Can only use .str accessor with string values

Link: https://itsmycode.com/can-only-use-str-accessor-with-string-values/

The AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas occurs if you try to replace the values of string column, but in reality, it is of a different t
TestDriven.io: Working with Static and Media Files in Django

Link: https://testdriven.io/blog/django-static-files/

This article looks at how to work with static and media files in a Django project, locally and in production.
Real Python: Defining Python Functions With Optional Arguments

Link: https://realpython.com/courses/defining-python-functions-with-optional-arguments/

Defining your own functions is an essential skill for writing clean and effective code. In this tutorial, you’ll explore the techniques you have available for defining Python functions that take optio
Python for Beginners: Count Digits Of An Integer in Python

Link: https://www.pythonforbeginners.com/basics/count-digits-of-an-integer-in-python

In python, integer data type is used to represent positive and negative integers. In this article, we will discuss a program to count digits of an integer in python. 
How to Count Digits of an Integer
PyCoder’s Weekly: Issue #511 (Feb. 8, 2022)

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

#511 – FEBRUARY 8, 2022 View in Browser » Defining Python Functions With Optional Arguments Learn about Python optional arguments and how to define functions with default values. You’ll also see
Read the Docs: Read the Docs newsletter - February 2022

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


Welcome to the latest edition of our monthly newsletter, where we
share the most relevant updates around Read the Docs,
offer a summary of new features we shipped
during the previous month,
and share
Andre Roberge: Friendly-traceback and IPython: update

Link: https://aroberge.blogspot.com/2022/02/friendly-traceback-and-ipython-update.html

In my previous post, I mentioned that, unlike IPython, friendly/friendly-traceback included values of relevant objects in a traceback.  As I wrote in the update, Alex Hall pointed out that one could g
Talk Python to Me: #352: Running Python in Production

Link: https://talkpython.fm/episodes/show/352/running-python-in-production

Do we talk about running Python in production enough? I can tell you that the Talk Python infrastructure (courses, podcasts, APIs, etc.) get a fair amount of traffic, but they look nothing like what G
Test and Code: 179: Exploratory Testing

Link: https://testandcode.com/179

Exploratory testing is absolutely an essential part of a testing strategy.
This episode discusses what exploratory testing is, its benefits, and how it fits within a framework of relying on automated