Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
"CodersLegacy": Improving Performance in Pygame – Speed up your Game

Link: https://coderslegacy.com/improving-speed-performance-in-pygame/

While Pygame may be lacking features and optimization when compared to actual game development frameworks, low performance in it is not often it’s fault. If your simple 2D game is having performance i
ABlog for Sphinx: ABlog v0.10.16 released

Link: https://ablog.readthedocs.org/release/ablog-v0.10-released/#ablog-v0-10-16-released

ABlog v0.10.16 released
Matt Layman: Deploy A Site Live

Link: https://www.mattlayman.com/understand-django/deploy-site-live/

In the previous Understand Django article, we looked at automated testing and how writing tests to check your Django project can be very valuable to save you time and make sure your site works for you
Mike Driscoll: Python 201: The functools Module (Video)

Link: https://www.blog.pythonlibrary.org/2021/03/23/python-201-the-functools-module-video/

I recently did a talk on Python’s neat functools module. This screencast covers the majority of the module:

Caching

cache
lru_cache


total_ordering
partial
reduce
singledispatch
wraps

 

Related R
Anarcat: Major email crash with syncmaildir

Link: https://anarc.at/blog/2021-03-22-email-crash/

TL:DR; lost half my mail (150,000 messages, ~6GB) last night. Cause
uncertain, but possibly a combination of a dead CMOS battery, systemd
OnCalendar=daily, a (locking?) bug in syncmaildir, and general
Real Python: Records and Sets: Selecting the Ideal Data Structure

Link: https://realpython.com/courses/records-sets-ideal-data-structure/

There are a variety of ways for storing and managing data in your program and the choice of the right data structure has an effect on the readability of your code, ease of writing, and performance. Py
death and gravity: Dataclasses without type annotations

Link: https://death.andgravity.com/dataclasses

The dataclasses standard library module
reduces the boilerplate of writing classes
by generating special methods like __init__ and __repr__.
I've noticed a small (but vocal) minority of people that:
Python⇒Speed: The worst so-called "best practice" for Docker

Link: https://pythonspeed.com/articles/security-updates-in-docker/

Somebody is always wrong on the Internet, and bad Docker packaging advice is quite common.
But one particular piece of advice keeps coming up, and it’s dangerous enough to merit its own article.
In a
Reuven Lerner: One year of “Python for non-programmers”

Link: https://lerner.co.il/2021/03/23/one-year-of-python-for-non-programmers/

In the spring of last year, as the coronavirus pandemic began, it was pretty clear that this would be the major event of our lives, and that a lot of people were going to be affected in big, terrible
PyCharm: Python Web Conference. Day 1 Recap

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

Today was the first Python Web Conference day, the tutorial day, with 5 simultaneous presentations. Thanks to the event platform (Loudswarm) and the organizers, we are able to watch recordings almost
PyCoder’s Weekly: Issue #465 (March 23, 2021)

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

#465 – MARCH 23, 2021 View in Browser » Python Testing Style Guide Need a quick yet thorough guide to testing? This excellent resource is for you. STARGIRL FLOWERS A 5-Point Framework For Pyt
TestDriven.io: Effectively Using Django REST Framework Serializers

Link: https://testdriven.io/blog/drf-serializers/

This article looks at how to use Django REST Framework (DRF) serializers more efficiently and effectively.
Stack Abuse: Parse Datetime Strings with parsedatetime in Python

Link: https://stackabuse.com/parse-datetime-strings-with-parsedatetime-in-python/

Introduction
In this tutorial, we'll take a look at how to parse Datetime with parsedatetime in Python.
To use the parsedatetime package we first need to install it using pip:
$ pip install parsedatet
Real Python: Python Community Interview With Dane Hillard

Link: https://realpython.com/interview-dane-hillard/

Today I’m joined by Dane Hillard, lead web application developer at ITHAKA and author of Practices of the Python Pro. Dane is also a Real Python tutorial author.
In this interview, we discuss a variet
PyCharm: Python Web Conference. Day 2 Recap

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

That was a lot of content! And networking!


The PyData track provided a nice example of a live coding session about Data Lakes and Streams from Justin Garrison, as well as a fascinating talk on Deplo
Python for Beginners: When to Use try/catch Instead of if/else

Link: https://www.pythonforbeginners.com/control-flow-2/when-to-use-try-catch-instead-of-if-else


While programming, we have to deal with many constraints which are imposed on variables so that program can be executed in proper way. To enforce the constraints on the variables, we use if else bloc
Python Pool: 5 Techniques to Use List pop() Method in Python

Link: https://www.pythonpool.com/python-list-pop/?utm_source=rss&utm_medium=rss&utm_campaign=python-list-pop

Introduction
In Python, we have lists, which are used to store items of different data types in an ordered sequence. There are many ways to delete an element from the list such as pop, remove, etc. In
Python Bytes: #226 Teaching Python podcast on the podcast!

Link: https://pythonbytes.fm/episodes/show/226/teaching-python-podcast-on-the-podcast

<p>Special guests: </p>

<ul>
<li><a href="https://twitter.com/kellypared"><strong>Kelly Schuster-Pared</strong></a><a href="https://twitter.com/kellypared"><strong>es</strong></a></li>
<li><a href="h
Python Pool: 5 Techniques to Use List pop() Method in Python

Link: https://www.pythonpool.com/python-list-pop/?utm_source=rss&utm_medium=rss&utm_campaign=python-list-pop

Introduction
In Python, we have lists, which are used to store items of different data types in an ordered sequence. There are many ways to delete an element from the list such as pop, remove, etc. In
The Digital Cat: How to write a Pelican theme for your static website

Link: https://www.thedigitalcatonline.com/blog/2021/03/25/how-to-write-a-pelican-theme-for-your-static-website/

I run The Digital Cat using a static site generator called Pelican, created by my friend Justin Mayer and actively maintained by him and other developers. I also gave some minor contributions to the p