Daniel Urban added the comment: Thanks for the review Ezio!
I've fixed the order of the arguments of assertEqual. Regarding your other comment: I agree that your code is shorter and clearer, but it doesn't do exactly the same thing. cls.__init_class__ can be None, and in that case, we should call it (the user should get a TypeError). So the getattr call would need another sentinel object. And with that sentinel, I don't think the code would be shorter and clearer any more. ---------- Added file: http://bugs.python.org/file28867/pep422_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17044> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com