schmonz.com is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Search results for tag #Python

[?]Elio Campitelli [they/elle] ยป 🌐
@eliocamp@mastodon.social

New rant. I was using os.system() to run system commands, but this time I wanted to save the output of the command. The answer* is to use either a completely different function or a completely different package.

No single learning in python seems to be transferable. I need to learn some other completely new way of doing everything every time I want to move even a bit from what I'm doing.

* stackoverflow.com/a/3503909

    [?]Gina Peter Banyard [she/her] ยป 🌐
    @Girgias@phpc.social

    People in the ecosystem, has there ever been a developer survey that gathered data about the *usage* of static analysis tools in the Python community? Frustratingly the JetBrains developer survey didn't seem to contain this question.

      [?](roll m3tti) ยป 🌐
      @m3tti@functional.cafe

      So after 1 - 2 weeks doing a lot of i don't get why people say write once language? Its not more ugly than lets say or or even . It's diffrent but in no means ugly or harder than other languages. What do i miss? Yeah i get people obsest with writing the smallest code can write pretty awefull onliners but on the other side its like an hiku or a small poem and by no means you should use that in production or in big applications. You dont use a poem to write a book right?

        [?]Larvitz :fedora: ยป 🌐
        @Larvitz@burningboard.net

        I know "AI" is a polarizing topic around here, but I wanted to share a small side-project I've been tinkering with to scratch a personal itch: MastoSum.

        Itโ€™s a lightweight web app that listens to public streams, filters for the hashtags I actually care about, and uses an LLM to generate a daily digest of the last 24 hours. Basically, a personalized news feed to help cut through the noise.

        It works reasonably well for what I need. Hereโ€™s an example of today's run: mastosum.linuxserver.pro/s/6q1

        It's IPv6-only. Not reachable via IPv4.

          #refactoring boosted

          [?]Leanpub ยป 🌐
          @leanpub@mastodon.social

          A Short Guide to Naming by Tim Ottinger is free with a Leanpub Reader membership! Or you can buy it for $6.50! leanpub.com/naming_shortguide

            #agile boosted

            [?]Stefan Zils ยป 🌐
            @eifel42@mastodon.social

            Roadmaps create certainty illusionsโ€”outcomes are unpredictable.

            Feature Hypotheses Simulation with Monte Carlo and Jupyter helps product owners estimate value, risk, portfolio balance, and assumption impact.

            Not about perfect prediction: focus on discussing uncertainty before investing.

            eifel42.de/post/feature-hypoth

              #agile boosted

              [?]Morning Dew by Alvin Ashcraft โ€“ Daily links for all developers. ยป 🌐
              @alvinashcraft.com@web.brid.gy

              Dew Drop โ€“ May 22, 2026 (#4674)

              Top Links Plan Before You Build: Introducing the Plan agent in Visual Studio (Rachel Kang) Windows App SDK Version 2.1.3 Stable Release Notes and Windows App SDK Version 2.1 Experimental 8 (2.1.4-Experimental8) Release Notes (Microsoft Learn) Announcing Agent Governance Toolkit MCP Extensions for .NET (Jack Batzner) PowerShell is now notarized and hardened for macOS (Jason … Continue reading Dew Drop – May 22, 2026 (#4674)

              [?]Leanpub ยป 🌐
              @leanpub@mastodon.social

              Dirty Data Dojo: Cleaning Data (Excel & Python): Learn to Clean Your Dirty Data in Minutes, not Months by Lee Baker is the featured course ๐ŸŽ“ on Leanpub!

              Link: leanpub.com/courses/leanpub/di

                Greg Wilson boosted

                [?]cle ยป 🌐
                @cleder@hachyderm.io

                @andrewnez
                Diffify provides you with a comparison between different versions of R packages stored on CRAN and packages stored on

                Say you were using a particular version of a package in a project and now a new version is available. With diffify you are easily able to check what has been changed in the new release. In particular, diffify will provide you with information from the NEWS file as well as changes in the dependencies, namespace and functions of the package
                diffify.com/

                  Greg Wilson boosted

                  [?]Stephen Rosen ยป 🌐
                  @sirosen@mastodon.social

                  We're hiring at my workplace.

                  If you are interested in working
                  - in a science-adjacent nonprofit
                  - in
                  - doing web backend and data engineering stuff
                  - *not using generative AI*
                  - remote work friendly

                  Please drop me a line! Your application won't skip the queue but I can give you a boost.

                  I rarely get a chance, since we're so small, but would love to help someone on here !

                  uchicago.wd5.myworkdayjobs.com

                  Please feel free to boost for reach, or forward to your friends!

                    [?]Leanpub ยป 🌐
                    @leanpub@mastodon.social

                    Build Your Own Coding Agent by J. Owen is on sale on Leanpub! Its suggested price is $34.99; get it for $15.99 with this coupon: leanpub.com/build-your-own-cod

                      #agile boosted

                      [?]Alvin Ashcraft ๐Ÿฟ๏ธ ยป 🌐
                      @alvinashcraft@hachyderm.io

                      [?]๐ŸŒˆ โ˜ฏ๏ธTeresita๐Ÿง๐Ÿ‘ญ ยป 🌐
                      @linuxgal@techhub.social

                      Convert standard input to italics with

                      #!/usr/bin/env python3
                      import sys
                      a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
                      b="๐˜ˆ๐˜‰๐˜Š๐˜‹๐˜Œ๐˜๐˜Ž๐˜๐˜๐˜‘๐˜’๐˜“๐˜”๐˜•๐˜–๐˜—๐˜˜๐˜™๐˜š๐˜›๐˜œ๐˜๐˜ž๐˜Ÿ๐˜ ๐˜ก๐˜ข๐˜ฃ๐˜ค๐˜ฅ๐˜ฆ๐˜ง๐˜จ๐˜ฉ๐˜ช๐˜ซ๐˜ฌ๐˜ญ๐˜ฎ๐˜ฏ๐˜ฐ๐˜ฑ๐˜ฒ๐˜ณ๐˜ด๐˜ต๐˜ถ๐˜ท๐˜ธ๐˜น๐˜บ๐˜ป"
                      print(" ".join(sys.argv[1:]).translate(str.maketrans(a,b)))

                        [?]Jack William Bell ยป 🌐
                        @jackwilliambell@rustedneuron.com

                        This article is from 2015, but it presents a trainable Natural Language processor in 500 lines of . No external dependencies.

                        > explosion.ai/blog/parsing-engl

                        Clear explanation as well, although I got caught on a couple of terms I didn't know. (Not an ML expert.)

                          [?]Glyph ยป 🌐
                          @glyph@mastodon.social

                          That One Draft Post (you know the one) that I've been working on for [unintelligible] months now had me wondering if I even remember how to _finish_ something, so, this was a brief interlude where I checked to see if I could in fact still do that. And also I wanted to write a little bit about programming (a thing I actually like) and not just more about AI

                            [?]Magess :heart_ace: ยป 🌐
                            @Magess@fandom.ink

                            Hey, Mastodon! My team at Scribd is hiring a Senior Backend Engineer. & onto the Publisher Content Management team.

                            jobs.ashbyhq.com/ScribdInc/df3

                              [?]Nik | Klampfradler ๐ŸŽธ๐Ÿšฒ ยป 🌐
                              @nik@toot.teckids.org

                              TIL: Don't use as base image for containerised applications.

                              (Because Python combines the worst properties of JavaScript and C when it comes to dependency management, andโ€ฆ well.)

                                [?]Glyph ยป 🌐
                                @glyph@mastodon.social

                                There are a few things in this documentation that are technically documented just fine elsewhere, and that a high-level expert in integration would be able to tell you about, but many, many product engineers would not realize that they need to look for in the first place.

                                  Glyph boosted

                                  [?]Glyph ยป 🌐
                                  @glyph@mastodon.social

                                  "Waitโ€ฆ SQLAlchemy Core Support?", I hear you ask. Yes, supports Core, and has done so for quite some time. This was previously undocumented so I can certainly forgive you for not knowing.

                                  So the *real* story of this release is not so much any big code changes, but rather updated dependency testing as well as *comprehensive documentation* for the SQLAlchemy feature. This may teach you a few things you didn't know about database support. dbxs.readthedocs.io/en/latest/

                                    Glyph boosted

                                    [?]Chris is. [He/Him] ยป 🌐
                                    @offby1@wandering.shop

                                    โ€œSomeone I didnโ€™t know created something I didnโ€™t know I needed nextโ€ is the best thing about the and community.

                                      [?]Glyph ยป 🌐
                                      @glyph@mastodon.social

                                      it's that time again

                                      a screenshot of `pipx run --python python3.14 mopup` upgrading Python to 3.14.5 on macOS

                                      Alt...a screenshot of `pipx run --python python3.14 mopup` upgrading Python to 3.14.5 on macOS

                                        [?]Elio Campitelli [they/elle] ยป 🌐
                                        @eliocamp@mastodon.social

                                        is doing my head in. What the fuck is going on here.

                                        ```
                                        โ†ณ which cdo
                                        /apps/cdo/2.4.3/bin/cdo
                                        โ†ณ python -c 'import os; os.system("which cdo")'
                                        /opt/conda/analysis3-26.04/bin/cdo
                                        ```

                                          [?]John-Mark Gurney [he/they] ยป 🌐
                                          @encthenet@flyovercountry.social

                                          A couple go to Python debugging aids of mine, first is breaking into the debugger.

                                          import pdb; pdb.set_trace()

                                          The second is:
                                          ```
                                          def printtb(fun):
                                          import functools
                                          @functools.wraps(fun)
                                          def wrapper(*a, **kwa):
                                          try:
                                          return fun(*a, *kwa)
                                          except:
                                          import traceback; traceback.print_exc()
                                          raise

                                          return wrapper
                                          ```

                                          Then any functions that is throwing an exception that I can't easily wrap elsewhere (or have no clue where it's being called from), I just throw this wrapper around it and I get the traceback I need.

                                            #agile boosted

                                            [?]Morning Dew by Alvin Ashcraft โ€“ Daily links for all developers. ยป 🌐
                                            @alvinashcraft.com@web.brid.gy

                                            Dew Drop โ€“ May 12, 2026 (#4666)

                                            Top Links Composition Stack for AI-Assisted .NET Development (Matt Mattei) Things I Think I Think… about Coding Agents and IDEs (Ted Neward) What’s new in Microsoft Foundry | April 2026 (Nick Brady) WinUI 3 Performance: A Leap Forward (Beth Pan) GitHub Copilot CLI + GPT-5-mini BYOK: The Code Was Cheap, the Quality Gates Were Expensive … Continue reading Dew Drop – May 12, 2026 (#4666)

                                            Glyph boosted

                                            [?]SnoopJ (is on a train ๐Ÿš‚) [He/him/they, please] ยป 🌐
                                            @SnoopJ@hachyderm.io

                                            They say you're supposed to scratch your own itches, so here's my take on a printer-friendly version of the 2026 schedule:

                                            snoopj.dev/files/PyConUS_2026_

                                            My target here is to fit one day on a double-sided landscape 8.5x11" (on my browser/printer) and it just about squeezes down this way.

                                              #agile boosted

                                              [?]Morning Dew by Alvin Ashcraft โ€“ Daily links for all developers. ยป 🌐
                                              @alvinashcraft.com@web.brid.gy

                                              Dew Drop โ€“ May 11, 2026 (#4665)

                                              Top Links Build an AI-Powered Rich Text Editor in .NET MAUI with AI AssistView (Tamilarasan Gunasekaran) Getting started with the GitHub Copilot SDK in .NET (Bart Wullems) Claude Code inside Obsidian — academic research skills, inline diff editing, MCP support (hkcanan) Merge Conflict Episode #514 – Running Local LLMs in VS Code (James Montemagno & Frank Kreuger) Syncing Claude Memory … Continue reading Dew Drop – May 11, 2026 (#4665)

                                              [?]Seth Larson ยป 🌐
                                              @sethmlarson@mastodon.social

                                              Hey library maintainers! ๐Ÿ‘‹ I sometimes see pull requests from well-meaning users about bumping minimum versions of dependencies to "fix security vulnerabilities". Here's a resource you can link to about why this strategy doesn't work in practice:

                                              sethmlarson.dev/library-versio

                                                [?]Leanpub ยป 🌐
                                                @leanpub@mastodon.social

                                                Build Your Own Coding Agent: The Zero-Magic Guide to AI Agents in Pure Python by J. Owen is the featured book ๐Ÿ“– on Leanpub!

                                                Skip the black-box frameworks. Build a production-grade AI coding agent from scratch in pure Python - cloud or local, tested with pytest, all in a single file.

                                                Link: leanpub.com/build-your-own-cod

                                                  [?]Leanpub ยป 🌐
                                                  @leanpub@mastodon.social

                                                  Ultimate ML interpretability bundle: Interpretable Machine Learning + Interpreting Machine Learning Models With SHAP by Christoph Molnar is the featured bundle of ebooks ๐Ÿ“š on Leanpub!

                                                  Link: leanpub.com/b/interpretability

                                                    Glyph boosted

                                                    [?]David Bremner [he/him] ยป 🌐
                                                    @bremner@mathstodon.xyz

                                                    OK @glyph challenge accepted. Here is python programming talk.

                                                    I have a script that uses "with Popen(...,stdout=PIPE)" to run a program and roughly run grep. Now I'd like to add a timeout, but I don't want to buffer the output (because it is unbounded), so run is out. Currently I am running /usr/bin/timeout from python, but this is, uh, unpythonic.

                                                      [?]Chris is. [He/Him] ยป 🌐
                                                      @offby1@wandering.shop

                                                      RE: wandering.shop/@LAcon/11652870

                                                      Iโ€™m proud that my work is helping to make the happen again this year. When you vote in the Hugo Awards, or download the packet, you're using software I wrote. It's open source -- a rarity in convention software, but in my opinion, so critical to the trust we must have in the process -- and made with and and many other software libraries that are also freely given to the developer community.

                                                        [?]Leanpub ยป 🌐
                                                        @leanpub@mastodon.social

                                                        Learning PySide6: A Practical Guide to Building GUI Applications with Python and Qt6 by Budi Raharjo is a new release on Leanpub!

                                                        Working with PySide6 should not depend on trial and error. This book replaces fragmented learning with a structured approach, combining in-depth explanations and dependable code examples that move you forward with confidence.

                                                        Link: leanpub.com/pyside6

                                                          [?]SnoopJ (is on a train ๐Ÿš‚) [He/him/they, please] ยป 🌐
                                                          @SnoopJ@hachyderm.io

                                                          forgive me, for I have sinned:

                                                          ```python
                                                          class Derived(Base):
                                                          @classmethod
                                                          def load(cls, pth):
                                                          instance = Base.load(pth)
                                                          # engage body horror
                                                          instance.__class__ = cls
                                                          return instance

                                                          def sugared_func(self):
                                                          print("a miracle occurs")
                                                          ```

                                                            [?]Jesus Michaล‚ "Le Sigh" ๐Ÿ” (he) ยป 🌐
                                                            @mgorny@social.treehouse.systems

                                                            library (yes, the one that criticizes everything and everyone) is now vibecoded. Our future is truly bright!

                                                            Noticed because apparently "Claude" wrote a test that OOM-ed my system. But hey, protects against memory errors, so it's fine to vibecode your security critical components.

                                                            github.com/pyca/cryptography/p

                                                              Back to top - More...