Planet Python RSS
214 subscribers
17.1K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
ItsMyCode: UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xa5 in position 0: invalid start byte

Link: https://itsmycode.com/unicodedecodeerror-utf8-codec-cant-decode-byte-0xa5-in-position-0-invalid-start-byte/

ItsMyCode |
The UnicodeDecodeError occurs mainly while importing and reading the CSV or JSON files in your Python code. If the provided file has some special characters, Python will throw an UnicodeDe
ItsMyCode: Python Comment Block

Link: https://itsmycode.com/python-comment-block/

ItsMyCode |
Comments are a piece of text in a computer program that provides more information on the source code written. Like every other programming language, Python has three different types of com
Reuven Lerner: Save time — and 30% — with my 25 Python, Git, and data science courses!

Link: https://lerner.co.il/2021/11/26/save-time-and-30-with-my-25-python-git-and-data-science-courses/


It’s that time of year — Black Friday, when everything goes on sale. At my online store, with more than 25 courses about Python, data science, Git, and regular expressions, I’m giving 30% off of the
PyCharm: PyCharm 2021.3 Release Candidate 2

Link: https://blog.jetbrains.com/pycharm/2021/11/2021-3-rc2/

It’s almost time! This is the final build before the 2021.3 major release. Our team is now working on the last details so you can enjoy the new exciting features that are coming to PyCharm really soon
Python GUIs: Using Layouts to Position Widgets in PyQt6 — Use layouts to effortlessly position widgets within the window (updated for PyQt6)

Link: https://www.pythonguis.com/tutorials/pyqt6-layouts/

So far we've successfully created a window, and we've added a widget to it. However we normally want to add more than one widget to a window, and have some control over where it ends up. To do this in
Python GUIs: Create multiple windows in PySide6 — Opening new windows for your application (updated for PySide6)

Link: https://www.pythonguis.com/tutorials/pyside6-creating-multiple-windows/

In an earlier tutorial we've already covered how to open dialog windows. These are special windows which (by default) grab the focus of the user, and run their own event loop, effectively blocking the
Weekly Python StackOverflow Report: (ccciii) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/11/ccciii-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-11-27 16:50:46 GMTDoes NumPy array really take less memory than py
Podcast.__init__: Making Orbital Mechanics More Accessible With Poliastro

Link: https://www.pythonpodcast.com/poliastro-python-orbital-mechanics-episode-342/

Outer space holds a deep fascination for people of all ages, and the key principle in its exploration both near and far is orbital mechanics. Poliastro is a pure Python package for exploring and simul
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
Mike Driscoll: PyDev of the Week: Pradyun Gedam

Link: https://www.blog.pythonlibrary.org/2021/11/29/pydev-of-the-week-pradyun-gedam/

This week we welcome Pradyun Gedam (@pradyunsg) as our PyDev of the Week! Pradyun works on pip, Python Packaging Index (PyPI), the Python Packaging Authority (PyPA), Sphinx, TOML and more! Pradyun blo
Python⇒Speed: Is it worth the money? When to buy products for your job

Link: https://pythonspeed.com/articles/programmers-buying-guide/

You’ve discovered a product that might help you with your job: perhaps a book that will teach you a new and relevant skill, or software that will speed up development.
Since you do want to write softw
Łukasz Langa: Weekly Report, November 22 - 28

Link: https://lukasz.langa.pl/6d439b86-3834-481a-b95c-ac9c6956545b/

This was a week where I tried something new. Instead of cutting through tens of shallow PRs, I focused deeply on a single one. I installed Irit Katriel’s GH-29581 to try out PEP 654’s new except* and
TestDriven.io: Dynamic Secret Generation with Vault and Flask

Link: https://testdriven.io/blog/dynamic-secret-generation-with-vault-and-flask/

In this tutorial, we'll look at a real-world example of using Hashicorp's Vault and Consul to create dynamic Postgres credentials for a Flask web app.
Matthew Wright: Financial market data analysis with pandas

Link: https://www.wrighters.io/financial-market-data-analysis-with-pandas/

Pandas is a great tool for time series analysis of financial market data. Because pandas DataFrames and Series work well with a date/time based index, they can be used effectively to analyze historica
Test and Code: 172: Designing Better Software with a Prototype Mindset

Link: https://testandcode.com/172

A prototype is a a preliminary model of something, from which other forms are developed or copied.
In software, we think of prototypes as early things, or a proof of concept.
We don't often think of p
Real Python: Data Visualization Interfaces in Python With Dash

Link: https://realpython.com/courses/data-viz-with-dash/

In the past, creating analytical web applications was a task for seasoned developers that required knowledge of multiple programming languages and frameworks. That’s no longer the case. Nowadays, you
PyCharm: Last day to buy PyCharm and Support Python!

Link: https://blog.jetbrains.com/pycharm/2021/11/support-python-2021/


You still have 1 day to purchase your PyCharm Pro license at 30% off and have the full amount of your purchase donated directly to the PSF!
Buy PyCharm and Support Python
PyCharm joins the Python Sof
ItsMyCode: ValueError: too many values to unpack (expected 2)

Link: https://itsmycode.com/valueerror-too-many-values-to-unpack-expected-2/

ItsMyCode |
If you get ValueError: too many values to unpack (expected 2), it means that you are trying to access too many values from an iterator. Value Error is a standard exception that can occur i
Python for Beginners: Shortest Path Length from a Vertex to other Vertices in a Graph

Link: https://www.pythonforbeginners.com/data-structures/shortest-path-length-from-a-vertex-to-other-vertices-in-a-graph

Graphs are used to represent geographical maps, computer networks, etc. In this article, we will discuss how to calculate the shortest distance between vertices in an unweighted graph. To calculate th
Ching-Hwa Yu: How to Create a Python Plugin System with Stevedore

Link: https://chinghwayu.com/2021/11/how-to-create-a-python-plugin-system-with-stevedore/

Photo by Kieran Wood on Unsplash
One of the questions that I see and hear often is how to extend applications using a Python plugin system. For a test engineer, this is usually related to hardware abs