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

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: If you like, you can make the added line conditional on "if sys.base_exec_prefix != sys.prefix", which is the form the actual fix is likely to take. Thus: if sys.base_exec_prefix != sys.prefix: self.library_dirs.append(os.path.join(sys

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good, you can click the "create patch" button when it's ready :) -- ___ Python tracker ___ ___ Pytho

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

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Since I expect it may be some time before the next Python release is out, ISTM a temporary workaround would be to add a line following line 192 of Lib\distutils\command\build_ext.py, which reads self.library_dirs.append(os.path.join(sys.exec_prefix, '

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch Added file: http://bugs.python.org/file27419/4509ef9b28a0.diff ___ Python tracker ___ __

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is not a bug, but by design. See PEP 397 for details. -- nosy: +loewis resolution: -> invalid status: open -> closed ___ Python tracker _

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Christian Heimes
Christian Heimes added the comment: How about a sandbox repos? -- hgrepos: +152 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2012-10-04 Thread Nidan
New submission from Nidan: I recently had lots of the following exception: error: uncaptured python exception, closing channel (:[Errno 11] Resource temporarily unavailable [/usr/lib/python2.7/asynchat.py|handle_read|110] [/usr/lib/python2.7/asyncore.py|recv|384]) Error 11 is EAGAIN or EWOUL

[issue16130] "Porting to Python 3.3" needs to be fixed in "What's new In Python 3.4"

2012-10-04 Thread Kushal Das
Kushal Das added the comment: Documentation patch to show correct Python version. -- keywords: +patch nosy: +kushaldas Added file: http://bugs.python.org/file27418/issue_16130.patch ___ Python tracker _

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +stoneleaf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13405] Add DTrace probes

2012-10-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file27417/9030a207c5d6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16132] ctypes incorrectly encodes .format attribute of memory views

2012-10-04 Thread David Beazley
New submission from David Beazley: This is somewhat related to an earlier bug report concerning memory views, but as far as I can tell, ctypes is not encoding the '.format' attribute correctly in most cases. Consider this example: First, create a ctypes array: >>> a = (ctypes.c_double * 3)(

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please review Modules/sha3module.c Can't you post a patch here? -- ___ Python tracker ___ ___ Pyt

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Christian Heimes
Christian Heimes added the comment: Release 0.1 of pysha3 [1] is out. I've tweaked the C module to make it compatible with Python 2.6 to 3.4. The module and its tests run successfully under Linux and Windows. So far I've tested Linux X84_64 (2.7, 3.2, 3.3, 3.4), Windows X86 (2.6, 2.7, 3.2, 3.3

[issue13405] Add DTrace probes

2012-10-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file27416/775eeaf1a707.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue13405] Add DTrace probes

2012-10-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- hgrepos: +151 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-10-04 Thread Carl Meyer
Carl Meyer added the comment: (Actually, to match virtualenv's fix it should add the paths based on both exec_prefix and base_exec_prefix, if they are different.) -- ___ Python tracker

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

2012-10-04 Thread Carl Meyer
Carl Meyer added the comment: On cursory inspection, I agree that this is precisely what the "if win32" block in `virtualenv_embedded/distutils-init.py` is intended to fix, and it seems to me the correct fix is likely to just make the equivalent fix directly in distutils: change the library_di

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: A little more investigation suggests that the disparity is due to some code in virtualenv's version of distutils.__init__.py, which adds the "\Libs" entry which allows the virtualenv version to work. Adding Carl Meyer as nosy, as I'd like his advice on what the be

[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Piotr Dobrogost
New submission from Piotr Dobrogost: Pylauncher in Python 3.3 is being installed in Windows system folder instead of Program Files folder. That's against platform rules. It should be installed in the same folder Python is installed or in its own folder under Program Files folder. In the former

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

2012-10-04 Thread R. David Murray
R. David Murray added the comment: Raymond said he would make a code change relevant to this at some point, so we should probably leave this issue open until he does. (Or if he doesn't want the issue open, we can let him close it). -- nosy: +r.david.murray resolution: invalid -> stag

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

2012-10-04 Thread Jesús Cea Avión
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?. -- nosy: +lemburg ___ Python

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

2012-10-04 Thread R. David Murray
R. David Murray added the comment: So you would see a copy of the string being decoded in the error message? That string might be very long, and would be of doubtful utility. What I had in mind was at least printing the character position of the parse failure. That may also be of limited ut

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

2012-10-04 Thread Michele Orrù
Changes by Michele Orrù : -- keywords: +patch Added file: http://bugs.python.org/file27415/issue16009.patch ___ Python tracker ___ ___

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

2012-10-04 Thread Michele Orrù
Michele Orrù added the comment: > A repr of what? Of the variable "s" in Lib/json/decoder.py#l358 -- ___ Python tracker ___ ___ Python

[issue16120] Use |yield from| in stdlib

2012-10-04 Thread Brett Cannon
Brett Cannon added the comment: How are people finding these uses? Grepping around for yield and seeing if it is in a 'for' loop? Or are people doing something more detailed like an AST walk of every module in the stdlib looking for some pattern? -- nosy: +brett.cannon ___

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

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Comparing the link command which works: C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\python33\Libs /LIBPATH:C:\temp\venv2\libs /LIBPATH:C:\temp\venv2\PCbuild /EXPORT:PyInit__regex build\temp.win32-3.3\Rel

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

2012-10-04 Thread Will Haldean Brown
Will Haldean Brown added the comment: Thanks for the clarification Raymond! -- resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue16126] PyErr_Format format mismatch in _testcapimodule.c

2012-10-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks!. -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16130] "Porting to Python 3.3" needs to be fixed in "What's new In Python 3.4"

2012-10-04 Thread Ramchandra Apte
New submission from Ramchandra Apte: "Porting to Python 3.3" should be "Porting to Python 3.4" in "What's new In Python 3.4" [0] http://docs.python.org/dev/whatsnew/3.4.html#porting-to-python-3-3 -- assignee: docs@python components: Documentation messages: 171951 nosy: docs@python, ram

[issue16126] PyErr_Format format mismatch in _testcapimodule.c

2012-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0fc259ac8733 by Jesus Cea in branch '3.3': Closes #16126: PyErr_Format format mismatch in _testcapimodule.c http://hg.python.org/cpython/rev/0fc259ac8733 New changeset 366c19bb5ca2 by Jesus Cea in branch 'default': MERGE: Closes #16126: PyErr_Format

[issue16123] IDLE - deprecate running without a subprocess

2012-10-04 Thread Ramchandra Apte
Ramchandra Apte added the comment: Make it pop up a dialog with the message too in the patch, please. -- nosy: +ramchandra.apte ___ Python tracker ___ ___

[issue15158] Add support for multi-character delimiters in csv

2012-10-04 Thread Ramchandra Apte
Ramchandra Apte added the comment: > I do not see the need to cater to something as foolish and rare as using a > multichar delimiter that is also within fields. I need to generate tables for Google Code wikis. -- ___ Python tracker

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

2012-10-04 Thread Ramchandra Apte
Ramchandra Apte added the comment: > This is my first patch, so if I've done something wrong please let me know. The Python Development Guide helps you with all this and more: http://docs.python.org/devguide/ -- nosy: +ramchandra.apte ___ Python trac

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-04 Thread R. David Murray
R. David Murray added the comment: Unfortunately, this is a backward compatibility concern (currently working-even-if-buggy code could stop working), so I'm -1 on fixing it. Option [2] would be an enhancement/API change, and is thus also ruled out. A third alternative might be to add a warn

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

2012-10-04 Thread STINNER Victor
STINNER Victor added the comment: See also issue #9560 and the following email from Marc-Andre Lemburg. http://mail.python.org/pipermail/python-checkins/2010-April/092099.html "Viktor, before making such changes to platform.py, please coordinate with me, as I am the maintainer of that module. T

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

2012-10-04 Thread R. David Murray
R. David Murray added the comment: A repr of what? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2012-10-04 Thread STINNER Victor
STINNER Victor added the comment: See also issue #15216. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2012-10-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2012-10-04 Thread STINNER Victor
STINNER Victor added the comment: I did a similar commit two years ago, but I reverted it because I failed to find a solution for the bootstrap issue. changeset: 60673:7c90ac194e40 branch: legacy-trunk parent: 60664:d7d5c76545fb user:Victor Stinner date:Sun Apr 18 0

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

2012-10-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks for bringing this up and for your patch. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

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

2012-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6d908dc11f2 by Jesus Cea in branch '2.7': Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Solve a 2.7 bootstrap issue http://hg.python.org/cpython/rev/d6d908dc11f2 -- resolution: -> fixed status:

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

2012-10-04 Thread Campbell Barton
New submission from Campbell Barton: note, I was asked to report this issue, posted on the py dev mailing list: see - http://code.activestate.com/lists/python-dev/118015/ --- We've run into an issue recently with blender3d on ms-windows where we want to enforce the encoding is UTF-8 with the e

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

2012-10-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I have a bootstrap problem with python 2.7. Backout that patch, for now. -- resolution: fixed -> status: closed -> open ___ Python tracker ___

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

2012-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c73b90b6dadd by Jesus Cea in branch '2.7': Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file http://hg.python.org/cpython/rev/c73b90b6dadd New changeset 6c830b657900 by Jesus Cea in branch '3.2': Closes #16112

[issue16128] hashable documentation error

2012-10-04 Thread Max
New submission from Max: http://docs.python.org/dev/glossary.html?highlight=hashable says: Objects which are instances of user-defined classes are hashable by default; they all compare unequal, and their hash value is their id(). Since x == x returns True by default, so "they all compare unequ

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

2012-10-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This is security risk, but I can't think about any "platform.architecture()" use that would use a untrusted parameter. Nevertheless "os.popen()" has been deprecated for ages. I take care of this. -- assignee: -> jcea nosy: +jcea versions: -Python 2.

[issue14574] SocketServer doesn't handle client disconnects properly

2012-10-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Please consider the attached patch and see if it solves the issue. -- keywords: +patch Added file: http://bugs.python.org/file27414/socketserver.patch ___ Python tracker __

[issue15464] ssl: add set_msg_callback function

2012-10-04 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.

[issue15550] Trailing white spaces

2012-10-04 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.

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2012-10-04 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

[issue14574] SocketServer doesn't handle client disconnects properly

2012-10-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Clearly, the finish call is intended to be called, and I think the documentation is in error. However, the finish call should also be able to cope with the connection having been reset and handle such errors as may occur. -- __

[issue15528] Better support for finalization with weakrefs

2012-10-04 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.

[issue15475] Correct __sizeof__ support for itertools

2012-10-04 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.

[issue15513] Correct __sizeof__ support for pickle

2012-10-04 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.

[issue15488] Closed files keep their buffer alive

2012-10-04 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- keywords: +patch Added file: http://bugs.python.org/file27413/53aa92a70127.diff ___ Python tracker ___ ___

[issue15488] Closed files keep their buffer alive

2012-10-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4141c36954cd by Jesus Cea in branch 'default': Closes #15488: Closed files keep their buffer alive http://hg.python.org/cpython/rev/4141c36954cd -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected status: ope

[issue8800] add threading.RWLock

2012-10-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ok, here is a new patch. It takes into account various comments and suggestions: 1) The interface is java-like. a single RWLock instance only has attributes reader_lock and writer_lock. 2) Since the "owning" array needs only be process local, the same

[issue16113] Add SHA-3 (Keccak) support

2012-10-04 Thread Christian Heimes
Christian Heimes added the comment: Hello Björn, thanks for the information. Your package didn't turn up on Google when I started with my experiment. Perhaps it's too new? Your code and mine have lots of similarities. I was amused when I saw that you had the same issue with the block size att

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-04 Thread Kushal Das
Kushal Das added the comment: Patch to update mode parsing of open call. All tests seem to be running ok. File changed: Objects/fileobject.c -- keywords: +patch Added file: http://bugs.python.org/file27411/open_mode2.patch ___ Python tracker

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

2012-10-04 Thread Michele Orrù
Michele Orrù added the comment: Since AFAIK json.loads runs through every simil-str object, I think that a repr() is fine here. What do you think? -- nosy: +maker ___ Python tracker ___

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

2012-10-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Just so you know, in CPython the bisect version of nsmallest() isn't called at all. Instead, the C implementation is used and it employs the heap based algorithm rather than the bisect algorithm. Instead of mucking with code that call nsmallest(), I'll li

[issue16125] open accepts arbitrary mode strings as long as they contain U

2012-10-04 Thread Kushal Das
Kushal Das added the comment: I am working on patch for this. -- nosy: +kushaldas ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16127] Correct mentions of narrow build in documentation and comments

2012-10-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In some places in the documentation and in the comments still left incorrect mention of the narrow build. Suggested patch fixes this. -- assignee: docs@python components: Documentation, Unicode files: doc_narrow_build.patch keywords: patch messages:

[issue16126] PyErr_Format format mismatch in _testcapimodule.c

2012-10-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyErr_Format in Modules/_testcapimodule.c uses illegal format specifier (%s) for Py_ssize_t argument. It causes crash: import _testcapi _testcapi.parse_tuple_and_keywords( (), {}, b'', [42]) -- components: Extension Modules, Tests files: testcapi_e

<    1   2