Planet Python RSS
215 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Reuven Lerner: Working with warnings in Python (Or: When is an exception not an exception?)

Link: https://lerner.co.il/2020/04/27/working-with-warnings-in-python/

It happens to all of us: You write some Python code, but you encounter an error:
>>> for i in 10: # this will not work!
print(i)

TypeError: 'int' object is not iterable
This isn’t just an
PyBites: Mutable vs Immutable Data Types in Python

Link: https://pybit.es/immutable-types.html

Have you ever wondered why there are mutable and immutable types in Python?
Have you ever encountered this error in Python?
>>> s = 'hello'
>>> s[0] = 'H'
Traceback (most recent call last):
File "<std
Sumana Harihareswara - Cogito, Ergo Sumana: Remote Sprint Tips

Link: https://www.harihareswara.net/sumana/2020/04/27/0

Every year, many developers of Python (the language itself, not just stuff written in Python) get together for a sprint. This year it will probably be virtual. How should that work? I offered to share
Podcast.__init__: Teaching Python Machine Learning

Link: https://www.pythonpodcast.com/python-machine-learning-book-episode-260/

Python has become a major player in the machine learning industry, with a variety of widely used frameworks. In addition to the technical resources that make it easy to build powerful models, there is
Mike Driscoll: Python 101: Learning About Sets

Link: https://www.blog.pythonlibrary.org/2020/04/28/python-101-learning-about-sets/

A set data type is defined as an “unordered collection of distinct hashable objects” according to the Python 3 documentation. You can use a set for membership testing, removing duplicates from a seque
Kushal Das: Writing Python module in Rust using PyO3

Link: https://kushaldas.in/posts/writing-python-module-in-rust-using-pyo3.html


Back in 2017, I
wrote
about how to create Python modules using Rust. Things changed in between,
especially PyO3 project now makes it super easy to create
such extension modules.
Requirements
I am usi
Quansight Labs Blog: Thanking the people behind Spyder 4

Link: https://labs.quansight.org/blog/2020/04/thanking-the-people-behind-spyder-4/

After more than three years in development and more than 5000 commits from 60 authors around the world, Spyder 4 finally saw the light on December 5, 2019!
I decided to wait until now to write a blogp
Stack Abuse: Writing to a File with Python's print() Function

Link: https://stackabuse.com/writing-to-a-file-with-pythons-print-function/

Introduction
Python's print() function is typically used to display text either in the command-line or in the interactive interpreter, depending on how the Python program is executed. However, we can
Python Insider: Python 3.9.0a6 is now available for testing

Link: http://feedproxy.google.com/~r/PythonInsider/~3/UI7yZREJWY4/python-390a6-is-now-available-for.html

On behalf of the entire Python development community, and the currently serving Python release team in particular, I’m pleased to announce the release of Python 3.9.0a6. Get it here:

https://www.pyth
Anarcat: Drowned my camera: dealing with liquid spills in electronics

Link: https://anarc.at/blog/2020-04-27-drowning-camera/

Folks who acutely dig into this website might know that I have been
taking more pictures recently, as I got a new camera
since January 2018: a beautiful Fujifilm X-T2 that I really
like. Recently, I w
Real Python: Structuring a Python Application

Link: https://realpython.com/courses/structuring-python-application/

Python, though opinionated on syntax and style, is surprisingly flexible when it comes to structuring your applications. On the one hand, this flexibility is great: it allows different use cases to us
PyCoder’s Weekly: Issue #418 (April 28, 2020)

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

#418 – APRIL 28, 2020 View in Browser » The Final Python 2 Release Marks the End of an Era The final version of Python 2 has been released. As the Python community looks forward to the new era,
Catalin George Festila: Python : Open any Jupiter notebook from GitHub in Colab.

Link: http://python-catalin.blogspot.com/2020/04/python-open-any-jupiter-notebook-from.html

In this tutorial I will show you how to open any Jupiter notebook from GitHub in the Google online Colab area.
First, go to the jupyter notebook in GitHub project.
Example:
https://github.com/catafest
Red Hat Developers: Alertmanager Watchdog monitoring with Nagios passive checks

Link: https://developers.redhat.com/blog/2020/04/29/alertmanager-watchdog-monitoring-with-nagios-passive-checks/

After installing a fresh Red Hat OpenShift cluster, go to Monitoring -> Alerting. There, you will find a Watchdog alert, which sends messages to let you know that Alertmanager is not only still runnin
Mike Driscoll: Python 101: Conditional Statements

Link: https://www.blog.pythonlibrary.org/2020/04/29/python-101-conditional-statements/

Developers have to make decisions all the time. How do you approach this problem? Do you use technology X or technology Y? Which programming language(s) can you use to solve this? Your code also somet
PyCharm: Interview: Koudai Aono, Author of pydantic Plugin for PyCharm

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

I’ve long been a big fan of pydantic by the prolific Samuel Colvin. In 2018, the package added support for dataclasses by providing its own decorator which “creates (almost) vanilla python dataclasses
Janusworx: The Long Road I took to Learn Basic Python

Link: https://janusworx.com/the-long-road-i-took-to-learn-basic-python/

I have been wanting to switch careers to programming for a long time now.
Just that juggling a part time job, home work, and a broken back, always kept me from somehow giving it the time, that that I
Real Python: Regular Expressions: Regexes in Python

Link: https://realpython.com/regex-python/

In this tutorial, you’ll explore regular expressions, also known as regexes, in Python. A regex is a special sequence of characters that defines a pattern for complex string-matching functionality.
Ea
Django Weblog: PyCharm &amp; DSF Campaign 2020 Results

Link: https://www.djangoproject.com/weblog/2020/apr/29/pycharm-dsf-campaign-2020-results/

For the fourth year in a row, JetBrains PyCharm  partnered with the Django Software Foundation on a promotion, “Get PyCharm, Support Django,” where for 28 days users could purchase new individual PyCh