social.dk-libre.fr 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

[?]Adam Johnson :django: :python: » 🌐
@adamchainz@fosstodon.org

✍️ time-machine 3.3.0 is out, with Python 3.15 support, performance improvements, subinterpreter support, and various bug fixes.

Check it out, and if you’re using freezegun, try the updated Migration CLI to convert and speed up your tests.

adamj.eu/tech/2026/07/31/pytho

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

    RE: fosstodon.org/@adamchainz/1170

    "Wheels are also now built with frame pointers enabled, per the PEP 831 change in Python 3.15. Frame pointers are a debugging feature for low-level languages like C, which allow debuggers to reconstruct the call stack of a program. Python has decided to enable frame pointers by default and encourage the ecosystem to do so as well, to make debugging easier for us all, so time-machine is joining the party."

    Enabled by default for 3.15, do this for older versions:

    github.com/adamchainz/time-mac

    [?]Adam Johnson :django: :python: » 🌐
    @adamchainz@fosstodon.org

    ✍️ time-machine 3.3.0 is out, with Python 3.15 support, performance improvements, subinterpreter support, and various bug fixes.

    Check it out, and if you’re using freezegun, try the updated Migration CLI to convert and speed up your tests.

    adamj.eu/tech/2026/07/31/pytho

        AodeRelay boosted

        [?]Trey Hunner 🐍 » 🌐
        @treyhunner@mastodon.social

        Python Tip #214 (of 365):

        Use truthiness for integers with caution.

        I DO rely on truthiness checks for integers, but not always. I would recommend only using them when they seem to improve readability.

        I find this:
        if hours: ...

        More readable than this:
        if hours > 0: ...

        But I find this:
        if number % 2 != 0: ...

        More readable than this:
        if number % 2: ...

        🧵 (1/2)

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

          The German translation of the Python docs is being restarted. Want to help out? Get in touch with Swen!

          discuss.python.org/t/starting-

            Dryusdan boosted

            [?]Fabien LOISON (FLOZz) » 🌐
            @FLOZz@mastodon.social

            🚀 I just released rst2gemtext v0.7.0!

            It is a library and a CLI tool to convert reStructuredText to Gemtext (Gemini markup format).

            ➡️ github.com/flozz/rst2gemtext/r

            This version adds support for the Docutils' csv-table and list-table directives. Thank you @Dryusdan to make me know about them! 😁

              Wolf boosted

              [?]input » 🌐
              @feed@igeek.gamer-geek-news.com

              📰 New GitHub, PyPI Policies Hope to Boost Supply Chain Security

              "GitHub and the Python Package Index (PyPI) have introduced new policies meant to boost supply chain security," reports SecurityWeek, "by preventing the fast propagation of poisoned package version...

              📰 Source: Slashdot
              🔗 Link: https://developers.slashdot.org/story/26/08/01/0511237/new-github-pypi-policies-hope-to-boost-supply-chain-security?utm_source=rss1.0mainlinkanon&utm_medium=feed

              #Python #AI #ArtificialIntelligence

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

                Oh look, a new version of Delorean, the datetime enhancement library, has been released after just eight years:
                github.com/myusuf3/delorean/is 🚀🕒

                  [?]Trey Hunner 🐍 » 🌐
                  @treyhunner@mastodon.social

                  Python Tip #213 (of 365):

                  Replace "or"-chained equality comparisons with a containment check.

                  Instead of this:

                  is_vowel = c == "a" or c == "e" or c == "i" or c == "o" or c == "u"

                  You can write this:

                  is_vowel = c in ("a", "e", "i", "o", "u")

                  In fact, you could even give that tuple a name:

                  vowels = ("a", "e", "i", "o", "u")
                  is_vowel = c in vowels

                  🧵 (1/2)

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

                    just got released in v1.0 and is out of beta now!

                    PegaProx for VE and clusters made a huge step and is finally out of beta!

                    The first stable release also comes around with companies providing enterprise support. If you need SLA-backed help running PegaProx in production (or training sessions) you can now find a support partner at:

                    Enterprise Support & Sponsors: https://pegaprox.com/sponsors.html
                    Release: https://github.com/PegaProx/project-pegaprox/releases/tag/v1.0
                    Website: https://pegaprox.com


                    PegaProx v1.0 Release

                    Alt...PegaProx v1.0 Release

                      [?]Trey Hunner 🐍 » 🌐
                      @treyhunner@mastodon.social

                      “In order to use a for loop, you must have an iterable to loop over.”

                      Read more 👉 pym.dev/while-loops/

                        [?]Trey Hunner 🐍 » 🌐
                        @treyhunner@mastodon.social

                        "Or we could use the zip function with the strict=True argument to compare line-by-line in a for loop"

                        Read more 👉 trey.io/0frqkp

                          [?]Adam Johnson :django: :python: » 🌐
                          @adamchainz@fosstodon.org

                          ✍️ time-machine 3.3.0 is out, with Python 3.15 support, performance improvements, subinterpreter support, and various bug fixes.

                          Check it out, and if you’re using freezegun, try the updated Migration CLI to convert and speed up your tests.

                          adamj.eu/tech/2026/07/31/pytho

                            [?]Trey Hunner 🐍 » 🌐
                            @treyhunner@mastodon.social

                            Python Tip #212 (of 365):

                            Use any() and all() to check a condition across every item in an iterable

                            This:

                            any_negative = False
                            for n in numbers:
                            if n < 0:
                            any_negative = True
                            break

                            Can be replaced with:

                            any_negative = any(n < 0 for n in numbers)

                            And this:

                            all_good = True
                            for item in iterable:
                            if not condition(item):
                            all_good = False
                            break

                            Can be replaced with:

                            all_good = all(condition(item) for item in iterable)

                            🧵 (1/2)

                            all_good = True
for item in iterable:
    if not condition(item):
        all_good = False
        break

Can be rewritten as:

all_good = all(
    condition(item)
    for item in iterable
)

Also...

any_good = False
for item in iterable:
    if condition(item):
        any_good = True
        break

Can be rewritten as:

any_good = any(
    condition(item)
    for item in iterable
)

                            Alt...all_good = True for item in iterable: if not condition(item): all_good = False break Can be rewritten as: all_good = all( condition(item) for item in iterable ) Also... any_good = False for item in iterable: if condition(item): any_good = True break Can be rewritten as: any_good = any( condition(item) for item in iterable )

                              [?]Trey Hunner 🐍 » 🌐
                              @treyhunner@mastodon.social

                              Did you know that map()/filter() were added to Python 6 years before comprehensions?

                              Also range() was added 9 years before zip() which was added 3 years before enumerate().

                              And strings methods weren't methods for the first 9 years... they lived in the string module!

                              For years I've wanted an easier way to look up facts like those.

                              Now I have a way! pym.dev/since

                              It's also available as a CLI tool via PyPI

                              uvx sincewhen 'sum()'

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

                                🐍🚀 Out now: Tablib 3.10.0

                                The format-agnostic tabular dataset library

                                🔒 Security fix to escape dataset title in HTML serialisation
                                🦥 Support for Python 3.15 with lazy imports
                                💧 Drop support for EOL Python 3.9
                                🩹 And a bunch of fixes

                                github.com/jazzband/tablib/rel

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

                                  Thinking about nominating yourself or someone else for the upcoming PSF Board or Python Packaging Council elections? Now's your chance: take a couple minutes this weekend to submit a nomination!
                                  python.org/nominations/electio

                                    [?]Django News » 🤖 🌐
                                    @djangonews@mastodon.social

                                    [?]Trey Hunner 🐍 » 🌐
                                    @treyhunner@mastodon.social

                                    Using super()[key] won't work because the super class doesn't implement a __getitem__ method, but looking up the __getitem__ attribute on a super() object does work (assuming a parent class implements that method).

                                    Read more 👉 trey.io/p0h32w

                                      [?]AI6YR Ben » 🌐
                                      @ai6yr@m.ai6yr.org

                                      Great, now the AI is throwing malware into python libraries, too.

                                      Anthropic's Claude breached 3 orgs, uploaded PyPI malware during tests

                                      bleepingcomputer.com/news/secu

                                        [?]Trey Hunner 🐍 » 🌐
                                        @treyhunner@mastodon.social

                                        Python Tip #211 (of 365):

                                        Consider how your Boolean expressions read in English

                                        For example, you could write "10 > x" or you could write "x < 10".

                                        They check the same thing, but I find the latter one more readable.

                                        Steve McConnell's Code Complete recommends writing numeric tests in "number-line order": order the values left to right, from smallest to largest.

                                        Follow that rule and you'll always use < and <=, never > and >=.

                                        I don't follow that advice...

                                        🧵 (1/3)

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

                                          What's New in Python 3.15:

                                          csv

                                          * csv.Sniffer.sniff() delimiter detection is now up to 1.6x faster. (Contributed by Maurycy Pawłowski-Wieroński.)

                                          docs.python.org/3.15/whatsnew/

                                            [?]Trey Hunner 🐍 » 🌐
                                            @treyhunner@mastodon.social

                                            Finding an item in a sorted list of 10 million things:

                                            ✅ Binary search: 23 comparisons
                                            ❌ The `in` operator: 2+ million comparisons

                                            Python's bisect module does binary search for you. New article, with recipes for closest-match and range lookups:

                                            pym.dev/binary-search/

                                              Clyde 🦣 boosted

                                              [?]Dalibo » 🌐
                                              @dalibo@mastodon.online

                                              JOB : nous recrutons un développeur / une développeuse backend.

                                              Découvrez le poste et les compétences requises, ainsi que les avantages à travailler chez Dalibo : télétravail, coopérative, grille salariale transparente… => blog.dalibo.com/2026/07/30/dev





                                              visuel promo du recrutement chez Dalibo

                                              Alt...visuel promo du recrutement chez Dalibo

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

                                              Lots of new stuff in pip 26.2:

                                              🍊 Support for Python 3.15
                                              🍊 Selecting only dependencies
                                              🍊 Experimental: venv based build isolation
                                              🍊 Faster repeated resolves by caching index simple responses
                                              🍊 No more progress bar spam in CI
                                              🍊 Deprecation to remove the legacy dependency resolver (--use-deprecated=legacy-resolver)

                                              See @ichard26's post for more!

                                              sichard.ca/blog/2026/07/whats-

                                                [?]Trey Hunner 🐍 » 🌐
                                                @treyhunner@mastodon.social

                                                For checking whether any items match a more complex condition, we could use the built-in any() or all functions

                                                Read more 👉 trey.io/xtql6h

                                                  [?]Trey Hunner 🐍 » 🌐
                                                  @treyhunner@mastodon.social

                                                  Python Tip #210 (of 365):

                                                  Instead of an "if" under an "else", consider using "elif".

                                                  You likely know about Python's "elif" statement, but you might occasionally underuse it.

                                                  If you find yourself writing an "if" statement just under an "else", ask "should I use an "elif" here instead?"

                                                  🧵 (1/3)

                                                    [?]Lobsters » 🤖 🌐
                                                    @lobsters@mastodon.social

                                                    xy is very fast and customizable charting library for Python lobste.rs/s/vnfk4x
                                                    github.com/reflex-dev/xy

                                                      [?]Trey Hunner 🐍 » 🌐
                                                      @treyhunner@mastodon.social

                                                      New Python Morsels article: Binary search with the bisect module 🔍

                                                      You don't need to implement binary search yourself. Python's bisect module already did it for you.

                                                      In this article:

                                                      🎯 An interactive guessing game that demonstrates binary search
                                                      ⚡ Why 10 million items take just 23 comparisons
                                                      🤔 Why a set or dict can't always replace binary search
                                                      🧰 Recipes: closest match, first/last match, all values in a range

                                                      pym.dev/binary-search/

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

                                                        What's New in Python 3.15:

                                                        contextlib

                                                        * Added support for arbitrary descriptors __enter__(), __exit__(), __aenter__(), and __aexit__() in ExitStack and contextlib.AsyncExitStack, for consistency with the `with` and `async with` statements.

                                                        * ContextDecorator and AsyncContextDecorator now detect generator functions, coroutine functions, and asynchronous generator functions and keep the context manager open across iteration or await.

                                                        docs.python.org/3.15/whatsnew/

                                                          [?]Trey Hunner 🐍 » 🌐
                                                          @treyhunner@mastodon.social

                                                          I've recently been updating many of my mini helper apps and I made a page for them: pythonmorsels.com/tools/

                                                          Note that the strptime & format tools now link to CLI versions (strptime-cli & fguess) and the pastebin & REPL tool recently got a big rework.

                                                          Have thoughts on one of these tools? Or an idea for another one? I'd love to hear either!

                                                            [?]Trey Hunner 🐍 » 🌐
                                                            @treyhunner@mastodon.social

                                                            Python Tip #209 (of 365):

                                                            Remember Python's "inline ifs"

                                                            Python doesn't have traditional ternary operators (cond ? one : two) but instead has an inline "if" expression (technically a "conditional expression") for the same purpose.

                                                            Instead of:

                                                            if amount == 1:
                                                            noun = "item"
                                                            else:
                                                            noun = "items"

                                                            We can write

                                                            noun = "item" if amount == 1 else "items"

                                                            The condition is in the MIDDLE. The first value is the "true" case and the last is the "false" case.

                                                            🧵 (1/2)

                                                              [?]codingjoe :django: :python: » 🌐
                                                              @codingjoe@fosstodon.org

                                                              Usually a quick chore, but with the feature update, an unexpected ton of work…

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

                                                                🪟🦾🥈 Windows on Arm (aka aarch64-pc-windows-msvc) has now been promoted to tier 2 of CPython platform support.

                                                                Tier 3 has no response SLA to failures. Tier 2 requires breaking changes to be fixed or reverted within 24 hours, and failures block a release.

                                                                Tier 3 requires at least one core team member signed up to support the platform. Tier 2 requires at least two, and we have three here.

                                                                peps.python.org/pep-0011/

                                                                  Marcos Dione boosted

                                                                  [?]Tael 🔜 ANE » 🌐
                                                                  @tael@yiff.life

                                                                  Ok time to take advantage of the fact that I'm on Mastodon. If anyone familiar with in , specifically (the implementation of WTForms in Flask) wants to help me debug an issue with request.form please shoot me a DM!

                                                                    [?]Trey Hunner 🐍 » 🌐
                                                                    @treyhunner@mastodon.social

                                                                    Python Tip #208 (of 365):

                                                                    Break up long boolean expressions

                                                                    Have a long condition in your "if" statement?

                                                                    You could:

                                                                    1. Wrap it in parentheses to break it up over multiple lines
                                                                    2. Use variables to give names to each sub-expression
                                                                    3. Use functions to name sub-expressions

                                                                    🧵 (1/4)

                                                                      [?]Adam Johnson :django: :python: » 🌐
                                                                      @adamchainz@fosstodon.org

                                                                      ✍️ New post on a Python testing technique: inspecting interleaved calls across multiple mocks with attached mocks.

                                                                      adamj.eu/tech/2026/07/27/pytho

                                                                        [?]Trey Hunner 🐍 » 🌐
                                                                        @treyhunner@mastodon.social

                                                                        “Sets are also great when you need fast containment checks.”

                                                                        Read more 👉 pym.dev/practical-uses-of-sets/

                                                                          [?]Linux Professional Institute » 🌐
                                                                          @LPI@fosstodon.org

                                                                          Some remain widely used for decades, while others fulfill an important role during their time before receding.

                                                                          Our author Andrew Oram explores the stories of C, C++, C#, , , , , , , , and others. Dive into it 👇
                                                                          lpi.org/xq3f

                                                                            [?]Alnotz » 🌐
                                                                            @alnotz@toot.gnous.eu

                                                                            @bearstech
                                                                            Une suggestion pour de jolies TUI en Python ?

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

                                                                              Please congratulate our newest PSF Fellow Members for Q2, 2026! Their continued contributions to the Python ecosystem are so very important to our community.
                                                                              pyfound.blogspot.com/2026/07/a

                                                                                [?]pvergain (framapiaf) » 🌐
                                                                                @pvergain@framapiaf.org

                                                                                wsvincent.com/deploying-web-ap (Deploying Web Apps in 2026: My EuroPython 2026 Conference Talk by Will Vincent )

                                                                                --<--
                                                                                This is the text version of my EuroPython talk, Deploying Python Web Apps in 2026, which I recently presented in Krakow, Poland.

                                                                                I will add the video version when it it is ready in a few weeks. The EuroPython team traditionally does an amazing job making the talks available shortly after the conference.
                                                                                -->--

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

                                                                                  The PSF is hiring a Security Developer! Help triage vulnerabilities in CPython, fight malware/supply-chain attacks on PyPI, and build tools to keep the ecosystem safe for millions of users 🐍🔒 This is a global, remote, 1 year term role, with the possibility of renewal.

                                                                                  Apply today:
                                                                                  pythonsoftwarefoundation.apply

                                                                                    [?]andros » 🌐
                                                                                    @andros@activity.andros.dev

                                                                                    «Modern email can be built from borrowed parts»

                                                                                    What if we designed the successor to email on top of HTTP, fixing 40 years of SMTP design flaws using only technologies that already exist?

                                                                                    https://en.andros.dev/blog/d7ed8b07/modern-email-can-be-built-from-borrowed-parts/

                                                                                    #Email #ActivityPub #OpenWeb #Python

                                                                                      [?]rixx » 🌐
                                                                                      @rixx@chaos.social

                                                                                      I did not realise I had strong feelings on docstrings. I use them sparingly, and while they are a hack, at least they serve a good purpose.

                                                                                      I know people have opinions on the placement of line breaks and quotes, but I thought I was above these things. That this was Python programmers yearning for curly-brace level style wars.

                                                                                      I was mistaken.

                                                                                      I just encountered docstrings written in regular quotes rather than triple quotes and, no, apparently I DO have strong feelings on docstrings.

                                                                                        [?]Trey Hunner 🐍 » 🌐
                                                                                        @treyhunner@mastodon.social

                                                                                        Python Tip #207 (of 365):

                                                                                        Get fancy with your subprocess‍.run calls.

                                                                                        When launching a subprocess, consider passing the keyword arguments capture_output, text, and check to subprocess‍.run.

                                                                                        Passing capture_output=True will capture both stdout & stderr from the subprocess.

                                                                                        Passing text=True will decode the captured output into strings (instead of providing raw bytes).

                                                                                        Passing check=True will raise an exception if the subprocess exited with an error code.

                                                                                        🧵 (1/2)

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

                                                                                          Now we have pymanager for Windows, Python 3.16 drops the old MSI-based installer.

                                                                                          Here's Steve Dower's +389 -17,781 PR! 🧹

                                                                                          github.com/python/cpython/pull

                                                                                          peps.python.org/pep-0773/

                                                                                            [?]Ned Batchelder » 🌐
                                                                                            @nedbat@hachyderm.io

                                                                                            Because someone in the Discord was asking about structuring tests alongside their project code, I added a bit of test structure to my pkgsample explainer: github.com/nedbat/pkgsample

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

                                                                                              The next PyPy will be 8.0.0 and should add support for Python 3.12 and be the last to support 3.11, and require glibc 2.28 (AlmaLinux8, Amazon Linux 2023, Debian 10, Ubuntu 20.04).

                                                                                              pypy.org/posts/2026/07/moving-

                                                                                                [?]Trey Hunner 🐍 » 🌐
                                                                                                @treyhunner@mastodon.social

                                                                                                Python Tip #206 (of 365):

                                                                                                Know your combination and permutation tools in Python.

                                                                                                Python ships with tools for combinations, permutations, and random selections.

                                                                                                The itertools module includes various combinatorics-oriented utilities:

                                                                                                from itertools import combinations, combinations_with_replacement, permutations, product

                                                                                                This joins tuples of characters into a comma-separated string:

                                                                                                def join(groups):
                                                                                                return ", ".join("".join(g) for g in groups)

                                                                                                🧵 (1/5)

                                                                                                  [?]Adam Johnson :django: :python: » 🌐
                                                                                                  @adamchainz@fosstodon.org

                                                                                                  ✍️ New post on using unittest.mock to spy on function calls. 🕵️‍♂️

                                                                                                  I recently learned how to use the wraps argument to track all calls to a target function for later assertions. Very useful for testing things like “is caching working?” without having to mock the function completely.

                                                                                                  adamj.eu/tech/2026/07/25/pytho

                                                                                                    [?]Trey Hunner 🐍 » 🌐
                                                                                                    @treyhunner@mastodon.social

                                                                                                    “So if you find this feature jarring enough that you'd like to never use it in your code, you can probably configure your linter to disallow it entirely.”

                                                                                                    Read more 👉 pym.dev/implicit-string-concat

                                                                                                      [?]Adam Johnson :django: :python: » 🌐
                                                                                                      @adamchainz@fosstodon.org

                                                                                                      ✍️ Django’s release code words, up to the pending Django 6.1 “mélange”.

                                                                                                      adamj.eu/tech/2026/07/24/djang

                                                                                                        [?]Django News » 🤖 🌐
                                                                                                        @djangonews@mastodon.social

                                                                                                        [?]Trey Hunner 🐍 » 🌐
                                                                                                        @treyhunner@mastodon.social

                                                                                                        “Python's print function is usually one of the first built-in functions that new Pythonistas learn about, but many Python programmers don't realize how versatile the print function is.”

                                                                                                        Read more 👉 pym.dev/print-features/

                                                                                                          [?]Trey Hunner 🐍 » 🌐
                                                                                                          @treyhunner@mastodon.social

                                                                                                          Python Tip #205 (of 365):

                                                                                                          Use statistics.multimode to get the most common items.

                                                                                                          To get the most common items in an iterable, you might be tempted to use collections.Counter. Consider using statistics.multimode instead.

                                                                                                          Compare this:

                                                                                                          counts = collections.Counter(items)
                                                                                                          [(_, top_count)] = counts.most_common(1)
                                                                                                          commonest = [
                                                                                                          item
                                                                                                          for item, count in counts.items()
                                                                                                          if count == top_count
                                                                                                          ]

                                                                                                          To this:

                                                                                                          commonest = statistics.multimode(items)

                                                                                                          Simpler, right?

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

                                                                                                            🐍🚀 Out now: em-keyboard 5.4.0

                                                                                                            An emoji search CLI.

                                                                                                            Adds support for Python 3.15 and Unicode 17.0:

                                                                                                            ❯ em "distorted face" "fight cloud" "hairy creature" "ballet dancer" "orca" "landslide" "trombone" "treasure chest"
                                                                                                            Copied! 🫪 🫯 🫈 🧑‍🩰 🫍 🛘 🪊 🪎

                                                                                                            Your device might not support them yet 🫠

                                                                                                            blog.emojipedia.org/whats-new-

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

                                                                                                              🐍🚀 Out now: flake8-implicit-str-concat 0.7.0

                                                                                                              A Flake8 plugin to encourage string literal concatenation. It can help tidy up after Black/Ruff.

                                                                                                              This release adds a new ISC004 rule: "unparenthesized implicit string concatenation in collection". See examples in the README.

                                                                                                              Also support Python 3.15 and use PEP 639 licence expression and remove deprecated Trove classifier.

                                                                                                              github.com/flake8-implicit-str

                                                                                                                [?]Trey Hunner 🐍 » 🌐
                                                                                                                @treyhunner@mastodon.social

                                                                                                                The Python Morsels pastebin & REPL pages recently got some BIG updates.

                                                                                                                pastebin: pym.dev/paste
                                                                                                                REPL: pym.dev/repl

                                                                                                                Some of the many new things you can do with the pastebin and REPL that you couldn't before:

                                                                                                                • Run a paste before even saving it
                                                                                                                • Add additional files to a paste
                                                                                                                • Pass command-line arguments
                                                                                                                • Run pastes in interactive mode
                                                                                                                • Edit a paste after you've created it
                                                                                                                • Drop into PDB to debug tracebacks
                                                                                                                • Open a paste within the Python REPL

                                                                                                                  [?]Trey Hunner 🐍 » 🌐
                                                                                                                  @treyhunner@mastodon.social

                                                                                                                  “How can you check which operating system your Python code is running on?”

                                                                                                                  Read more 👉 pym.dev/operating-system-check

                                                                                                                    [?]Trey Hunner 🐍 » 🌐
                                                                                                                    @treyhunner@mastodon.social

                                                                                                                    Python Tip #204 (of 365):

                                                                                                                    Generate unique identifiers with the uuid module

                                                                                                                    >>> import uuid
                                                                                                                    >>> uid = uuid.uuid4()
                                                                                                                    >>> uid
                                                                                                                    UUID('922a6cea-c3e9-473d-bf88-efb10793c931')
                                                                                                                    >>> str(uid)
                                                                                                                    '922a6cea-c3e9-473d-bf88-efb10793c931'

                                                                                                                    UUID stands for universally unique identifiers.

                                                                                                                    The uuid module has functions for UUID version 1, 3, 4, 5, 6, 7, and 8 from RFC 4122/9562.

                                                                                                                    Versions 7 and 8 were added in Python 3.14.

                                                                                                                    🧵 (1/2)

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

                                                                                                                      You can be a part of kickstarting the brand new Python Packaging Council ✨🐍📦 Nominate yourself or someone else for the council for the inaugural election! Nominations open Tuesday, July 28th, 2:00 pm UTC and close Tuesday, August 11th, 2:00 pm UTC.
                                                                                                                      pyfound.blogspot.com/2026/07/g

                                                                                                                        [?]Mindiell » 🌐
                                                                                                                        @Mindiell@mamot.fr

                                                                                                                        @ffeth sinon, il y a -fr sur IRC <3

                                                                                                                          [?]Feth 🎉 » 🌐
                                                                                                                          @ffeth@hostux.social

                                                                                                                          Hmm, I got a question on , specifically .

                                                                                                                          I just coded a very short module with dynamically generated functions that I export, and mypy complains when I use these functions, because they're not in the module?! What am I doing wrong?

                                                                                                                          code:

                                                                                                                          import sys
                                                                                                                          from functools import partial
                                                                                                                          __cur_mod = sys.modules[__name__]
                                                                                                                          _COLORS: dict[str, str] = {
                                                                                                                          "grey":'\x1b[38;21m',
                                                                                                                          [...]
                                                                                                                          }
                                                                                                                          for color in _COLORS:
                                                                                                                          setattr(__cur_mod, color, partial(color_generic, color))
                                                                                                                          __all__ = list(_COLORS)

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

                                                                                                                            You can be a part of guiding the future direction of the PSF 🩵🐍💛 Nominate yourself or someone else for the PSF Board for the 2026 election! Nominations open Tuesday, July 28th, 2:00 pm UTC and close Tuesday, August 11th, 2:00 pm UTC.
                                                                                                                            pyfound.blogspot.com/2026/07/g

                                                                                                                              oldsysops boosted

                                                                                                                              [?]Krios101 » 🌐
                                                                                                                              @Krios101@mastodonapp.uk

                                                                                                                              Hi All, I am looking for full time, mid-senior level UK job roles. I am based in the UK and I've got 9 years experience working with it primarily in scientific disciplines (Earth Observation ) and a small amount in doing backend work. I've designed a wide variety of scientific Python scripts and programs and I've had the privellige of working with on several projects including presenting my work internationally and having my investigations published on their websites.

                                                                                                                              I'm looking for more coding work in scientific disciplines or more work if possible. I am also skilled in QA like work, deep analysis, Git and self hosting.

                                                                                                                              I'm primarily open to remote work within the UK and remote European work dependent on what is available. I am open to hybrid work based in Buckinghamshire but it would preferably have to be 1 day a week in an office, potentially 2. Reply or DM me for more details. Boosts appreciated!

                                                                                                                                victor héry boosted

                                                                                                                                [?]Miss Mint 🦊 :no_ai: » 🌐
                                                                                                                                @Mint@piaille.fr

                                                                                                                                Appel à bonnes âmes 😁

                                                                                                                                Mon compagnon, cet homme incroyable, m'a fait un script python pour me permettre de tamponner des pièces de procédure en 3 secondes.

                                                                                                                                En ayant parlé à d'autres, il s'avère qu'iels seraient intéressé.e.s mais ne sont pas sous linux (cheh)

                                                                                                                                J'ai deux questions :
                                                                                                                                - où mettre son dépôt git pour pouvoir le partager
                                                                                                                                - est-ce qu'il y a des trucs pour pouvoir faire fonctionner facilement ce truc sans passer par un terminal => le rendre humain compatible 😁 et éventuellement mac et windows accessible
                                                                                                                                Tout en réalisant le traitement sur le PC et non en ligne (secret pro 4ever)

                                                                                                                                Merci d'avance pour votre aide

                                                                                                                                  [?]Julien Palard » 🌐
                                                                                                                                  @mdk@mamot.fr

                                                                                                                                  Dev depuis 2003, dev Python depuis 2010 (donc je code sans LLM).

                                                                                                                                  Je suis à l'aise aussi côté réseau, sysadmin, devops, Linux, C, SQL...

                                                                                                                                  Vrai Full Stack quoi : du métal au CLI, ou du métal à l'API comme tu veux tant qu'il n'y a pas de JS, pas de HTML, pas de CSS (si c'est moi qui fait le front c'est moche).

                                                                                                                                  Mon CV au cas où ça serve encore : mdk.fr/Julien-Palard.pdf

                                                                                                                                  Région : Yvelines/Hauts-de-Seine/Paris. TT apprécié.

                                                                                                                                    [?]Entr'ouvert SCOP » 🌐
                                                                                                                                    @entrouvert@mastodon.libre-entreprise.com

                                                                                                                                    Vous aimez Python, Django, les logiciels libres et toute cette sorte de choses ? Profitez de votre week-end pour postuler ! On ferme dimanche soir.

                                                                                                                                    mastodon.libre-entreprise.com/

                                                                                                                                      5 ★ 23 ↺

                                                                                                                                      [?]oldsysops » 🌐
                                                                                                                                      @oldsysops@social.dk-libre.fr

                                                                                                                                      Et voilà : https://www.entrouvert.com/actualites/2026/embauche-developpeureuse-python-django-2026/

                                                                                                                                      Le petit plus :

                                                                                                                                      • On m'a demandé de prévenir : si vous n'avez pas d'expérience/compétences /, vous serez surement en bas de la pile.
                                                                                                                                      • C'est une , ça a ses avantages et ses inconvénients, pensez-y bien fort avant de postuler/accepter
                                                                                                                                      • Si vous êtes pris, vous ne pourrez plus dire du mal de vos collègues sur le car on y est tous (non mais une bonne partie, enfin surtout moi et d'autres)... Ca peut jouer dans la balance, mais bon, vous aurez de nouveau followers et des supers* collègues !
                                                                                                                                      : je suis contractuellement obligé de dire ça...

                                                                                                                                      **: non, ce n'est pas vrai, mais si je ne le dis pas, ils vont me tomber dessus :-p

                                                                                                                                        3 ★ 5 ↺
                                                                                                                                        Dๅᴉĸo boosted

                                                                                                                                        [?]oldsysops » 🌐
                                                                                                                                        @oldsysops@social.dk-libre.fr

                                                                                                                                        stanlog boosted

                                                                                                                                        [?]Entr'ouvert SCOP » 🌐
                                                                                                                                        @entrouvert@mastodon.libre-entreprise.com

                                                                                                                                        L’équipe Entr’ouvert s’agrandit encore : nous recrutons un·e développeur·euse Python/Django.
                                                                                                                                        Consultez l'offre et candidatez avant le 7 juin : entrouvert.com/actualites/2026

                                                                                                                                          Joachim boosted

                                                                                                                                          [?]Magess :heart_ace: » 🌐
                                                                                                                                          @Magess@fandom.ink

                                                                                                                                          Our team at Fable is looking for a Staff Software Backend Engineer (10 years+) familiar with and in one of various US cities, Canadian cities, or Mexico City.

                                                                                                                                          jobs.ashbyhq.com/ScribdInc/450

                                                                                                                                            4 ★ 3 ↺

                                                                                                                                            [?]oldsysops » 🌐
                                                                                                                                            @oldsysops@social.dk-libre.fr

                                                                                                                                            faites chauffer vos cv

                                                                                                                                              gawel boosted

                                                                                                                                              [?]Julien Palard » 🌐
                                                                                                                                              @mdk@mamot.fr

                                                                                                                                              La prochaine sera à Biarritz !

                                                                                                                                              linuxfr.org/users/chadys/liens

                                                                                                                                              Si votre boite ou si vous connaissez une boite qui peut sponsoriser une conférence ,