Thomas Kluyver added the comment:

I've added docs and tests, and split the changes to test_peepholer into a 
separate patch.

I haven't re-exposed details of the code object as attributes of Bytecode 
instances, because they're already available as e.g. bytecode.codeobj.co_names 
. I think it would be more confusing than useful to offer the same values in 
two places, though I'm open to discussion on this.

I've re-organised the dis module docs a bit. I've put Bytecode at the top, as I 
think it's a more intuitive API than the functions, which have somewhat 
counter-intuitive names due to the module's history.

----------
Added file: http://bugs.python.org/file29694/dis_api3.diff

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

Reply via email to