Planet Python RSS
212 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Stack Abuse: How to Use Global and Nonlocal Variables in Python

Link: https://stackabuse.com/how-to-use-global-and-nonlocal-variables-in-python/

Introduction
In this article we'll be taking a look at Global and Non-Local Variables in Python and how you to use them to avoid issues when writing code.
We'll be starting off with a brief primer on
Evennia: Happy new years 2021! Evennia things to come this year

Link: http://evennia.blogspot.com/2021/01/happy-new-years-2021-evennia-things-to.html

Another year passed with Evennia, the Python MU* creation system. The past year saw a lot of bug fixing and more gradual additions and in September we released version 0.9.5. This was an intermediary
Pythonicity: Hardest Logic Puzzle Ever

Link: https://coady.github.io/posts/hardest-logic-puzzle-ever/




How to solve the Hardest Logic Puzzle Ever programmatically.¶Three gods A, B, and C are called, in no particular order, True, False, and Random. True always speaks truly, False always speaks falsel
Weekly Python StackOverflow Report: (cclvii) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/01/cclvii-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-01-02 13:52:44 GMTWhat is __peg_parser__ in Python? - [36/3]How do
Kushal Das: Introducing Tumpa, to make OpenPGP simple with smartcards

Link: https://kushaldas.in/posts/introducing-tumpa-to-make-openpgp-simple-with-smartcards.html


Generating OpenPGP keys in an offline air-gapped system and then moving them
into a smart card is always a difficult task for me. To remember the steps and
command-line options of gpg2 correctly and
Python Pool: How to Convert int to float in Python Implicitly and Explicitly

Link: https://www.pythonpool.com/int-to-float-python/?utm_source=rss&utm_medium=rss&utm_campaign=int-to-float-python

Hello coders!! In this article, we will learn the conversion of int to float data type in python. At first, we should understand the difference between the two.
int – These are the positive or negativ
Python Pool: NumPy Kronecker Delta | What is NumPy.kron()?

Link: https://www.pythonpool.com/numpy-kronecker-delta/?utm_source=rss&utm_medium=rss&utm_campaign=numpy-kronecker-delta

Hello geeks and welcome in this article, we will cover the NumPy Kronecker delta function. Along with that, for an overall better understanding, we will also look at its syntax and parameter. Then we
Python Pool: What is Numpy memmap? Explained with examples

Link: https://www.pythonpool.com/numpy-memmap/?utm_source=rss&utm_medium=rss&utm_campaign=numpy-memmap

Hello geeks and welcome in this article, we will cover the NumPy memmap(). Along with that, for an overall better understanding, we will also look at its syntax and parameter. Then we will see the app
Python Pool: Bitonic sort: Algorithm and Implementation in Python

Link: https://www.pythonpool.com/bitonic-sort-python/?utm_source=rss&utm_medium=rss&utm_campaign=bitonic-sort-python

Hello coders!! In this article, we will be learning about the python bitonic sort algorithm and its implementation in Python. Sorting is the way of arranging the elements in a specific order, i.e., ei
Python Pool: Numpy Pad Explained With Examples in Python

Link: https://www.pythonpool.com/numpy-pad/?utm_source=rss&utm_medium=rss&utm_campaign=numpy-pad

Hello geeks and welcome in this article, we will cover the NumPy pad(). Along with that, for an overall better understanding, we will also look at its syntax and parameter. Then we will see the applic
Python Pool: Viterbi Algorithm: Implementation in Python

Link: https://www.pythonpool.com/viterbi-algorithm-python/?utm_source=rss&utm_medium=rss&utm_campaign=viterbi-algorithm-python

Hello coders!! In this article, we will be learning about the Viterbi algorithm and its implementation in python. It is a dynamic programming algorithm used to find the most likely sequence of hidden
Thomas Guest: Python maths updates

Link: http://wordaligned.org/articles/python-maths-updates

A quick note on some useful updates made to standard Python maths support. Math.prod does for * what sum does for +. It was added at Python 3.8.

>>> math.prod([3, 4, 5])
60
>>> math.prod([])
1



Add
Zato Blog: Diving deep into REST API channels

Link: https://zato.io/blog/posts/rest-api-channels.html

We begin in 2021 with a deep dive into Zato REST API channels. What are they? How to use them efficiently? How can they configured for maximum flexibility? Read on to learn all the details.
A sample s
Mike Driscoll: PyDev of the Week: Froilán Irizarry Rivera

Link: https://www.blog.pythonlibrary.org/2021/01/04/pydev-of-the-week-froilan-irizarry-rivera/

This week we welcome Froilán Irizarry Rivera (@froidotdev) as our PyDev of the Week! Froilán does code live streaming on Twitch. Froilán helped found Fullstack Knights which is a monthly meetup and mo
Hynek Schlawack: Testing & Packaging

Link: https://hynek.me/articles/testing-packaging/

How to ensure that your tests run code that you think they are running, and how to measure your coverage over multiple tox runs (in parallel!).
Django Weblog: Django bugfix release: 3.1.5

Link: https://www.djangoproject.com/weblog/2021/jan/04/bugfix-releases/

Today we've issued the 3.1.5 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used
for this release is
Python Pool: 【How to】 Check if the Variable Exists in Python

Link: https://www.pythonpool.com/python-check-if-variable-exists/?utm_source=rss&utm_medium=rss&utm_campaign=python-check-if-variable-exists

Hello coders!! In this article, we will learn how to check if a variable exists in Python. The python variables are either local or global. In this article, we will see how to check for both the local
Python Pool: Find All Occurrences of a Substring in a String in Python

Link: https://www.pythonpool.com/python-find-all-occurrences-in-string/?utm_source=rss&utm_medium=rss&utm_campaign=python-find-all-occurrences-in-string

Hello coders!! In this article, we will explore methods in Python to find all occurrences in a string. To make the concept clear, we will be looking into a detailed illustration of the code to reach t
Mike Driscoll: Announcing: Image Processing with Python Kickstarter

Link: https://www.blog.pythonlibrary.org/2021/01/04/announcing-image-processing-with-python-kickstarter/

I am happy to announce my latest book project, Pillow: Image Processing with Python. This book will teach you how to use Pillow, the “friendly” fork of the Python Imaging Library (PIL).  You can purch