Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Moshe Zadka: Numbers in Python

Link: https://orbifold.xyz/numbers.html

Numbers in Python come in all shapes and forms.
The reason different kind of representations of numbers exist is because
they all have different trade-offs.
These trade-offs are often surprising!

Int
Erik Marsja: Create a Correlation Matrix in Python with NumPy and Pandas

Link: https://www.marsja.se/correlation-matrix-python-numpy-pandas/?utm_source=rss&utm_medium=rss&utm_campaign=correlation-matrix-python-numpy-pandas

The post Create a Correlation Matrix in Python with NumPy and Pandas appeared first on Erik Marsja.
In this post, we will go through how to calculate a correlation matrix in Python with NumPy and Pand
Real Python: The Python pickle Module: How to Persist Objects in Python

Link: https://realpython.com/python-pickle-module/

As a developer, you may sometimes need to send complex object hierarchies over a network or save the internal state of your objects to a disk or database for later use. To accomplish this, you can use
PyCharm: Webinar Recording: “How To Build Real-Time Interactions In Your Django 3 App” with Calvin Hendryx-Parker

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

Last week we hosted Calvin Hendryx-Parker from Six Feet Up for a webinar covering real-time Django 3: Django Rest Framework, Django Channels, ASGI, web sockets, a little Docker, and more. The recordin
PyBites: Exploring the Modern Python Command-Line Interface

Link: https://pybit.es/guest-exploring-python-clis.html

Exploring the Modern Python Command-Line Interface
The goal here is simple: help the new Python developer with some of
the history and terminology around command-line interfaces (CLIs)
and explore how
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