Matthias Bussonnier added the comment:
> I think that the names in __all__ should have the same NFKC normalisation
> applied as the identifiers.
Does it make sens to add to this issue : Ensure that all elements of __all__
are str ? (At least emit a warning ?)
I have encounter a small number of libraries where some member of all are the
actual objects. Easy mistake to make if you make a public decorator:
__all__ = []
def public(o):
__all__.append(o)
return o
@public
def bar():
pass
Happy to open a different issue if deemed necessary. Thanks !
----------
nosy: +mbussonn
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com