[issue9217] 2to3 crashes with some doctests

2010-09-05 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9217] 2to3 crashes with some doctests

2010-09-04 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: This seems to be fixed in 3.2 and the 2.7 maintenance branch, but here's a (one-liner) patch for people who want to fix their local installations. -- keywords: +patch nosy: +jerith Added file: http://bugs.python.org/file18750/2to3_log_fix.patch _

[issue9217] 2to3 crashes with some doctests

2010-07-28 Thread Peter
Peter added the comment: Reverted accidental title change - had keyboard focus on the page not the address bar I think. Sorry! -- title: 2to3 doctests -> 2to3 crashes with some doctests ___ Python tracker _

[issue9217] 2to3 crashes with some doctests

2010-07-28 Thread Peter
Changes by Peter : -- nosy: +maubp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue9217] 2to3 crashes with some doctests

2010-07-14 Thread Tiago Antao
Tiago Antao added the comment: I've re-opened this bug because of the late examples that I've included that still crash. I can open a new bug if you prefer with the late examples (just tell me and I will open a new bug). This is somewhat important for us: In order to be able to release a Pyth

[issue9217] 2to3 crashes with some doctests

2010-07-11 Thread Tiago Antao
Tiago Antao added the comment: Another example >>> records = (record for record in \ SeqIO.parse("Roche/E3MFGYR02_random_10_reads.sff","sff") \ if record.seq[record.annotations["cli [...] Note that ... does not apply here (it will fail on python2 doctests) -

[issue9217] 2to3 crashes with some doctests

2010-07-11 Thread Tiago Antao
Tiago Antao 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) Anoth

[issue9217] 2to3 crashes with some doctests

2010-07-11 Thread Éric Araujo
Éric Araujo added the comment: Could it be because of the escaped triple quotes? -- nosy: +merwok ___ Python tracker ___ ___ Python-bu

[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao
Tiago Antao added the comment: BTW, this happens in 2.6 also -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mail

[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao
Tiago Antao added the comment: Benjamin, Thanks for the fast answer. I attach the problematic file. This file is from Biopython. We are trying to have a Python 3 version of it. We applied 2to3 (no -d) first (via distutils on setup.py build) and I was applying 2to3 -d manually after it. -

[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r82779. I'm curious as to what it's failing on. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker

[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao
Changes by Tiago Antao : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao
New submission from Tiago Antao : 2to3 -d sometimes crashes. The problem seems to be in refactor_doctest. The problematic line is: if self.log.isEnabledFor(logging.DEBUG): self.log does not exist. The error, as expected: File "/usr/lib/python3.1/lib2to3/refactor.py", line 516, in refactor_doct