python

Back Open Paginator
09.03.2026 20:54
davep (@davep@fosstodon.org)

Finally caught GitHub Copilot/Claude out in some "I designed a circular import so I'm going to cheat my way out of it" nonsense.

Not on my watch you don't.

#Python #agent #ai




Show Original Post


09.03.2026 20:52
rasterweb (@rasterweb@mastodon.social)

Has it really been a year since I released this? I'm still really (mostly) enjoying Python, though I keep hearing good things ago Go and Rust...

rasterweb.net/raster/2025/03/0




Show Original Post


09.03.2026 20:25
feed (@feed@feedsin.space)

PEP 828: Supporting 'yield from' in asynchronous generators

This PEP introduces support for yield from in an asynchronous generator function.

python




Show Original Post


09.03.2026 20:23
NorthBayPython (@NorthBayPython@social.northbaypython.org)

#NBPy tickets still on sale

no incentives for buying today except for the satisfaction of knowing your organisers are a tiny bit happier about the state of the conference

and frankly, that should be enough

pretix.northbaypython.org/nbpy #Python




Show Original Post


09.03.2026 19:47
meejah (@meejah@mastodon.social)

Please tell my why this is wrong github.com/magic-wormhole/magi

...or is there really no incremental migration path for all the "sphinxcontrib" packages that use the "wrong" way to create namespace packages??

😱 😱

(This is like 3 yaks deep for me anyway: I just want builds to work again, and the docs use sphinxcontrib-seqdiag to get nice sequence diagrams)




Show Original Post


09.03.2026 19:21
treyhunner (@treyhunner@mastodon.social)

Python Tip #68 (of 365):

Instead of an printing an f-string with a single space between values, consider passing 2 arguments to print

Instead of this:

print(f"User: {name}")

You could do this:

print("User, name)

Why?

Less syntax. That's all.

#Python #DailyPythonTip




Show Original Post


09.03.2026 18:58
SergKoren (@SergKoren@writing.exchange)

I’d like a Picotron that uses Python.

#lexaloffle #gamedev #python




Show Original Post


09.03.2026 18:35
dreo (@dreo@social.sciences.re)

The OntoWeaver team is proud to release version 1.4 of its tool πŸ₯³

OntoWeaver allows to easily parse iterable data (like tables or documents) and create a Semantic Knowledge Graph. Basically, you write a simple YAML file telling what data you want to be a node or a property, you call a generic command, and πŸŽ‰ , you have your graph ready.

With the 1.4 series, the main new feature is an option to display progress bars when doing heavy processing (like loading large CSV files).

The documentation has also been heavily updated, completed and polished:
ontoweaver.readthedocs.io/en/l

#python #SKG #KG #graph #neo4j #ontoweaver #biocypher #science #bioinformatics #pasteur #ontologies #semanticWeb




Show Original Post


09.03.2026 18:34
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 7 Part 6 - Your First Steps - Splitting & Joining Strings - in Python is Easy





Show Original Post


09.03.2026 18:32
habr (@habr@zhub.link)

Π­Π²ΠΎΠ»ΡŽΡ†ΠΈΡ Telegram-Π±ΠΎΡ‚Π° Π½Π° локальной LLM ΠΎΡ‚ Π±ΠΎΠ»Ρ‚ΡƒΠ½Π° Π΄ΠΎ ΠΌΠΈΠ½ΠΈ-ΠΈΠ³Ρ€, Π³Π΅Π½Π΅Ρ€Π°Ρ†ΠΈΠΈ Ρ„ΠΎΡ‚ΠΎ, возмоТности Π²Ρ‹Π±ΠΎΡ€Π° ΠΌΠΎΠ΄Π΅Π»ΠΈ

Π₯ΠΎΡ‡Ρƒ Ρ€Π°ΡΡΠΊΠ°Π·Π°Ρ‚ΡŒ ΠΎ Ρ‚ΠΎΠΌ, ΠΊΠ°ΠΊ я создавал tg Π±ΠΎΡ‚Π° Π½Π° локальной LLM Ollama ΠΈ с ΠΊΠ°ΠΊΠΈΠΌΠΈ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΠ°ΠΌΠΈ я столкнулся. Π‘ΠΎΡ‚ написан Π½Π° python ΠΈ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ΅ telegram. ΠŸΠΎΡ‡Π΅ΠΌΡƒ Π²Ρ‹Π±Ρ€Π°Π» ΠΈΠΌΠ΅Π½Π½ΠΎ Ollama? ΠŸΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠ½Π° бСсплатна, Π΅ΡΡ‚ΡŒ мноТСство ΠΎΡ‚ΠΊΡ€Ρ‹Ρ‚Ρ‹Ρ… ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ ΠΈ Π΅Ρ‘ ΠΎΡ‡Π΅Π½ΡŒ просто Ρ€Π°Π·Π²Π΅Ρ€Π½ΡƒΡ‚ΡŒ Π² своСм ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π΅. Если Π±Ρ€Π°Ρ‚ΡŒ ΠΎΠ±Π»Π°Ρ‡Π½Ρ‹Π΅ Ρ€Π΅ΡˆΠ΅Π½ΠΈΡ ΠΎΡ‚ Π΄Ρ€ΡƒΠ³ΠΈΡ… ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΉ Π½Π°ΠΏΡ€ΠΈΠΌΠ΅Ρ€ ChatGPT, Ρ‚ΠΎ Ρ‚ΡƒΡ‚ ΠΌΠΎΠΆΠ½ΠΎ ΡƒΠΏΠ΅Ρ€Π΅Ρ‚ΡŒΡΡ Π² Ρ‚ΠΎ, Ρ‡Ρ‚ΠΎ Π·Π° Π½ΠΈΡ… Π½ΡƒΠΆΠ½ΠΎ ΠΏΠ»Π°Ρ‚ΠΈΡ‚ΡŒ. МодСли я ΠΏΠΎΠ΄Π±ΠΈΡ€Π°Π» ΠΏΠΎΠ΄ свой ΠΊΠΎΠΌΠΏΠΈΠΊ: 5070 ΠΈ 32 Π³Π± ΠΎΠΏΠ΅Ρ€Π°Ρ‚ΠΈΠ²Ρ‹. Π‘Π΅Ρ€Π²Π΅Ρ€Π° своСго Π½Π΅Ρ‚Ρƒ, поэтому Π±ΠΎΡ‚ Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΊΠΎΠ³Π΄Π° я Π΄ΠΎΠΌΠ°. Π‘ΠΎΡ‚ ΠΏΡ€ΠΎΠ΄ΠΎΠ»ΠΆΠ°Π΅Ρ‚ Ρ€Π°Π·Π²ΠΈΠ²Π°Ρ‚ΡŒΡΡ. Π‘Π»Π΅Π΄ΠΈΡ‚ΡŒ Π·Π° обновлСниями ΠΈ Π½ΠΎΠ²Ρ‹ΠΌΠΈ Ρ„ΠΈΡ‡Π°ΠΌΠΈ ΠΌΠΎΠΆΠ½ΠΎ Π² ΠΌΠΎΠ΅ΠΌ Telegram-ΠΊΠ°Π½Π°Π»Π΅: t.me/rocet_0 Π˜Π·ΡƒΡ‡ΠΈΡ‚ΡŒ ΠΈΡΡ‚ΠΎΡ€ΠΈΡŽ

habr.com/ru/articles/1008248/

#Python #Telegram_Π±ΠΎΡ‚ #Ollama #LLM #искусствСнный_ΠΈΠ½Ρ‚Π΅Π»Π»Π΅ΠΊΡ‚ #гСнСрация_ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠΉ #самообучСниС #Π»ΠΎΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉ_ИИ #Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ°_Π±ΠΎΡ‚ΠΎΠ² #кСйс




Show Original Post


09.03.2026 18:25
mopicmp (@mopicmp@mastodon.social)

Python Tip: Walrus Operator :=

# Assign AND test in one line
if (n := len(data)) > 10:
print(f'Too long: {n}')

The walrus operator (:=) assigns a value and returns it. Perfect for avoiding redundant...

raccoonette.gumroad.com/l/Pyth




Show Original Post


09.03.2026 18:25
mopicmp (@mopicmp@mastodon.social)

Python Tip: Ternary Expression

status = 'even' if x % 2 == 0 else 'odd'
result = value if value is not None else default

Python's ternary operator is readable and concise. Replaces simple if/else blocks.

raccoonette.gumroad.com/l/Pyth




Show Original Post


1 ...354 355 356 357 358 359 360 361 362 363 364 ...1592
UP