tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Notices by Rebecca :blobcatcomfygamer: (rebeccasaurus@tech.lgbt)

  1. Rebecca :blobcatcomfygamer: (rebeccasaurus@tech.lgbt)'s status on Wednesday, 30-Nov-2022 17:15:40 CET Rebecca :blobcatcomfygamer: Rebecca :blobcatcomfygamer:

    Hey #python people! Question for you, does anyone know any more details of how the str.split() method is implemented? I'm curious about performance of str.split('.').pop() vs str[str.rfind('.'):] (as in, find the (last part of) extension of a filename) Or maybe there's an even better solution?

    In conversation Wednesday, 30-Nov-2022 17:15:40 CET from tech.lgbt permalink
  2. Rebecca :blobcatcomfygamer: (rebeccasaurus@tech.lgbt)'s status on Wednesday, 30-Nov-2022 17:15:39 CET Rebecca :blobcatcomfygamer: Rebecca :blobcatcomfygamer:
    in reply to
    • stolas

    @stolas_mk2 the current version uses regex, very unnecessarily, to pull out info from every single input line.. (it was my very first python script, don't judge me! :blobcatmeltcry: )

    In conversation Wednesday, 30-Nov-2022 17:15:39 CET from tech.lgbt permalink
  3. Rebecca :blobcatcomfygamer: (rebeccasaurus@tech.lgbt)'s status on Wednesday, 30-Nov-2022 17:15:39 CET Rebecca :blobcatcomfygamer: Rebecca :blobcatcomfygamer:
    in reply to
    • stolas

    @stolas_mk2 ooh, well that's certainly very very convenient at least! I might have to set up some tests to measure the performance..

    It's for a script I've written to use at work, parsing potentially millions of lines of output from "find ..." (shell, not python) and summarizing some data. I doubt the performance difference would be particularly large, I just prefer to write efficient code xD

    In conversation Wednesday, 30-Nov-2022 17:15:39 CET from tech.lgbt permalink

User actions

    Rebecca :blobcatcomfygamer:

    Rebecca :blobcatcomfygamer:

    :flag_transgender: :flag_rainbow: :flag_asexual:I like playing #games. Sometimes I try #GameDev . Self-taught #dev , worked for a couple of big companies, hope I will never have to do that again.Been trying to learn #blender for some time now, but long pauses slows it down. I read a lot of books, mostly #fantasy and #scifi , but occasionally some (sapphic) romance slips in.#autistic and don't know how to socialize, send halp?Currently obsessed with #FFXIV

    Tags
    • (None)
    ActivityPub
    Remote Profile

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          10000
          Member since
          30 Nov 2022
          Notices
          3
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • TOS
          • Privacy
          • Source
          • Version
          • Contact

          tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.