[issue10859] Is GeneratorContextManager public?

Antoine Pitrou report at bugs.python.org
Fri Jan 7 20:15:43 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> There was a discussion on python-dev about naming conventions in the
> standard library. There was no clear consensus that everything
> non-public should start with an underscore. Several developers thought
> that merely being undocumented or not present in __all__ was
> sufficient (evidently including Guido at the point he implemented
> this).

Underscoring makes it much clearer, though, that people shouldn't rely
on it.
At this point, GCM is only used in copies of the contextlib source code
and our own test_with, so we can still rename it.
(http://www.google.com/codesearch?hl=fr&sa=N&q=GeneratorContextManager )

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10859>
_______________________________________


More information about the Python-bugs-list mailing list