Xiang Zhang added the comment:

Thanks for your comments Serhiy. I update the patch according to your comments.

Actually I don't think this is a new feature. Maybe staticmethod and 
classmethod are just forgotten.

As for separate tests for staticmethod and classmethod, I think they are not 
needed for this patch since right now we can use dis.dis to disassemble them 
explicitly. Only when dis.dis a class they are missing. But since there are no 
tests for them, adding tests for them is good.

----------
Added file: 
http://bugs.python.org/file42442/add_staticmethod_and_classmethod_when_dis.dis_a_class_v5.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26733>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to