[Python-Dev] PEP 343 - Abstract Block Redux
Guido van Rossum
gvanrossum at gmail.com
Tue May 17 06:16:47 CEST 2005
[Greg Ewing]
> I've stopped arguing against giving with-protocol
> methods to files, etc., since it was pointed out that
> you'll get an exception if you try to re-use one.
>
> I still think it's conceptually cleaner if the object
> you use to access the resource is created by the
> __enter__ method rather than being something pre-
> existing, but I'm willing to concede that PBP here.
PBP? Google finds "Python Browser Poseur" but no definition of IRC
slang. Proven Best Practice? Pakistani Border Patrol? Puffing Billy
Posse?
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list