[issue558238] Pickling bound methods

2009-06-29 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: I've spotted the problem, it's a wrong usage of build_py.get_package_dir in build_ext.get_ext_fullpath, I'll add a test + a fix today asap, -- priority: -> normal versions: +Python 2.7 ___ Python tracker

[issue4856] Remove checks for win NT

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The functions Py_GetFileAttributesExA and Py_GetFileAttributesExW were not removed. Is it intended? -- assignee: -> ocean-city status: closed -> open ___ Python tracker

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Are you sure to use the same version? 'delete' is new in 2.7. -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> pending ___ Python tracker

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: I figured out the problem after writing the test. This is not a problem on distutils side but on setuptools side. If you remove setuptools from lxml setup.py, it'll work perfectly. setuptools patches distutils's build_ext and remove temporarely the inplace option,

[issue4856] Remove checks for win NT

2009-06-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Oops, sorry. This function is not needed if GetFileAttributesEx never fail with ERROR_CALL_NOT_IMPLEMENTED. I believe this won't happen on win NT. How about this patch? -- Added file: http://bugs.python.org/file14381/remove_unused_function.patch ___

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-29 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/optio

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-29 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: invalid -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6344] mmap.read() crashes when passed a negative argument

2009-06-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: OK, how about this patch? -- Added file: http://bugs.python.org/file14382/fix_mmap_read.patch ___ Python tracker ___

[issue4856] Remove checks for win NT

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, that's what I had in mind. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue4856] Remove checks for win NT

2009-06-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, committed in r73675(trunk) and r73676(py3k). -- status: open -> closed ___ Python tracker ___ ___

[issue6361] I/O object wrappers shouldn't close their underlying file when deleted.

2009-06-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can call the detach() method if you don't want to the underlying stream to be closed. We could also add a close_parent attribute defaulting to True. -- components: +IO nosy: +benjamin.peterson, pitrou type: behavior -> feature request _

[issue4660] multiprocessing.JoinableQueue task_done() issue

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: I'm leaning towards the properly protecting JoinableQueue.put() fix, I'm not a terribly big fan of removing error checking. I'm trying to carve off time this week to beat on my bug queue, so I'm hoping to be able to commit something (once I have docs+tests) thi

[issue1474680] pickling files works with protocol=2.

2009-06-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pickling a file is tricky. You can't just pickle the construction parameters, you also need to save (and restore) the whole buffering state. I'm not sure a half-working pickle solution would make a good service to the user. -- nosy: +pitrou ___

[issue6344] mmap.read() crashes when passed a negative argument

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: OK for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6364] freeze tool broken in Python 3.x

2009-06-29 Thread Jerry Chen
Jerry Chen added the comment: I am unable to reproduce with py3k latest r73676 after making and installing, and running $ python3.2 freeze.py hello.py # on OS X 10.5.7 $ uname -a Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386 --

[issue6366] rare assertion failure in test_multiprocessing

2009-06-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : Just got the following non-reproducible failure in test_multiprocessing on py3k. Python was compiled in non-debug mode so I assume the strange failure message is a multiprocessing feature? 8e25dcc: refcount=1 8e25f6c: refcount=1 8e37

[issue6367] Change the instruction pointer in python

2009-06-29 Thread vinoth
New submission from vinoth <4vin...@gmail.com>: HI all I am not the too technical guy, but thinking about the new way of controlling the flow instead of throwing an error. as of now if we need to break a control and go back exceptions helps, but it is not a actual way. it would be great if w

[issue6367] Change the instruction pointer in python

2009-06-29 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: You're talking about adding a non-local goto feature to the language. This would be a huge change, and not one that is generally in the direction that any widespread languages (let alone Python itself) are going these days. Please raise this on one of the

[issue6367] Change the instruction pointer in python

2009-06-29 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-29 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Yes, I'm sure.  See below. Also, the 2.6 docs mention it as being new in 2.6: http://docs.python.org/library/tempfile.html Cashew:~$ python2.6 Python 2.6.2 (r262:71600, Apr 15 2009, 07:20:39) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin

[issue6064] Add "daemon" argument to threading.Thread constructor

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: +1 to this, and I'd need to make the same patch/change to multiprocessing.Process as well -- nosy: +jnoller ___ Python tracker ___ __

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2009-06-29 Thread Georg Brandl
Georg Brandl added the comment: Seems to be fixed in current 3k head. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue6269] threading documentation makes no mention of the GIL

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: I strongly disagree with the wording of the patch as-is. It makes no mention of the simple fact that I/O blocked threads get a benefit with threading, and so on. I do agree with adding some details about this in the core documentation however. -- nosy

[issue5879] multiprocessing - example "pool of http servers " fails on windows "socket has no attribute fromfd"

2009-06-29 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: -> jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6368] Fix unused variable warning introduced by commit r73603.

2009-06-29 Thread Vikram U Shenoy
New submission from Vikram U Shenoy : Attach patch fixes an unused variable warning introduced by commit r73603. -- components: Build files: fix_unused_var_jun_29_2009.patch keywords: patch messages: 89839 nosy: vshenoy severity: normal status: open title: Fix unused variable warning int

[issue6152] Parallel regression testing

2009-06-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ported to py3k in r73678. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Which version do you use on Windows? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6369] binhex buggy in py3k

2009-06-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : The binhex module is buggy in py3k, witness the following example (it works ok on trunk): >>> binhex.binhex("README", "testA") >>> binhex.hexbin("testA", "outA") >>> binhex.binhex("LICENSE", "testB") >>> binhex.hexbin("testB", "outB") Traceback (most recent c

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-29 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: C:\>c:\python26\python Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tempfile >>> tempfile.NamedTemporaryFile('w', delete=true) Traceback

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Well, please try with a capitalized "True"... -- ___ Python tracker ___ ___ Python-bugs-list m

[issue6369] binhex buggy in py3k

2009-06-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The bug is due to bytes-indexing returning an int in py3k while it returns another bytes object in trunk. Here is a patch. I don't know how to reliably test for it, though. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.p

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread SilentGhost
New submission from SilentGhost : I'm comparing initialisation of Counter from an iterable with the following function: def unique(seq): """Dict of unique values (keys) & their counts in original sequence""" out_dict = dict.fromkeys(set(seq), 0) for i in seq:

[issue6371] Minor internal link errors in Optparse doc

2009-06-29 Thread Pascal Chambon
New submission from Pascal Chambon : Hello A minor detail in optparse documentation : "If optparse‘s default error-handling behaviour does not suit your needs, you’ll need to subclass OptionParser and override its exit() and/or error() methods." -> the links put on exit() and error() are wrong (

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger priority: -> low ___ Python tracker ___ ___ Python-bugs-l

[issue6357] tempfile.NamedTemporaryFile does not accept the delete= parameter on Windows

2009-06-29 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Oy vey. That's what I get for not reading carefully. And in my original example it seems I had a python 2.5 install wandering around in my path. My apologies. -- status: open -> closed ___ Python tracker

[issue6344] mmap.read() crashes when passed a negative argument

2009-06-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thanks, committed in r73677(trunk), r73682(release26-maint), r73684(py3k), r73685(release31-maint). -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue6372] Make all switches keyword-only

2009-06-29 Thread Pablo Torres Navarrete
New submission from Pablo Torres Navarrete : I propose that all formal parameters that really act as options/switches be made keyword-only. Examples of switches are all flags, timeouts, 'verbose' bools, maximums and minimums, etc. This stresses the difference between needed input for a function

[issue6372] Make all switches keyword-only

2009-06-29 Thread R. David Murray
R. David Murray added the comment: I suspect it would require a PEP, since it would mean breaking backward compatibility in a rather extensive fashion. I suggest floating this idea on python-ideas first for feedback. -- nosy: +r.david.murray ___ Pyt

[issue6373] SystemError in encoder

2009-06-29 Thread Glynn Clements
New submission from Glynn Clements : Test case: > "\udce4\udceb\udcef\udcf6\udcfc".encode("iso-8859-1", "surrogateescape") Traceback (most recent call last): File "", line 1, in SystemError: Objects/bytesobject.c:3182: bad argument to internal function The line number corresponds to _PyBytes

[issue6373] SystemError in encoder

2009-06-29 Thread Jerry Chen
Jerry Chen added the comment: gdb trace Breakpoint 1, _PyBytes_Resize (pv=0xbfffec3c, newsize=-495723) at Objects/bytesobject.c:3179 3179if (!PyBytes_Check(v) || Py_REFCNT(v) != 1 || newsize < 0) { (gdb) where #0 _PyBytes_Resize (pv=0xbfffec3c, newsize=-495723) at Objects/bytesobje

[issue6374] Confused by subprocess API documentation

2009-06-29 Thread Pascal Chambon
New submission from Pascal Chambon : I feel the description of the subprocess.popen semantics is a little incomplete/confusing to me, on some points, eg. : - what does the "shell" argument do on windows, exactly ? The beginning of the description states that nothing changes (createProcess() is us

[issue6373] SystemError in encoder

2009-06-29 Thread R. David Murray
Changes by R. David Murray : -- nosy: +loewis priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6368] Fix unused variable warning introduced by commit r73603.

2009-06-29 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fixed in r73686(trunk). -- nosy: +ocean-city resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6374] Confused by subprocess API documentation

2009-06-29 Thread Tim Golden
Tim Golden added the comment: Attached is a patch against r73685 of the documentation for subprocess which adds some information about using shell=True on Windows. I plan to do some more general-purpose docs for subprocess on Windows, but as I've failed to get round to them for a year or so, le

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Your proposed function assumes the input is a sequence and it cannot handle not a general purpose iterable (it gives the wrong answer when the latter is submitted). Also, it does two lookups per item which can be expensive if the elements have costly hash fu

[issue6373] SystemError in encoder

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's a bug in unicode_encode_ucs1: the result string is resized, so str = PyBytes_AS_STRING(res) + (someOffset) is not valid anymore. Attached patch+test. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14

[issue6373] SystemError in encoder

2009-06-29 Thread Jerry Chen
Jerry Chen added the comment: Confirmed patch and test are working -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6375] compile failure in Modules/python.c

2009-06-29 Thread Adam Golebiowski
New submission from Adam Golebiowski : Python-3.1 fails to compile with: ./Modules/python.c: In function 'wchar_t* char2wchar(char*)': ./Modules/python.c:60: error: invalid conversion from 'void*' to 'wchar_t*' The attached patch fixes this. -- files: python3-cast-fix.patch keywords: pa

[issue6372] Make all switches keyword-only

2009-06-29 Thread Georg Brandl
Georg Brandl added the comment: Closing this for now; it really needs some serious discussion so a tracker item is not appropriate. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker

[issue6376] description of Decinal.logical_invert is incorrect

2009-06-29 Thread MATSUI Tetsushi
New submission from MATSUI Tetsushi : The library reference of Decimal.logical_invert: .. method:: logical_invert(other[, context]) :meth:`logical_invert` is a logical operation. The argument must be a *logical operand* (see :ref:`logical_operands_label`). The result is th

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread SilentGhost
SilentGhost added the comment: I've never meant to suggest any kind of replacement of the Counter with my example. I just tried to show that self[elem] += 1# line 430 of collections.py which at initialisation naturally propagates to __missing__ is somewhat slow. and had it been possible t

[issue6375] compile failure in Modules/python.c

2009-06-29 Thread Jerry Chen
Jerry Chen added the comment: On OpenBSD by chance? Looks similar to Issue4146 -- nosy: +jcsalterego ___ Python tracker ___ ___ Python

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-29 Thread Tarek Ziadé
Tarek Ziadé added the comment: Fixed in r73688 (trunk), r73689 (py3k), r73692 (3.1.x) Thanks for the feedback, Stefan. -- status: open -> closed ___ Python tracker ___ _

[issue6375] compile failure in Modules/python.c

2009-06-29 Thread Adam Golebiowski
Adam Golebiowski added the comment: nope, a gcc-4.4 based Linux distribution. It looks like the same problem happens with Issue4146, but it touches other part of that file. -- ___ Python tracker __

[issue6365] distutils duplicates package directory for C extensions in 3.1 final

2009-06-29 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5388] Green-box doc glitch: winhelp version only

2009-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: WinXP, updated, Py3.1. Start / Programs / Python3.1 / Python Docs I presume this uses .chm file. I most definitely have scrollbars covering text in green box. See screenshot for what I see. -- Added file: http://bugs.python.org/file14388/Py31doc.jpg __

[issue6312] httplib fails with HEAD requests to pages with "transfer-encoding: chunked"

2009-06-29 Thread chandrasekar
chandrasekar added the comment: HEAD request wont return any data. So before calling _read_chunked we have to check the amt is none or not.If its none simply return b'' I've attached the patch too which is take in py3k branch -- keywords: +patch nosy: +chkneo Added file: http://bugs.py

[issue6372] Make all switches keyword-only

2009-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Let me get this right, you don't like it when people use positional arguments for options and switches. So, you want to force them to change to a style you do like by breaking their existing code. And once they've changed, their code will be slower, more ve

[issue5906] Risk of confusion in multiprocessing module - daemonic processes

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: committed, r73693 on trunk -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6377] distutils compiler switch ignored

2009-06-29 Thread Anthony Tuininga
New submission from Anthony Tuininga : With the release of Python 3.1 the --compiler switch is ignored in Lib/distutils/command/build_ext.py. The attached patch fixes that issue. Once that was fixed there was another issue with get_version() in cygwincompiler but that appears to be fixed in the 3

[issue5740] multiprocessing.connection.Client API documentation incorrect

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: Committed, r73694 on trunk - will merge to 3k -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6367] Change the instruction pointer in python

2009-06-29 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I run many timings and the dict.get() approach is decidedly faster. Thanks for pointing that out. Applied in r73695, r73696, and 73697. FWIW, a timing suite is attached. -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python

[issue3955] maybe doctest doesn't understand unicode_literals?

2009-06-29 Thread Christoph Burgmer
Christoph Burgmer added the comment: OutputChecker.check_output() seems to be responsible for comparing 'example.want' and 'got' literals and this is obviously done literally. So as "u'1'" is different to "'1'" this is reflected in the result. This gets more complicated with literals like "[u'1'

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2009-06-29 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : On Mon, 29 Jun 2009 09:56:53 -0700, Trent Mick wrote: > Sridhar Ratnakumar wrote: >> I installed ActivePython-3.1 to C:\Python31 but disabled the installer >> option "Register as default Python" .. because, I use Python-2.6 by >> default. >> >> Howeve

[issue775544] Tk.quit leads to crash in python.exe

2009-06-29 Thread Guilherme Polo
Guilherme Polo added the comment: I've tried reproducing this on Windows XP using both Python 2.3.5 and 2.2.3 (and also some newer ones) and couldn't duplicate the issue. I also tested the file attached on issue837234 and got nothing, changed it a bit and still got nothing. I can reproduce the

[issue6367] Change the instruction pointer in python

2009-06-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Actually, Python has non-local gotos already, and in a structured way: by means of exceptions. I don't understand why it is "not a actual way" - please do consider using a custom exception for that. -- nosy: +loewis ___

[issue6372] Make all switches keyword-only

2009-06-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Just to add another voice: I would be opposed if such breakage is added before Python 4. -- nosy: +loewis ___ Python tracker ___ __

[issue6379] Add first() function that would take first matching case from an iterator

2009-06-29 Thread Zbigniew Braniecki
New submission from Zbigniew Braniecki : Python has a very useful function any() that will iterate over a list and break on the first matching case. Now, it would be great to have similar function but with: a) ability to use a callback for matching test b) that would return the first match so s

[issue6375] compile failure in Modules/python.c

2009-06-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can somebody explain the error? The conversion looks quite valid to me, so it seems to be a compiler bug. -- nosy: +loewis ___ Python tracker _

[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14393/config.log ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14394/pyconfig.h ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6379] Add first() function that would take first matching case from an iterator

2009-06-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please propose this on the python-ideas list first. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed ___ Python tracker __

[issue6379] Add first() function that would take first matching case from an iterator

2009-06-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Python already supports that, in the itertools module: itertools.ifilter(lambda x:self._value.has_key(x), ['es-AR','es','en-US']).next() -- nosy: +loewis ___ Python tracker

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2009-06-29 Thread Trent Mick
Changes by Trent Mick : -- nosy: +trentm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue6373] SystemError in encoder

2009-06-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: The patch looks good. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mai

[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Hi Mark, Thanks for showing interest on this bug. [Mark] Is the operating system you're using HP-UX 11.00, or am I misunderstanding the issue title? # Yes. output of platinfo: hpux-parisc (hpux11.00-parisc2.0) [Mark] Does the problem exist with more rec

[issue6347] hpux11.00-parisc: dtoa.c: "Failed to find an exact-width 32-bit integer type"

2009-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14395/inttypes.h ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue6348] solaris/aix: Py_Initialize: can't initialize sys standard streams

2009-06-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Yes, I get the same "Illegal seek" traceback for nestor's ``os.popen ('cat', 'w')`` even though it happens on all of: solaris10-x86, solaris8-sparc, solaris8-sparc64 and aix5-powerpc. Hmm, so this is a duplicate bug? -- nosy: +nestor

[issue6379] Add first() function that would take first matching case from an iterator

2009-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: We've already got one. Thanks ;-) -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-li

[issue1522587] Tix.Grid patch

2009-06-29 Thread Guilherme Polo
Guilherme Polo added the comment: I've reviewed it now and produced a patch based on it, but it doesn't include undocumented Tix features that were added. I'm separating this new patch into two parts, the first part isn't supposed to affect Tix users, so it should be safe to commit. The second

[issue1522587] Tix.Grid patch

2009-06-29 Thread Guilherme Polo
Guilherme Polo added the comment: I forgot to include the new Grid constants, but I'm ok on adding them. -- ___ Python tracker ___

[issue6373] SystemError in encoder

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fixed with r73698 (py3k) and r73699. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-06-29 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Hello Martin, My apologies for responding so late. [Martin] Also, please confirm a few things: a. configure has detected that your system has mbrtowc (...) # Yes, as can be seen in the attached config.log [Martin] (...) b. configure's analysis is corre

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file14391/tmp_time_missing.py ___ Python tracker ___ ___ Python-bugs-list m

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Unicode Added file: http://bugs.python.org/file14398/pyconfig.h ___ Python tracker ___

[issue6370] Bad performance of colllections.Counter at initialisation from an iterable

2009-06-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file14399/tmp_time_missing.py ___ Python tracker ___ ___ Python-bugs-list mai

[issue6369] binhex buggy in py3k

2009-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Believe it or not, the failing test is already in svn: http://mail.python.org/pipermail/python-checkins/2009-June/084616.html -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type

2009-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file14400/wchar.h ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2009-06-29 Thread Dmitriy Khramtsov
New submission from Dmitriy Khramtsov : Greetings, The 2.4 and 2.5 versions of python contains a deadlock caused by possibility to hold import_lock while doing fork() and not resetting it in the child (on the linux platform). The prove of concept code is: --BEGIN (import_lock.py)-- #!/usr/bi

[issue6372] Make all switches keyword-only

2009-06-29 Thread Pablo Torres Navarrete
Pablo Torres Navarrete added the comment: OK, bad idea it is then. Thank you for your time. -- ___ Python tracker ___ ___ Python-bugs

[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2009-06-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6364] freeze tool broken in Python 3.x

2009-06-29 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: I get the same error as before with a fresh install of r73676 on Linux. $ uname -a Linux zhuangzi 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:55:09 UTC 2009 x86_64 GNU/Linux -- ___ Python tracker

[issue1447222] tkinter Dialog fails when more than four buttons are used

2009-06-29 Thread Guilherme Polo
Guilherme Polo added the comment: Interesting.. I tried testing Dialog for that bug, but generating keypress (you can combine with keyrelease too) doesn't trigger the problem (very weird to me). I will be simulating mouse clicks to see if, for some reason, the bug gets noticed. Attaching the t

[issue6381] test_urllib2_localnet sporadic failures closing socket

2009-06-29 Thread R. David Murray
New submission from R. David Murray : Gentoo linux, r73699, I'm seeing sporadic failures in test_urllib2_localnet in the following two tests: test_sending_headers test_proxy_with_no_password_raises_httperror It happens about once every other run in one or the other of those. I don't see any pr

[issue6382] test_socketserver fails on trunk in test_ForkingTCPServer

2009-06-29 Thread R. David Murray
New submission from R. David Murray : Gentoo linux, trunk r73699. test_socketserver fails with the following tracebacks: == FAIL: test_ForkingTCPServer (test.test_socketserver.SocketServerTest) -

[issue5973] re-usable generators / generator expressions should return iterables

2009-06-29 Thread Jae Kwon
Jae Kwon added the comment: I second this feature request, and will try to get consensus in python-ideas. Meanwhile, here's a sample workaround. >>> def gen2iterable(genfunc): ... def wrapper(*args, **kwargs): ... class _iterable(object): ... def __iter__(self): ...

[issue6383] error in unicodedata.numeric(u"\u2187") and 2188

2009-06-29 Thread Vernon Cole
New submission from Vernon Cole : I am making a demo program, a class which is a subset of int, which implements a partial implementation of PEP313 (Roman numeral literals). I discover that my conversion routines fail for values > 5 due to an error in unicodedata for the two code points 2187

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: Attached is a patch with docs, tests and the fix as suggested by OG7 (whom I can't add to the ACKS without a real name). Please check the additional doc note I added to the all platforms programming guidelines. -- Added file: http://bugs.python.org/file

  1   2   >