python

Back Open Paginator
03.10.2025 17:38
mikerspencer (@mikerspencer@mastodon.scot)

This looks an interesting job: elevategreat.co.uk/work-with-u

#RStats #Python #JobFairy #Edinburgh #London




Show Original Post


03.10.2025 17:29
cthoyt (@cthoyt@scholar.social)

have you ever annotated a TypedDict onto the **kwargs fuction and want Sphinx to automatically add it to the function's docstring?

class GreetingKwargs(TypedDict):
name: Annotated[str, Doc("the name of the person to greet")]

def greet(**kwargs: Unpack[GreetingKwargs]):
"""Greet a person.

:returns: A nice greeting
"""
return f"hello, {kwargs['name']}!"

i wrote a plugin for it github.com/cthoyt/sphinx-unpack

#python #sphinx #mypy #typing





Show Original Post


03.10.2025 16:40
shawnhymel (@shawnhymel@masto.ai)

New #ROS video out! In it, I walk through the process of creating custom publisher and subscriber nodes in Python to communicate over topics. Check it out!
👇👇👇
youtube.com/watch?v=9_AahxDsV6

#robotics #Python #programming





Show Original Post


03.10.2025 16:04
stib (@stib@aus.social)

When I'm working with #Blender #GeometryNodes I like to hide unnecessary clutter. Maths nodes for example take up a lot of space, and often the name of the operation is all that you need to see what they're doing, or the name of the operation and the value of the parameter. For example when adding 1 to an input using a maths Add node having it open doesn't give you more info than collapsing it and setting the name to "+1"
This is tedious to do, but it does make complicated node trees easier to parse.
So #IMadeAThing. A little script that calls the node by what it's doing and collapses it and hides un-connected inputs.
It also spots multiples and fractions of π and 𝜏 and common fractions from 1/2 to 15/16.
So far I've only done maths nodes, but I plan on working my way through the most common nodes, and adding general tidy-up functions as I go. Next on the list is Group Input nodes with only 1 output, that can just get named after the name of the output.
It's just a script that you can run from the Blender text editor at the moment. When it's not late at night I'll make it into a proper module.
If anyone has requests or suggestions, let me know.
codeberg.org/stib/stibs_blende
#B3D #python #bpy





Show Original Post


03.10.2025 15:58
thias (@thias@mastodon.social)

The palindrome problem – Unicode edition

wiesmann.codiferes.net/wordpre

++





Show Original Post


03.10.2025 15:17
requiem (@requiem@masto.hackers.town)

Wrote some #Python this morning (3.4, stuck to the built-ins & standard lib) and it was a lot nicer than the last time I wrote something new in it.




Show Original Post


03.10.2025 14:57
adamchainz (@adamchainz@fosstodon.org)

Huge PEP! Lazy imports in Python would be amazing.

discuss.python.org/t/pep-810-e

#Python




Show Original Post


03.10.2025 14:07
qiita (@qiita@rss-mstdn.studiofreesia.com)

PyCon JP 2025 参加レポ
qiita.com/kitamura-yzrh/items/

#qiita #Python #PyConJP #イベントレポート




Show Original Post


03.10.2025 14:04
r (@r@bsky.brid.gy)

Let me post a *non*-subskeet for once... We made a thing! discuss.python.org/t/pep-810-ex... #Python #PEP

PEP 810: Explicit lazy imports




Show Original Post


03.10.2025 14:03
Yhg1s (@Yhg1s@social.coop)

Let me post a *non*-subtoot for once... We made a thing!

discuss.python.org/t/pep-810-e

#Python #PEP




Show Original Post


03.10.2025 13:54
r (@r@fed.brid.gy)

📢 The other day @sirosen.net cut #pip-tools v7.5.1 with compatibility fixes for Click v8.3.0 and a few regression fixes of recursive extras! 🔏 pypi.org/project/pip-... 📝 pip-tools.readthedocs.io/en/stable/ch... #Python #packaging 👥 github.com/sponsors/sir... / github.com/sponsors/web...




Show Original Post


03.10.2025 13:54
r (@r@bsky.brid.gy)

📢 The other day @sirosen.net cut #pip-tools v7.5.1 with compatibility fixes for Click v8.3.0 and a few regression fixes of recursive extras! 🔏 pypi.org/project/pip-... 📝 pip-tools.readthedocs.io/en/stable/ch... #Python #packaging 👥 github.com/sponsors/sir... / github.com/sponsors/web...




Show Original Post


1 ...1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 ...1558
UP