7 ms·
You could almost certainly achieve that with the implementation of blocks provided by this package: http://pypi.python.org/pypi/withhacks/ http://pypi.python.o
by fuzzyman 17y ago
You could almost certainly achieve that with the implementation of blocks provided by this package:
http://pypi.python.org/pypi/withhacks/ http://pypi.python.org/pypi/withhacks/
- bad_user 17y agothat's cool, thanks ... I was wondering about that
- tsuraan 17y agoWow, I've never seen that before. I'm also not sure I'd say a solution that uses bytecode rewriting is really working within the language, but that's a pretty interesting package anyhow.
- fuzzyman 17y agoWell, normally I would agree - but if its entirely abstracted away in a library (and the library is well written) then it might sort-of-kind-of-maybe be ok. Python itself does varying degrees of bytecode optimisation depending on which version you're using.