Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Moshe Zadka: Three Problems with a Tool

Link: https://orbifold.xyz/three-problems.html

One of my favorite Podcasts,
Podcast.__init__,
always makes sure to ask one question
towards the end of every episode:
when should you
not
use the tool or technique introduced
in this episode?
This is
Brett Cannon: Unravelling `finally` and `else` from `try` statements

Link: https://snarky.ca/unravelling-finally-and-else-from-try/

In the last post of my syntactic sugar series, I showed how you can get away with not having elif and else clauses on an if statement. It turns out you can use the same trick to help get rid of else c
Weekly Python StackOverflow Report: (cccvii) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/12/cccvii-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-12-25 15:54:16 GMTCombine 2 string columns in pandas with differen
ItsMyCode: Menu Driven Program in Python

Link: https://itsmycode.com/menu-driven-program-in-python/

ItsMyCode |
Introduction to Menu-Driven Program
A menu driven program is a program that takes input from a user by displaying a list of options and allows users to choose the input from the list of op
Kushal Das: Using onion services over unix sockets and nginx

Link: https://kushaldas.in/posts/using-onion-services-over-unix-sockets-and-nginx.html


I have
explained
before about how to
create
Onion services, this provides an easy solution to expose any service from
inside of your home network to the Internet, in a secured manner (authorized
serv
Podcast.__init__: Fast, Flexible, and Incremental Task Automation With doit

Link: https://www.pythonpodcast.com/doit-software-task-automation-episode-345/

Every software project needs a tool for managing the repetitive tasks that are involved in building, running, and deploying the code. Frustrated with the limitations of tools like Make, Scons, and oth
Kushal Das: Using your OpenPGP key on Yubikey for ssh

Link: https://kushaldas.in/posts/using-your-openpgp-key-on-yubikey-for-ssh.html


Last week I wrote
about how you can generate ssh keys on your Yubikeys and use them. There is
another way of keeping your ssh keys secure, that is using your already
existing OpenPGP key (along with
Real Python: Python Zip Imports: Distribute Modules and Packages Quickly

Link: https://realpython.com/python-zip-import/

Python allows you to import code from ZIP files directly through Zip imports. This interesting built-in feature enables you to zip Python code for distribution purposes. Zip imports also help if you o
Nikola: Nikola v8.2.0 is out!

Link: https://getnikola.com/blog/nikola-v820-is-out.html

On behalf of the Nikola team, I am pleased to announce the immediate
availability of Nikola v8.2.0. This release includes some new features
as well as a bunch of bugfixes.

What is Nikola?
Nikola is a
Python Morsels: Representing binary data with bytes

Link: https://www.pythonmorsels.com/topics/representing-binary-data-with-bytes/




Let's talk about the difference between strings and bytes in Python.
Creating bytes objects in Python
Strings represent text (human language that is).
For example, here we have a string named text:
Michał Bultrowicz: Enforcing Python imports’ order with isort, Makefiles, and Vim

Link: https://bultrowicz.com/enforcing_python_import_ordering_with_isort/

I finally integrated isort into my toolbox.
I think that the job of changing code files belongs to the editor (or an IDE),
so I made Vim run isort automatically,
while the import order enforcement in
Ned Batchelder: Gem: exploding string alternatives

Link: https://nedbatchelder.com/blog/202112/gem_exploding_string_alternatives.html

Here’s a Python gem: a small bit of Python that uses the power of the
language and standard library well.It’s a function to list strings generated by a pattern with embedded
alternatives. It takes an
Stack Abuse: Validate Email Addresses in Python with email-validator

Link: https://stackabuse.com/validate-email-addresses-in-python-with-email-validator/

Introduction
Whether you are creating a registration form for your website or you just need to delete all invalid email addresses from your mailing list, you can't help but perform the process of emai
Python for Beginners: Check For Harshad Number In Python

Link: https://www.pythonforbeginners.com/basics/check-for-harshad-number-in-python

Numbers have many specialties. Based on the specialties, they are given unique names. One such special number is the Harshad number or Niven number. In this article, We will discuss a program to check
Andre Roberge: New milestone for friendly: version 0.5

Link: https://aroberge.blogspot.com/2021/12/new-milestone-for-friendly-version-05.html

 Friendly (previously at 0.4.41) and friendly-traceback (previously at 0.4.111) are now at version 0.5. The joint documentation for both projects has not yet been updated.  In addition to the many new
PyCoder’s Weekly: Issue #505 (Dec. 28, 2021)

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

#505 – DECEMBER 28, 2021 View in Browser » Python Zip Imports: Distribute Modules and Packages Quickly In this step-by-step tutorial, you’ll learn what Zip imports are and how to use them in Pyt
ItsMyCode: TypeError: ‘list’ object is not callable

Link: https://itsmycode.com/typeerror-list-object-is-not-callable/

ItsMyCode |
The most common scenario where Python throws TypeError: ‘list’ object is not callable is when you have assigned a variable name as “list” or if you are trying to index the elements of the