homepage

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 belopolsky
Recipients belopolsky, doerwalter, eric.araujo, ezio.melotti, georg.brandl, gpolo, lambacck, rhettinger, vstinner
Date 2010年11月22日.15:27:45
SpamBayes Score 2.1746828e-07
Marked as misclassified No
Message-id <AANLkTikABRzx65FtAd1=-ToJ3qS6wgcoD9S+k0e3JEdm@mail.gmail.com>
In-reply-to <1290437301.3.0.392484106832.issue10087@psf.upfronthosting.co.za>
Content
On Mon, Nov 22, 2010 at 9:48 AM, Chris Lambacher <report@bugs.python.org> wrote:
..
> I don't understand what you mean by "elides the line breaks in output".
It is actually not that bad:
$ ./python.exe -m calendar -t html| wc -l
 121
$ python2.7 -m calendar -t html| wc -l
 122
At first, I thought that html was printed one line at a time, but now
I realize that it is prepared in-memory and printed in one shot. The
extra '\n' in python2.7 is probably a bug in 2.7.
I think this is a reasonable approach. Just a few comments on the patch:
1. Unit tests needed.
2. It may be appropriate to add a warning to the documentation stating
that using -e option may mess up the terminal.
3. In the following snippet, p is an unconditional shortcut to
sys.stdout.buffer.write. I would just call it "write"
 optdict = dict(encoding=encoding, css=options.css)
+ p = sys.stdout.buffer.write
4. While white space consistency with 2.7 is not very important, the
following should be fixed, IMO:
$ ./python.exe -m calendar -e ascii| wc -l
 35
$ ./python.exe -m calendar| wc -l
 36
5. I wonder how ./python.exe -m calendar -e ascii will look on
Windows. I don't think cmd window is smart about displaying unix line
endings.
History
Date User Action Args
2010年11月22日 15:27:47belopolskysetrecipients: + belopolsky, doerwalter, georg.brandl, rhettinger, vstinner, gpolo, ezio.melotti, eric.araujo, lambacck
2010年11月22日 15:27:45belopolskylinkissue10087 messages
2010年11月22日 15:27:45belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /