Planet Python RSS
214 subscribers
17.1K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python Morsels: Importing a module runs code

Link: https://www.pythonmorsels.com/topics/importing-module-runs-code/




Transcript
When Python imports a module, it runs all the code in that module.
A module that defines and prints things
Here we have a file called salutations.py:
import random

salutations = ["Hello
Gaël Varoquaux: Hiring someone to develop scikit-learn community and industry partners

Link: http://gael-varoquaux.info/programming/hiring-someone-to-develop-scikit-learn-community-and-industry-partners.html


Note
With the growth of scikit-learn and the wider PyData ecosystem, we
want to recruit in the Inria scikit-learn team for a new role.
Departing from our usual focus on excellence in algorithms,
stat
Mike Driscoll: Python 101 – How to Work with Images

Link: https://www.blog.pythonlibrary.org/2021/09/14/python-101-how-to-work-with-images/

The Python Imaging Library (PIL) is a 3rd party Python package that adds image processing capabilities to your Python interpreter. It allows you to process photos and do many common image file manipul
Python for Beginners: Level Order Tree Traversal in Python

Link: https://www.pythonforbeginners.com/data-structures/level-order-tree-traversal-in-python

Just like we traverse a python dictionary, a list or tuple to access its elements, We can also traverse binary trees to access their elements. There are four tree traversal algorithms namely In-order
Matt Layman: User File Use

Link: https://www.mattlayman.com/understand-django/media-files/

In the last Understand Django article, you learned about Django settings and how to manage the configuration of your application. We also looked at tools to help you to be extra effective with setting
Real Python: Using Data Classes in Python

Link: https://realpython.com/courses/python-data-classes/

One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions.
With data classes,
Test and Code: 164: Debugging Test Failures with pytest

Link: https://testandcode.com/164

An overview of the pytest flags that help with debugging.
From Chapter 13, Debugging Test Failures, of Python Testing with pytest, 2nd edition.
pytest includes quite a few command-line flags that are
PyCoder’s Weekly: Issue #490 (Sept. 14, 2021)

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

#490 – SEPTEMBER 14, 2021 View in Browser » Applying PEP 8 in Practice “Two recent threads on the python-ideas mailing list have overlapped to a certain extent; both referred to Python’s [PEP 8]
Quansight Labs Blog: Not a checklist: different accessibility needs in JupyterLab

Link: https://labs.quansight.org/blog/2021/09/not-a-checklist/

JupyterLab Accessibility Journey Part 3
In a pandemic, the template joke-starter “x and y walk into a bar” seems like
a stretch from my reality. So let’s try this remote version:
Two community member
Zato Blog: Enterprise API integrations under Windows

Link: https://zato.io/blog/posts/windows-api-integrations.html

If you are on Windows, looking for an integration platform to connect your APIs, systems, applications, backend resources or mobile apps, I am happy to let you know that Zato
now supports Windows nati
John Ludhi/nbshare.io: PyTorch Tutorial A Complete Use Case Example

Link: https://www.nbshare.io/notebook/512285365/PyTorch-Tutorial-A-Complete-Use-Case-Example/











PyTorch Tutorial: A Complete Use-case Example








Introduction








This tutorial shows a full use-case of PyTorch in order to explain several concepts by example.
The application wil
PyCharm: PyCharm 2021.2.2 Is Out!

Link: http://feedproxy.google.com/~r/Pycharm/~3/90AVCAF_GHs/

Download PyCharm 2021.2.2
The second minor release of PyCharm 2021.2 contains multiple bug fixes.

cProfile call graph never loads. [PY-49917]
Requirements.txt blank file is being created. [PY-41953]
Mike Driscoll: Getting Started with ReportLab’s Canvas

Link: https://www.blog.pythonlibrary.org/2021/09/15/getting-started-with-reportlabs-canvas/

ReportLab is a very powerful library. With a little effort, you can make pretty much any layout that you can think of. I have used it to replicate many complex page layouts over the years. In this tut
Real Python: Build a Personal Diary With Django and Python

Link: https://realpython.com/django-diary-project-python/

A diary is a personal safe space. With the help of Django, you can create a diary on your own computer without storing data in anyone else’s cloud. By following along with the project below, you’ll se
Python for Beginners: Find the Height of a Binary Tree

Link: https://www.pythonforbeginners.com/data-structures/find-the-height-of-a-binary-tree

Just like we find the length of a list or the number of items in a python dictionary, we can find the height of a binary tree. In this article, we will formulate an algorithm to find the height of a b
testmon: Version 1.2 is out!

Link: https://testmon.org/testmon_1.2_is_out_intro.html

pytest-testmon version 1.2 is out and up on PyPI.
Re-executing failed tests is a main feature of the update.
To find more go to: Version 1.2. is out!
Mike Driscoll: Case / Switch Comes to Python in 3.10

Link: https://www.blog.pythonlibrary.org/2021/09/16/case-switch-comes-to-python-in-3-10/

Python 3.10 is adding a new feature called Structural Pattern Matching, which is defined in PEP 634 and has a tutorial on the topic in PEP 636. Structural Pattern Matching brings the case / switch sta
Stack Abuse: Split, Merge and Rotate PDF Documents in Python with borb

Link: https://stackabuse.com/split-merge-and-rotate-pdf-documents-in-python-with-borb/

Introduction
The Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and ren