by tsuraan · 16y ago · 0 comments
with task('name') as t:
# do stuff with t
It's not really the same; the task object doesn't have control over whether the block is actually run, but sometimes it is sufficient.Python itself does varying degrees of bytecode optimisation depending on which version you're using.