[issue20204] pydocs fails for some C implemented classes

Nick Coghlan report at bugs.python.org
Sat Feb 28 12:44:43 CET 2015


Nick Coghlan added the comment:

The case for RuntimeWarning: the object isn't necessarily *broken* as such (most things will still work), but pickling and some introspection features may not work properly.

The case for DeprecationWarning: breaking picking and introspection is bad when the fix (setting __module__) is straightforward, so this should eventually become an AttributeError:

    AttributeError: __module__ not set on builtin type tkapp

My own preference is for the latter - eventually making it a hard requirement to specify the module name properly. Even true builtins officially live in the builtins module:

    >>> str.__module__
    'builtins'

----------

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


More information about the Python-bugs-list mailing list