python

Back Open Paginator
10.08.2025 03:00
r (@r@bsky.brid.gy)

Looking at the command line, it seems to be using #Perl along with the Perl Data Language (PDL) (look at the ndarray in the screenshot). PDL is an extremely performant (much more than any #python alternative) autothreading library Shameless plug for my pages 👇 chrisarg.github.io/Killing-It-w...

The Quest for Performance Part...




Show Original Post


10.08.2025 00:39
notes (@notes@woem.men)

The pyroute2 thing really makes me wonder about library design. As far as I can tell, the issue is that #Python automatically imports parent modules (so e.g. from pyroute2.iwutil import AsyncIW also imports pyroute2, probably makes sense), and then the pyroute2 __init__.py imports pretty much all the child modules (which is all too common in Python libraries, sadly). Which means I have no way to import only the small part I need. And changing that import structure would probably break backwards compatibility in pyroute2. Is lazy-importing Python modules a thing? ​:neocat_think:




Show Original Post


10.08.2025 00:17
notes (@notes@s.1a23.studio)

Is this #AGI ?

(
#Python Code generated by #GPT5 )

async def get_api():
    global api_obj
    if api_obj is None:
        with _api_init_lock:
            if api_obj is still None:  # still None?!
                from api import API
                api_obj = API("accounts.db")
    return api_obj




Show Original Post


09.08.2025 20:41
nojhan (@nojhan@mamot.fr)

Je viens de finaliser une commande qui permet de lancer une action à chaque fois qu'un fichier surveillé est touché (ouvert, modifié, fermé, etc.) par un processus.

Par exemple, elle permet de faire une copie avec un timestamp à chaque fois qu'un fichier est modifié, ou de faire un commit Git automatique à chaque fois que vous faites Ctrl-S.

Pratique, mais j'ai un doute sur le nom, vous préférez lequel ?

#sondage #freesoftware #cli #python #linux #watchdog

flicksave
backflick (backup+flick)
watchbark (watchdog+bark)
autre chose (précisez)




Show Original Post


09.08.2025 20:09
GerryT (@GerryT@mastodon.social)

@bart Do you mean and or do you mean the programming languages?

If you mean the first (QT6 & GTK4), then it depends what programming language you like (the bindings of GTK4 are better for many languages, QT6 is more bound to C++) or if you develop cross-platform (that's a strength of QT6, but GTK4 is also cross-platform).

If you mean the latter, and are most popular (and least painful?) nowadays, but is also popular in combination with .

@zombiewarrior




Show Original Post


09.08.2025 20:07
grant_h (@grant_h@mastodon.social)

I have always loved parametric cubic splines, and had a chunk of C/ C++ code I dragged around in the '90s which had implemented it.
Writing a graphical editor in / , I was sad to only find Bezier splines - which are not nearly as intuitive for editing.

So with a little help from chatGPT, and big chunk of tweaking & testing, I have a gist for in . Thank you to all those now anonymised people whose code was used in the training!

gist.github.com/ghillebrand/d0




Show Original Post


09.08.2025 19:50
k6gte (@k6gte@mastodon.radio)

Pushed changes to Not1MM

Most importantly fixed an intermittent lockup or freeze if the rigctld daemon were to go away.
Many more. You can view the changelog here github.com/mbridak/not1mm/blob

#hamradio #IARU #HF #contest #python #linux #macOS
github.com/mbridak/not1mm




Show Original Post


09.08.2025 19:02
clonbg (@clonbg@masto.es)

Mi primer CRUD con Python myblog.clonbg.es/mi-primer-cru #Programación #Python #PyQT clonbg.es





Show Original Post


09.08.2025 18:39
talkpython (@talkpython@fosstodon.org)

New course: Just Enough Python for Data Scientists!

This is a practical, code-first course that teaches the Python you actually need for data work, plus the engineering practices that make your work repeatable and sharable. It is not a survey of every Python feature or a whirlwind tour of ML. You’ll build and run real code, improve existing notebooks, and package useful utilities so teammates can uv pip install them. #python #datascience @mkennedy

training.talkpython.fm/courses




Show Original Post


09.08.2025 18:05
GerryT (@GerryT@mastodon.social)

@heikkiket I can't answer the question "why", but I can answer the question of what programming languages are most frequently used at the moment in combination with :

1.
2.
3.
4.
5. ++
6.

See the post here with details:
mastodon.social/@GerryT/114839

Data source here:
github.com/valpackett/awesome-




Show Original Post


09.08.2025 17:39
tedi (@tedi@infosec.exchange)

Python Tools and Scripts w/ UV CheatSheet: 0xdf.gitlab.io/cheatsheets/uv

#python #uv




Show Original Post


09.08.2025 16:41
s4mdf0o1 (@s4mdf0o1@piaille.fr)

Bref je viens de me faire un énième accordeur de #guitare en #terminal en #python grâce à l' #IA (Si !)
Bein l'a fallu batailler un peu, mais ça marche au poil ! 👍
Edit : et même si la capture a été faite avec OBS-Studio , la transformation en gif avec ffmpeg, c'est aussi l' #IA !





Show Original Post


1 ...1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 ...1546
UP