[issue9217] 2to3 crashes with some doctests
Tiago Antao
report at bugs.python.org
Sun Jul 11 18:13:08 CEST 2010
Tiago Antao <tiagoantao at gmail.com> added the comment:
A few more problematic examples (hope it helps)
>>> my_mseq = MutableSeq("MKQHKAMIVALIVICITAVVAAL", \
IUPAC.protein)
Note the line continuation
>>> rec.letter_annotations["secondary_structure"] = \
(The same pattern)
Another (different)
"""Returns a simple text representation of the codon table
e.g.
>>> import Bio.Data.CodonTable
>>> print Bio.Data.CodonTable.standard_dna_table
>>> print Bio.Data.CodonTable.generic_by_id[1]"""
And (the original)
>>> class CreatePeople(DocSQL.Create):
... \"""
... CREATE TEMPORARY TABLE people
... (id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
... last_name TINYTEXT,
... first_name TINYTEXT)
... \"""
...
Hope it helps
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9217>
_______________________________________
More information about the Python-bugs-list
mailing list