Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Abhijeet Pal: Using Environment Variables In Django

Link: https://djangocentral.com/environment-variables-in-django/

While working with web applications often we need to store sensitive data for authentication of different modules such as database credentials and API keys. These sensitive keys should not be hardcode
Python Insider: Python 2.7.18, the last release of Python 2

Link: http://feedproxy.google.com/~r/PythonInsider/~3/MYraY2fq0jI/python-2718-last-release-of-python-2.html

The CPython core developers are pleased to announce the immediate availability of Python 2.7.18.

Python 2.7.18 is the last Python 2.7 release and therefore the last Python 2 release. It's time for th
The No Title® Tech Blog: How to install the current Python version on CentOS Linux 7

Link: https://no-title.victordomingos.com/articles/2020/install_python_centos_linux

One of these days, while setting up a couple of Linux virtual machines to test my Python applications, I was faced with a series of obstacles on CentOS 7 that I needed to overcome. Since this is the k
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