Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Data School: Simulate the Monty Hall problem in Python 🐐🚘🐐

Link: https://www.dataschool.io/python-probability-simulation/

There&aposs a classic probability puzzle based on the TV game show "Let&aposs Make a Deal" and named after its host, Monty Hall. Here&aposs the puzzle:
You are a contestant on a game show. In front of
Stack Abuse: How to Get HTTP Headers in a Flask App

Link: https://stackabuse.com/how-to-get-http-headers-in-a-flask-app/

Introduction
In this Byte we'll be taking a look at HTTP request headers in Flask. They can carry important information between the client and the server, and understanding how to access them is neede
Shannon -jj Behrens: Python: My Favorite Python Tricks for LeetCode Questions

Link: http://www.jjinux.com/2022/08/python-my-favorite-python-tricks-for.html

I've been spending a lot of time practicing on LeetCode recently, so I thought I'd share some of my favorite intermediate-level Python tricks. I'll also cover some newer features of Python you may not
Mike Driscoll: PyDev of the Week: Timothée Mazzucotelli

Link: https://www.blog.pythonlibrary.org/2023/09/18/pydev-of-the-week-timothee-mazzucotelli/

This week, we welcome Timothée Mazzucotelli (@pawamoy) as our PyDev of the Week! Timothée is the author of mkdocstrings.
You can see what else Timothée has been up to by visiting Timothée’s  showcase.
Stack Abuse: Convert a List of Dictionaries to a Pandas DataFrame in Python

Link: https://stackabuse.com/convert-a-list-of-dictionaries-to-a-pandas-dataframe-in-python/

Introduction
In data analysis applications, one possible way to store data in Python is in a list of dictionaries. But what if you want to perform more complex operations on your data, like sorting, f
Django Weblog: Django 5.0 alpha 1 released

Link: https://www.djangoproject.com/weblog/2023/sep/18/django-50-alpha-1-released/

Django 5.0 alpha 1 is now available. It represents the first stage in the 5.0
release cycle and is an opportunity for you to try out the changes coming in
Django 5.0.
Django 5.0 brings a deluge of exc
PyBites: How to Be a Productive Content Creator

Link: https://pybit.es/articles/how-to-be-a-productive-content-creator/

Welcome back to the Pybites Podcast!
This week Hugh Tipping interviews Bob Belderbos about how he manages to get so much content produced on a weekly basis.
Listen here:

Or check it out on YouTube:
Python Insider: Python 3.12.0 release candidate 3 now available

Link: https://pythoninsider.blogspot.com/2023/09/python-3120-release-candidate-3-now.html

 I'm pleased to announce the release of Python 3.12 release candidate 3.https://www.python.org/downloads/release/python-3120rc3/ This is the second release candidate of Python 3.12.0This release, 3.12
Talk Python to Me: #430: Delightful Machine Learning Apps with Gradio

Link: https://talkpython.fm/episodes/show/430/delightful-machine-learning-apps-with-gradio

So, you've got this amazing machine learning model you created. And you want to share it and let your colleagues and users experiment with it on the web. How do you get started? Learning Flask or Djan
Stack Abuse: Fix "local variable referenced before assignment" in Python

Link: https://stackabuse.com/fix-local-variable-referenced-before-assignment-in-python/

Introduction
If you're a Python developer, you've probably come across a variety of errors, like the "local variable referenced before assignment" error. This error can be a bit puzzling, especially f
Stack Abuse: How to Send "multipart/form-data" with Requests in Python

Link: https://stackabuse.com/how-to-send-multipart-form-data-with-requests-in-python/

Introduction
If you've ever needed to send files or data to a server via a POST request, you've likely had to use multipart/form-data. In this Byte, we'll see how to send these requests using the requ
PyCoder’s Weekly: Issue #595 (Sept. 19, 2023)

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

#595 – SEPTEMBER 19, 2023 View in Browser » Inheritance and Internals: Object-Oriented Coding in Python In this video course, you’ll learn about the various types of inheritance that you can use
Python Bytes: #353 Hatching Another Episode

Link: https://pythonbytes.fm/episodes/show/353/hatching-another-episode

<strong>Topics covered in this episode:</strong><br>

<ul>
<li><a href="https://stackoverflow.blog/2023/07/27/announcing-overflowai/"><strong>OverflowAI</strong></a></li>
<li><a href="https://andrich
PyBites: Why Start Your Programming Journey With Python?

Link: https://pybit.es/articles/why-start-your-programming-journey-with-python/

Diving into Programming with Python
I’ve spent years entertaining the thought of becoming a software developer, only to get overwhelmed by the vast array (pun intended) of programming languages to cho
Quansight Labs Blog: Array API Support in scikit-learn

Link: https://labs.quansight.org/blog/array-api-support-scikit-learn

In this blog post, we share how scikit-learn enabled support for the Array API Standard.
Kushal Das: SBOM and vulnerability scanning

Link: https://kushaldas.in/posts/sbom-and-vulnerability-scanning.html


Software Bill of
Materials became one of
the latest buzzword. A lot of people and companies talking about it like a
magical thing, if you use it then all of your security problems will be solved,
jus
Mike Driscoll: Learning About Code Metrics in Python with Radon

Link: https://www.blog.pythonlibrary.org/2023/09/20/learning-about-code-metrics-in-python-with-radon/

There are many different tools that you can install to help you be a better Python programmer. For example, you might install pytest so that you can do unit tests of your code. Or you might install Ru
Stack Abuse: Find the Index of an Item in a List in Python

Link: https://stackabuse.com/find-the-index-of-an-item-in-a-list-in-python/

Introduction
In this Byte we're going to take a look at one of the most common tasks you can do with a list: finding the index of an item. Luckily, this is usually a pretty simple task - but there are