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

Glyph boosted

[?]Hugo van Kemenade Β»
@hugovk@mastodon.social

[?]Leanpub Β»
@leanpub@mastodon.social

15 Cheat Sheet Collection in Python + Git + NumPy + ML + Mindset by Christian Mayer is free with a Leanpub Reader membership! Or you can buy it for $7.99! leanpub.com/python-cheat-sheet

    [?]Python Software Foundation Β»
    @ThePSF@fosstodon.org

    Congrats to the newest PSF’s Community Service Award recipients!

    @glasnt, @sarahkuchinsky, and @mathsppblog have each made lasting contributions to the community πŸπŸ—ΊοΈ From conferences to tutorials to education worldwide, their service to the Python community deserves recognition and celebration!
    pyfound.blogspot.com/2025/10/a

      #agile boosted

      [?]Morning Dew by Alvin Ashcraft – Daily links for Windows and .NET developers. Β»
      @alvinashcraft.com@web.brid.gy

      Dew Drop – October 14, 2025 (#4518)

      Top Links Azure DevOps local MCP Server is generally available (Dan Hellem) 5 React State Management Tools Developers Actually Use in 2025 (Prashant Yadav) GitHub Copilot CLI: How to get started (Andrea Griffiths) All About Code Cleanup | Visual Studio Toolbox (Leslie Richardson & Johan Smarius) Async Void in C#: The Trap Card You Keep … Continue reading Dew Drop – October 14, 2025 (#4518)

      #agile boosted

      [?]Morning Dew by Alvin Ashcraft – Daily links for Windows and .NET developers. Β»
      @alvinashcraft.com@web.brid.gy

      Dew Drop – October 13, 2025 (#4517)

      Top Links Single day registration is now available for TechBash 2025 (TechBash Team) Software Leadership with Jonathan β€œJ.” Tower – Azure & DevOps Podcast Episode #371 (Jeffrey Palermo) How to Add MCP Servers to Claude Code with Docker MCP Toolkit (Ajeet Singh Raina) React Compiler v1.0 (Lauren Tan) Building Human-in-the-loop AI Workflows with Microsoft Agent … Continue reading Dew Drop – October 13, 2025 (#4517)

      [?]Curtis "Ovid" Poe (he/him) Β»
      @ovid@fosstodon.org

      Hey, any Python experts want to help a Python newbie out? I've been hacking for decades, but I can't say I know Python best practices.

      I'm working on github.com/Ovid/sqlitch-v2 (porting some Perl code to Python) and while it seems good to me (but very much alpha and a WIP), I don't know what I don't know. If there's anything obvious I've missed or is unpythonic, I would love to know.

        [?]scy Β»
        @scy@chaos.social

        For comparison, this is the implementation. (And yes, it's 23 "lines" in the file, but if you subtract the boilerplate it's indeed exactly 10 lines of code.)

        Screenshot of 23 lines of Python. Code follows:

from collections.abc import Iterable
from dataclasses import dataclass
from pathlib import Path


@dataclass
class SourceFile:
    path: Path


def find_source_files(dir: Path) -> Iterable[SourceFile]:
    for root, dirs, files in dir.walk():
        for name in files:
            yield SourceFile(root / name)


def main() -> None:
    for file in find_source_files(Path("doc")):
        print(file.path)


if __name__ == "__main__":
    main()

        Alt...Screenshot of 23 lines of Python. Code follows: from collections.abc import Iterable from dataclasses import dataclass from pathlib import Path @dataclass class SourceFile: path: Path def find_source_files(dir: Path) -> Iterable[SourceFile]: for root, dirs, files in dir.walk(): for name in files: yield SourceFile(root / name) def main() -> None: for file in find_source_files(Path("doc")): print(file.path) if __name__ == "__main__": main()

          [?]Wolfram wants peace Β»
          @wolframkriesing@mastodontech.de

          I have to say I like the system of . The great thing about it, is the optional use. I use it where I see a lot of value (to do things wrong otherwise) and ignore it where things are just very obvious (in my eyes ;)).

          It is not ideal either, I agree, but somehow it feels quite pythonic.

            [?]gyptazy Β»
            @gyptazy@gyptazy.com

            Are you in and running your own instance? You might want to join an Activity Pub relay instance!

            My relay at https://fedi-relay.gyptazy.com has currently 139 instances connected, mostly tech related sharing the same mindset and interests like , , , , , and many more! You can easily join from your instance when using , (), and its forks 🙂


              #agile boosted

              [?]Morning Dew by Alvin Ashcraft – Daily links for Windows and .NET developers. Β»
              @alvinashcraft.com@web.brid.gy

              Dew Drop – October 10, 2025 (#4516)

              Top Links Uno Platform 6.3: Faster Rendering, .NET 10 Preview, VS 2026 Ready (Uno Platform Team) Visual Studio Code September 2025 (version 1.105) Release Notes (VS Code Team) Accelerating AI PC Experiences with OpenVINO and Windows ML (Sudhir Tonse Udupa) The Hanselminutes Podcast – Competence builds confidence with .NET Principal Engineer Safia Abdalla (Scott Hanselman) … Continue reading Dew Drop – October 10, 2025 (#4516)

              Glyph boosted

              [?]Hugo van Kemenade Β»
              @hugovk@mastodon.social

              I made a Python core team starter pack:

              fedidevs.com/s/Mzk/

              Let me know if I've missed anyone!

                Glyph boosted

                [?]Random Geek Β»
                @randomgeek@masto.hackers.town

                Nice benchmark comparison of various versions from @miguelgrinberg

                Key takeaway: if you want to do a bubble sort, use Pypy or Rust.

                Ok no. 3.14 is the fastest CPython. The JIT is still a work in progress. Free-threaded interpreter is quite nice for multithreading, but not regular stuff yet. Pypy is faster than any CPython. By a lot. But if speed's all you care about, maybe Rust.

                blog.miguelgrinberg.com/post/p

                  [?]Leanpub Β»
                  @leanpub@mastodon.social

                  The Forecasting, CatBoost & Conformal Prediction Tetralogy leanpub.com/b/forecasting_catb by Valery Manokhin is the featured bundle of ebooks πŸ“š on the Leanpub homepage! leanpub.com

                  Find it on Leanpub!

                    [?]Julien Maupetit Β»
                    @jmaupetit@mamot.fr

                    🐍 Air πŸ’¨: The new web framework that breathes fresh air into web development. Built with , Starlette, and Pydantic.

                    github.com/feldroy/air

                    Looks yummy πŸ˜‹

                      [?]Leanpub Β»
                      @leanpub@mastodon.social

                      Real World Python leanpub.com/set/leanpub/realwo by Lukas Rieger and Christian Mayer is the featured Track of online courses on the Leanpub homepage! leanpub.com#courses

                        [?]Hugo van Kemenade Β»
                        @hugovk@mastodon.social

                        Only one week left until the release of Python 3.14.0 final!

                        docs.python.org/3.14/whatsnew/

                        peps.python.org/pep-0745/

                        What are you looking forward to?

                          [?]Hugo van Kemenade Β»
                          @hugovk@mastodon.social

                          Three days until release and a bug in the Linux kernel has turned a dozen buildbots red...

                          It's already been fixed in the kernel, but will take some time to bubble up. We'll skip that test for relevant kernel versions in the meantime.

                          buildbot.python.org/#/release_

                          Python Release Status Dashboard
3.15-3.13 are red and "✘ Unreleasable: Tier-1 build failed"

                          Alt...Python Release Status Dashboard 3.15-3.13 are red and "✘ Unreleasable: Tier-1 build failed"

                          3.14
Tier-1 build failed (5)
Tier-2 build failed (2)
Tier-3 build failed (6)
Disconnected Tier-1 builder (with recent build) (1)
Disconnected Tier-2 builder (1)
Disconnected Tier-3 builder (1)
Disconnected Tierless builder (1)
Warnings from Tier-1 build (1)
Warnings from Tier-2 build (3)
Warnings from Tier-3 build (2)
Unstable build failed (18)
Warnings from unstable build (4)
Disconnected unstable builder (30)
No problem detected (72)

                          Alt...3.14 Tier-1 build failed (5) Tier-2 build failed (2) Tier-3 build failed (6) Disconnected Tier-1 builder (with recent build) (1) Disconnected Tier-2 builder (1) Disconnected Tier-3 builder (1) Disconnected Tierless builder (1) Warnings from Tier-1 build (1) Warnings from Tier-2 build (3) Warnings from Tier-3 build (2) Unstable build failed (18) Warnings from unstable build (4) Disconnected unstable builder (30) No problem detected (72)

                          ERROR: test_aead_aes_gcm (test.test_socket.LinuxKernelCryptoAPI.test_aead_aes_gcm)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_socket.py", line 7071, in test_aead_aes_gcm
    op.sendall(plain)
    ~~~~~~~~~~^^^^^^^
OSError: [Errno 22] Invalid argument

                          Alt...ERROR: test_aead_aes_gcm (test.test_socket.LinuxKernelCryptoAPI.test_aead_aes_gcm) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/buildbot/buildarea/3.14.cstratak-fedora-stable-x86_64/build/Lib/test/test_socket.py", line 7071, in test_aead_aes_gcm op.sendall(plain) ~~~~~~~~~~^^^^^^^ OSError: [Errno 22] Invalid argument

                            [?]Hugo van Kemenade Β»
                            @hugovk@mastodon.social

                            And back to green!

                            Python Release Status Dashboard

3.15 is red:
✘ Unreleasable
Tier-1 build failed

3.14 is green:
βœ” Releasable
Disconnected Tier-2 builder

3.13 is orange:
⚠ Concern
Tierless build failed

                            Alt...Python Release Status Dashboard 3.15 is red: ✘ Unreleasable Tier-1 build failed 3.14 is green: βœ” Releasable Disconnected Tier-2 builder 3.13 is orange: ⚠ Concern Tierless build failed

                              [?]Hugo van Kemenade Β»
                              @hugovk@mastodon.social

                              Release day!

                              First off, check blockers and buildbots.

                              A new release-blocker appeared yesterday (because of course) but it can wait until 3.14.1.

                              github.com/python/cpython/labe

                              Three deferred-blockers are also waiting until 3.14.1.

                              github.com/python/cpython/labe

                              A new tier-2 buildbot failure appeared yesterday (because of course) but it had previously been offline for a month and will need some reconfiguration. Can ignore.

                              buildbot.python.org/#/release_

                              OK, let's make a Python!

                                [?]Hugo van Kemenade Β»
                                @hugovk@mastodon.social

                                Next up, merge and backport the final change to What's New in Python 3.14 to declare it latest stable.
                                github.com/python/cpython/pull

                                Now start run_release.py, the main release automation script, which does a bunch of pre-checks, runs blurb to create a merged changelog, bumps some numbers, and pushes a branch and tag to my fork. It'll go upstream at the end of a successful build.

                                Then kick off the CI to build source zips, docs and Android binaries.
                                github.com/python/release-tool

                                A GitHub Actions build matrix showing an initial verify-input followed by parallel build-source (itself followed by test-source), build-docs, and build-android (consisting of aarch64 and x86_64 jobs).

                                Alt...A GitHub Actions build matrix showing an initial verify-input followed by parallel build-source (itself followed by test-source), build-docs, and build-android (consisting of aarch64 and x86_64 jobs).

                                  [?]Hugo van Kemenade Β»
                                  @hugovk@mastodon.social

                                  (That's actually the second CI attempt, we had to update some script arguments following an Android test runner update.)

                                  This build takes about half an hour.

                                  I've also informed the Windows and macOS release managers about the tag and they will start up installer builds.

                                  This takes a few hours, so I've got time to finish up the release notes.

                                  PEP 101 is the full process, but much is automated and we don't need to follow it all manually.

                                  peps.python.org/pep-0101/

                                    [?]Hugo van Kemenade Β»
                                    @hugovk@mastodon.social

                                    The Windows build has been started.

                                    The jobs with profile-guided optimisation (PGO) build once, then collect a profile by running the tests, and then build again using that profile, to see how "real" code executes and optimises for that.

                                    dev.azure.com/Python/cpython/_

                                    Meanwhile, the docs+source+Android build has finished and the artifacts have been copied to where they need to go with SBOMs created.

                                    The Windows build on Azure Pipelines. Lots of boxes for each of "build binaries", "sign binaries", "generate layouts", "pack", "test" and finally "publish". So far nearing the end of the build binaries stage.

                                    Alt...The Windows build on Azure Pipelines. Lots of boxes for each of "build binaries", "sign binaries", "generate layouts", "pack", "test" and finally "publish". So far nearing the end of the build binaries stage.

                                      [?]Hugo van Kemenade Β»
                                      @hugovk@mastodon.social

                                      The Windows build is ready and macOS is underway.

                                      Terminal prompt showing the output of run_release.py with lots of checked tasks and ending with:
Waiting for files: Linux βœ…  Windows βœ…  Mac ❌

                                      Alt...Terminal prompt showing the output of run_release.py with lots of checked tasks and ending with: Waiting for files: Linux βœ… Windows βœ… Mac ❌

                                        [?]Hugo van Kemenade Β»
                                        @hugovk@mastodon.social

                                        macOS installer done, next on the final publishing and announcing steps.

                                        Terminal showing:
βœ…  Wait until all files are ready
Go to https://www.python.org/admin/downloads/release/add/ and create a new release
Have you already created a new release for 3.14.0?
Enter yes or no:

                                        Alt...Terminal showing: βœ… Wait until all files are ready Go to https://www.python.org/admin/downloads/release/add/ and create a new release Have you already created a new release for 3.14.0? Enter yes or no:

                                          [?]Hugo van Kemenade Β»
                                          @hugovk@mastodon.social

                                          πŸš€ It's out!

                                          πŸ₯§ Please install and enjoy Python 3.14!

                                          discuss.python.org/t/python-3-

                                          Two snakes enjoying a pie with 3.14 on the top and Ο€ crimping.

                                          Alt...Two snakes enjoying a pie with 3.14 on the top and Ο€ crimping.

                                            [?]πŸŽƒ David Z Pumpkins πŸŽƒ Β»
                                            @diazona@techhub.social

                                            @chrisjrn.fyi Interesting proposal they're making there.

                                            I've been tinkering with the AI-assisted autocompletion in recently - only on open source projects so no concerns about code privacy - and it's been slightly helpful but overall a very mixed bag. It'll be interesting to see if it gets better as they collect more data.

                                              #agile boosted

                                              [?]Morning Dew by Alvin Ashcraft – Daily links for Windows and .NET developers. Β»
                                              @alvinashcraft.com@web.brid.gy

                                              Dew Drop – October 7, 2025 (#4512)

                                              Top Links Roadmap for AI in Visual Studio (October) (Rhea Patel) Blazor Server Reconnection Gets an Upgrade in .NET 10 (Jon Hilton) Technology & Friends – Arthur Doler on Code Archaeology (David Giard) What’s new in Windows 11 Version 25H2 (Mahima N.) Peter Ritchie: .NET Foundation – Azure & DevOps Podcast Episode #370 (Jeffrey Palermo) … Continue reading Dew Drop – October 7, 2025 (#4512)

                                              [?]Seth Larson Β»
                                              @sethmlarson@mastodon.social

                                              Published a pre-PEP for defining the Python Security Response Team (PSRT) membership and operations, if you're a part of the core team and are interested in vulnerability triage please take a look and weigh in:

                                              discuss.python.org/t/pre-pep-p

                                                [?]πŸŽƒ David Z Pumpkins πŸŽƒ Β»
                                                @diazona@techhub.social

                                                @wildrikku To be fair, the URL handling is a particularly poorly structured portion of the standard library. (Partly because the documentation for `HTTPResponse` lives at a very non-obvious place, docs.python.org/3/library/http)

                                                Most people just use external libraries like `requests` or `httpx`, which are much easier to use than the standard library's `urllib`; I would recommend that.

                                                  [?]πŸŽƒ David Z Pumpkins πŸŽƒ Β»
                                                  @diazona@techhub.social

                                                  @wildrikku @mark Wait there's *another* requests library? πŸ˜΅β€πŸ’« I'm talking about this one: pypi.org/project/requests/

                                                  I'd add that I think one of the emerging strengths of Python is how easy it makes it to use dependencies, especially with inline script metadata (packaging.python.org/en/latest). So the reasons to avoid dependencies are getting less and less relevant, and people who dogmatically insist on avoiding dependencies without a good reason - not saying that's you, but those people are out there - appear increasingly out of touch with modern best practices.

                                                  That being said, I still think it'd be a big improvement if the Python stdlib included better-designed URL handling modules, but realistically, I don't think that's going to happen. It's just that, because of the rich third-party library ecosystem, that's not as big of a problem as it would otherwise be.

                                                    [?]Leanpub Β»
                                                    @leanpub@mastodon.social

                                                    7 Course-Bundle: Shut Up and Code Python + PyCharm + Coding Interview + Machine Learning + One-Liners + Regex + Lambdas leanpub.com/set/leanpub/7cours by Christian Mayer, Lukas Rieger, and Shubham Sayon is the featured Track on the Leanpub homepage! leanpub.com

                                                      Back to top - More...