[issue30428] mailbox.MMDF wrongly adds From_ header to file

2017-05-22 Thread Ralph Corderoy
New submission from Ralph Corderoy: Class mailbox.MMDF supports the MMDF-mail-spool file format. This is a file with zero or more records, each starts and ends with a line of four ASCII SOHs. Within those two lines is an email in RFC 5532 format, i.e. a headers section followed by an

[issue30128] xid_start definition for Unicode identifiers refers to xid_continue

2017-04-21 Thread Ralph Corderoy
New submission from Ralph Corderoy: https://docs.python.org/3/reference/lexical_analysis.html#identifiers has a grammar. identifier ::= xid_start xid_continue* id_start ::= id_continue ::= xid_start::= xid_continue ::= I struggle to make sense of it

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2012-01-28 Thread Ralph Corderoy
Ralph Corderoy added the comment: This most certainly is a bug under Unix and an annoying one. "Since the issue is with platform's stdio library" is wrong; stdio is being used incorrectly. It would be nice to see it fixed in the 2.x line. I've two test programs.

[issue12030] Roundup Refused Update with No text/plain

2011-05-08 Thread Ralph Corderoy
New submission from Ralph Corderoy : I tried to reply to the email I was sent when eric.araujo added a comment to #10713. The email I sent was plain text but wasn't a MIME email. It was rejected, "Failed issue tracker submission", "Roundup requires the submission t

[issue10713] re module doesn't describe string boundaries for \b

2011-05-08 Thread Ralph Corderoy
Ralph Corderoy added the comment: Examining the source of Ubuntu's python2.6 2.6.6-5ubuntu1 package suggests beyond the limits of the string is considered \W, like Perl. Modules/_sre.c: 336 LOCAL(int) 337 SRE_AT(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at)

[issue10713] re module doesn't describe string boundaries for \b

2010-12-15 Thread Ralph Corderoy
New submission from Ralph Corderoy : The re module defines \b in a regexp to need \w one side and \W the other. What about when the end of the string or line is involved? perlre(1) says that's treated as a \W. Python should precisely document that case too. -- assignee: d...@p

[issue10145] (4.2).is_integer() is undocumented.

2010-10-19 Thread Ralph Corderoy
New submission from Ralph Corderoy : floats now have an is_integer() method. I think it was added in 2.6 around the same time as as_integer_ratio(). It has a docstring but it isn't mentioned in the documentation. I only idled across it when reading the C source. I'd expect to fi

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-24 Thread Ralph Corderoy
Ralph Corderoy added the comment: fileLineIter() is not a solution that allows this bug to be closed, no. readline() needs modifying and if that means python-dev discussion then that's what it needs. Things to consider include changing the record separator as the file is read. $ prin

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-01 Thread Ralph Corderoy
Ralph Corderoy added the comment: Google has led me here because I'm trying to see how to process find(1)'s -print0 output with Python. Perl's -0 option and $/ variable makes this trivial. find -name '*.orig' -print0 | perl -n0e unlink awk(1) has its RS, recor

[issue8220] site.py's Quitter pollutes builtins with exit and quit for non-interactive use

2010-03-24 Thread Ralph Corderoy
New submission from Ralph Corderoy : A friend wrote "exit(0)" in a script without an import of sys. I pointed out the error and he said "But it works". He was right. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubu

[issue5987] Broken link to "Curses Programming with Python"

2009-05-11 Thread Ralph Corderoy
Ralph Corderoy added the comment: Does that mean it's policy not to correct documentation for non-latest versions? Fair enough. But perhaps http://www.python.org/doc/2.5.2/lib/about.html should be changed to reflect that, and likewise on other non-latest versions, e.g. "If the pro

[issue5987] Broken link to "Curses Programming with Python"

2009-05-10 Thread Ralph Corderoy
New submission from Ralph Corderoy : http://www.python.org/doc/2.5.2/lib/module-curses.html links to http://docs.python.org/dev/howto/index.htmlcurses/curses.html as "Curses Programming with Python" but it's 404 Not Found. It may be that this link is broken in other Python ver

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Ralph Corderoy
Changes by Ralph Corderoy : ___ Python tracker <http://bugs.python.org/issue4753> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue4753] Faster opcode dispatch on gcc

2009-01-04 Thread Ralph Corderoy
Ralph Corderoy added the comment: Regarding compressing the opcode table to make better use of cache; what if the most frequently occurring opcodes where placed together, e.g. the opcodes were ordered by frequency, most frequent first. Just based on a one-off static analysis of a body of code

[issue3758] "make check" suggest a testing target under GNU coding standards

2008-10-03 Thread Ralph Corderoy
Ralph Corderoy <[EMAIL PROTECTED]> added the comment: The patchcheck target isn't in .PHONY at the end of the file. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3845] memory access before short string when checking suffix

2008-09-13 Thread Ralph Corderoy
Changes by Ralph Corderoy <[EMAIL PROTECTED]>: -- nosy: +ralph.corderoy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3845> ___ __

[issue3758] "make check" suggest a testing target under GNU coding standards

2008-09-02 Thread Ralph Corderoy
New submission from Ralph Corderoy <[EMAIL PROTECTED]>: A new target, "check", has been added to Makefile for 2.6. It runs some tests on the source code that are intended to check there's nothing wrong before preparing a patch. http://svn.python.org/view/python/trunk/Make