Alexander Jones <aj.d...@gmail.com> added the comment:

Not having this as a standard idiom makes it very tempting to just do 
copy-paste coding as in hniksic's example. Who likes to invent their own 
library for generic language-supporting idioms?

What about an alternative of giving NoneType empty enter and exit methods? So 
instead of a 'null' CM you can just use "with None"?

----------
nosy: +Alexander.Jones

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10049>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to