This looks an interesting job: https://elevategreat.co.uk/work-with-us/research-and-insight-lead/
#RStats #Python #JobFairy #Edinburgh #London
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 https://github.com/cthoyt/sphinx-unpack

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!
👇👇👇
https://www.youtube.com/watch?v=9_AahxDsV6I
#robotics #Python #programming

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.
https://codeberg.org/stib/stibs_blender_scripts/src/branch/main/nodeBeautify.py
#B3D #python #bpy

The palindrome problem – Unicode edition
https://wiesmann.codiferes.net/wordpress/archives/41500
#C++ #CodePoints #GraphemeClusters #java #Javascript #ProgrammingLanguage #Python #Swift #TextProcessing #Unicode

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.
Huge PEP! Lazy imports in Python would be amazing.
https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131
PyCon JP 2025 参加レポ
https://qiita.com/kitamura-yzrh/items/683bad5824138333a3af?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#qiita #Python #PyConJP #イベントレポート
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
Let me post a *non*-subtoot for once... We made a thing!
https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131
📢 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...
📢 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...