[issue7571] Change 'name' of Process - assertion failure if Unicode

2009-12-23 Thread Frank Millman
New submission from Frank Millman : At the top of my program, I have 'from __future__ import unicode_literals'. I subclassed Process, and passed "name='test'" as an argument. I got the following traceback. Traceback (most recent call last): File "F:\junk\multiprocess\mp5.py", line 37, in

[issue6873] posix_lchown: possible overflow of uid, gid

2009-12-23 Thread Boya Sun
Boya Sun added the comment: Gregory, I discovered this bug by static analysis, so I do not have a system that this bug is actually triggered. But I am happy to see the fix applied since this makes code safer. It would be great if anyone could write a test case that cause uid and gid to overf

[issue7570] Error in urllib2 example

2009-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed it in r77018 and merges. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7570] Error in urllib2 example

2009-12-23 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: georg.brandl -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the note, Manuel. Fixed it in revision 77013. -- ___ Python tracker ___ ___ Python-bugs-

[issue7544] Fatal error on thread creation in low memory condition

2009-12-23 Thread STINNER Victor
Changes by STINNER Victor : -- title: multiprocessing.Pool(): Fatal Python error: PyEval_AcquireThread: NULL new thread state -> Fatal error on thread creation in low memory condition ___ Python tracker ___

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-12-23 Thread Manuel Muradás
Manuel Muradás added the comment: The patch fixes only when you pass the authentication info in the proxy handler's URL. Like: proxy_handler = urllib2.ProxyHandler({'https': 'http://user:p...@proxy-example.com:3128/'}) But setting the authentication using a ProxyBasicAuthHandler is still b

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-12-23 Thread Manuel Muradás
Manuel Muradás added the comment: Hi! 2.6 backport is missing an argument in _set_tunnel definition. It should be: def _set_tunnel(self, host, port=None, headers=None): -- nosy: +dieresys ___ Python tracker __

[issue7570] Error in urllib2 example

2009-12-23 Thread Manuel Muradás
New submission from Manuel Muradás : We've found an error in an urllib2 example with Proxy Basic authentication. This is the example with the error: {{{ This example replaces the default ProxyHandler with one that uses programmatically-supplied proxy URLs, and adds proxy authorization support wit

[issue7569] ctypes doc improvement: c_char_p

2009-12-23 Thread Nikolaus Rath
New submission from Nikolaus Rath : It would be great if the documentation of c_char_p (http://docs.python.org/library/ctypes.html#ctypes.c_char_p) could be reformulated as follows (would have saved me quite some time): class ctypes.c_char_p¶ Represents the C char * datatype when it points a

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-23 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: That's an excellent idea. I had searched briefly for a more correct solution, but did not find one at the time. -- ___ Python tracker ___

[issue7568] Spelling error in imaplib module docs

2009-12-23 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7568] Spelling error in imaplib module docs

2009-12-23 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7568] Spelling error in imaplib module docs

2009-12-23 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.4, Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1811] True division of integers could be more accurate

2009-12-23 Thread Mark Dickinson
Mark Dickinson added the comment: Here's an updated patch, against py3k. On my machine, a/b is a touch faster with this patch when abs(a), abs(b) are smaller than 1e15 or so; it's (inevitably) slower than the existing implementation for larger a and b. For 'random' a and b, average runnin

[issue7568] Spelling error in imaplib module docs

2009-12-23 Thread Mike Putnam
New submission from Mike Putnam : The documentation string within the IMAP4.thread function incorrectly spells the "threading_algorithm" arg as "threading_alogrithm" Appears to affect imaplib.py ver. 2.55 & 2.58 Could not find other versions to examine. Starting in: /release24-maint/Lib/imapli

[issue7561] PyByteArray_AS_STRING used unsafely

2009-12-23 Thread R. David Murray
Changes by R. David Murray : -- components: +Interpreter Core priority: high -> critical title: Filename-taking functions in posix segfault when called with a bytearray arg. -> PyByteArray_AS_STRING used unsafely ___ Python tracker

[issue7561] Filename-taking functions in posix segfault when called with a bytearray arg.

2009-12-23 Thread Stefan Krah
Stefan Krah added the comment: I briefly looked at how PyByteArray_AS_STRING() is used in other places. A similar segfault can be provoked in long_new(): int(bytearray(b''), 10) Then, there are a couple of places where pointer arithmetic is used with the NULL pointer. Also, memcpy(x, NULL, 0)

[issue7562] Custom order for the subcommands of build

2009-12-23 Thread Jari Pennanen
Jari Pennanen added the comment: > Note that I don't think that just providing an alternative order of build_py and build_ext would solve the SWIG issue - e.g. build_py wouldn't know about the new files SWIG generates unless the SWIG build process explicitly tells the build_py command about t

[issue6873] posix_lchown: possible overflow of uid, gid

2009-12-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I applied the same fix that was applied to chown in trunk r77007 for lchown and fchown. Could you test it on a platform where it previously failed? The existing code might still have issues if there are platforms where uid_t and gid_t are unsigned but not

[issue7417] open builtin has no signature in docstring

2009-12-23 Thread Georg Brandl
Georg Brandl added the comment: Added signature from msg95885 in r77009. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1811] True division of integers could be more accurate

2009-12-23 Thread Mark Dickinson
Mark Dickinson added the comment: Stealing this from Tim, with the intention of acting on it in the next couple of weeks. -- assignee: tim_one -> mark.dickinson ___ Python tracker _

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-23 Thread Eric Devolder
Eric Devolder added the comment: Will send you the trick (file) to make it work, but I can't do it from here (at work - access restrictions) - please wait until Tonight :-) Cheers Eric 2009/12/23 Daniel > > Daniel added the comment: > > Hello, > > I confirm : Python3.1.1 > .../... > runnin

[issue1747858] chown broken on 64bit

2009-12-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: indeed, those were missed. fixed in trunk r77007 and release26-maint r77008. -- ___ Python tracker ___ __

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-23 Thread Daniel
Daniel added the comment: Hello, I confirm : Python3.1.1 .../... running build running build_py running build_ext building 'cx_Freeze.util' extension error: Unable to find vcvarsall.bat I've got the r73896 file correction. :( D. -- nosy: +Daniel26 versions: -Python 2.6