Éric Araujo <mer...@netwok.org> added the comment: This is related to the more general issue of how to report a wrong number of arguments in a method call; I don’t remember if it was a python-dev discussion, a python-ideas one or a bug report.
random is not the only module where instance methods are used as module functions; I don’t know what is more important between slightly better error messages and performance. ---------- nosy: +eric.araujo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1560032> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com