python

Back Open Paginator
02.03.2026 22:10
davep (@davep@fosstodon.org)

Well, after a bit of faffing and some #Python coding I've managed to pull out the 1,833 images from my original #photoblog. So once I'm done seen-by.davep.dev/ will eventually host both incarnations of the blog.





Show Original Post


02.03.2026 21:35
myself (@myself@mastodon.online)

I just learned that I can use `...` as placeholder for unfinished code instead of `pass` in #python
`...` is a built-n object, and it's called the *Ellipsis*

Example: Instead of

def func():
pass

one could use the ellipsis like

def func():
...




Show Original Post


02.03.2026 21:28
hogesonline (@hogesonline@aus.social)

Another year another @pyconau , this time in Brisbane!

The student showcase is a wonderful opportunity for students to showcase a project related to the #Python language (or open source) and be part of a real developer conference. It doesn't have to be a year 12 project, just a good story. Encourage your #students (or students you know) to apply! (If they can't make the conference they can still submit a video talk)

2026.pycon.org.au/cfp/student-

While you're encouraging your students, the CFP is open for the #Education track so if you've done something with Python or open source in your classroom that you think others can learn from you have until March 29th to put your talk proposal in.
2026.pycon.org.au/cfp/

I hope to see some of you and your students there!




Show Original Post


02.03.2026 20:49
hackeryarn (@hackeryarn@mastodon.social)

I’ve been experimenting more with data-oriented design in Rust. A few weeks ago I applied these ideas to a Python library using PyO3 and Rust. It ended up outperforming NumPy for a subset of operations.

In this post I detail the journey and techniques used to get there:

hackeryarn.com/post/fast-pytho




Show Original Post


02.03.2026 20:32
villares (@villares@pynews.com.br)

Calculation of #Conway's #GameOfLife was already very fast with #Numpy, but drawing was slow (squares and text...) now this is *so* fast... with vectorized `py5.points()` getting arrays of points to draw as squares with `py5.stroke_cap(py5.PROJECT)`. Check it out!
Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding





Show Original Post


02.03.2026 20:00
bbelderbos (@bbelderbos@fosstodon.org)

This pattern is increasingly used and to me it's really exciting: Rust is not replacing Python, the two are actually a great companion! 🐍 🦀

#Python #Rust #Performance #SoftwareEngineering




Show Original Post


02.03.2026 19:52
CodenameTim (@CodenameTim@mastodon.social)

Continuing my suggestions, today's is Colleen Dunlap's DjangoCon US talk, "Easy, Breezy, Beautiful... Django Unit Tests"

Consider watching this if:

- You’re getting started writing tests
- You’re new to Django
- Want to quickly learn the important aspects of testing

better-simple.com/lunch-talks/




Show Original Post


02.03.2026 19:46
mopicmp (@mopicmp@mastodon.social)

Python Tip: str.removeprefix/removesuffix

filename = 'test_utils.py'
module = filename.removesuffix('.py') # 'test_utils'
name = module.removeprefix('test_') # 'utils'

Python 3.9+ added removeprefix() and removesuffix(). No more error-prone string slicing.

raccoonette.gumroad.com/l/Pyth




Show Original Post


02.03.2026 19:45
mopicmp (@mopicmp@mastodon.social)

Python Tip: List Comprehension Speed

# 3x faster than a for loop
squares = [x**2 for x in range(1000)]

List comprehensions are not just cleaner — they run up to 3x faster than equivalent for loops in...

raccoonette.gumroad.com/l/Pyth




Show Original Post


02.03.2026 19:10
villares (@villares@ciberlandia.pt)

Amigos, me ajudem por gentileza a divulgar meu curso online promovido pelo Museu de Arte Moderna de São Paulo (MAM-SP) que começa agora em março e estão prestes a se encerrar as inscrições:

mam.org.br/curso/desenhando-co

É um curso introdutório, sem pré-requisitos, de #ProgramaçãoCriativa usando #Python com #py5, minhas ferramentas prediletas.





Show Original Post


02.03.2026 18:36
fastlydevs (@fastlydevs@mastodon.social)

For 10+ years, Fastly has supported the @ThePSF in securing and scaling the Python Package Index (PyPI).

~100K req/sec.
500K+ projects.
98–99% cache hit rate.
Real-time purging in milliseconds.
Adaptive WAF protection against bots + account takeovers.

Proud to help keep one of the world’s most critical open source ecosystems fast, fresh, and secure.

Read more: fastly.com/customers/psf





Show Original Post


02.03.2026 18:23
davep (@davep@fosstodon.org)

I rescued the content of my photoblog: blog.davep.org/2026/03/02/seen

#python #blogmore #photoblog




Show Original Post


1 ...395 396 397 398 399 400 401 402 403 404 405 ...1592
UP