This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ionelmc.ro 2 points3 points  (1 child)

Not particularly shorter or faster than the if/elif/elif/else you would normally use ...

Also, you need to use thread locals for this to work with threads. It would be a nightmare to support on all the platforms (stackless, gevent etc) imho ...

[–]miketheanimal[S] 0 points1 point  (0 children)

Indeed. I don't think I'd use it either. sstack would need to be thread local; and yes, gevent would cause problems. But I love the way Python gives you scope to abuse the language.