[issue14419] Faster ascii decoding

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: +if (((size_t) p & LONG_PTR_MASK) == ((size_t) q & LONG_PTR_MASK)) { This test looks. I think that it should be replaced by: if (!((size_t) q & LONG_PTR_MASK)) { -- ___ Python tracker

[issue14420] winreg SetValueEx DWord type incompatible with value argument

2012-03-26 Thread Bob
New submission from Bob : When calling winreg.SetValueEx(key, value_name, reserved, type, value), the value argument does not support the full range of a 32 bit unsigned integer, which the Window's registry API is expecting. For example, passing a value 0x8000 will result in the following

[issue14419] Faster ascii decoding

2012-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > +if (((size_t) p & LONG_PTR_MASK) == ((size_t) q & LONG_PTR_MASK)) { > This test looks. I think that it should be replaced by: > if (!((size_t) q & LONG_PTR_MASK)) { "if (!((size_t) p & LONG_PTR_MASK)) {" if sizeof(long) <= sizeof(void *). And rewr

[issue14419] Faster ascii decoding

2012-03-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25034/decode_ascii_2.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue14409] IDLE does not execute any commands (command prompt works fine!)

2012-03-26 Thread Ankit Agrawal
Ankit Agrawal added the comment: Hello Roger, Thanks much for the comment. What you're saying seems right! I've tried renaming the .idlerc folder (which I did find in my home folder) but this just gives me an error. See Image: http://dl.dropbox.com/u/32209936/rename%20problem.jpg After a fe

[issue14409] IDLE does not execute any commands (command prompt works fine!)

2012-03-26 Thread Roger Serwy
Roger Serwy added the comment: I'm glad to hear that IDLE now works. IDLE will recreate .idlerc if it doesn't exist and populate it with your settings. If you can, please post your original, broken .cfg files. I'll try to decipher the cause of the original problem. -- status: open ->

[issue14416] syslog missing constants

2012-03-26 Thread R. David Murray
R. David Murray added the comment: LOG_SYSLOG and LOG_UUCP have been present in Python for a *long* time (since 1998 at least). The other two are not. What fallbacks should be used if they don't exist? (I believe you meant 'facilities', rather than 'priorities'.) -- keywords: +easy

[issue14419] Faster ascii decoding

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: +#if SIZEOF_LONG <= SIZEOF_VOID_P +if (!((size_t) p & LONG_PTR_MASK)) { I wrote "q", not "p". You have to check p and q alignement to be able to dereference p and q pointers. sizeof(long) <= sizeof(void*) is always true. -- __

[issue12649] email.Header ignores maxlinelen when wrapping encoded words

2012-03-26 Thread R. David Murray
R. David Murray added the comment: Looking at this again, as_string defaults to maxheaderlen=0, which means no wrapping. In Python 3.2 you can pass it a maxheaderlen of 78 to get the correct behavior for passing the message to smtp. -- resolution: -> invalid stage: -> committed/rej

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: > It could be interesting to replace time.time() > by the new time.monotonic(). The issue #12822 asks to use monotonic clocks when available. -- nosy: +haypo ___ Python tracker _

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-03-26 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg156882 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7946] Convoy effect with I/O bound threads and New GIL

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: > gettimeofday returns you wall clock time: if a process > that modifies time is running, e.g. ntpd, you'll likely > to run into trouble. the value returned is _not_ monotonic, > ... The issue #12822 asks to use monotonic clocks when available. -- nosy

[issue14131] test_threading failure on WIndows 7 3.x buildbot

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: > It could be interesting to replace time.time() > by the new time.monotonic(). I changed threading (at least in threading.py) and queue modules to replace time.time() by time.steady() in the issue #14222. Other places in the threading module should be modifi

[issue14399] zipfile and creat/update comment

2012-03-26 Thread Jeff Knupp
Jeff Knupp added the comment: I'm unable to reproduce on either 2.7 or 3.3. Running the following: from zipfile import ZipFile z=ZipFile('test.zip','a') z.comment='Create a new comment' z.close() produces the output: Archive: test.zip Create a new comment with the comment changed to b'...'

[issue14417] dict RuntimeError workaround

2012-03-26 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14399] zipfile and creat/update comment

2012-03-26 Thread R. David Murray
R. David Murray added the comment: Hmm. When I did the same (changed to b'...') and ran it, I got an archive test.zip. When I then opened that archive using ZipFile, its comment attribute was b''. Thus I concluded that the bug exists in Python3. I don't remember seeing any output from run

[issue13608] remove born-deprecated PyUnicode_AsUnicodeAndSize

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: The Py_UNICODE* type is deprecated but since Python 3.3, Py_UNICODE=wchar_t and wchar_t* is a common type on Windows. PyUnicode_AsUnicodeAndSize() is used to encode Python strings to call Windows functions. PyUnicode_AsUnicodeAndSize() is preferred over PyUni

[issue14405] Some "Other Resources" in the sidebar are hopelessly out of date

2012-03-26 Thread Eric Snow
Eric Snow added the comment: +0 as long as the linked pages don't go anywhere. They've been great resources, containing some information that is not located elsewhere. -- nosy: +eric.snow ___ Python tracker

[issue5301] add mimetype for image/vnd.microsoft.icon (patch)

2012-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e7f6f931e09 by R David Murray in branch '2.7': #5301: re-add image/vnd.microsoft.icon per discussion http://hg.python.org/cpython/rev/3e7f6f931e09 -- ___ Python tracker

[issue5301] add mimetype for image/vnd.microsoft.icon (patch)

2012-03-26 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7652] Merge C version of decimal into py3k.

2012-03-26 Thread STINNER Victor
STINNER Victor added the comment: You may now close the issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4528] test_httpservers consistently fails - OSError: [Errno 13] Permission denied (e.g. on OS X using tarball, but not svn tag r30)

2012-03-26 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate status: open -> closed superseder: -> test_httpservers on Debian Testing ___ Python tracker ___

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-26 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14421] Avoid ResourceWarnings in ccbench

2012-03-26 Thread Jeff Knupp
New submission from Jeff Knupp : ccbench.py warns about unclosed sockets in the bandwidth test. Fix to close socket properly at end of test. -- components: Demos and Tools files: ccbench.patch keywords: patch messages: 156891 nosy: Jeff.Knupp priority: normal severity: normal status: op

[issue14416] syslog missing constants

2012-03-26 Thread Edward Yang
Edward Yang added the comment: I misspoke about UUCP. SYSLOG appears to be missing from the documentation. Arguably they should be present if Linux supports them, and missing if they don't (same as LOG_PERROR, and some of the other constants.) Then you can do feature detection Python-side. -

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-03-26 Thread Eli Bendersky
Eli Bendersky added the comment: There are two parallel discussions going on here: 1. The external ReST documentation 2. The internal docstring documentation I opened the issue with (1) in focus, since it's more important IMHO. Not only for the usual reasons (most users don't go into the sour

[issue14421] Avoid ResourceWarnings in ccbench

2012-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 505aea930985 by Georg Brandl in branch 'default': Closes #14421: use with statement to properly close socket in bandwidth test. http://hg.python.org/cpython/rev/505aea930985 -- nosy: +python-dev resolution: -> fixed stage: -> committed/re

[issue14411] outdatedness on rlcompleter docstring

2012-03-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37751d1cb4a8 by Georg Brandl in branch '3.2': Closes #14411: remove outdated comment in rlcompleter docstring. http://hg.python.org/cpython/rev/37751d1cb4a8 New changeset 39d1c2c7bcf7 by Georg Brandl in branch '2.7': Closes #14411: remove outdated

[issue14416] syslog missing constants

2012-03-26 Thread Federico Reghenzani
Changes by Federico Reghenzani : -- keywords: +patch Added file: http://bugs.python.org/file25036/mywork.patch ___ Python tracker ___

[issue14419] Faster ascii decoding

2012-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > +#if SIZEOF_LONG <= SIZEOF_VOID_P > +if (!((size_t) p & LONG_PTR_MASK)) { > > I wrote "q", not "p". You have to check p and q alignement to be able > to dereference p and q pointers. Initial q (destination) is always pointer-aligned, because PyASCIIObj

<    1   2