[issue2928] Allow set/frozenset for __all__

Georg Brandl report at bugs.python.org
Tue May 20 10:13:12 CEST 2008


Georg Brandl <georg at python.org> added the comment:

You don't check for NULL return from PyObject_GetIter(). It will
segfault for "__all__ = 1".

That demonstrates that test cases are missing from the patch. :)

Raymond: It shouldn't since __all__ is only inspected after the module
code has been executed.

----------
nosy: +georg.brandl

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2928>
__________________________________


More information about the Python-bugs-list mailing list