Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
ItsMyCode: SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape

Link: https://itsmycode.com/syntaxerror-unicode-error-unicodeescape-codec-cant-decode-bytes-in-position-2-3-truncated-uxxxxxxxx-escape/

The SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape occurs if you are trying to access a file path with a regular string.
In this tut
PyCoder’s Weekly: Issue #518 (March 29, 2022)

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

#518 – MARCH 29, 2022 View in Browser » Python and the James Webb Space Telescope Python is used extensively in the data pipeline for the James Web Space Telescope. Michael Kennedy interviews Me
PyPy: PyPy v7.3.9 security release

Link: https://www.pypy.org/posts/2022/03/pypy-v738-release.html

PyPy v7.3.9 security release
The PyPy team is proud to release version 7.3.9 of PyPy. This is a security
release to match the recent CPython release and updates the portable pypy
tarballs with bzip2 1
Stack Abuse: Graphs in Python: Depth-First Search (DFS) Algorithm

Link: https://stackabuse.com/depth-first-search-dfs-in-python-theory-and-implementation/

Introduction
Originating from mathematics, graphs are now widely used data structures in Computer Science. One of the first problems we encounter when constructing any algorithm regarding Graph proces
Peter Bengtsson: How to close a HTTP GET request in Python before the end

Link: http://www.peterbe.com/plog/how-to-close-a-http-get-request-in-python-before-the-end

Does you server barf if your clients close the connection before it's fully downloaded? Well, there's an easy way to find out. You can use this Python script:

import sys
import requests

url = sys.ar
Codementor: Tutorial: Python Variables

Link: https://www.codementor.io/soniaiom1705/tutorial-python-variables-1rx9wsqnmz

Introduction
Variables in any programming language are similar to the variables in mathematics. For instance, we write x = 5 in mathematics. This means that x is the name of a variable and it...
Real Python: Python GUI Programming With Tkinter

Link: https://realpython.com/python-gui-tkinter/

Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths. It’s cross-platform, so the same code works on Windo
Wingware: Wing Python IDE Version 8.3 - March 30, 2022

Link: https://wingware.com/news/2022-03-30

Wing 8.3 improves remote development by allowing it to work without an SSH agent or
command line OpenSSH or PuTTY configuration. This release also supports forwarding of the
SSH agent to the remote ho
Python Engineering at Microsoft: Python in Visual Studio Code – April 2022 Release

Link: https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2022-release/

The April 2022 release of the Python Extension for Visual Studio Code is now available.
In this release we’re introducing the following changes:

Pylint extension
Interpreter display in the status bar
ItsMyCode: How to enable CORS on Django REST Framework?

Link: https://itsmycode.com/enable-cors-on-django-rest-framework/

 If we are building an API layer using the Django REST framework and accessing these APIs in the front-end application we need to enable the CORS on Django Rest Framework otherwise we will get an erro
EuroPython: EuroPython March 2022 Newsletter

Link: https://blog.europython.eu/europython-march-2022-newsletter/

Hey hey!To say that March went by quickly would be an understatement. Our volunteers have been working round the clock to put together a fantastic conference. We’ve been busy launching the Call for Pr
ItsMyCode: Calculate Standard Error in R

Link: https://itsmycode.com/calculate-standard-error-in-r/

The standard error (SE) of a statistic is the standard deviation of its sampling distribution or an estimate of that standard deviation. The standard error is calculated by dividing the standard devia
Stack Abuse: Graphs in Python: Breadth-First Search (BFS) Algorithm

Link: https://stackabuse.com/graphs-in-python-breadth-first-search-bfs-algorithm/

Introduction
Graphs are one of the most useful data structures. They can be used to model practically everything - object relations and networks being the most common ones. An image can be represented
Zero to Mastery: Python Monthly Newsletter 💻🐍 March 2022

Link: https://zerotomastery.io/blog/python-monthly-newsletter-march-2022/?utm_source=python-rss-feed

28th issue of the Python Monthly Newsletter! Read by 20,000+ Python developers every month. This monthly Python newsletter covers the latest Python news so that you stay up-to-date with the industry a
Matt Layman: PDF Courses Report - Building SaaS with Python and Django #132

Link: https://www.mattlayman.com/blog/2022/pdf-courses-report-building-saas-with-python-and-django-132/

In this episode, we added a final PDF report to the PDF bundle. This report was different than the other because there wasn’t a pre-existing HTML report to mimic. I built a report that shows all the c
Real Python: The Real Python Podcast – Episode #104: Building a Hash Table in Python and Thoughtful REST API Design

Link: https://realpython.com/podcasts/rpp/104/

Do you understand how a hash table works? What if you could learn about building one while practicing test-driven development? What are best practices when designing a REST API? This week on the show,
Kushal Das: Securing verybad web application with only systemd

Link: https://kushaldas.in/posts/securing-verybad-web-application-with-only-systemd.html


In my last blog post I talked about
verybad web application. It has
multiple major security holes, which allows anyone to do remote code execution
or read/write files on a server. Look at the source
Quansight Labs Blog: Making GPUs accessible to the PyData Ecosystem via the Array API Standard.

Link: https://labs.quansight.org/blog/2022/03/making-gpus-accessible-to-pydata-ecosystem-via-array-api/

GPUs have become an essential part of the scientific computing stack and with
the advancement in the technology around GPUs and the ease of accessing a GPU
in the cloud or on-prem, it is in the best
Python for Beginners: List of Strings to List of Integers in Python

Link: https://www.pythonforbeginners.com/basics/list-of-strings-to-list-of-integers-in-python

Lists are one of the most used container objects in python programming. In this article, we will discuss various approaches to convert a list of strings to a list of integers in python. 
List of Strin