[issue1263] PEP 3137 patch - str8/str comparison should return false

Brett Cannon report at bugs.python.org
Sun Oct 21 02:35:07 CEST 2007


Brett Cannon added the comment:

Attached is a fix for modulefinder.

It is an ugly hack as modulefinder took the numeric opcode numbers from
dis and passed them to chr().  But that doesn't work since that returns
Unicode.  So I took those single characters and passed them to str8().

Once str8() has its constructor match bytes() then the chr() call can be
ditched and the dis values can be tossed into a single-item list.

Added file: http://bugs.python.org/file8579/fix_modulefinder.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1263>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_modulefinder.diff
Type: application/octet-stream
Size: 1360 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071021/f3094036/attachment.obj 


More information about the Python-bugs-list mailing list