[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Jesús Cea Avión wrote: Jesús Cea Avión added the comment: Thanks for the heads-up, Victor. I have added Marc-Andre Lemburg to the nosy list, so he can know about this issue and can provide feedback (or request a backout for 2.7). Marc-Andre?.

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2012-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Éric Araujo wrote: Éric Araujo mer...@netwok.org added the comment: Feature freeze just came by; sorry we missed this. Given our recent-ish discussion about additions to mimetypes (and the consensus (IIRC) that matching the IANA database can be

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The implementation of platform.architecture shells out to the file command. It tries to escape quotes by replacing with \, but that's not sufficient. $ python3.2 -c 'import platform; platform.architecture(foo\\\; echo Hi there /tmp/Z; echo \\\)'

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Gregory P. Smith
New submission from Gregory P. Smith: Ben Leslie writes this on python-dev: Hi all, I have a Python program where I have many threads each calling Popen, and I was hitting some trouble. I've been seeing this on 3.2.3, however I believe the same issue is still potentially a problem on head.

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16140 ___ ___

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2012-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: IMHO either of these solutions would be fine. * have a PyOS_PutEnv() function, gettext has gettext_putenv() to workaround this problem. This solution would help in many other cases as well, so adding such an API would certainly help more than

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread STINNER Victor
STINNER Victor added the comment: 1.7 -with open(DEV_NULL) as dev_null: 1.8 -proc = subprocess.Popen(['file', '-b', '--', target], 1.9 -stdout=subprocess.PIPE, stderr=dev_null) 1.9 +proc = subprocess.Popen(['file',

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: What you've described makes sense. The file descriptors are indeed conditionally wrapped in file objects using io.open which could lead to a double close in the error case in a threaded application. yuck. 1) The code needs to check if the fd was wrapped

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread STINNER Victor
STINNER Victor added the comment: You can use subprocess in platform for Python 2.7, but only if it's available. Otherwise the module must fall back to the portable popen() that comes with the platform module. Marc-Andre: I still don't understand why you want to run platform.py of Python 2.7

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16112 ___

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Christian Fertig
Christian Fertig added the comment: ok, here's a run with debuglevel for the headers: python 2.7 on openSuSE 11.4: fertig@hornisse:/home/fertig python Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2 Type help, copyright, credits or license for more information. import urllib2

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Christian Fertig
Christian Fertig added the comment: the IP is private and even for testing I can't put it in a public IP range, as the device is an IP Phone with a custom firmware (Siemens optiPoint 420). -- ___ Python tracker rep...@bugs.python.org

[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Ned Deily
Ned Deily added the comment: A popup menu on every invocation of IDLE would be a very user-unfriendly thing to do. If it's possible that a print to stderr might not be visible to a user, another solution might be to use the approach in Lib/idlelib/macosxSupport.py tkVersionWarning which

[issue16136] Removal of VMS support

2012-10-05 Thread Charles-François Natali
Charles-François Natali added the comment: After the blog post, Mathew, Sandeep from HP asked how to help: It was more than a year ago. Has something actually be done? -- nosy: +neologix ___ Python tracker rep...@bugs.python.org

[issue16139] Python 3.3 fails when starting from read-only FS

2012-10-05 Thread Richard Oudkerk
Richard Oudkerk added the comment: This is more or less a duplicate of #15833 (although the errno mentioned there is EIO instead of the more sensible EROFS). -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16139

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Masami HIRATA
Masami HIRATA added the comment: I have tested the workaround and it works correctly. Please see attached log file. -- Added file: http://bugs.python.org/file27429/Python33_with_venv_2.txt ___ Python tracker rep...@bugs.python.org

[issue8800] add threading.RWLock

2012-10-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Thanks Richard. I wonder if the issues with the multiprocessing tests can be fixed by making use of Barriers? One of the reasons I introduced Barriers into the lib originally was my alarm at seeing the various springklings of different _wait() calls

[issue8800] add threading.RWLock

2012-10-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: although I'd prefer a BSD errno example, such as ECONNRESET, instead of a winsock one Are you referring to the comment where I mention ECONNABORTED? That is a regular unix error (windows version is WSAECONNABORTED). This error occurs when the local

[issue16138] In the glossary there is a small typo about __len__() in the sequence definition

2012-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7cf0d8b2744b by Andrew Svetlov in branch '3.2': Issue #16138: fix typo. http://hg.python.org/cpython/rev/7cf0d8b2744b New changeset a093d39fdda4 by Andrew Svetlov in branch '3.3': Merge issue #16138: fix typo.

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Masami HIRATA
Masami HIRATA added the comment: btw, it seems to me that -IC:\Python33\include -IC:\Python33\include should be -IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include. What do you think about it? -- ___ Python tracker rep...@bugs.python.org

[issue16138] In the glossary there is a small typo about __len__() in the sequence definition

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks to py.user -- nosy: +asvetlov resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16138

[issue4821] Patches for thread-support in built-in SHA modules

2012-10-05 Thread Christian Heimes
Christian Heimes added the comment: I'll integrate your patch once I'm done with my SHA-3 patch #16113. I'm using parts of your patch in my new sha3 code to release the GIL. I'll also check if I can share more code between the SHA family modules. -- assignee: - christian.heimes

[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: Added file: http://bugs.python.org/file27431/49a949116245.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16113 ___

[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes
Christian Heimes added the comment: The hightlights of the next patch are * release the GIL * more test vectors * remove bgr_endian.h * move typedef UINT64 to sha3module * declare more globals as static -- ___ Python tracker rep...@bugs.python.org

[issue8800] add threading.RWLock

2012-10-05 Thread Richard Oudkerk
Richard Oudkerk added the comment: Kristjan: you seem to have attached socketserver.patch to the wrong issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8800 ___

[issue14574] SocketServer doesn't handle client disconnects properly

2012-10-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: although I'd prefer a BSD errno example, such as ECONNRESET, instead of a winsock one Are you referring to the comment where I mention ECONNABORTED? That is a regular unix error (windows version is WSAECONNABORTED). This error occurs when the local

[issue8800] add threading.RWLock

2012-10-05 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: Removed file: http://bugs.python.org/file27430/socketserver.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8800 ___

[issue8800] add threading.RWLock

2012-10-05 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- Removed message: http://bugs.python.org/msg172065 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8800 ___

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2012-10-05 Thread Campbell Barton
Campbell Barton added the comment: Agree PyOS_PutEnv would be good since its not restricted to string encoding and resolves the problem of not being able to control env vars for an embedded interpreter in general. Having ways to change encoding is good too but a bit outside the scope of this

[issue8800] add threading.RWLock

2012-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le vendredi 05 octobre 2012 à 09:51 +, Kristján Valur Jónsson a écrit : Then I started to wonder if it were appropriate to use a Barrier in the Condition variable tests, particularly given that the former is implemented by way of the latter :) Indeed,

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: BTW: It's probably better to discuss such patches on the tracker first, before applying them to the code base. It becomes difficult discussing patches that have already been partially applied to the code. Agreed with Marc-André. Jesus, please understand that

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Benno Leslie
Changes by Benno Leslie be...@benno.id.au: -- nosy: +bennoleslie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16140 ___ ___ Python-bugs-list

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Benno Leslie
Benno Leslie added the comment: Regarding #2 my understanding is that the FDs are already always wrapped. E.g: at line http://hg.python.org/cpython/file/b9ac3c44a4eb/Lib/subprocess.py#l798 it shows these always being wrapped (assuming the file descriptor is not -1). For my test case on

[issue16134] Add support for RTMP schemes to urlparse

2012-10-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16134 ___ ___ Python-bugs-list mailing

[issue15528] Better support for finalization with weakrefs

2012-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: In: +except: +sys.excepthook(*sys.exc_info()) I would write except Exception instead. You don't want to trap e.g. KeyboardInterrupt. For clarity, I would also add _dirty = False at the finalize top-level.

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread R. David Murray
R. David Murray added the comment: It looks like the data input is the same in both cases. (Although why does your second example show 'urllib2.Request instance at 0x90d878'? Does urllib2 really output that as part of the debug output?) It is hard to see what could be causing the divergence

[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Yury Selivanov
Yury Selivanov added the comment: I don't know why, but it seems that the bug reappeared in 3.3. Examples: 1. --- (python 3.4 from repo) yury@sxair ~/dev/py/python (master) $ ./python.exe Python 3.4.0a0 (default, Oct 5 2012, 15:08:35) [GCC 4.2.1 Compatible Apple Clang 4.1

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: By using openssl s_client -connect 172.23.6.222:443 you can open a telnet-like session (but using SSL) to your server, and try to type/paste an HTTP request there. That would help check whether it's a Python problem, or something else due to OpenSSL changes.

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Christian Fertig
Christian Fertig added the comment: python3 example, not working on both machines (3.2.1 on openSuSE 12.1 and 3.1.3 on openSuSE 11.4) fertig@wespe:/home/fertig python3 Error in sitecustomize; set PYTHONVERBOSE for traceback: SyntaxError: invalid syntax (sitecustomize.py, line 89) Python 3.2.1

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16140 ___ ___

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Christian Fertig
Christian Fertig added the comment: ok actually it isn't working either with curl or wget. So probably this is not a python problem, it seems more something in the underlying libs: Output from curl on the machine, where python 2.7 is working: fertig@hornisse:/home/fertig curl --insecure

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Christian Fertig
Christian Fertig added the comment: for completeness: the openssl output from the machine, where python 2.7 is working: fertig@hornisse:/home/fertig openssl s_client -connect 172.23.6.222:443 CONNECTED(0003) depth=1 C = DE, L = Munich, O = Siemens AG, OU = Com Enterprise Systems, CN =

[issue16109] urllib2.urlopen throws HTTP Error in python 2.7.2, 2.7.3, but not in python 2.7

2012-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing then. Thanks for the debugging, and good luck :) -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16109

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-05 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine, I agree. I beg your pardon. This patch was suppose to be quite trivial, and test_platform passes just fine on my Linux and Solaris computers. And the four buildbots I was monitoring, the testsuite passed. The suggestion of Marc-Andre of simply

[issue16009] Json error messages could provide more information about the error

2012-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Tests added. One discrepancy between Python an C versions fixed. In fact, we can get rid of StopIteration and directly raise ValueError. I don't know what are the functions of StopIteration here, so preserve it. Perhaps the author could

[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-05 Thread Guido van Rossum
New submission from Guido van Rossum: I just noticed that StreamHandler contains the following fragment in its emit() method: try: do some writing except (KeyboardInterrupt, SystemExit): #pragma: no cover raise except: self.handleError(record) Couldn't this

[issue16142] ArgumentParser inconsistent with parse_known_args

2012-10-05 Thread Idan Kamara
New submission from Idan Kamara: When known and unknown options are given together in the same option string (e.g. -xy) then ArgumentParser behaves in a strange way: - if the known option is given first (so -k is known and the parser is fed with ['-ku']) then the parsing aborts with error:

[issue16142] ArgumentParser inconsistent with parse_known_args

2012-10-05 Thread R. David Murray
R. David Murray added the comment: Looks like parse_known_args needs to be taught to not treat unknown text following an option as an argument if the option does not take an argument. That would be in keeping with its mission, I think :) There will still probably be ambiguous cases that will

[issue8492] Addition to readline module to get dictionary of keystrokes and commands

2012-10-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: A question came up on Python-ideas about readline apparently missing a standard function. See: http://mail.python.org/pipermail/python-ideas/2012-October/016329.html For debugging issues with readline, it would be be very useful to be able to query the

[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- keywords: +3.2regression resolution: fixed - status: closed - open versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111 ___

[issue16142] ArgumentParser inconsistent with parse_known_args

2012-10-05 Thread Idan Kamara
Idan Kamara added the comment: Yes that'd fix the known option before unknown but not the other way around. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16142 ___

[issue16142] ArgumentParser inconsistent with parse_known_args

2012-10-05 Thread R. David Murray
R. David Murray added the comment: Right. I didn't read what you wrote carefully enough. Clearly parse_known_args is buggy here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16142 ___

[issue5845] rlcompleter should be enabled automatically

2012-10-05 Thread Steven D'Aprano
Changes by Steven D'Aprano steve+pyt...@pearwood.info: -- nosy: +stevenjd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5845 ___ ___

[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't know why, but it seems that the bug reappeared in 3.3. Part of it could be that the original fix added no tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Vinay Sajip
Vinay Sajip added the comment: I have tested the workaround and it works correctly. Please see attached log file. Thanks for the update. btw, it seems to me that -IC:\Python33\include -IC:\Python33\include should be -IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include. Could

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116 ___ ___

[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16123 ___ ___

[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Brett Cannon
Brett Cannon added the comment: http://hg.python.org/cpython/rev/dc18a2a66d16 did add a test, just not the right one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111 ___

[issue15111] Wrong ImportError message with importlib

2012-10-05 Thread Brett Cannon
Brett Cannon added the comment: Actually, I take it back, it removed a test without adding a new one. Obviously that's my bad. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111 ___

[issue16143] Building with configure option --without-doc-strings crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Gregory Andersen
New submission from Gregory Andersen: Seems unicode_empty is still NULL at this point. A gdb backtrace from an x86_64 build. Reproduced on i686 and mips build as well. Program received signal SIGSEGV, Segmentation fault. 0x0044f61e in PyUnicode_DecodeUTF8Stateful (s=0x59a767 ,

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: I can reproduce this on Windows Vista running 2.7.3. With 3.3.0 I get faulty_time = time.asctime(initial_struct_time) Traceback (most recent call last): File stdin, line 1, in module TypeError: Tuple or struct_time argument required -- nosy:

[issue812369] module shutdown procedure based on GC

2012-10-05 Thread Stefan Friesel
Stefan Friesel added the comment: What is the status of this? Does the patch need more reviewing? -- nosy: +Stefan.Friesel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue812369 ___

[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes
Christian Heimes added the comment: I've documented the optimization options of Keccak. The block also contains a summarization of my modifications of the reference code. http://hg.python.org/sandbox/cheimes/file/57948df78dbd/Modules/_sha3/sha3module.c#l22 --

[issue16143] Building with configure option --without-doc-strings crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: This seems related to #9242: _Py_InitializeEx_Private() calls _Py_ReadyTypes(), which uses the Unicode API, well before actually calling _PyUnicode_Init(). -- nosy: +georg.brandl, skrah priority: normal - release blocker stage: - needs patch

[issue16143] Building with configure option --without-doc-strings crashes first time through PyUnicode_DecodeUTF8Stateful

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: Sorry, wrong issue number: Related to #10156. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16143 ___ ___

[issue10156] Initialization of globals in unicodeobject.c

2012-10-05 Thread Stefan Krah
Stefan Krah added the comment: See also #16143. -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10156 ___ ___

[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Couldn't this be simplified to the following? I think this is idiomatic now (since 2.5). There are some places where similar outdated code used. See the attached patch. There are more dubious places in Lib/multiprocessing/managers.py and Lib/asyncore.py.

[issue16144] misleading sentence in reference/import

2012-10-05 Thread Manuel Pégourié-Gonnard
New submission from Manuel Pégourié-Gonnard: I find the following sentences, from import.rst, section Finders and loaders, misleading: Python includes a number of default finders and importers. One knows how to locate frozen modules, and another knows how to locate built-in modules. in that

[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vinay.sajip stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16141 ___ ___

[issue812369] module shutdown procedure based on GC

2012-10-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: At the moment, it's like that the status of the patch needs to be reestablished. Does it apply? Does it work? Does the test suite still pass? -- ___ Python tracker rep...@bugs.python.org

[issue16144] misleading sentence in reference/import

2012-10-05 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +brett.cannon, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16144 ___ ___

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-05 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've to say that I also ran into that by following coverage numbers and as a newbie is not so easy to see what Raymond told. IMHO that information could be put as a comment. Regards francis -- nosy: +francismb

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2012-10-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16129 ___ ___ Python-bugs-list

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Viktor, what happen when a large positive number (=100) used as tm_hour? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16137

[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Roger Serwy
Roger Serwy added the comment: I agree that a message within the shell would be more informative to the user. The _rev1 patch also adds a message to the shell. -- Added file: http://bugs.python.org/file27437/idle_deprecate_rev1.patch ___ Python

[issue16145] Abort in _csv module

2012-10-05 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Commit f2adbb1065eb introduced abort in _csv module in debug builds in Python 3.3, when using APSW shell. (You need to have SQLite =3.7.14 installed.) $ cd /tmp $ wget http://apsw.googlecode.com/files/apsw-3.7.14-r2.zip $ unzip

[issue16124] fcntl_ioctl still not 100% sane with unsigned longs

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is it affected for 3.3 and 3.4 also? -- nosy: +asvetlov versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16124 ___

[issue16128] hashable documentation error

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please write what exact text you want to see in documentation. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16128 ___

[issue16058] ConfigParser no longer deepcopy compatible in 2.7

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: ConfigParser is not intended to be deep copy-able, at least documentation says nothing about it. -- nosy: +asvetlov, lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16058

[issue16113] Add SHA-3 (Keccak) support

2012-10-05 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: Added file: http://bugs.python.org/file27438/622009fb6192.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16113 ___

[issue16145] Abort in _csv module

2012-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, can you try to enable core dumps and get a complete stack trace? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16145 ___

[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks good for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16123 ___ ___ Python-bugs-list mailing list

[issue14574] SocketServer doesn't handle client disconnects properly

2012-10-05 Thread Charles-François Natali
Charles-François Natali added the comment: Are you referring to the comment where I mention ECONNABORTED? That is a regular unix error (windows version is WSAECONNABORTED). This error occurs when the local stack decides to kill the connection, as opposed to ECONNRESET which occurs on

[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0430986a8c03 by Andrew Svetlov in branch 'default': Issue #16123: IDLE - deprecate running without a subprocess. http://hg.python.org/cpython/rev/0430986a8c03 -- nosy: +python-dev ___ Python tracker

[issue16139] Python 3.3 fails when starting from read-only FS

2012-10-05 Thread Charles-François Natali
Charles-François Natali added the comment: This is more or less a duplicate of #15833 Indeed, closing as duplicate. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - most failures to write byte-compiled file no longer suppressed type: crash

[issue16123] IDLE - deprecate running without a subprocess

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Change priority to deferred blocker for reminding to remove no-subprocess mode in 3.5. Thanks, Roger. -- priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-05 Thread Charles-François Natali
Charles-François Natali added the comment: We should probably catch all OSErrors, and log a warning in verbose mode, as suggested by Antoine. Catching individual errnos is tedious and error-prone. -- nosy: +neologix ___ Python tracker

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-05 Thread STINNER Victor
STINNER Victor added the comment: Issue #16139 has been marked as a duplicate of this issue. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15833 ___

[issue13896] Make shelf instances work with 'with' as context managers

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Filip, please describe why you prevent closing if writeback attribute is not present. I see comment for __del__ related to #1339007, but at __exit__ call __enter__ has called already and __init__ has finished definitely with success. Also I would to see

[issue13896] Make shelf instances work with 'with' as context managers

2012-10-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- assignee: - asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13896 ___ ___

[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0df5aeab229f by Andrew Svetlov in branch '3.3': Issue #16115: Add test for check that executable arg to Popen() takes precedence over args[0] arg\n\n Patch by Kushal Das

[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Committed. Thank you, Kushal Das. BTW, please fill http://www.python.org/psf/contrib/ as contributor of Python project. We would to get that agreement from everybody who has pushed any patch. Thanks again. -- ___

[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16115

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe better to fix Windows behavior for unifying FileNotFoundError? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16114 ___

[issue16146] MIMEApplication cannot access

2012-10-05 Thread yinian1992
New submission from yinian1992: I have a python 2.7.3 installation both on Debian 6 and Windows 7. And under both environment email.mime.application cannot access. email.mime.application Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no

[issue16115] test that executable arg to Popen() takes precedence over args[0] arg

2012-10-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: Actually, I was still working on this. I had assigned it to myself. +p = subprocess.Popen([nonexistent,-c,'import sys; sys.exit(42)'], +executable=sys.executable, cwd=python_dir) The test for the executable argument should

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: I will be opening a separate issue to have the same behavior in a future version after this issue is closed. For existing releases, we don't want to break working code that could be relying on the difference. --

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-05 Thread Chris Jerdonek
Chris Jerdonek added the comment: Sorry, I was confusing this issue with issue 15533. Yes, I support adding the file path to the error message in the Windows implementation, though my preference would be for that to be addressed as part of a separate issue. --

[issue16145] Abort in _csv module

2012-10-05 Thread Roger Binns
Roger Binns added the comment: I'm the APSW author. You do not need SQLite installed - APSW's setup can fetch the current SQLite and use it privately not affecting the rest of the system. An easier way of testing is: python3 setup.py fetch --sqlite --version 3.7.14 build_ext --inplace

[issue16146] MIMEApplication cannot access

2012-10-05 Thread R. David Murray
R. David Murray added the comment: This is by design. If you want to load the application module, you have to do so explicitly: import email.mime.application This is similar to the way many other packages are organized. An __init__ file importing a submodule is the (relatively)

  1   2   >