Eryk Sun <eryk...@gmail.com> added the comment:
>> Why are __flags__, __basicsize__, __itemsize__, >>__dictoffset__, and __weakrefoffset__ interesting? > > I haven't said they are, but on the other hand I don't see > why consistency is a bad thing. IMO, they're not interesting because they're not documented attributes in Python's data model. They don't exist in other implementations, such as PyPy. So I'd prefer to hide them and, as much as possible, discourage developers from thinking it's okay to use them. They may be interesting attributes while developing extension modules that define new types, but anyone working at that level surely doesn't need the help of dir() to know what attributes are available. ---------- components: +Interpreter Core -Documentation versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue22790> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com