[docs] [issue35105] Document that CPython accepts "invalid" identifiers

STINNER Victor report at bugs.python.org
Wed Oct 31 22:42:41 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> I'd argue that it's an implementation detail. Documenting it might be nice as some projects such as pytest do use it but I don't think it would make sense in setattr() or getattr() since all they do (at least in this case) is assign/retrieve from the __dict__. One thing to note is that __slots__ doesn't accept them.

Maybe it's obvious to you, but the question is asked again and again, at least once per year. So it seems like we need to document it somewhere.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35105>
_______________________________________


More information about the docs mailing list