mastodns.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
MastoDNS is being run by DNS-OARC as part of our public benefit mission to support the DNS community.

Administered by:

Server stats:

21
active users

#python

13 posts13 participants2 posts today
Lobsters<p>Smoke test your Django admin site via <span class="h-card" translate="no"><a href="https://ruby.social/@pushcx" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pushcx</span></a></span> <a href="https://lobste.rs/s/vanuj2" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/vanuj2</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://mastodon.social/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a><br><a href="https://jmduke.com/posts/post/django-admin-changelist-test/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jmduke.com/posts/post/django-a</span><span class="invisible">dmin-changelist-test/</span></a></p>
rvstaveren<p>Weird, so I used typing on my function definition, and though coverage successfully doing all the tests code coverage doesn’t seem the function anymore. Removed the typing from the function and code coverage is increased again <a href="https://mastodon.online/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>
rvstaveren<p>Tinkering around in <a href="https://mastodon.online/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> with TypedDict for kwargs typing and dataclass for convenience handling of many values received from e.g. a payload. Nice. Of course you can do without but increases the sturdiness and maintainability of your code</p>
Lobsters<p>pytest-netbox-docker: Pytest plugin that provides fixtures to start a complete Netbox infrastructure using Docker <a href="https://lobste.rs/s/nmoyud" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/nmoyud</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/show" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>show</span></a> <a href="https://mastodon.social/tags/devops" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>devops</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a><br><a href="https://github.com/link-society/pytest-netbox-docker" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/link-society/pytest</span><span class="invisible">-netbox-docker</span></a></p>
Lobsters<p>An oral history of Bank Python (2021) <a href="https://lobste.rs/s/tnynqn" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/tnynqn</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/historical" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>historical</span></a> <a href="https://mastodon.social/tags/practices" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>practices</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a><br><a href="https://calpaterson.com/bank-python.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">calpaterson.com/bank-python.ht</span><span class="invisible">ml</span></a></p>
Simeon Schmauß<p>Working with so many rover images requires precise knowledge of each camera position, lens characteristics and consistent color processing across the whole dataset. <br>For that I've developed MarsImage, a rover image processing library written in <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a>.</p><p><a href="https://gitlab.univ-nantes.fr/mars-rovers/marsimage" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gitlab.univ-nantes.fr/mars-rov</span><span class="invisible">ers/marsimage</span></a></p>
Lobsters<p>What's cooking on SourceHut? Q1 2025 via <span class="h-card" translate="no"><a href="https://social.treehouse.systems/@RunxiYu" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>RunxiYu</span></a></span> <a href="https://lobste.rs/s/dslris" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/dslris</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/api" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>api</span></a> <a href="https://mastodon.social/tags/networking" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>networking</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/vcs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vcs</span></a><br><a href="https://sourcehut.org/blog/2025-03-07-whats-cooking-q1-25/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">sourcehut.org/blog/2025-03-07-</span><span class="invisible">whats-cooking-q1-25/</span></a></p>
Pieter Lexis<p>Why do the lyrics in <a href="https://mastodon.lieter.nl/tags/Metallica" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Metallica</span></a>'s And Justice For All's CD booklet look like <a href="https://mastodon.lieter.nl/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> code?</p>
Lobsters<p>Creating static map images with OpenStreetMap, Web Mercator, and Pillow <a href="https://lobste.rs/s/q6zn75" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/q6zn75</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a><br><a href="https://alexwlchan.net/2025/static-maps/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">alexwlchan.net/2025/static-map</span><span class="invisible">s/</span></a></p>
Lobsters<p>A Map of Python <a href="https://lobste.rs/s/f7c9bm" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/f7c9bm</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a><br><a href="https://fi-le.net/pypi/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">fi-le.net/pypi/</span><span class="invisible"></span></a></p>
alltechpacks<p><a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a> <a href="https://mastodon.social/tags/CSharp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSharp</span></a> <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Code</span></a> <a href="https://mastodon.social/tags/Tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Tech</span></a> <a href="https://mastodon.social/tags/DeepSeek" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeepSeek</span></a> <a href="https://mastodon.social/tags/LLM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LLM</span></a> <a href="https://mastodon.social/tags/OpenAI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenAI</span></a> <a href="https://mastodon.social/tags/Chatgpt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Chatgpt</span></a></p>

As someone trying to learn #python my hot take of the day is: "List Comprehension" is a dumb way to say "I'm going to create a list based on pre-determined parameters".

Yes I understand the origins. I still hate it. It itches my #neurospicy brain in the exact wrong way.

If you aren't mathematician, the word "Comprehension" comes with many other connotations and can be confusing.

You know what would make more sense? Just calling it what it is: A "List Expression"