Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: When Do You Use an Ellipsis in Python?

Link: https://realpython.com/python-ellipsis/

In English writing, you can use the ellipsis to indicate that you’re leaving something out.
Essentially, you use three dots (...) to replace the content.
But the ellipsis doesn’t only exist in prose—y
Python Morsels: Avoid "reduce" in Python

Link: https://www.pythonmorsels.com/reduce/

Python's reduce function can "reduce" an iterable to a single value. But the reduce function is often more hassle than it's worth.



Table of contents

What is the functools.reduce function?
Performi
Hynek Schlawack: How I’m a Productive Programmer With a Memory of a Fruit Fly

Link: https://hynek.me/articles/productive-fruit-fly-programmer/

A love letter to tools that changed everything for me.
Andre Roberge: New milestone: friendly/friendly-traceback version 0.6 (and why not 1.0)

Link: https://aroberge.blogspot.com/2022/09/new-milestone-friendlyfriendly.html

Just a few minutes ago, @isidentical tweeted that PyPy 3.9 had implemented the new enhanced tracebacks that are going to be part of cPython 3.11.  Of course, I had to reply to show that friendly/frien
IslandT: Python Tutorial — Chapter 6

Link: https://islandtropicaman.com/wp/2022/09/20/python-tutorial-chapter-6/

In this chapter of the Python tutorial, let us create an example to demonstrate how to use Python lists. Python list is just like an array where various items have been kept inside it and any particul
Mike Driscoll: Using Asyncio and Batch APIs for Remote Services

Link: https://www.blog.pythonlibrary.org/2022/09/20/using-asyncio-and-batch-apis/

Introduction to Batch APIs
In modern Python applications, it's common to access remote API using REST or other web-based technologies. Batch APIs are capable of processing multiple requests with a sin
Python⇒Speed: Using Conda? You might not need Docker

Link: https://pythonspeed.com/articles/conda-vs-docker/

Docker packaging is useful, but doing it well is not easy.
Even limiting the scope of discussion to production use of Python applications, the number of details to cover is extensive enough that I’ve
PyCoder’s Weekly: Issue #543 (Sept. 20, 2022)

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

#543 – SEPTEMBER 20, 2022 View in Browser » Build an Alexa Equivalent in Python It’s not as difficult as you think to build an AI program that listens to speech and answers questions. You can ma
Python Bytes: #302 The Blue Shirt Episode

Link: https://pythonbytes.fm/episodes/show/302/the-blue-shirt-episode

<p><strong>Watch the live stream:</strong></p>

<a href='https://www.youtube.com/watch?v=h-3a7cAHucs' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>

<p><strong>About the show</strong></p>
PyBites: Single or double quotes in Python?

Link: https://pybit.es/articles/single-or-double-quotes-in-python/

Whatever you think about Twitter these days, it’s pretty handy for us developers to ask questions and get inputs 
Last week I asked about single vs double quotes in Python:

Do you prefer single-quote
Python GUIs: Getting started with VS Code for Python: Setting up a development environment

Link: https://www.pythonguis.com/tutorials/getting-started-vs-code-python/

Setting up a working development environment is the first step for any project. Your development environment setup will determine how easy it is to develop and maintain your projects over time. That m
Python for Beginners: Rename Column by Index in Dataframes

Link: https://www.pythonforbeginners.com/basics/rename-column-by-index-in-dataframes

Dataframes are used to handle tabular data in python. In this article, we will discuss how we can rename a column by index in dataframes in python.
Change Column Name Using Index Number
We can access
Django Weblog: 2022 Django Developers Survey

Link: https://www.djangoproject.com/weblog/2022/sep/21/2022-django-developers-survey/

Please take a moment to fill it out the 2022 Django Developers Survey. We are once again partnering with JetBrains and it is available in 10 different languages.
The survey is an important metric of D
Real Python: What Does if __name__ == "__main__" Do in Python?

Link: https://realpython.com/if-name-main-python/

You’ve likely encountered Python’s if __name__ == "__main__" idiom when reading other people’s code. No wonder—it’s widespread! You might have even used if __name__ == "__main__" in your own scripts.
Ahmed Bouchefra: [3] Angular 14 Service for communicating with Contentful CMS

Link: https://efficientcoder.net/angular-service-communicate-cms/

In this tutorial, let’s now create the service that will encapsulate the code for communicating with Contentful. Go back to your command-line interface and run the following command to generate the se
Ahmed Bouchefra: [4] Angular 14 Routing and RxJS switchMap

Link: https://efficientcoder.net/angular-routing-switchmap/

In this tutorial, we’ll continue building our app with Angular 14 and Contentful. We’ll look at how to access route parameters using ParamMap and since our previous service method returns an observabl
Ahmed Bouchefra: [5] Transform data with Angular pipes

Link: https://efficientcoder.net/angular-pipe/

In this tutorial, we’ll see how to use a pipe in Angular 14 to transform and display data in our components’ templates.
Since under the How to apply part, we are displaying the content of the applyMet
Ahmed Bouchefra: How to add days to dates in JavaScript

Link: https://efficientcoder.net/howto-add-days-dates-javascript/

We can add days to dates in JavaScript as follows:

Call the JavaScript’ getDate() method to obtain the day of the month for the date.
Call the JavaScript’ setDate() method, and passing as a parameter
Ahmed Bouchefra: How to get current time zone in JavaScript

Link: https://efficientcoder.net/howto-get-current-time-zone-javascript/

You can get your time zone using JavaScript by using the Intl.DateTimeFormat object which is available in all modern browsers and returns the language-specific date and time formatting methods.
Here i