Planet Python RSS
217 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
John Ludhi/nbshare.io: cannot access local variable a where it is not associated with a value but the value is defined

Link: https://www.nbshare.io/notebook/74216635/cannot-access-local-variable-a-where-it-is-not-associated-with-a-value-but-the-value-is-defined/







"cannot access local variable 'a' where it is not associated with a value", but the value is defined










The error message "cannot access local variable 'a' where it is not associated with
Real Python: Getting the Most Out of the Python Standard REPL

Link: https://realpython.com/courses/python-repl/

The Python standard shell, or REPL (Read-Eval-Print Loop), allows you to run Python code interactively while working on a project or learning the language. This tool is available in every Python insta
Python Morsels: How to check whether one string contains another in Python

Link: https://www.pythonmorsels.com/substring-check/

In Python, we usually check for substrings using the in operator instead of the index or find methods.


Table of contents

What we're looking for
The string index method
The string find method
The st
PyCoder’s Weekly: Issue #576 (May 9, 2023)

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

#576 – MAY 9, 2023 View in Browser » SOLID Principles: Improve Object-Oriented Design in Python In this tutorial, you’ll learn about the SOLID principles, which are five well-established standar
Django Weblog: Announcing DjangoCon Africa 2023

Link: https://www.djangoproject.com/weblog/2023/may/10/announcing-djangocon-africa-2023/

The African Django community is excited to announce the first DjangoCon Africa event, taking place this year in Zanzibar, Tanzania, from 6th - 11th November 2023. The first event since the global pand
Python for Beginners: Tuple vs List in Python: Syntax, Definition, and Performance

Link: https://www.pythonforbeginners.com/basics/tuple-vs-list-in-python-syntax-definition-and-performance

In Python, tuples and lists are similar data structures apart from mutability. This article discusses Python tuple vs list to compare the syntax, definition, mutability, and performance of both data s
Wingware: Wing Python IDE Version 9.1 - May 10, 2023

Link: https://wingware.com/news/2023-05-10

Wing 9.1 adds auto-import and import management, collects and displays
code coverage for unit tests, uses coverage data to invalidate test results when code
is edited, adds support for Python 3.11, re
Real Python: Python News: What's New From April 2023

Link: https://realpython.com/python-news-april-2023/

Spring is in bloom, bringing new and exciting developments in the Python world. The last preview release of Python 3.12 before the feature freeze, a new major version of pandas, pip and PyPI improvem
PyCharm: How To Create a Passphrase Generator in PyCharm

Link: https://blog.jetbrains.com/pycharm/2023/05/create-passphrase-generator-in-pycharm/

In this tutorial, you will create a passphrase generator in PyCharm. You’ll learn how to:

Create a project in PyCharm Community Edition.
Install and import Python packages.
Use the Typer library to c
CodersLegacy: Python Metaclass Tutorial (with Examples)

Link: https://coderslegacy.com/python-metaclass-tutorial/

In this Python tutorial, we will discuss the concept of a “Metaclass”, and how it can be used effectively.
Metaclasses are a powerful feature in Python that allow you to create classes dynamically at
EuroPython: EuroPython April 2023 Newsletter

Link: https://blog.europython.eu/europython-april-2023-newsletter/

Hey there 👋With less than 70 days left until we gather together in Prague for EuroPython, here’s what’s been going on.📣 ProgrammeThank you to everyone who contributed to our community voting and a spe
Marcos Dione: encoding-decoding-errors

Link: http://www.grulic.org.ar/~mdione/glob//posts/encoding-decoding-errors/

I was bored and I thought this could be useful, not only for you, but for me too.
So you have this text:
sáb

What happened there? This is a classic encoding error. In fact, it's one of the
classic
Read the Docs: Read the Docs newsletter - May 2023

Link: https://blog.readthedocs.com/newsletter-may-2023/

News and updates

🚁️ The proxy application El Proxito has been rewritten and the new version is rolled out to selected projects.
El Proxito resolves URLs for all documentation websites hosted on Read
Marcos Dione: sqlalchemy-failed-to-locate-name-could-not-determine-join-condition

Link: http://www.grulic.org.ar/~mdione/glob//posts/sqlalchemy-failed-to-locate-name-could-not-determine-join-condition/

There used to be a time where I used SQLAlchemy a lot. Then life took a turn and its use was
left inside the bowels of barely maintained code. It kept on working, no matter how many times
my distro up
Marcos Dione: stacking-photos-with-python

Link: http://www.grulic.org.ar/~mdione/glob//posts/stacking-photos-with-python/

Last month we went on vacations to a place with medium light pollution. It was also meteor shower season;
the Perseids were peaking that week. So I decided to try some astro-photography. I bought a ch
Marcos Dione: blender-hillshading-and-mapnik

Link: http://www.grulic.org.ar/~mdione/glob//posts/blender-hillshading-and-mapnik/

How did it start? Well, it actually started a long time ago, maybe a year ago, most probably more. I got myself
tumbling down the beautiful rabbit hole of Blender based mapping. The idea is very simpl
Marcos Dione: osm-tile-tools-v1.0

Link: http://www.grulic.org.ar/~mdione/glob//posts/osm-tile-tools-v1.0/

Today I finally sat down and spun off generate_tiles.py to its own repository,
so people can follow its development without having to clone my own osm-carto
fork. This happened just after I finished m
Marcos Dione: identity-countries-languages-and-currencies

Link: http://www.grulic.org.ar/~mdione/glob//posts/identity-countries-languages-and-currencies/

I started watching PyCon's videos.
One of the first ones I saw is Amber Brown's "How we do identity wrong".
I think she[1] is right in raising not only the notion of not assuming things
related to nam
ListenData: 14 Open Source Alternatives to ChatGPT - Build Your Own Clone for Free

Link: https://www.listendata.com/2023/03/open-source-chatgpt-models-step-by-step.html

In this article we will explain how Open Source ChatGPT alternatives work and how you can run them to build your own ChatGPT clone for free. We will introduce you to fourteen powerful open source alte