Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Peter Bengtsson: Fastest Python function to slugify a string

Link: https://www.peterbe.com/plog/fastest-python-function-to-slugify-a-string

In MDN I noticed a function that turns a piece of text (Python 2 unicode) into a slug. It looks like this:

non_url_safe = ['"', '#', '$', '%', '&', '+',
',', '/', ':', ';', '=
Roberto Alsina: Episodio 7: Python 1000x más rápido!

Link: https://ralsina.me/weblog/posts/episodio-7-python-1000x-mas-rapido.html

¿Es posible agarrar código al azar y hacer que funcione 1000 veces más rápido?
La verdad es que casi nunca. Pero a veces sí.
Data School: Should you use "dot notation" or "bracket notation" with pandas?

Link: https://www.dataschool.io/pandas-dot-notation-vs-brackets/

If you've ever used the pandas library in Python, you probably know that there are two ways to select a Series (meaning a column) from a DataFrame:
# dot notation
df.col_name

# bracket notation
df['c
TechBeamers Python: Python Heapq (With Examples)

Link: https://www.techbeamers.com/python-heapq/

This tutorial intends to train you on using Python heapq. It is a module in Python which uses the binary heap data structure and implements Heap Queue a.k.a. Priority Queue algorithm. Interestingly, t
Weekly Python StackOverflow Report: (cxciv) stackoverflow python report

Link: http://python-weekly.blogspot.com/2019/09/cxciv-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2019-09-14 20:44:02 GMTHow to create a list of dictionaries from a dict
Samuel Sutch: Python Programming Language Is Considered Better Than Other Languages

Link: http://ssutch.org/python-programming-language-is-considered-better-than-other-languages/

Python is a high-level scripting language. It is easy to learn and powerful than other languages because of its dynamic nature and simple syntax which allow small lines of code. Included indentation a
Samuel Sutch: Why Python Has Become an Industry Favorite Among Programmers

Link: http://ssutch.org/why-python-has-become-an-industry-favorite-among-programmers/

With the world stepping towards a new age of technology development, it isn’t hard to imagine a future that will be full of screens. And if so be the case then, demand for people with strong programmi
Programiz: How to get current date and time in Python?

Link: https://www.programiz.com/python-programming/datetime/current-datetime

In this article, you will learn to get today's date and current date and time in Python. We will also format the date and time in different formats using strftime() method.
Real Python: PyGame: A Primer on Game Programming in Python

Link: https://realpython.com/pygame-a-primer/

When I started learning computer programming late in the last millennium, it was driven by my desire to write computer games. I tried to figure out how to write games in every language and on every pl
TechBeamers Python: Python Multiple Inheritance (with Examples)

Link: https://www.techbeamers.com/python-multiple-inheritance/

In this tutorial, we’ll describe Python Multiple Inheritance concept and explain how to use it in your programs. We’ll also cover multilevel inheritance, the super() function, and focus on the method
Stack Abuse: Reading and Writing YAML to a File in Python

Link: https://stackabuse.com/reading-and-writing-yaml-to-a-file-in-python/

Introduction
In this tutorial, we're going to learn how to use the YAML library in Python 3. YAML stands for Yet Another Markup Language.
In recent years it has become very popular for its use in stor
Rene Dudfield: post modern C tooling - draft

Link: http://renesd.blogspot.com/2019/09/post-modern-c-tooling.html

DRAFT - I'm still working on this, but it's already useful and I'd like some feedback - so I decided to share it early.  In 2001 or so people started using the phrase "Modern C++". So now that it's
Roberto Alsina: Episodio 8: Complejo y Complicado

Link: https://ralsina.me/weblog/posts/episodio-8-complejo-y-complicado.html

Un intento (probablemente fallido) de explicar complejidad algorítmica, o por lo menos lo más básico del tema sin complicarla demasiado.
Moshe Zadka: Adding Methods Retroactively

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

The following post was originally published on
OpenSource.com
as part of a series on seven libraries that help solve common problems.
Imagine you have a "shapes" library.
We have a Circle class,
a Squ
Codementor: Top programming languages of 2019

Link: https://www.codementor.io/narayanapilli/top-programming-languages-of-2019-ywjp77uce

The most popular languages according to the world’s largest organization for engineering and applied science.
It can be hard to gauge which programming language to learn — should you go for the...
Kushal Das: Permanent Record: the life of Edward Snowden

Link: https://kushaldas.in/posts/permanent-record-the-life-of-edward-snowden.html



The personal life and thinking of the ordinary person who did an extraordinary
thing.
A fantastic personal narrative of his life and thinking process. The book does
not get into technical details, b