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

2009-06-29 Thread Ezio Melotti
Ezio Melotti added the comment: Python 2.6 and all the following versions use the Unicode database version 5.1.0 [1] (unicodedata.unidata_version). The numeric value is in the database for all the codepoints from U+2185 to U+2188 (included), so the problem shouldn't be there. [1]: ftp://ftp.un

[issue6367] Change the instruction pointer in python

2009-06-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: So there is a language feature there already that solves your problem exactly, and you don't want to use it? Exceptions are *exactly* the right way to provide non-local gotos in a structured manner. I'm opposed to any change to the language because the desired

[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
Dmitriy Khramtsov added the comment: > Does the problem also exist in Python 2.6? We will definitely not fix it > anymore for 2.4 and 2.5. Yep. Exactly same problem in Python 2.6. This problem does probably exist in all newer versions as well but I didn't explicitly test for that. -

[issue6367] Change the instruction pointer in python

2009-06-29 Thread vinoth
vinoth <4vin...@gmail.com> added the comment: I hope exceptions are not created for that purpose,and it is not the actual* /*right way i hope. because, if any of the called methods has the try: except: block, it fails.. and we can't guide other coders, "Don't use try: except:" as it is the lang

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

2009-06-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Does the problem also exist in Python 2.6? We will definitely not fix it anymore for 2.4 and 2.5. -- nosy: +loewis ___ 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 Martin v . Löwis
Martin v. Löwis added the comment: > `mbstate_t` seems to exist in /usr/include/wchar.h I can't infer that from the copy of wchar.h that you provided. I see that mbstate_t* is used, but I fail to find any definition of mbstate_t. I see that sys/_mbstate_t.h is included. This inclusion is condi

[issue6384] Permalink to built-in exception class hierarchy documentation

2009-06-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2009-06-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6385] two lines of typographical inconsistency in doc of exception class hierarchy

2009-06-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl priority: -> low ___ Python tracker ___ ___

[issue6385] two lines of typographical inconsistency in doc of exception class hierarchy

2009-06-29 Thread Mitchell Model
New submission from Mitchell Model : In the documentation of the built-in exception class hierarhcy in the library documentation WindowsError (Windows) and VMSError (VMS) are not in the same color as the rest of the exception names. -- messages: 89905 nosy: MLModel severity: normal statu

[issue6384] Permalink to built-in exception class hierarchy documentation

2009-06-29 Thread Mitchell Model
New submission from Mitchell Model : I think it would be useful to have a permalink to the built-in exception class hierarchy at the end of the library exceptions documentation. -- assignee: georg.brandl components: Documentation messages: 89904 nosy: MLModel, georg.brandl severity: norm

[issue5503] multiprocessing/connection.py wrong pipe name under win32

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: Closing; without the exception/more details, and with multiprocessing working on WIN32 I don't have anything to go on. -- resolution: -> wont fix status: pending -> closed ___ Python tracker

[issue5155] Multiprocessing.Queue created by sub-process fails when used in sub-sub-process ("bad file descriptor" in q.get())

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: Patch attached to issue 5313, please review. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5331] multiprocessing hangs when Pool used within Process

2009-06-29 Thread Jesse Noller
Jesse Noller added the comment: Patch attached to issue 5313, please review -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[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

[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

[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): ...

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

[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

[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

[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

[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

[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 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

[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

[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

[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

[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 : 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
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

[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 ___ __

[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 ___

[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

[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

[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

[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

[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

[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

[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/

[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

[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 __

[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

[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

[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 _

[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

[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 ___ __

[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 ___

[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

[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

[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'

[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

[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:

[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 ___ _

[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

[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 ___ ___

[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

[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

[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 __

[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

[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é
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 Jerry Chen
Jerry Chen added the comment: On OpenBSD by chance? Looks similar to Issue4146 -- nosy: +jcsalterego ___ Python tracker ___ ___ Python

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___

[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

[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 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

[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

[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

[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

[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 __

[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

[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

[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 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:

[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

[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

[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

[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 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

[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 ___ ___

[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

[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

[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

[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 ___ ___

[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 ___ __

[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

[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

[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 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

[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

[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 --

[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

  1   2   >