Eric V. Smith <e...@trueblade.com> added the comment: I'm okay with the concept, but I don't know how to implement it. You need to not only know if a class has a __init__, but also if it's expected to be called.
For example, these don't normally get called, but if you inherit from them (and everyone does inherit from object) you don't want a warning. >>> hasattr(int, '__init__') True >>> hasattr(object, '__init__') True I'm open to ideas. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33452> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com