1 Problem, 16 Programming Languages https://lobste.rs/s/b1swcr #video #clojure #elixir #haskell #python #ruby #rust
https://www.youtube.com/watch?v=UVUjnzpQKUo
I think the bug I resolved (I wouldn't say fixed) in @novelwriter today is the weirdest I've encountered so far.
The app uses @-based keywords to set meta data in the text. An auto-complete menu pops up to suggest which keyword when you type an @ on a new line.
In the current version (at least) if you have the editor "justified margins" set, type an @, then type backspace, then *and only then* will Qt/PyQt segfault and crash the app.
#Programming #Debug #Cpp #Python #Qt #PyQt
Python Packaging Ecosystem Survey 2025
https://lemmy.world/post/35261013
Posted a topic about lafleur, the CPython JIT fuzzer I'm developing: https://discuss.python.org/t/introducing-lafleur-a-cpython-jit-fuzzer/103452
It has many details about the project, the results (4 JIT crashes so far), calls for help and ideas for the future.
If any of this interests you, please give a read. Boosts welcome :)
#lafleur #fusil #Python #fuzzer #fuzzing #CPython #JIT
Man I so hate #Python
It has everything I hate in programming languages.
- [x] indentation based syntax
- [x] no type enforcement at design time
- [x] official documentation sucks
- [x] wicked scoping
Yes, I get the benefits and the flexibility, but, nonetheless, it is a huge effort to switch way of thinking in order to have it perform even the most basic tasks.
Fuck.
Abundant, perfect, and deficient numbers with #Python
#!/usr/bin/python3
import sys; beg,end=int(sys.argv[1]),int(sys.argv[2]);[print(f"{n} is "+("perfect" if (s:=sum(x for x in range(1,1+n//2) if n%x==0))==n else "abundant" if s>n else "deficient")) for n in range(beg,end+1)]

I've just booked my flight to Barcelona 🏖️ It will be a wonderful time with amazing people 🤗 #djangoonthemed #django #sprint #python
What a great reference on threading with Python. The stuff I create doesn't normally need threads, but I can think of a few projects that could benefit from threading.
https://realpython.com/intro-to-python-threading/
#Python: The Documentary | An origin story - CultRepo
https://www.youtube.com/watch?v=GfH4QL4VqJ0
It's excellent timing that @kati just posted about Guido van Rossum (founder of Python) wearing a PyLadies t-shirt in an interview for the Python documentary.
This is a simple but powerful gesture of support. 💚
https://fosstodon.org/@kati/115109609016791943
👶🔍 Ah, the joy of finding out that a "type checker" isn't a baby toy. 🎈 Austin Z. Henley, bless his heart, tries to explain type checking like it's rocket science, forgetting that most techies are already in a lifelong relationship with the Compile-Until-It-Works method. 😂 Pro tip: If your idea of fun is #debugging #Python annotations, you might need a new hobby. 🐍💥
https://austinhenley.com/blog/babytypechecker.html #typechecking #techhumor #codinglife #HackerNews #ngated
Чистим строку от лишних/повторяющихся пробелов (и пробельных символов) в строковых значениях компактно. RegExp
Хочу поделиться компактной функцией для очищения лишних, повторяющихся пробелов и пробельных символов в строках. Не считайте это призывом, но если можно привести строковые данные в красивый вид без лишних хлопот, то почему бы и не воспользоваться. Те, кто не знаком с регулярными выражениями (regular expressions, RegExp, regex), может приоткроет форточку в этот славный и замороченный мир ( Регулярные выражения (regexp) — основы )
https://habr.com/ru/articles/942568/
#regexp #excel #python #javascript #visual_basic_for_applications