veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#python

236 posts202 participants0 posts today
Trey Hunner 🐍<p>On Windows machines, and on much of the Internet, line breaks are represented by a carriage return followed by a line feed, sometimes called CRLF for Carriage Return, Line Feed</p><p>Read the full article: Newlines and escape sequences in Python<br>▸ <a href="https://trey.io/ca0qyn" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">trey.io/ca0qyn</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a></p>
David Zaslavsky<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@tartley" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>tartley</span></a></span> <span class="h-card" translate="no"><a href="https://toots.dgplug.org/@kushal" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kushal</span></a></span> Oh yeah that's a good post IMO - I've read it before (I think) and most of what it says makes a lot of sense. </p><p><a href="https://techhub.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a></p>
David Zaslavsky<p><span class="h-card" translate="no"><a href="https://toots.dgplug.org/@kushal" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kushal</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@ancoghlan" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ancoghlan</span></a></span> Same... At the moment I feel somewhat grateful that I've never had to use weakref 😂 (even though it is a cool feature) </p><p><a href="https://techhub.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a></p>
Hugo van Kemenade<p>I'm very happy to announce <span class="h-card" translate="no"><a href="https://fosstodon.org/@savannah" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>savannah</span></a></span> as the Release Manager for Python 3.16 and 3.17!<br><a href="https://discuss.python.org/t/welcome-the-3-16-and-3-17-release-manager-savannah-bailey/100163" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discuss.python.org/t/welcome-t</span><span class="invisible">he-3-16-and-3-17-release-manager-savannah-bailey/100163</span></a><br><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/CPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPython</span></a> <a href="https://mastodon.social/tags/Python316" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python316</span></a> <a href="https://mastodon.social/tags/Python317" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python317</span></a></p>
Daniel Morrisey<p>v1.2 of my <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> game is coming out later today, I’m adding auto update checks, background image, bug fixes &amp; terminal logs.</p><p>You can get v1.1 now at <a href="https://danielmorrisey.com/projects/space-shooter" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">danielmorrisey.com/projects/sp</span><span class="invisible">ace-shooter</span></a></p>
Son Link :firedoge: 🐧<p>Ya está disponible la Beta 3 de <a href="https://mastodon.social/tags/Towercraft" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Towercraft</span></a> </p><p>* Nuevos assets y animaciones<br>* Efectos de sonido y música de fondo<br>* Quitado el gamepad cuando se juega en el navegador en móviles y tablets, ahora se puede jugar pulsando la pantalla</p><p>Descargas:</p><p>*Codeberg: <a href="https://codeberg.org/son_link/Towercraft/releases/tag/beta3" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/son_link/Towercra</span><span class="invisible">ft/releases/tag/beta3</span></a><br>* Itch: <a href="https://son-link.itch.io/towercraft/devlog/994504/beta-3" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">son-link.itch.io/towercraft/de</span><span class="invisible">vlog/994504/beta-3</span></a><br>* Jugar en el navegador (también en móviles y tablets): <a href="https://son-link.github.io/games/towercraft/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">son-link.github.io/games/tower</span><span class="invisible">craft/</span></a></p><p><a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/pyxel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyxel</span></a> <a href="https://mastodon.social/tags/linuxgaming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linuxgaming</span></a> <a href="https://mastodon.social/tags/floss" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>floss</span></a></p>
Leanpub<p>50+ App Features with Python: Implement feature-focused, code-driven Python capabilities with UX at the core <a href="https://leanpub.com/pythonapplication" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">leanpub.com/pythonapplication</span><span class="invisible"></span></a> is the featured book on the Leanpub homepage! <a href="https://leanpub.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">leanpub.com</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/Apis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apis</span></a> <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Networking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Networking</span></a> <a href="https://mastodon.social/tags/SystemsAdministration" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SystemsAdministration</span></a> <a href="https://mastodon.social/tags/Testing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Testing</span></a> <a href="https://mastodon.social/tags/books" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>books</span></a> <a href="https://mastodon.social/tags/ebooks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ebooks</span></a></p><p>Find it on Leanpub!</p>
spnw<p>TIL any XML element with no children is boolean false in <a href="https://gts.plexwave.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>. Ouch.</p>
Simon Forman<p>A couple of <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Quine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Quine</span></a> one-liners.</p><p>s='s=%r;print(s%%s,)';print(s%s,)</p><p>(lambda s: s%s)('(lambda s: s%%s)(%r)')</p><p>E.g.:</p><p>&gt;&gt;&gt; s = "(lambda s: s%s)('(lambda s: s%%s)(%r)')"<br>&gt;&gt;&gt; eval(s) == s<br>True</p>
PyClubs<p><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Finance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Finance</span></a> <a href="https://mastodon.social/tags/Accounting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Accounting</span></a> <a href="https://mastodon.social/tags/PyClubs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyClubs</span></a> <a href="https://mastodon.social/tags/DataViz" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataViz</span></a> <a href="https://mastodon.social/tags/Bokeh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bokeh</span></a> <a href="https://mastodon.social/tags/PythonForStudents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PythonForStudents</span></a></p>
Curated Hacker News<p>Why MIT switched from Scheme to Python (2009)</p><p><a href="https://www.wisdomandwonder.com/link/2110/why-mit-switched-from-scheme-to-python" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">wisdomandwonder.com/link/2110/</span><span class="invisible">why-mit-switched-from-scheme-to-python</span></a></p><p><a href="https://mastodon.social/tags/mit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mit</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
John Beers<p>Version 0.11 of my <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> utility <a href="https://mastodon.social/tags/image2sound" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>image2sound</span></a> is out!</p><p>A major new feature of this release is the "composition engine" that generates phrases, sections, and movements to create more musical output. No AI, just code. Lots of other backend improvements and bug fixes, too</p><p><a href="https://codeberg.org/jaerrib/image2sound/releases/tag/0.11" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/jaerrib/image2sou</span><span class="invisible">nd/releases/tag/0.11</span></a></p>
Rodrigo Amaral<p>How to Get Foreign Keys Horribly Wrong: Common Pitfalls and Potential Optimizations in Django</p><p><a href="https://hakibenita.com/django-foreign-keys" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hakibenita.com/django-foreign-</span><span class="invisible">keys</span></a></p><p><a href="https://mastodon.social/tags/software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>software</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/django" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>django</span></a></p>
lxsameer<p>I owe a lot to a few programming languages that taught me how to design a language, both from an engineering standpoint and computer science. </p><p><a href="https://mastodon.social/tags/Lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lisp</span></a> &amp; <a href="https://mastodon.social/tags/haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>haskell</span></a> for what a good programming language might look like. </p><p><a href="https://mastodon.social/tags/Agda" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Agda</span></a>, <a href="https://mastodon.social/tags/Idris2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Idris2</span></a>, <a href="https://mastodon.social/tags/lean4" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lean4</span></a> to show me how useful dependent types are.</p><p><a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++, to teach me what to avoid</p><p><a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a>, <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> to be such giant examples of shitty languages and give me hope that I can do better. 😂</p>
Lobsters<p>433: How to Make a Font that Says Nothing <a href="https://lobste.rs/s/1bpslf" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lobste.rs/s/1bpslf</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/show" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>show</span></a> <a href="https://mastodon.social/tags/a11y" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>a11y</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a><br><a href="https://untested.sonnet.io/notes/433-how-to-make-a-font-that-says-nothing/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">untested.sonnet.io/notes/433-h</span><span class="invisible">ow-to-make-a-font-that-says-nothing/</span></a></p>
Mike Driscoll<p>Did you know that <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> for loops had an optional `else` statement?</p><p>If you don't break out of the loop, the `else` statement executes.</p><p>Here are two examples, one that loops through without breaking and one that does:</p>
Kushal Das :python: :tor:<p>This week, what is a new thing you learned in <a href="https://toots.dgplug.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a>? Can be any tool/language feature/module/community, anything?</p>
Renne Rocha<p>Beta version of Pretix payment plugin to create Pix codes for payment of orders published!<br><a href="https://pypi.org/project/pretix-pix-manual/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pypi.org/project/pretix-pix-ma</span><span class="invisible">nual/</span></a><br>Now I just need to create some documentation and test it in a real environment so I can publish a first stable release 🙂 <br>Unfortunately it seems that there are not many people in Brazil using Pretix, so I don't know who else would be interested in testing it.<br><a href="https://chaos.social/tags/pretix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pretix</span></a> <a href="https://chaos.social/tags/pix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pix</span></a> <a href="https://chaos.social/tags/plugin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>plugin</span></a> <a href="https://chaos.social/tags/brazil" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>brazil</span></a> <a href="https://chaos.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
PyOhio<p>Meet our <a href="https://fosstodon.org/tags/PyOhio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyOhio</span></a> 2025 Speaker: Denise Williams 🥳<br><a href="https://www.pyohio.org/2025/program/speakers/denise-williams" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyohio.org/2025/program/speake</span><span class="invisible">rs/denise-williams</span></a></p><p>Denise Williams is giving the talk:</p><p>When Your SME Ghosts You: Using GenAI to Build a Database Documentation Agent<br><a href="https://www.pyohio.org/2025/program/talks/when-your-sme-ghosts-you" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">pyohio.org/2025/program/talks/</span><span class="invisible">when-your-sme-ghosts-you</span></a></p><p>Using tools for AI-powered Database Documentation when human experts disappear, turning GenAI into your subject matter expert while exploring some challenges of this approach.</p><p>Join us this weekend to listen in, and learn more about the <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> world!</p><p><a href="https://fosstodon.org/tags/PyOhioTalks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyOhioTalks</span></a></p>
Veit Schiele 🔜 @FrOSCon<p>After a discussion about why omitting coverage for tests is not a good idea, I added a tip to our test tutorial: <a href="https://python-basics-tutorial.readthedocs.io/en/latest/test/pytest/coverage.html#coverage-tip" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">python-basics-tutorial.readthe</span><span class="invisible">docs.io/en/latest/test/pytest/coverage.html#coverage-tip</span></a><br><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Testing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Testing</span></a> <a href="https://mastodon.social/tags/pytest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pytest</span></a> <a href="https://mastodon.social/tags/coverage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coverage</span></a></p>