python

Back Open Paginator
26.10.2025 15:07
ehmatthes (@ehmatthes@fosstodon.org)

If you teach #Python, you need to recommend an editor/IDE to people who haven't already settled on a favorite of their own. When I started teaching Python, I recommended Geany. Then I moved to Sublime Text, and most recently I've been recommending VS Code.

I'm rethinking that. A fresh install of VS Code has multiple pushes for Copilot, agents, and AI chat. They come back if you just close them.

What editor/IDE would you recommend for people new to Python?





Show Original Post


26.10.2025 15:00
nowosad (@nowosad@fosstodon.org)

Want to transform the geometry of spatial data in Python? ✨🌍🐍

Chapter 4 of geocompy covers:

- Vector: simplify, buffer, centroid, clip, unions, affine transforms
- Raster: crop, resample, aggregate, align datasets

👉 py.geocompx.org/04-geometry-op

#GeoPython #Python #GISchat #geocompx




Show Original Post


26.10.2025 14:42
RodStephens (@RodStephens@hachyderm.io)

Draw a Fibonacci spiral in Python
rodstephensbooks.com/fibonacci
#Python #FibonacciNumbers #Spiral





Show Original Post


26.10.2025 14:27
javedAB (@javedAB@mastodon.social)

Some very smart people might say "but library support..."

Yes, if you need PyTorch or specialized ML frameworks, use Python. But for many use cases, Rust gives you real benefits: lower CPU and RAM usage, no garbage collector, your app opens in milliseconds, it does its job multiple factors faster. Plus, for some goals, you want that low level power Rust gives you.

And yes, you get to feel cool for using Rust.




Show Original Post


26.10.2025 14:15
mblayman (@mblayman@mastodon.social)

🐍 What kinds of tools are available for developers who want to write serverless web apps? That's the topic we explore in this talk. youtube.com/watch?v=SpgKwsPsqOU




Show Original Post


26.10.2025 13:45
hugovk (@hugovk@mastodon.social)

Just released! 🚀

🎨 termcolor 3.2.0

github.com/termcolor/termcolor

🟣 Expose `can_colorize` as public API
🟢 Add support for Python 3.15 (🥉 at pyreadiness.org/3.15/)
🔴 Drop support for EOLish Python 3.9




Show Original Post


26.10.2025 11:05
alex (@alex@social.moreati.org.uk)

Have you seen Python REPL rendering multiple history items on a single line in VS Code's terminal? It's annoying me and so far my web searches haven't uncovered anything. It affects multiple Python versions from xcode-select and from uv. The same Python REPLs are fine in macOS Terminal and Ghostty. #Python #VSCode





Show Original Post


26.10.2025 10:31
Luminous_J (@Luminous_J@queer.cool)

I need to show my utmost respect to all developers out there.

Since yesterday I've been trying to write a script (python) using ChatGPT which automatically downloads files from a site to my MacMini Server and renames them.

I was thinking it would take 3-4 hours max, but it took the whole day and it's still not 100% stable. Apparently MacOS is quite fiddly with certain things so ChatGPT kept sending me into wrong directions.

Apparently coding takes a lot of patience!! 😵‍💫😜
#MacOS #Python




Show Original Post


26.10.2025 09:42
habr (@habr@zhub.link)

Изучаем Python: модуль json для начинающих с домашним заданием

Если вам когда-либо приходилось передавать структурированные данные между двумя разными системами, вы наверняка сталкивались с JSON. Сегодня JSON (JavaScript Object Notation) — это общепринятый стандарт для обмена данными в интернете. Он стал настолько популярным благодаря своей простоте и эффективности.

habr.com/ru/articles/960256/

#json #python3 #python




Show Original Post


26.10.2025 07:33
diazona (@diazona@techhub.social)

@stuartl @jochie @ehmatthes Hmm, I see. But I would think if you have to avoid thread safety issues in the called library, using a lock would be a simpler approach then starting up a whole extra event loop?

The point about toolkit portability is valid, I just don't consider it as much of a reason not to do this because I'd expect switching between toolkits would require making much larger changes in the rest of the program anyway.

#Python




Show Original Post


26.10.2025 06:33
diazona (@diazona@techhub.social)

@jochie @ehmatthes Oh I was talking about the thread workers built into Textual: textual.textualize.io/guide/wo

loop.call_soon_threadsafe() seems like a lower-level Python thing (right @stuartl ?) which would work, but I have to imagine it's not as straightforward as using the feature that Textual already provides for you.

#Python




Show Original Post


26.10.2025 03:37
ros (@ros@techhub.social)

Building MCP Server in Python: WebSearch & Scrape example:
glukhov.org/post/2025/10/mcp-s
#mcp #rag #python #coding #websearch #ai




Show Original Post


1 ...1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 ...1563
UP