[issue11164] xml shouldn't use _xmlplus

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c7984bae459 by Martin v. Löwis in branch '2.7': Issue 11164: Remove obsolete allnodes test from minidom test. http://hg.python.org/cpython/rev/6c7984bae459 -- ___ Python tracker

[issue11164] xml shouldn't use _xmlplus

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61798f076676 by Martin v. Löwis in branch '3.1': Stop trying to use _xmlplus in the xml module. Closes #11164. http://hg.python.org/cpython/rev/61798f076676 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: op

[issue11164] xml shouldn't use _xmlplus

2011-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: allnodes was deleted in 5b3fbff05ffd -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.1 ___ Python tracker ___ _

[issue12026] Support more of MSI api by exposing handles

2011-05-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd rather expose the missing functions, than supporting a mix of this module with a ctypes one; this patch sounds hackish. -- ___ Python tracker ___

[issue11347] libpython3.so: Broken soname and linking

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 749686064642 by Martin v. Löwis in branch '3.2': Use --as-needed when linking libpython3.so. Closes #11347. http://hg.python.org/cpython/rev/749686064642 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3cbbb2a7c56d by Ezio Melotti in branch '2.7': #11910: Fix test_heapq to skip the C tests when _heapq is missing. http://hg.python.org/cpython/rev/3cbbb2a7c56d New changeset 677ee366c9f5 by Ezio Melotti in branch '3.1': #11910: Fix test_heapq to ski

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ab1eb027856 by Ezio Melotti in branch '3.1': #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. http://hg.python.org/cpython/rev/3ab1eb027856 New changeset 754bafe8db5f by Ezio Melotti in branch

[issue8809] smtplib should support SSL contexts

2011-05-08 Thread Kasun Herath
Kasun Herath added the comment: Yes, I would like to have a try at it -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset c1a12a308c5b by Ezio Melotti in branch '2.7': #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. http://hg.python.org/cpython/rev/c1a12a308c5b -- nosy: +python-dev __

[issue12025] strangely missing separator in "resource" table

2011-05-08 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Cntl+0 "fixes" it. I was not aware of having set a zoom level for python website. Sorry for wasting your time. PS: FF should no "drop" details like that. Whatever :). -- resolution: -> invalid status: open -> closed ___

[issue9584] Allow curly brace expansion

2011-05-08 Thread Mathieu Bridon
Mathieu Bridon added the comment: Is anybody still reading this? :-/ Could somebody commit the patch, reject it, or tell me what else I need to do? -- ___ Python tracker ___ ___

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9923] mailcap module may not work on non-POSIX platforms if MAILCAPS env variable is set

2011-05-08 Thread Gregory Nofi
Gregory Nofi added the comment: It's just theoretical. A web search shows that a few Windows programs, like PC Pine, can use $MAILCAPS. But none of those tools look recent, like you said. -- ___ Python tracker ___

[issue12025] strangely missing separator in "resource" table

2011-05-08 Thread Ezio Melotti
Ezio Melotti added the comment: If I zoom out (Ctrl+-) with FF4 one of the lines (the one between 9 and 10 for me) disappear. Try Ctrl+0 to fix it. -- nosy: +ezio.melotti ___ Python tracker _

[issue12032] Tools/Scripts/crlv.py needs updating for python 3+

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset f94d74c85dcb by Victor Stinner in branch 'default': Close #12032: Fix scripts/crlf.py for Python 3 http://hg.python.org/cpython/rev/f94d74c85dcb -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue9971] Optimize BufferedReader.readinto

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It would be nice if you can also patch _pyio. I read sometimes _pyio > to check how _io is implemented. Well, _pyio implements the same APIs but it doesn't necessarily use the same algorithms. -- ___ Python tracke

[issue9971] Optimize BufferedReader.readinto

2011-05-08 Thread STINNER Victor
STINNER Victor added the comment: It would be nice if you can also patch _pyio. I read sometimes _pyio to check how _io is implemented. -- nosy: +haypo ___ Python tracker ___ __

[issue9971] Optimize BufferedReader.readinto

2011-05-08 Thread John O'Connor
Changes by John O'Connor : Added file: http://bugs.python.org/file21941/issue9971-like-java.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue9971] Optimize BufferedReader.readinto

2011-05-08 Thread John O'Connor
John O'Connor added the comment: I experimented with a bunch of different options. All benchmarks performed with: $ for i in 1 4 128 256 1024 2048 4069 8192; do echo -n "buffer_size=${i} "; ./python -m timeit -s "f=open('LICENSE','rb');b=bytearray(${i})" \ "f.seek(0)" "while f.readinto(b): p

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-05-08 Thread STINNER Victor
STINNER Victor added the comment: @eric.araujo, @tarek: do you prefer nonexistent_user.patch? I removed sysconfig_getuserbase.patch, because I agree that an expanded path containing "~" is a bug. -- ___ Python tracker

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-05-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21640/sysconfig_getuserbase.patch ___ Python tracker ___ ___ Python-bugs-

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-08 Thread STINNER Victor
STINNER Victor added the comment: Patch: signal.signal() and signal.siginterrupt() raise an OSError, instead of a RuntimeError: OSError has an errno attribute. -- keywords: +patch Added file: http://bugs.python.org/file21939/signal_oserror.patch ___

[issue11888] Add C99's log2() function to the math library

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d1cbfcee45a by Victor Stinner in branch 'default': Issue #11888: Add log2 function to math module. Patch written by Mark http://hg.python.org/cpython/rev/6d1cbfcee45a -- nosy: +python-dev ___ Python tra

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> status: closed -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > New changeset 5296c3e2f166 by Victor Stinner in branch 'default': > Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional > http://hg.python.org/cpython/rev/5296c3e2f166 Since it's a bugfix, it should probably go into all branches. -- __

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5296c3e2f166 by Victor Stinner in branch 'default': Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional http://hg.python.org/cpython/rev/5296c3e2f166 -- nosy: +python-dev ___ Python tracker

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Updated patch. > > Note: I tried to keep the same enum values for py_ssl_version, it's > maybe useless and so "=1" can be removed. Thank you! PROTOCOL_NAMES should stay private and therefore be named _PROTOCOL_NAMES, IMHO. Keeping the same enum values is wor

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21902/nosslv2.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-08 Thread STINNER Victor
STINNER Victor added the comment: Updated patch. Note: I tried to keep the same enum values for py_ssl_version, it's maybe useless and so "=1" can be removed. -- Added file: http://bugs.python.org/file21938/nosslv2-2.patch ___ Python tracker

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here's a patch for the new approach. CancelIoEx is loaded dynamically and, if unavailable, CancelIo is used instead. I take care to cancel or complete the I/O in the same method call where it is initiated, meaning there's no thread-specificity issues. (of

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the explanations. This sounds like an interesting path. > Each thread implementation (thread_pthread.h, thread_nt.h) > would provide a new PyThread_reinit_lock function that would do the > right thing (pthread_mutex_destroy/init, sem_destroy/init, et

[issue11983] Inconsistent hash and comparison for code objects

2011-05-08 Thread Eugene Toder
Eugene Toder added the comment: Btw, disabling dedup for codes won't be the first exception -- we already avoid coalescing -0.0 with 0.0 for float and complex, even though they compare equal. -- ___ Python tracker

[issue11983] Inconsistent hash and comparison for code objects

2011-05-08 Thread Eugene Toder
Eugene Toder added the comment: It appears that * co_name was added to hash and cmp in this check-in by Guido: http://hg.python.org/cpython-fullhistory/diff/525b2358721e/Python/compile.c I think the reason was to preserve function name when defining multiple functions with the same code in one

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file21875/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : The code for check_GetFinalPathNameByHandle() goes like this: static int has_GetFinalPathNameByHandle = 0; [...] static int check_GetFinalPathNameByHandle() { HINSTANCE hKernel32; /* only recheck */ if (!has_GetFinalPathNameByHandle) {

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-08 Thread STINNER Victor
STINNER Victor added the comment: > New changeset f8c49a930015 by Victor Stinner in branch 'default': > Issue #8407: The signal handler writes the signal number as a single byte Wakeup test using two pending signals fails on FreeBSD 6.4 buildbot: ===

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Ezio Melotti
Ezio Melotti added the comment: BTW, if the fix for import_fresh_module is OK, it should be committed separately. The tests I added to check that the C functions are really C functions could stay in test_heapq or they could be moved to test_test_support (see #11049), possibly together with te

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-05-08 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a patch that fixes import_fresh_module to return None when _heapq is missing and skips the C test when _heapq is missing. I also added an additional test to verify that the functions in c_heapq are really C functions and the ones in py_heapq are really

[issue10581] Review and document string format accepted in numeric data type constructors

2011-05-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, May 7, 2011 at 11:25 AM, Éric Araujo wrote: > .. On one hand, I tend to agree that mixing Hindi/Arab numerals with Bengali > does not make sense; > on the other hand, rejecting it means that the int code does know about > Unicode, which you argu

[issue12033] AttributeError: 'module' object has no attribute 'scipy'

2011-05-08 Thread Alex Gaynor
Alex Gaynor added the comment: This bug tracker is for filing bugs in Python itself, for support with 3rd party libraries you should try their mailing lists or IRC channels. -- nosy: +alex resolution: -> invalid status: open -> closed ___ Python tr

[issue12031] subprocess module does not accept file twice

2011-05-08 Thread Charles-François Natali
Charles-François Natali added the comment: It's a duplicate of issue #11432: http://bugs.python.org/issue11432 -- nosy: +neologix resolution: -> out of date status: open -> closed superseder: -> webbrowser.open on unix fails. ___ Python tracker

[issue12033] AttributeError: 'module' object has no attribute 'scipy'

2011-05-08 Thread Alex Lai
New submission from Alex Lai : Hi experts, I'm new to Python. I've just successfully compiled and installed NumPy and SciPy. When I run the tests, Numpy shows no issues: # python3 -c "import numpy; numpy.test()" Running unit tests for numpy NumPy version 1.5.1 NumPy is installed in /usr/local

[issue12031] subprocess module does not accept file twice

2011-05-08 Thread Catalin Iacob
Catalin Iacob added the comment: I can reproduce this on 3.2 final but not on the tip of the 3.2 branch so it seems to have been fixed. -- nosy: +catalin.iacob ___ Python tracker _

[issue12032] Tools/Scripts/crlv.py needs updating for python 3+

2011-05-08 Thread Stephen Ferg
New submission from Stephen Ferg : I think this is a consequence of the new Unicode support in Python 3+ Here is code copied from C:\Python32\Tools\Scripts\crlf.py (on windows) == for filename in os.listdir("."): if os.p

[issue12031] subprocess module does not accept file twice

2011-05-08 Thread marko kreen
New submission from marko kreen : I want to pass /dev/null as stdin and stderr. This works from python 2.4 .. 3.2a3 It fails in final 3.2 with 'Bad file descriptor': Traceback (most recent call last): File "test.py", line 11, in Popen(['cat', 'file.txt'], stdout = PIPE, stdin = _in, std

[issue8809] smtplib should support SSL contexts

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, the patch looks good. A simple test could probably be added to test_smtpnet, along the lines of the existing tests, do you want to tackle that? -- stage: needs patch -> patch review ___ Python tracker

[issue9971] Optimize BufferedReader.readinto

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The trade-off of accommodating a small buffer size (by buffering > behind the scenes anyways) would likely slow the more common cases > which use a decent buffer size. I am wondering if an effort to > accommodate both uses would be appropriate. Possibly by not

[issue11164] xml shouldn't use _xmlplus

2011-05-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I suggest to remove dead code in test_minidom in Python 2.7 to avoid confusion. -- Added file: http://bugs.python.org/file21934/python-2.7-test_minidom-remove_dead_code.patch ___ Python tracker

[issue12030] Roundup Refused Update with No text/plain

2011-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: This belongs on http://psf.upfronthosting.co.za/roundup/meta/. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___

[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 to be plain text. The messag

[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) 338 {

[issue11164] xml shouldn't use _xmlplus

2011-05-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I have verified that xml.dom.minidom.Node from neither stdlib (at least 2.6, 2.7, 3.1, 3.2 and 3.3) nor PyXML 0.8.4 has 'allnodes' attribute. If you install PyXML 0.8.4 for Python 2.7 and change 'pass' in MinidomTest.tearDown() into 'rais

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-05-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like a bug in the third-party "socks" module rather than in urllib. You should report it there. -- nosy: +pitrou resolution: -> invalid status: open -> pending ___ Python tracker

[issue12029] ABC registration of Exceptions

2011-05-08 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12029] ABC registration of Exceptions

2011-05-08 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12029] ABC registration of Exceptions

2011-05-08 Thread andrew cooke
New submission from andrew cooke : Hi, In general, registering a class with an ABC is equivalent to making it a subclass (isinstance and issubclass are patched through ABCMeta). However, this does not work for exceptions (see example below, where exception is not caught). This doesn't seem

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Steffen, I don't understand your comment about "auto". Declaring variables as "auto" is not necessary in C code and not used anywhere else in Python's source code. -- ___ Python tracker

[issue12026] Support more of MSI api by exposing handles

2011-05-08 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: You can pass it to any function in the MSI SDK through ctypes. e.g. def ReadStream(record, field): buf = (ctypes.c_char * 2048)() orig_size = ctypes.sizeof(buf) status = 0 res = [] while status == 0: size