stupid-python-tricks icon indicating copy to clipboard operation
stupid-python-tricks copied to clipboard

Stupid Python tricks.

Results 6 stupid-python-tricks issues
Sort by recently updated
recently updated
newest added

Hello, Mark. We have a small conversation on PyCon DE 2022 after your talk. I have a small improvements for your "gradually_worse_pi" ```import math class my_prop(math.__class__): _pi = math.pi` @property...

[![](https://pbs.twimg.com/media/FF3VIhLXoAwBAtj?format=jpg&name=medium)](https://twitter.com/aaronbassett/status/1467564070870134790)

I added something very similar to the invoke library that you might like :smile: https://www.pyinvoke.org/ https://magicinvoke.readthedocs.io/en/latest/examples/make-replacement/README.html

It would be neat to be able to import a YAML or JSON file and have its contents available as Python data.

idea

I looked into the issue you told me about the other day, that `one_line_regex.match_magic()` doesn't work when called from within a function, but only when called from the top-level scope....

Ish doesn't support Old English, either written in Latin script or in Futhorc. My users often get confused as to where they've ended up in, as their time-travelling tools aren't...

enhancement