Python output printed too late
Bug #271742 reported by
Antti Kaihola
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyreport |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When compiling the attached .py source, the output from one of the Python "print" statements doesn't appear below the statement. It's printed just before the output of the next statement instead.
I'm on Ubuntu Hardy and running the current trunk of pyreport:
revision-id: <email address hidden>
date: 2008-01-28 10:52:23 +0100
build-date: 2008-09-18 16:18:30 +0300
revno: 26
branch-nick: pyreport
To post a comment you must log in.
This is (sort of) fixed under revno 35 running under python 2.6. Some weirdness was going on with the parsing code that behaves differently between the versions. Unfortunately, now all code blocks are preceded by a blank line, and code output follows the subsequent rst comment. This should be a pretty easy fix, I'm having a go at it now.