python

Back Open Paginator
30.09.2025 04:25
itnewsbot (@itnewsbot@schleuss.online)

Creating Python GUIs with GIMP - GUI design can be a tedious job, requiring the use of specialist design tools and ... - hackaday.com/2025/09/29/creati #mischacks #mspaint #python #news #gimp #gui




Show Original Post


30.09.2025 04:15
villares (@villares@pynews.com.br)

#shapely #viridis Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding





Show Original Post


30.09.2025 03:20
clonbg (@clonbg@masto.es)

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





Show Original Post


30.09.2025 02:44
hackernoon (@hackernoon@mas.to)

Why AI agents need vector databases and smarter memory architectures—not just bigger context windows—to handle real-world tasks like academic research hackernoon.com/llms-vector-dat #python




Show Original Post


30.09.2025 01:50
jos1264 (@jos1264@social.skynetcloud.site)

TekaSketch: Where Etch A Sketch Meets Graph Theory hackaday.com/2025/09/29/tekask #RaspberryPiZero2W #handheldshacks #SoftwareHacks #RaspberryPi #etchasketch #raspberrypi #ToyHacks #drawing #macmini #python #Raspi #News #Art




Show Original Post


30.09.2025 01:37
treyhunner (@treyhunner@mastodon.social)

New screencast on why you shouldn't use string.split("\n") in .

When you need to split a string into lines in Python, use the splitlines() method instead.

Unlike split("\n"), using splitlines() will trim final newlines & properly handle CRLF line endings.

pym.dev/splitlines/




Show Original Post


30.09.2025 01:25
itnewsbot (@itnewsbot@schleuss.online)

TekaSketch: Where Etch A Sketch Meets Graph Theory - The Etch A Sketch was never supposed to meet a Raspberry Pi, a camera, or a mathem... - hackaday.com/2025/09/29/tekask #raspberrypizero2w #handheldshacks #softwarehacks #raspberrypi #etchasketch #toyhacks #drawing #macmini #python #raspi #news #art




Show Original Post


30.09.2025 01:12
HumanServitor (@HumanServitor@mastodon.social)

Little work on today. Made a cross-codebase stats tool to see how all the stuff i've been making is doing. Many new encounters needed! Much balancing needed. Lots of work ahead! I'm having fun.





Show Original Post


30.09.2025 00:32
SnoopJ (@SnoopJ@hachyderm.io)

related (marginally-less) cursed question: "how can I figure out what libraries were loaded by this process?"

Context is Linux only, needs to work on Python 3.9. Best solution I have out of the gate is to scan `/proc/<PID>/map_files/`, resolve the symlinks and check the filenames.

(so that I can figure out if someone else already loaded `libstdc++` and have this jank library fail with a helpful message, rather than rolling the "hard crash" dice)

#Python




Show Original Post


30.09.2025 00:01
bitbear (@bitbear@icosahedron.website)

I just watched @pythonbynight's talk "Back to the Future of Hypermedia in Python" and enjoyed it very much! If you wonder what HTMX is, and especially if you're into Python, this is the talk for you.

youtube.com/watch?v=MopeCQVSIUk

#hypermedia #hypertext #python #HTML #HTMX #programming #development #web




Show Original Post


29.09.2025 23:58
SnoopJ (@SnoopJ@hachyderm.io)

some more bad news: storing a symlink in a .whl is a no-go

the usual tools won't do it for you at all (which is reasonable, there are security concerns)

and even if you *manually* store a symlink into the .whl, it will be mangled by `pip` on install

so, the next least-unnatural thing to do is to create a symlink at package start-up, right?

BUT, if you do this, the symlink file will be left behind when the package is uninstalled

so here we are, half a dozen level of "cursed" deep, asking myself if it would be reasonable to locate and modify the `RECORD` file 😩

#Python




Show Original Post


29.09.2025 23:52
treyhunner (@treyhunner@mastodon.social)

Using functions for sub-expressions instead of using variables can be helpful if you need to rely on short-circuiting to make sure that some of your sub-expressions will not be run in certain cases. trey.io/f98u5c




Show Original Post


1 ...1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 ...1558
UP