python

Back Open Paginator
01.12.2025 20:24
adw99 (@adw99@mastodon.social)

Content warning:AOC Day 1 chatter


I just completed Day 1 of Advent of Code 2025. Pretty straightforward, part 2 was prone to a double-counting bug but otherwise a gentle start to AOC for the year.

adventofcode.com/2025/day/1

github.com/adw99/advent-of-cod




Show Original Post


01.12.2025 20:06
aarbrk (@aarbrk@mstdn.mx)

Working on a little static analysis of #Python code for common student snafus, but I haven't found the right tool yet. What library or technique beats regex (this seems easy) for finding calls to a certain function, or a function defined but never called?

I thought I might be able to figure this out by reading the CPython bytecode but not quite. All ideas welcome.

#computerscience #programming #development #staticanalysis #metrics #pedagogy




Show Original Post


01.12.2025 19:56
r (@r@fed.brid.gy)

The design and API of sage_conf live on in the @passagemath.org@bsky.brid.gy project. All pip-installable packages with non #Python dependencies, when installed from source instead of from the provided binary wheels on PyPI, call out to passagemath-conf to orchestrate the build. pypi.org/project/pass... 4/

passagemath-conf




Show Original Post


01.12.2025 19:48
zumuta (@zumuta@mastodon-belgium.be)

This week at zumuta! Moving from github pages to hosting it on my own provider. And what's happening with mkdocs? #python
zumuta.be/thisweek/week-2025-1




Show Original Post


01.12.2025 19:45
r (@r@fed.brid.gy)

sage_conf orchestrated the build and installation of the numerous non-Python dependencies of #SageMath and also provided a wheelhouse. The new installation method, using only standard #Python tools, was announced in github.com/sagemath/sag..., section "Alternative installation methods using pip". 2/

Release 9.3 · sagemath/sage




Show Original Post


01.12.2025 19:35
r (@r@fed.brid.gy)

4.5 years ago, in May 2021, half a year after the Sage Modularization & Packaging Summit, #SageMath became available on PyPI for the first time, in the form of a #Python source distribution sagemath-standard 9.3. pypi.org/project/sage... It was accompanied by a pip-installable package sage_conf 1/

RE: https://bsky.app/profile/did:plc:b345axjoz4cdvc7l3v3f2mm6/post/3m6alwl274c2q


sagemath-standard




Show Original Post


01.12.2025 19:35
r (@r@bsky.brid.gy)

4.5 years ago, in May 2021, half a year after the Sage Modularization & Packaging Summit, #SageMath became available on PyPI for the first time, in the form of a #Python source distribution sagemath-standard 9.3. pypi.org/project/sage... It was accompanied by a pip-installable package sage_conf 1/

RE: https://bsky.app/profile/did:plc:b345axjoz4cdvc7l3v3f2mm6/post/3m6alwl274c2q


sagemath-standard




Show Original Post


01.12.2025 19:18
treyhunner (@treyhunner@mastodon.social)

Content warning:Advent of Code - Day 1 (parts 1 & 2)


For part 2, I spent a few minutes trying to figure out how to correctly use if statements and floor division to figure out the number of times zero would have bit hit.

I then did what I'd do in the real world: realize thinking through the efficient mathematical approach wasn't worth it because I'm spending minutes to save milliseconds and just use a loop within a loop.





Show Original Post


01.12.2025 18:38
r (@r@bsky.brid.gy)

#IT #Python Mal eine Frage an die IT´ler bzw. Programmierer in meiner Bubbel. Ist Python lernen sinnvoll, wenn kein direktes Ziel dafür feststeht, ist das überhaupt aktuell nutzbar oder veraltet und ist es sehr schwer?




Show Original Post


01.12.2025 18:14
jamesthebard (@jamesthebard@social.linux.pizza)

Content warning:Advent of Code - Day 1


Not a bad start, part 2 kinda kicked my ass because reading is really, really hard. I made the assumption that there wouldn't be any spins greater than 99 which was a horrible, horrible assumption to make.

However, not too difficult overall, happy enough with the solve.

#adventOfCode #adventofcode2025 #python #programming





Show Original Post


01.12.2025 17:59
SnoopJ (@SnoopJ@hachyderm.io)

Hooray, `packaging` has resolved one of my bug-bears:

there is now official support for making a new `Version` instance from an existing one, replacing *some* of the fields

github.com/pypa/packaging/pull

(also, TIL that Python 3.13 introduced `__replace__` to the runtime data model)

#Python




Show Original Post


01.12.2025 17:58
crowdotblack (@crowdotblack@pdx.social)

I will never understand one of my coworkers.

If you do something that works and make it available to the group, she'll just redo it in a way she understands, completely disregarding all the effort you put into it or how well it works and she ends up spending hours and hours doing it her way.

Last week I gave her literally a two line #Python script that did exactly what she wanted, one line to grab the data, one line to do a field caclulation… (1/2)




Show Original Post


1 ...900 901 902 903 904 905 906 907 908 909 910 ...1570
UP