Thomas Grainger
graingert.co.uk
Thomas Grainger
@graingert.co.uk
Why didn't you get a ResourceWarning about this?
June 20, 2025 at 4:08 PM
Reposted by Thomas Grainger
EuroPython!
April 9, 2025 at 10:59 AM
sys._getframe should probably have a pure python default that uses an exception and tb_frame
March 12, 2025 at 3:17 PM
But I think tb_frame is just as unmandated (and for practically the same reasons) so I think this compat function is indeed redundant
March 12, 2025 at 2:47 PM
Maybe, but I'm pretty sure PyPy does have this function. Python 2 doesn't have `__traceback__` though
March 12, 2025 at 2:39 PM
This isn't a python 2 thing
March 12, 2025 at 2:04 PM
Like doing things without OOP/types/ABCs/discord/FastAPI or server sockets and just glue code around requests and keyboard etc?
March 12, 2025 at 2:01 PM
Mastodon
February 13, 2025 at 6:27 PM
Think of the herd immunity and the extra load on the healthcare service
February 13, 2025 at 6:20 PM
A lot slower! try/except is zero cost when no exception is raised
February 3, 2025 at 4:55 PM