linuxusers.in 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.

Admin email
dharmiik@proton.me
Admin account
@dharmik@linuxusers.in

Search results for tag #python

Tom Smykowski »
@tomaszs@techhub.social

Python Steering Commitee rejected shorthands for same name arguments
tomaszs2.medium.com/python-jus

    Leonard Ritter »
    @lritter@mastodon.gamedev.place

    concerning expressions, C is also more convenient than python now, because it has statement expressions.

      Brian »
      @brianb@fosstodon.org

      I have been beating my head on trying to get Flask-SocketIO to work with an existing app and accept connections from a third-party origin.

      I get 400 errors because the socket closes before a connection can be made. I've disabled CORS (local-only network) and have double checked that every library is compatible. Serving a websocket route from the app works, but it will not other hosts.

      Anyone with experience able to take a look at a repo or offer insight?

        Diegovsky boosted

        Olivia A-C »
        @LivInTheLookingGlass@transfem.social

        Hi y'all, this has become a bit more important now. I learned this week that my current contract will not be renewed for funding reasons. Please see the quoted post for more info! ​

        RE: https://transfem.social/notes/a4imho4jra5v01up

          🗳

          Ada »
          @iamada@tech.lgbt

          Dear Fediverse, I am about to step up into my first role as a tech lead (*context in follow-up post) and would like to ask some questions to help me prepare & improve:

          Groups:

          • 🔵 Technical: Devs, DevOps, Infra
          • 🟠 Product: Marketing, UX/Design, etc
          • 🟣 Business: HR, management C-roles.

          Questions:

          1. What are your initial thoughts when you hear you'll be getting a new tech lead?
          2. What are your hopes & expectations for them?
          3. What are your concerns when a new "tech lead" is hired?
          4. What changes do you hope for, or expect?

          ❗ Please add your colour to your reply & poll.

          Lastly, if you have other advice for someone who wishes to be the best possible tech lead of their teams.

          🔵 Technical:4
          🟠 Product:1
          🟣 Business:0

          Closes in 2:24:32

            Leonard Ritter »
            @lritter@mastodon.gamedev.place

            what's this piece of python code going to output? no peeking!

            

L = []
for i in range(10):
    def f():
        return i
    L.append(f)

for f in L:
    print(f())

            Alt... L = [] for i in range(10): def f(): return i L.append(f) for f in L: print(f())

              Hacker News 50 » 🤖
              @hn50@social.lansky.name

              Performance of the Python 3.14 tail-call interpreter

              Link: blog.nelhage.com/post/cpython-
              Discussion: news.ycombinator.com/item?id=4

                doug »
                @doug@c.im

                Does Thing exist?
                Emacs::Lisp
                Thing::Python

                  Leonard Ritter »
                  @lritter@mastodon.gamedev.place

                  also broken: relative imports from an arbitrary module.

                  also missing: a string block where i don't have to take care of escapes

                  also shit: __pycache__ littering

                  working with python makes it painfully clear to me how many of these problems are fixed in Scopes.

                    Leonard Ritter »
                    @lritter@mastodon.gamedev.place

                    no macros whatsoever in python also hurts bad. there's PEP 638 but it's going nowhere.

                    incredibly annoying.

                      Juan »
                      @reidrac@mastodon.gamedev.place

                      In python 3 you can't modify a dictionary if you are iterating over it, e.g. using the keys. Because the "keys" method is now a view and updates when the dictionary changes.

                      So instead of:

                      for k in d.keys(): ...

                      you should do:

                      for k in list(d.keys()): ...

                      and then you can modify the dictionary if you want (e.g. del d[k] to remove an entry).

                        JustDude »
                        @justdude@mastodon.nl

                        A new year a renewed

                        I am Dude, associated with the movie but there the comparison ends.

                        An updated for 2025:

                        I’m a dad, whisperer, nerd, occasional , and lover. I’m a minded and I make my own beer. . Enthousiast I love in and . Busy with and more.
                        Ik spreek voornamelijk Nederlands, Engels een beetje Duits.

                          Hacker News 50 » 🤖
                          @hn50@social.lansky.name

                          Hacker News 50 » 🤖
                          @hn50@social.lansky.name

                          Hacker News 50 » 🤖
                          @hn50@social.lansky.name

                          Show HN: Robyn – “Batman Inspired” Python Web Framework Built with Rust

                          Link: robyn.tech/
                          Discussion: news.ycombinator.com/item?id=4

                            Hacker News 50 » 🤖
                            @hn50@social.lansky.name

                            Hacker News 50 » 🤖
                            @hn50@social.lansky.name

                            Show HN: Probly – Spreadsheets, Python, and AI in the browser

                            Link: github.com/PragmaticMachineLea
                            Discussion: news.ycombinator.com/item?id=4

                              Hacker News 50 » 🤖
                              @hn50@social.lansky.name

                              Show HN: Tach – Visualize and untangle your Python codebase

                              Link: github.com/gauge-sh/tach
                              Discussion: news.ycombinator.com/item?id=4

                                Hacker News 50 » 🤖
                                @hn50@social.lansky.name

                                Hacker News 50 » 🤖
                                @hn50@social.lansky.name

                                Xonsh – A Python-powered shell

                                Link: xon.sh/
                                Discussion: news.ycombinator.com/item?id=4

                                  Hacker News 50 » 🤖
                                  @hn50@social.lansky.name

                                  Hacker News 50 » 🤖
                                  @hn50@social.lansky.name

                                  R.L. Dane 🍵 »
                                  @rl_dane@polymaths.social

                                  I really want to like #SolusLinux, as there's not a lot of good semi-rolling-release distros, but the fact that /usr/bin/python is symlinked to python2 gives me mega heebie-jeebies.

                                  Guys, I don't mean to be rude. It's a wonderful distro made by wonderful people.

                                  But PYTHON TWO? In 2025? That's a security jump-scare!

                                  :blobFoxScared:

                                  #solus #infosec #python

                                    Hacker News 50 » 🤖
                                    @hn50@social.lansky.name

                                    Brian »
                                    @brianb@fosstodon.org

                                    In other news, I tried getting set up on the new machine and I feel like there's some kind of race condition.

                                    The "pelican-statistics" plugin is supposed to add a dict of stats to the `article` object. Sometimes when building the site, it works. Other times, the build fails with an error that the dictionary doesn't exist.

                                    I need to do more digging, but I'm baffled right now.

                                      Hacker News 50 » 🤖
                                      @hn50@social.lansky.name

                                      A Tail Calling Interpreter for Python (already landed in CPython)

                                      Link: blog.reverberate.org/2025/02/1
                                      Discussion: news.ycombinator.com/item?id=4

                                        Hacker News 50 » 🤖
                                        @hn50@social.lansky.name

                                        Show HN: Scripton – Python IDE with Built-In Realtime Visualizations

                                        Link: scripton.dev
                                        Discussion: news.ycombinator.com/item?id=4

                                          HoldMyType boosted

                                          Abhinav 🌏 »
                                          @abnv@fantastic.earth

                                          : There is more than one way to do it.
                                          : There should be one obvious way to do it.
                                          : There is no straightforward way to do it.
                                          : There is no way to do it.

                                            Hacker News 50 » 🤖
                                            @hn50@social.lansky.name

                                            Show HN: Kreuzberg – Modern async Python library for document text extraction

                                            Link: github.com/Goldziher/kreuzberg
                                            Discussion: news.ycombinator.com/item?id=4

                                              Hacker News 50 » 🤖
                                              @hn50@social.lansky.name

                                              JesseSort: A novel sorting algorithm that is faster than Python's default sort.

                                              Link: github.com/lewj85/jessesort
                                              Discussion: news.ycombinator.com/item?id=4

                                                screwlisp boosted

                                                screwlisp »
                                                @screwtape@mastodon.sdf.org

                                                @kentpitman with some special announcements and releases.

                                                archives.anonradio.net/2025021

                                                Thanks for the incredible interview and livechat everyone!

                                                Interview 1 / ?

                                                Please drop questions here beforehand or join us live in as always !
                                                telnet lambda.moo.mud.org 8888
                                                co guest
                                                @join screwtape

                                                @nosrednayduj @sacha @hairylarry @pkw @rat @pizzapal

                                                Lispy gopher climate ! Unix_Surrealism

                                                Alt...Lispy gopher climate ! Unix_Surrealism

                                                  screwlisp boosted

                                                  screwlisp »
                                                  @screwtape@mastodon.sdf.org


                                                  archives.anonradio.net/2025021
                                                  Possibly I didn't bang the drum enough.

                                                  @kentpitman is joining me for the show - 0UTC Wednesday, Tuesday evening in the Americas. I'll toot the link on mastodon a few hours before the show as always.

                                                  If you could join and ask questions live or beforehand here in this thread (if you join through the archive).

                                                  visibility please

                                                  Lispy gopher climate banner

LISPY GOPHER SHOW

The gopher and lisp alien are wading through flooded wreckage, flanked by two demons carrying radio equipment.

ANONRADIO.NET
0UTC Wednesday

                                                  Alt...Lispy gopher climate banner LISPY GOPHER SHOW The gopher and lisp alien are wading through flooded wreckage, flanked by two demons carrying radio equipment. ANONRADIO.NET 0UTC Wednesday

                                                    Karsten Johansson »
                                                    @ksaj@infosec.exchange

                                                    The ancient Babylonians had a way of calculating (really more like estimating) square roots.

                                                    There are a gazillion ways to do the initial "guess" Here we look for it's nearest-lower square, and then calculate the distance between them. Repeatedly.

                                                    --
                                                    def squareroute(s, tol=1e-10, max_it=100):
                                                    if s < 0:
                                                    raise ValueError("No negatives: {}".format(s))
                                                    s = float(s)
                                                    if s == 0:
                                                    return 0.0
                                                    g = 1.0

                                                    while g * g <= s:
                                                    g += 1.0
                                                    g -= 1.0

                                                    for _ in range(max_it):
                                                    new_g = (g + s / g) / 2.0
                                                    if abs(new_g - g) < tol:
                                                    return new_g
                                                    g = new_g
                                                    return g

                                                    zz = squareroute(50)

                                                    print(zz)

                                                    Challenge: Show off how you'd do the Babylonian Square Root algorithm, including in other languages.

                                                    Incidentally, you don't normally need 100 iterations. But as long as the tolerance is close, it'll stop way before then.

                                                    I did this in another comment in as well.

                                                      Bugs, coletora de moedas[3/50] »
                                                      @bug_elseif@bolha.us

                                                      Atenção!

                                                      Acho que já temos o titulo da próxima live.

                                                      "Introdução ao RPA: Como Integrar APIs e ferramentas usando Python"

                                                        Back to top - More...