This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients benjamin.peterson, daniel.urban, georg.brandl, mark.dickinson, ncoghlan, rhettinger, scott.dial, terry.reedy
Date 2010-07-02.20:19:27
SpamBayes Score 9.2700145e-07
Marked as misclassified No
Message-id <1278101969.53.0.307009332512.issue6507@psf.upfronthosting.co.za>
In-reply-to
Content
Just today, someone posted the result of dis.dis('somebytes') and did not notice the error because dis blithely disassembles bytes as bytecodes, even in 3.x. (The person actually dissed a 2.x string).

>>> from dis import dis
>>> dis(b'cat')
          0 DUP_TOPX        29793

It is a natural thing to do, so I hope this is put in 3.2. 

Since the undocumented 'disassemble_string' now disassembles bytes, I think it should be renamed '_disassemble_bytes' instead of '_disassemble_string'. This would accord with the general effort to remove 2.x fossils from 3.x.

Aside from that, it looks ready, from a reading review, to apply and test: doc addition, added tests, new function and else case, and rename.
History
Date User Action Args
2010-07-02 20:19:29terry.reedysetrecipients: + terry.reedy, georg.brandl, rhettinger, mark.dickinson, ncoghlan, scott.dial, benjamin.peterson, daniel.urban
2010-07-02 20:19:29terry.reedysetmessageid: <1278101969.53.0.307009332512.issue6507@psf.upfronthosting.co.za>
2010-07-02 20:19:28terry.reedylinkissue6507 messages
2010-07-02 20:19:27terry.reedycreate