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 jjdominguezm
Recipients jjdominguezm
Date 2008-09-09.16:07:11
SpamBayes Score 5.67645e-10
Marked as misclassified No
Message-id <>
I get the following exception:

$ /opt/python3.0b2/bin/python3.0 -m trace -c -m
Traceback (most recent call last):
  File "/opt/python3.0b2/lib/python3.0/", line 121, in
    "__main__", fname, loader, pkg_name)
  File "/opt/python3.0b2/lib/python3.0/", line 34, in _run_code
    exec(code, run_globals)
  File "/opt/python3.0b2/lib/python3.0/", line 809, in <module>
  File "/opt/python3.0b2/lib/python3.0/", line 806, in main
    results.write_results(missing, summary=summary, coverdir=coverdir)
  File "/opt/python3.0b2/lib/python3.0/", line 303, in write_results
    lnotab = find_executable_linenos(filename)
  File "/opt/python3.0b2/lib/python3.0/", line 428, in
    return find_lines(code, strs)
  File "/opt/python3.0b2/lib/python3.0/", line 392, in find_lines
    linenos.update(find_lines(c, strs))
  File "/opt/python3.0b2/lib/python3.0/", line 386, in find_lines
    linenos = find_lines_from_code(code, strs)
  File "/opt/python3.0b2/lib/python3.0/", line 370, in
    line_increments = [ord(c) for c in code.co_lnotab[1::2]]
  File "/opt/python3.0b2/lib/python3.0/", line 370, in <listcomp>
    line_increments = [ord(c) for c in code.co_lnotab[1::2]]
TypeError: ord() expected string of length 1, but int found

I think that line 370 of should say:

line_increments = [int(c) for c in code.co_lnotab[1::2]]

instead of:

line_increments = [ord(c) for c in code.co_lnotab[1::2]]
Date User Action Args
2008-09-09 16:07:13jjdominguezmsetrecipients: + jjdominguezm
2008-09-09 16:07:13jjdominguezmsetmessageid: <>
2008-09-09 16:07:12jjdominguezmlinkissue3821 messages
2008-09-09 16:07:12jjdominguezmcreate