python

Back Open Paginator
31.08.2025 22:45
lobsters (@lobsters@mastodon.social)

1 Problem, 16 Programming Languages lobste.rs/s/b1swcr
youtube.com/watch?v=UVUjnzpQKUo




Show Original Post


31.08.2025 22:40
veronica (@veronica@mastodon.online)

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




Show Original Post


31.08.2025 21:51
post (@post@lemmy.world)

Python Packaging Ecosystem Survey 2025

lemmy.world/post/35261013




Show Original Post


31.08.2025 21:47
danzin (@danzin@mastodon.social)

Posted a topic about lafleur, the CPython JIT fuzzer I'm developing: discuss.python.org/t/introduci

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 :)




Show Original Post


31.08.2025 21:41
77nn (@77nn@goto.77nn.it)

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.




Show Original Post


31.08.2025 21:27
linuxgal (@linuxgal@techhub.social)

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)]





Show Original Post


31.08.2025 21:20
felixxm (@felixxm@fosstodon.org)

I've just booked my flight to Barcelona 🏖️ It will be a wonderful time with amazing people 🤗 #djangoonthemed #django #sprint #python

djangomed.eu




Show Original Post


31.08.2025 20:45
digitalkrampus (@digitalkrampus@mastodon.social)

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.

realpython.com/intro-to-python





Show Original Post


31.08.2025 20:02
ericdere (@ericdere@mastodon.nl)

#Python: The Documentary | An origin story - CultRepo

youtube.com/watch?v=GfH4QL4VqJ0




Show Original Post


31.08.2025 19:07
mahryekuh (@mahryekuh@hachyderm.io)

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. 💚

fosstodon.org/@kati/1151096090

#Python




Show Original Post


31.08.2025 18:55
ngate (@ngate@mastodon.social)

👶🔍 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 annotations, you might need a new hobby. 🐍💥
austinhenley.com/blog/babytype




Show Original Post


31.08.2025 18:52
habr (@habr@zhub.link)

Чистим строку от лишних/повторяющихся пробелов (и пробельных символов) в строковых значениях компактно. RegExp

Хочу поделиться компактной функцией для очищения лишних, повторяющихся пробелов и пробельных символов в строках. Не считайте это призывом, но если можно привести строковые данные в красивый вид без лишних хлопот, то почему бы и не воспользоваться. Те, кто не знаком с регулярными выражениями (regular expressions, RegExp, regex), может приоткроет форточку в этот славный и замороченный мир ( Регулярные выражения (regexp) — основы )

habr.com/ru/articles/942568/

#regexp #excel #python #javascript #visual_basic_for_applications




Show Original Post


1 ...1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 ...1549
UP