Aquileo | programming.dev - pythonhttps://programming.dev/c/python<p>Welcome to the <a href="https://programming.dev/c/python" rel="nofollow">Python community</a> on the programming.dev Lemmy instance!</p> <h5><a href="https://pycon.org/#calendar" rel="nofollow">📅 Events</a></h5> <details><summary>Past</summary><p>November 2023 - <a href="https://python.ie/pycon-2023/" rel="nofollow">PyCon Ireland 2023</a>, 11-12th - <a href="https://pydata.org/telaviv2023/" rel="nofollow">PyData Tel Aviv 2023</a> 14th October 2023 - <a href="https://2023.es.pycon.org/" rel="nofollow">PyConES Canarias 2023</a>, 6-8th - <a href="https://2023.djangocon.us/" rel="nofollow">DjangoCon US 2023</a>, 16-20th (<a href="https://programming.dev/post/90489" rel="nofollow">!django 💬</a>) July 2023 - <a href="https://www.meetup.com/pydelhi/events/294140277/" rel="nofollow">PyDelhi Meetup</a>, 2nd - <a href="https://2023.pycon.org.il/" rel="nofollow">PyCon Israel</a>, 4-5th - <a href="https://www.meetup.com/dfwpython/events/293749882/" rel="nofollow">DFW Pythoneers</a>, 6th - <a href="https://djangogirls.org/en/abraka/" rel="nofollow">Django Girls Abraka</a>, 6-7th - <a href="https://www.scipy2023.scipy.org/" rel="nofollow">SciPy 2023</a> 10-16th, Austin - <a href="https://www.meetup.com/indypy/events/293963956" rel="nofollow">IndyPy</a>, 11th - <a href="https://www.meetup.com/leipzig-python-user-group/events/294330224/" rel="nofollow">Leipzig Python User Group</a>, 11th - <a href="https://www.meetup.com/austinpython/events/293844612/" rel="nofollow">Austin Python</a>, 12th - <a href="https://ep2023.europython.eu/" rel="nofollow">EuroPython 2023</a>, 17-23rd - <a href="https://www.meetup.com/austinpython/events/294089607/" rel="nofollow">Austin Python: Evening of Coding</a>, 18th - <a href="https://indico.cern.ch/event/1234156/timetable/#20230725.detailed" rel="nofollow">PyHEP.dev 2023 - “Python in HEP” Developer’s Workshop</a>, 25th August 2023 - <a href="https://www.meetup.com/pyladiesdublin/events/293742378/" rel="nofollow">PyLadies Dublin</a>, 15th - <a href="https://www.euroscipy.org/2023/" rel="nofollow">EuroSciPy 2023</a>, 14-18th September 2023 - <a href="https://amsterdam.pydata.org/" rel="nofollow">PyData Amsterdam</a>, 14-16th - <a href="https://2023.pyconuk.org/" rel="nofollow">PyCon UK</a>, 22nd - 25th </p></details> <h5>🐍 Python project:</h5> <ul> <li><a href="https://www.python.org/" rel="nofollow">Python</a></li> <li><a href="https://www.python.org/doc/" rel="nofollow">Documentation</a></li> <li><a href="https://www.python.org/blogs/" rel="nofollow">News &amp; Blog</a></li> <li><a href="https://www.planetpython.org/" rel="nofollow">Python Planet</a> blog aggregator</li> </ul> <h5>💓 Python Community:</h5> <ul> <li><a href="irc://irc.libera.chat/python" rel="nofollow">#python IRC</a> for general questions</li> <li><a href="irc://irc.libera.chat/python-dev" rel="nofollow">#python-dev IRC</a> for CPython developers</li> <li><a href="https://pyslackers.com/" rel="nofollow">PySlackers</a> Slack channel</li> <li><a href="https://pythondiscord.com/" rel="nofollow">Python Discord</a> server</li> <li><a href="http://www.pythonweekly.com/" rel="nofollow">Python Weekly</a> newsletters</li> <li><a href="https://www.python.org/community/lists/" rel="nofollow">Mailing lists</a></li> <li><a href="https://discuss.python.org/" rel="nofollow">Forum</a></li> </ul> <h5>✨ Python Ecosystem:</h5> <ul> <li><a href="https://pyvideo.org/" rel="nofollow">pyvideo</a></li> <li><a href="https://github.com/vinta/awesome-python" rel="nofollow">Awesome Python</a></li> <li><a href="https://us.pycon.org/2023/" rel="nofollow">PyCon US 2023</a> and <a href="https://www.youtube.com/playlist?list=PL2Uw4_HvXqvY2zhJ9AMUa_Z6dtMGF3gtb" rel="nofollow">videos</a>!</li> </ul> <h5>🌌 Fediverse</h5> <h6>Communities</h6> <ul> <li><a href="https://mastodon.social/tags/python" rel="nofollow">#python</a> on Mastodon</li> <li><a href="https://programming.dev/c/django" rel="nofollow">c/django</a> on programming.dev</li> <li><a href="https://programming.dev/c/pythorhead@lemmy.dbzer0.com" rel="nofollow">c/pythorhead</a> on lemmy.dbzer0.com</li> </ul> <h6>Projects</h6> <ul> <li><a href="https://github.com/db0/pythorhead" rel="nofollow">Pythörhead</a>: a Python library for interacting with Lemmy</li> <li><a href="https://github.com/tjkessler/plemmy" rel="nofollow">Plemmy</a>: a Python package for accessing the Lemmy API</li> <li><a href="https://github.com/dcferreira/pylemmy" rel="nofollow">pylemmy</a> pylemmy enables simple access to Lemmy’s API with Python</li> <li><a href="https://pypi.org/project/Mastodon.py/" rel="nofollow">mastodon.py</a>, a Python wrapper for the Mastodon API</li> </ul> <h5>Feeds</h5> <ul> <li><a href="https://programming.dev/feeds/c/python.xml?sort=Active" rel="nofollow">Active c/Python posts</a></li> <li><a href="https://programming.dev/feeds/c/python.xml?sort=New" rel="nofollow">New c/Python posts</a></li> </ul> Aquileo | Python 3.13.7https://programming.dev/post/35817716cm0002 to python
30 points | 0 comments
https://www.python.org/downloads/release/python-3137/]]>
Pythonhttps://programming.dev/post/35817716https://programming.dev/post/35817716Sat, 16 Aug 2025 23:08:34 +0000https://piefed.world/u/cm0002
Aquileo | Get Ready: 2026 Python Packaging Council Nominations Opening Soon!https://programming.dev/post/53971438steam_lover to python
6 points | 0 comments
https://blog.python.org/2026/07/2026-packaging-council-nominations]]>
Pythonhttps://programming.dev/post/53971438https://programming.dev/post/53971438Thu, 23 Jul 2026 18:30:50 +0000https://sh.itjust.works/u/steam_lover
Aquileo | PyPI now rejects new files after 14 dayshttps://programming.dev/post/53937471cm0002 to python
18 points | 2 comments
https://lwn.net/Articles/1084218/]]>
Pythonhttps://programming.dev/post/53937471https://programming.dev/post/53937471Thu, 23 Jul 2026 02:58:23 +0000https://lemy.lol/u/cm0002
Aquileo | Python 3.15.0 beta 4 is here!https://programming.dev/post/53728701steam_lover to python
12 points | 0 comments
https://blog.python.org/2026/07/python-3150-beta-4]]>
Pythonhttps://programming.dev/post/53728701https://programming.dev/post/53728701Sun, 19 Jul 2026 01:47:28 +0000https://sh.itjust.works/u/steam_lover
Aquileo | Recursive Tower of Hanoi Solution Visualizedhttps://programming.dev/post/53492163bterwijn to python
13 points | 0 comments

Recursion becomes much easier once students have the right mental model. Visualization will help get them there.

Take the Tower of Hanoi problem. The recursive solution is beautifully short, to move n disks we:

  • first remove n-1 disks from the largest disk
  • then move the largest disk
  • and then move the n-1 disks back on top

But when students try to implement recursion, they often get stuck, and adding debug prints only adds to the confusion. That is where visualization can help to bring the right mental model. Here is the Tower of Hanoi problem solved recursively, visualized with 𝗶𝗻𝘃𝗼𝗰𝗮𝘁𝗶𝗼𝗻_𝘁𝗿𝗲𝗲: www.invocation-tree.com/#codeurl=https%3A%2F%2Fra…

Instead of thinking about “a function calling itself again and again” students can now see the depth-first execution of a tree of subproblems showing the divide-and-conquer strategy in action. Once a student can think in terms of a tree of subproblems, recursion becomes much easier to understand, explain, and debug.

#Python #invocation_tree #Recursion

]]>
Pythonhttps://programming.dev/post/53492163https://programming.dev/post/53492163Tue, 14 Jul 2026 07:34:38 +0000https://programming.dev/u/bterwijn
Aquileo | Serving a Frontend with FastAPI: A Practical Guidehttps://programming.dev/post/53474625rimu to python
17 points | 1 comments
https://modernpython.io/serving-a-frontend-with-fastapi-a-practical-guide/

app.frontend() seems really handy!

]]>
Pythonhttps://programming.dev/post/53474625https://programming.dev/post/53474625Mon, 13 Jul 2026 22:18:38 +0000https://piefed.social/u/rimu
Aquileo | Define less, check more: Pyrefly now speaks attrshttps://programming.dev/post/52927896nemeski to python
10 points | 0 comments
https://pyrefly.org/blog/pyrefly-attrs/]]>
Pythonhttps://programming.dev/post/52927896https://programming.dev/post/52927896Fri, 3 Jul 2026 02:09:32 +0000https://mander.xyz/u/nemeski
Aquileo | Project structure for compat package with different dependency?https://programming.dev/post/52875681AstroLightz to python
5 points | 2 comments

So I have a Python package following the project structure outlined by the Python Packaging User Guide (Without the tests/ directory). Let’s call it Package A.

This package can be used alongside another package, Package B, however no proper compatibility exists in Package A to support Package B’s rendering system.

I want to make a compatibility package, Package AB, to make Package B’s systems work with Package A. It shares the same dependencies as Package A, however it has Package B as a dependency.

How should I setup my project structure for Package AB? Should it be its own project directory? Should it be nested inside Package A’s src directory?

Additionally, I have Sphinx /w Hatch setup with Package A for documentation. Depending on the setup chosen above, how should I setup documentation for Package AB?

Some things to note:

  • Package AB would use classes and methods from Package A and Package B
  • Package B’s license (MIT) is compatible with Package A (GPLv3). Package AB would be licensed under the same as Package A

If more details are required, let me know.

]]>
Pythonhttps://programming.dev/post/52875681https://programming.dev/post/52875681Thu, 2 Jul 2026 03:07:44 +0000https://lemmy.world/u/AstroLightz
Aquileo | Difference between 'instance', 'class', and 'static' method visually explainedhttps://programming.dev/post/52790279bterwijn to python
25 points | 5 comments

The difference in Python OOP between:

  • instance method
  • class method
  • static method

visually explained using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵:

]]>
Pythonhttps://programming.dev/post/52790279https://programming.dev/post/52790279Tue, 30 Jun 2026 12:05:15 +0000https://programming.dev/u/bterwijn
Aquileo | Packaging Council Inaugural Election Dateshttps://programming.dev/post/52768371steam_lover to python
9 points | 0 comments
https://blog.python.org/2026/06/2026-packaging-council-election-dates]]>
Pythonhttps://programming.dev/post/52768371https://programming.dev/post/52768371Mon, 29 Jun 2026 23:20:58 +0000https://sh.itjust.works/u/steam_lover
Aquileo | List comprehensions vs generator expressionshttps://programming.dev/post/52678919monica_b1998 to python
5 points | 5 comments
https://slicker.me/python/listcomp-vs-genexp.html]]>
Pythonhttps://programming.dev/post/52678919https://programming.dev/post/52678919Sun, 28 Jun 2026 05:00:05 +0000https://lemmy.world/u/monica_b1998
Aquileo | Python 3.15.0 beta 3 is here!https://programming.dev/post/52569505steam_lover to python
14 points | 0 comments
https://blog.python.org/2026/06/python-3150-beta-3]]>
Pythonhttps://programming.dev/post/52569505https://programming.dev/post/52569505Fri, 26 Jun 2026 00:36:52 +0000https://sh.itjust.works/u/steam_lover
Aquileo | Mitigated API authentication bypass for python.org download metadatahttps://programming.dev/post/52569459steam_lover to python
8 points | 0 comments
https://blog.python.org/2026/06/mitigated-api-bypass-for-download-metadata-python-dot-org]]>
Pythonhttps://programming.dev/post/52569459https://programming.dev/post/52569459Fri, 26 Jun 2026 00:36:46 +0000https://sh.itjust.works/u/steam_lover
Aquileo | Free-threaded Python: past, present, and future [LWN.net]https://programming.dev/post/52534243rimu to python
23 points | 1 comments
https://lwn.net/SubscriberLink/1078367/eaa511915870fdb2/]]>
Pythonhttps://programming.dev/post/52534243https://programming.dev/post/52534243Thu, 25 Jun 2026 09:37:40 +0000https://piefed.social/u/rimu
Aquileo | Pyrefly v1.1 is here!https://programming.dev/post/52156023nemeski to python
11 points | 1 comments
https://pyrefly.org/blog/v1.1/]]>
Pythonhttps://programming.dev/post/52156023https://programming.dev/post/52156023Wed, 17 Jun 2026 23:20:16 +0000https://mander.xyz/u/nemeski
Aquileo | Reaction/comments to Cloudflare CTO's question on why no ones's using Djangohttps://programming.dev/post/51933520ifiokambrose to python
17 points | 20 comments
https://zyke.social/z/webdevelopment/p/29/whys-no-one-talking-about-the-django-web-framework-heres-why#post_replies

I think I get why Cloudflare’s CTO is asking this question.  personally started using Django for backend development, boy, that thing is robust and cool, esp…

]]>
Pythonhttps://programming.dev/post/51933520https://programming.dev/post/51933520Sat, 13 Jun 2026 15:32:44 +0000https://piefed.social/u/ifiokambrose
Aquileo | System and game performance monitoring with Pythonhttps://programming.dev/post/51921937riklaunim to python
18 points | 3 comments
https://rkblog.dev/posts/pc-performance/performance-monitoring-with-python/

It’s rather easy to gather basic system performance metrics and info. Still, with game performance metrics like FPS, Python has to use existing specialized apps and parse their output or read their shared memory.

]]>
Pythonhttps://programming.dev/post/51921937https://programming.dev/post/51921937Sat, 13 Jun 2026 10:10:44 +0000https://programming.dev/u/riklaunim
Aquileo | Python 3.14.6 and 3.13.14 are now available!https://programming.dev/post/51790987steam_lover to python
21 points | 0 comments
https://blog.python.org/2026/06/python-3146-31314]]>
Pythonhttps://programming.dev/post/51790987https://programming.dev/post/51790987Wed, 10 Jun 2026 17:35:38 +0000https://sh.itjust.works/u/steam_lover
Aquileo | selenium webdriver or cover for arbitrary GET requestshttps://programming.dev/post/51674279logging_strict to python
7 points | 19 comments
https://github.com/zaironjacobs/get-gecko-driver/issues/5

Not all coders are created equal. But there should be a line where we collectively just say, “Please stop”.

Would like to say found two critical issues in two Python packages, but it’s obvious to a six year old. Not sure can claim credit for such in your face obvious issues.

And since it’s so obvious, responsible disclosure kinda got kicked to the curb.

These libraries pin the required dependencies and test only one python interpreter, so lets just say had lowered expectations going in.

get-gecko-driver and get-chrome-driver look like they are unneeded since both selenium and webdriver-manager can download selenium webdrivers. In the later two packages, web browser support is sparse; there is room for more flexibility. For example, support for waterfox, librewolf, and mullvad-browser.

Issues summary:

  1. downloader module can send a GET request to any URL. There is no URL whitelist. These packages can be used for cover when making arbitrary GET requests.

  2. downloader can save anywhere on the file system. So can be used for other purposes besides downloading selenium webdriver.

  3. no permission checks before saving/writing the file.

  4. get_gecko_driver.downloader and get_chrome_driver.downloader are the exact same module.

I lack confidence the author will respond, will be very pleasantly surprised if the author fix these issues in a timely manner. Nor confidence he’d do a good job. But at least these issues are disclosed and the ball is in his court.

For your entertainment:

All these coding errors are unforgivable and obvious to even a novice coder, a laymen, or a random drunk. It takes talent not to see it. If bothered to do unit testing, would be unavoidable to not see it.

These issues are both CRITICAL SECURITY issues.

Obvious is obvious, don’t kill the messenger, instead lets just fix this issue. The correct action is to quickly fix it and then just agree never to mention it again and pray there is no Darwin award for coders.

]]>
Pythonhttps://programming.dev/post/51674279https://programming.dev/post/51674279Mon, 8 Jun 2026 09:00:06 +0000https://programming.dev/u/logging_strict
Aquileo | Hades PyPI Malware: Miasma Campaign Spreads to Spreads to PyPI. Exploits .pth Startup Hookshttps://programming.dev/post/51623368LandoLuma to python
12 points | 0 comments
https://thecybersecguru.com/news/hades-pypi-malware-miasma-supply-chain-attack/]]>
Pythonhttps://programming.dev/post/51623368https://programming.dev/post/51623368Sun, 7 Jun 2026 08:08:32 +0000https://lemmy.zip/u/LandoLuma