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

[?]Mark Dominus » 🌐
@mjd@mathstodon.xyz

I think this is a bug in the argparse library. The following program, run with `./program --example 1`, fails with the error `program: error: ambiguous option: --example could match --example-a, --example-b`

I think it should complete successfully, printing `Namespace(example_a="1")`.

Worth filing a report? A fix?

✂️ --------------------

import argparse

parser = argparse.ArgumentParser(description='Fetch logs from Snapser API')
parser.add_argument('--example-a', '--example-b', help='example')

args= parser.parse_args()
print(args)

✂️ --------------------

(A workaround is to add `--example` as a third synonym.)

    #agile boosted

    [?]Alvin Ashcraft's Morning Dew » 🌐
    @alvinashcraft.com@web.brid.gy

    Dew Drop – May 27, 2026 (#4677)

    Top Links Give Your .NET MAUI Android Apps a Material 3 Makeover (Gerald Versluis) WinUI agents and skills for Windows app development (Windows Dev Team) Visual Studio May Update – Plan, Review, Refine (Mark Downie) Write Cleaner WinForms Code with Copilot and the WinForms Expert Agent | Visual Studio Toolbox (Robert Green & Klaus Loeffelmann) … Continue reading Dew Drop – May 27, 2026 (#4677)

    #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

      [?]Alvin Ashcraft's Morning Dew » 🌐
      @alvinashcraft.com@web.brid.gy

      Dew Drop – May 26, 2026 (#4676)

      Top Links VS Code Insiders Podcast Episode #22 – Agent-First Development Workflows in VS Code with Brigit Murtaugh (James Montemagno & Pierce Boggan) Building an On-Device Voice Assistant with Microsoft Foundry Local (Lee Stott) Building Fluent Icon Finder with the WinUI Copilot Skill (Joseph Finney) Cortex Episode #179 – The Philosophy of Obsidian, with CEO … Continue reading Dew Drop – May 26, 2026 (#4676)

      #agile boosted

      [?]Alvin Ashcraft's Morning Dew » 🌐
      @alvinashcraft.com@web.brid.gy

      Dew Drop – May 25, 2026 (#4675)

      Top Links Automatically getting API difference diagrams in your .NET PRs (Morten Nielsen) Automating Intakes to the Awesome Copilot Marketplace (Aaron Powell) Introducing Syncfusion Toolkit for Blazor: Free Open-Source Blazor Components (Saravanan G.) Learn how to host your agents on Microsoft Foundry (Pamela Fox) TechBash CLI – A GitHub Copilot CLI skill that connects your … Continue reading Dew Drop – May 25, 2026 (#4675)

      [?]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.

        [?]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

            [?]Alvin Ashcraft's Morning Dew » 🌐
            @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

              [?]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)))

                  [?]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

                    [?]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

                            [?]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

                              [?]Alvin Ashcraft's Morning Dew » 🌐
                              @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 [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

                                [?]Alvin Ashcraft's Morning Dew » 🌐
                                @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)

                                [?]Jannis Leidel » 🌐
                                @jezdez@publicidentity.net

                                RE: fosstodon.org/@ThePSF/11655557

                                The PSF Board has been developing a strategic plan and today we're sharing the high-level goals for community feedback. Full draft with detailed objectives follows in June.

                                This plan will shape how the PSF spends its resources for the next five years. If Python is part of your world, we'd love to hear from you.

                                  [?]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

                                      [?]not Deutsche Bahn [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.

                                          Back to top - More...