Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Stack Abuse: Python: Accessing the Last Element of a List

Link: https://stackabuse.com/python-accessing-the-last-element-of-a-list/

Introduction
In Python, lists are one of the most used data types,
We commonly use lists to store data in Python, and for good reason, they offer a great deal of flexibility with their operations. One
Stack Abuse: Creating a Singleton in Python

Link: https://stackabuse.com/creating-a-singleton-in-python/

Introduction
Of all the design patterns, the Singleton pattern holds a unique place. It's straightforward, yet is often misunderstood. In this Byte, we'll try to explain the Singleton pattern, underst
Go Deh: "Staring at assorted perms and Python", or "The Ranking and Unranking of Lexical Permutations"

Link: http://paddy3118.blogspot.com/2023/08/staring-at-assorted-perms-and-python-or.html

 I have been playing with encryptions and then series that involved permutations. Submitting my Godeh series to the OEIS made me look closer at the permutations that Python produces, and at maybe redu
Stack Abuse: Common Docstring Formats in Python

Link: https://stackabuse.com/common-docstring-formats-in-python/

Introduction
When you're knee-deep in Python code, comprehensive documentation can be a lifesaver (but, admittedly, the last thing you want to write). It's an important part of programming, and Python
Stack Abuse: Installing Python Packages from a Git Repo with pip

Link: https://stackabuse.com/installing-python-packages-from-a-git-repo-with-pip/

Introduction
Python, a versatile and powerful programming language, boasts an extensive ecosystem of packages. These packages can be easily managed and installed using pip, Python's package installer.
Shannon -jj Behrens: Python: My Favorite Python Tricks for LeetCode Questions

Link: http://www.jjinux.com/2022/08/python-my-favorite-python-tricks-for.html

I've been spending a lot of time practicing on LeetCode recently, so I thought I'd share some of my favorite intermediate-level Python tricks. I'll also cover some newer features of Python you may not
Stack Abuse: The Python Magic Methods: __str__ vs __repr__

Link: https://stackabuse.com/the-python-magic-methods-str-vs-repr/

Introduction
Python, being a high-level, interpreted language, is known for its easy readability with great design principles. However, when you delve deeper into Python, some things may seem complex
Stack Abuse: Writing a Pandas DataFrame to a CSV File in Python

Link: https://stackabuse.com/writing-a-pandas-dataframe-to-a-csv-file-in-python/

Introduction
Working with data is a big part of any data analysis project. In Python, the Pandas library is a powerful tool that provides flexible and efficient data structures to make the process of
PyCharm: PyCharm 2023.2.1 Is Out!

Link: https://blog.jetbrains.com/pycharm/2023/08/2023-2-1/

PyCharm 2023.2.1, the first bug-fix update for PyCharm 2023.2, is now available!
You can update to v2023.2.1 by using the Toolbox App, installing it right from the IDE, or downloading it from our webs
Real Python: How to Iterate Through a Dictionary in Python

Link: https://realpython.com/iterate-through-dictionary-python/

Dictionaries are one of the most important and useful built-in data structures in Python. They’re everywhere and are a fundamental part of the language itself. In your code, you’ll use dictionaries to
death and gravity: reader 3.9 released

Link: https://death.andgravity.com/reader-3-9

Hi there!
I'm happy to announce version 3.9 of reader, a Python feed reader library.
What's new? #
Here are the highlights since reader 3.7.
Better handling of unexpected update errors #
Unexpected ex
Brian Okken: pytest Course - Ch3 pytest Fixtures is up

Link: https://pythontest.com/posts/2023/2023-pytest-course-ch3-fixtures/

Just a quick note that “Chapter 3, pytest Fixtures” is now available in the pytest course . Also, the 20% discount is active until the end of August.
Stack Abuse: Flush the Output of the print() Function in Python

Link: https://stackabuse.com/flush-the-output-of-the-print-function-in-python/

Introduction
In Python, the print function is a fundamental tool for outputting data to the console (and for many of us, our primary debugging tool). But, as you may have run into, sometimes the outpu
Stack Abuse: Reading from stdin in Python

Link: https://stackabuse.com/reading-from-stdin-in-python/

Introduction
In most programming languages, data can be read from various sources, like files, databases, or user input. However, one of the most common forms of input is the standard input, or stdin.
Stack Abuse: Appending Strings in Python

Link: https://stackabuse.com/appending-strings-in-python/

Introduction
In Python, strings are a sequence of characters and are one of the most used data types. There are lots of scenarios (taking user input, reading data from files, etc) where you'll need to
Real Python: Create a Python Wordle Clone With Rich

Link: https://realpython.com/courses/python-wordle-clone/

In this video course, you’ll build your own Wordle clone for the terminal. Since Josh Wardle launched Wordle in October 2021, millions of people have played it. While you can play the original game on
Stack Abuse: Hidden Features of Python

Link: https://stackabuse.com/hidden-features-of-python/

Introduction
Python is a powerful programming language that's easy to learn and fun to play with. But beyond the basics, there are plenty of hidden features and tricks that can help you write more eff
PyCoder’s Weekly: Issue #592 (Aug. 29, 2023)

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

#592 – AUGUST 29, 2023 View in Browser » Asyncio, Twisted, Tornado, Gevent Walk Into a Bar… A good introduction to I/O bound concurrency in Python and the libraries used to achieve it. Has a nic