New submission from Nick Coghlan: The docs on __prepare__ don't make it clear that it should be a staticmethod, and the error message if you forget is not obvious at all. (This is particularly so, since the examples in PEP 3115 had it as an ordinary method).
---------- messages: 183463 nosy: ncoghlan priority: normal severity: normal status: open title: Be clear that __prepare__ must be declared as a static method _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17352> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com