python

Back Open Paginator
30.11.2025 11:40
gicko (@gicko@mastodon.online)

LED Invader – 1D Arcade Game auf RP2040 Zero
3ar.io/blog/led-invader-1d-arc

#Python #3DDruck





Show Original Post


30.11.2025 11:38
diazona (@diazona@techhub.social)

@pino Well... ultimately you can use whatever coding style you want, but I tend to think complaining about wasted space kind of clashes with the spirit of #Python. (Within reason, of course. One could certainly write Python code in a way that pretty much unambiguously does waste space. But Black's code style is not that.)

I do think it's worth experimenting with the line length though.




Show Original Post


30.11.2025 11:32
diazona (@diazona@techhub.social)

@travisshears To be fair a whole bunch of standards and tools solved that, piece by piece, over the last 5-10 years. #Python packaging became good even before uv. The benefits of uv are that it's fast, and it combines the functionality of a bunch of other tools that came before it into one program.




Show Original Post


30.11.2025 11:32
pino (@pino@social.cologne)

I've finally started to take a look at Black - the very famous code formatter for #Python.

I really don't like what it does. When I compare my original code with the formatted one, every single change is visually unfortunate imho. It wastes a lot of space compared to the original, and nothing gets prettier or more readable.

But I still love the idea of having one universal, widely-adopted standard formatting, in general. A lot.

... so I'll go with it now?!?!




Show Original Post


30.11.2025 11:11
travisshears (@travisshears@dice.camp)

Might actually pick Python for my next side project after learning about UV. Always found it weird how python is the most used programming language, taught to beginners.. and the package / virtual env workflow is so bad. If I don’t actively work on a python project each time I come back to it I have to relearn pip and pipenv. UV seems to solve that.

docs.astral.sh/uv/

#python #uv




Show Original Post


30.11.2025 11:06
kerravonsen (@kerravonsen@mastodon.au)

@mdione GIMP is a creeping nightmare of non-supported stuff. Basically, people made all these cool things for GIMP 2.10, and absolutely none of them work with GIMP 3.0. And while GIMP 2.10 has been utterly abandoned, GIMP 3.0 is not yet ready for prime time.

Many plugins for GIMP 2.10 were written using Python 2.7, and Python 2.7 is completely incompatible with Python 3.0, and is not supported on any platform, so to get them to work, you either have to make a way of installing and using Python 2.7, or you have to convert the plugins to Python 3.0, and nobody could be bothered to convert the plugins to Python 3.0.

Those plugins which were not written in Python 2.7 (including gmic-qt and resynth) were written to depend on GIMP 2.10 libraries and/or other obsolete libraries. And nobody (except the resynthesizer author) has upgraded them to GIMP 3.0.

The only languages supported for writing plugins for GIMP 3.0 are Python 3.0, Scheme, and C. (There was once a Perl module, but that became unsupported a long time ago.)

#GIMP #Python #Linux




Show Original Post


30.11.2025 11:04
kerravonsen (@kerravonsen@mastodon.au)

@mdione Setting up my own flatpak server wouldn't really solve the problem... before I could do that, I would have to basically re-solve the problems which they solved in order to get all the things working with version 2.10, and once I did that, I wouldn't need a flatpak server, I could just install gimp from source.

#GIMP #Python #Linux




Show Original Post


30.11.2025 11:01
fermga (@fermga@mathstodon.xyz)

10/10
Interested in the crossroads of dynamical systems and number theory? Read, experiment, and share what you find.
🔗 Link in the first post
#Math #Primes #NumberTheory #Cryptography #Python #TNFR




Show Original Post


30.11.2025 10:48
nbhansen (@nbhansen@mastodon.social)

a little silly tool from the dungeons - fire off your fav shortcut and a voice to text thingie appears and transcribes whatever you say and throws it into your clipboard. So I can dictate stuff to copy and paste etc.

It also cleans up the uuuhs and aaaahs if you use a cloud service that supports that, or not if you roll your own locally hosted which is SEMI-nicely architecturally separated. Love doing small useful tools like this.

github.com/nbhansen/TalkyBoi




Show Original Post


30.11.2025 10:03
mdione (@mdione@en.osm.town)

@wakame I have been thinking about this more and more: make another #ansible frontend to accept a more #python like language. After en.osm.town/@mdione/1156297373 I started reading Ansible's code. Nothing is going to come out of it any time soon, tho :)




Show Original Post


30.11.2025 10:00
machinelearningsite (@machinelearningsite@mastodon.social)

When using for documentation, the key is not dumping your entire project and praying for a perfect response. It’s guiding the language model with the right kind of context of your code and intention of it.




Show Original Post


30.11.2025 09:15
maehrm (@maehrm@mstdn.jp)

AtCoder ABC401 D - Logical Filling を解きました!

動的計画法で左右両方向から最適解を探索する問題。'?'を'o'か'.'に置き換えて、'o'の数を正確にK個にします。

解答コード: gist.github.com/maehrm/10f5642
問題: atcoder.jp/contests/abc401/tas

#AtCoder #競技プログラミング #Python

※MCPサーバー経由で自動投稿




Show Original Post


1 ...909 910 911 912 913 914 915 916 917 918 919 ...1570
UP