[issue10433] Document unique behavior of 'getgroups' on OSX

2011-04-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Here's a revised doc patch. As noted from my investigation in Issue7900, the key getgroups behavior change is with the OS X 10.6 ABI (so 10.5), not 10.5. -- stage: needs patch - commit review Added file:

[issue11571] Turtle window pops under the terminal on OSX

2011-04-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Looks good to me. I tested on OS X with both Tk 8.5 on 10.6 and Tk 8.4 on 10.5. The demo runs fine under IDLE.app and bin/idle3. If no objections, I'll commit the patch with the nit addressed. -- keywords: +patch stage: - commit review

[issue11759] assert for exception parameters

2011-04-04 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: I've just realized that unittest doesn't provide a way to test arguments of exception thrown during assertRaises check. -- components: Tests messages: 132919 nosy: techtonik priority: normal severity: normal status: open title:

[issue11757] test_subprocess failure

2011-04-04 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: _remaining_time doesn't check that endtime current time and can return a negative number, which would trigger an EINVAL when passed to select (select_select doesn't seem to check for negative double). Note that a check is performed

[issue11757] test_subprocess failure

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11757 ___ ___

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset ebc03d7e7110 by Victor Stinner in branch 'default': Issue #11753: faulthandler thread uses pthread_sigmask() http://hg.python.org/cpython/rev/ebc03d7e7110 -- nosy: +python-dev ___ Python

[issue11753] test_sendall_interrupted() of test_socket hangs on FreeBSD

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_socket and test_signal succeed on x86 FreeBSD custom: http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%20custom/builds/4 (there are other issues, but there are not related) I pushed the fix in Python 3.3

[issue11759] assert for exception parameters

2011-04-04 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: What about this: class MyTestCase(TestCase): ... def test_foo(self): ... with self.assertRaises(SyntaxError) as cm: ... compile('asdf jkl', 'file.py', 'eval') ... self.assertEqual('file.py',

[issue11759] assert for exception parameters

2011-04-04 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- resolution: - invalid stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11759 ___

[issue11759] assert for exception parameters

2011-04-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Looks like a hack (and not the obvious one). I guess no asserts return values like this, so that usage is not really intuitive for me. -- ___ Python tracker rep...@bugs.python.org

[issue11759] assert for exception parameters

2011-04-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I found that successful assert in twisted returns exception object. But thanks for workaround anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11759

[issue1294232] Error in metaclass search order

2011-04-04 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: The attached patch seems to correct this issue. It contains the test attached yesterday, and it passes now. I factored out the winner calculation from type_new to a new _PyType_CalculateWinner function, and type_new calls this. I've

[issue11760] Bus error in test_big_buffer() of test_zlib on AMD64 Snow Leopard 3.x buildbot

2011-04-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Trace: ... [ 79/354] test_time [ 80/354] test_zlib Fatal Python error: Bus error Traceback (most recent call first): File /Users/pythonbuildbot/buildarea/3.x.hansen-osx-x86/build/Lib/test/test_zlib.py,

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2011-04-04 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Stefan, theoretically this is A valid locale description (as understood by S-SYS) is: language[_TERRITORY[.CODESET[@Modifier]]] where language is indeed a ISO 639 language code (see

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895 ___ ___

[issue11761] fragile tests in test_gc

2011-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4329/steps/test/logs/stdio == FAIL: test_collect_generations (test.test_gc.GCTests)

[issue11738] ThreadSignals.test_signals() of test_threadsignals hangs on PPC Tiger 3.x buildbot

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9d59ae98013c by Victor Stinner in branch 'default': Reenable regrtest.py timeout (30 min): #11738 and #11753 looks to be fixed http://hg.python.org/cpython/rev/9d59ae98013c -- nosy: +python-dev

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Here's an implementation of read1() that satisfies that condition, along with some relevant unit tests. -- keywords: +patch Added file: http://bugs.python.org/file21531/gzipfile_read1.diff ___

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2011-04-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Stefan Krah wrote: Stefan Krah stefan-use...@bytereef.org added the comment: Is there another (authoritative) source for locale aliases apart from X.org? On Ubuntu Lucid, many aliases for installed locales are missing: f =

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

2011-04-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Westley Martínez wrote: Westley Martínez aniko...@gmail.com added the comment: Perhaps I wasn't clear. That release version isn't for the system. It's for the installation disc. There's no way to get that info and it means nothing

[issue11749] test_socket failure

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11749

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2011-04-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Marc-Andre Lemburg rep...@bugs.python.org wrote: The local file you mention only contains en_US.UTF-8 UTF-8 on our Ubuntu 10.04.1 default installation. Have you installed some other package to get support for all those locales ? On

[issue11760] Bus error in test_big_buffer() of test_zlib on AMD64 Snow Leopard 3.x buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Another failure on test_zlib on the same buildbot: build 30 http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%203.x/builds/30/steps/test/logs/stdio -- I already noticed some failures on test_mmap: build 8, 25

[issue11760] Bus error in test_big_buffer() of test_zlib on AMD64 Snow Leopard 3.x buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_zlib failure is on zlib.crc32(mmap.mmap(...)) with a mapping bigger than 4 GB: -- # Issue #10276 - check that inputs =4GB are handled correctly. class ChecksumBigBufferTestCase(unittest.TestCase): def

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is not dead: test_zlib failed twice on AMD64 Snow Leopard 3.x buildbot: build 30 (024967cdc2f0e850f0b338e7593a12d965017a6a, Mar 31 01:40:00 2011) and 44 (ebc03d7e711052c0b196aacdbec6778c0a6d5c0c, Apr 4 10:11:20 2011).

[issue11760] Bus error in test_big_buffer() of test_zlib on AMD64 Snow Leopard 3.x buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is a duplicate of #11277. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11760

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #11760 has been marked as a duplicate of this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277 ___

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2011-04-04 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- nosy: -sdaoden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895 ___ ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Is the SIGBUS generated on the first page access ? How much memory does this buildbot have ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11277

[issue8323] multiprocessing.Queue ignores pickle restrictions in .put()

2011-04-04 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8323 ___ ___ Python-bugs-list mailing list

[issue11734] Add half-float (16-bit) support to struct module

2011-04-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I've only glanced at the patch, but a couple of things: (1) It looks as though the patch assumes that a C double is IEEE 754 binary64 format, and that a C float is IEEE 754 binary32 format. Is that correct? If so, that's a significant

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Here is a nice trace on PPC Leopard 3.x thanks to faulthandler + regrtest timeout (30 minutes): --- ... [218/354] test_multiprocessing Thread 0xf0617000: File

[issue9592] Limitations in objects returned by multiprocessing Pool

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9592 ___ ___

[issue11759] assert for exception parameters

2011-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Using assertRaises as a context manager is not a hack, and is the correct way to do this in unittest. -- nosy: +r.david.murray status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2011-04-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list

[issue11759] assert for exception parameters

2011-04-04 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #6275. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11759 ___

[issue11759] assert for exception parameters

2011-04-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I've also found #9587. Now I wonder how many people requested return vs context, and how many would vote for one vs another. Nothing personal - just a pure curiosity. -- ___ Python tracker

[issue11759] assert for exception parameters

2011-04-04 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: That was a design decision made by Guido (iirc), and even if it might seem not obvious at first, it's probably just because not everyone is Dutch. Many people would probably vote on sequence.join(sep) too, but it's unlikely that another

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here's an implementation of read1() that satisfies that condition, along with some relevant unit tests. Something looks fishy: what happens if size is -1 and EOFError is not raised? -- ___ Python

[issue11759] assert for exception parameters

2011-04-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Thanks for clarification, Ezio. I am still using Python 2.7 - that's why I've missed this part. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11759

[issue11738] ThreadSignals.test_signals() of test_threadsignals hangs on PPC Tiger 3.x buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think that the last test_threadsignals failures on PPC Tiger were related to the new regrtest timeout, and it is now fixed. -- resolution: - fixed status: open - closed ___ Python

[issue11754] Changed test to check calculated constants in test_string.py

2011-04-04 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11754 ___ ___ Python-bugs-list

[issue11758] increase xml.dom.minidom test coverage

2011-04-04 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11758 ___ ___ Python-bugs-list

[issue11762] Ast doc: warning and version number

2011-04-04 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Two related proposals. 1. Add a warning similar to the one for the dis module. As modified: CPython implementation detail: The ast definition is specific to the CPython interpreter! Ast nodes may be added, removed, or changed between

[issue11762] Ast doc: warning and version number

2011-04-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Modify entry slightly to String constant with version number of the abstract grammar file. 3.1: '67616'; 3.2: '82163'; 3.3: 'x' -- keywords: +patch ___ Python tracker

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Something looks fishy: what happens if size is -1 and EOFError is not raised? You're right - I missed that possibility. In that case, extrasize and offset get updated incorrectly, which will break subsequent calls to seek() and tell().

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: [Question from python-list] Would a C version only be for 3.3 or backported to 3.2 and 2.7. The rationale for backport to 2.7 is that .cmp_to_key was added to 2.7 to aid transition to 3.x. A faster version would make use in 2.7 more inviting.

[issue10175] vs version for win32 compilation of extension modules is undocumented.

2011-04-04 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10175 ___ ___ Python-bugs-list

[issue11761] fragile tests in test_gc

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 36d92e923a1a by Antoine Pitrou in branch '3.1': Issue #11761: make tests for gc.get_count() less fragile http://hg.python.org/cpython/rev/36d92e923a1a New changeset 5daf9a8dc4e8 by Antoine Pitrou in branch '3.2': Issue #11761: make

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I was only aiming for Py3.3. If someone wanted to push for a backport to 3.2, it would be up to the release manager to decide whether a performance booster would be worth the risk of introducing a bug in a point release. ISTM

[issue10023] test_lib2to3 leaks under 3.1

2011-04-04 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: As discussed with Ezio on IRC, this doesn't apply anymore in 3.2 nor in 3.3, so we guess we can simply mark is already fixed in a later version. -- nosy: +sandro.tosi resolution: - out of date status: open - closed

[issue10339] test_lib2to3 leaks

2011-04-04 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: closing like issue10023 -- nosy: +sandro.tosi resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10339

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 9775d67c9af9 by Antoine Pitrou in branch 'default': Issue #10791: Implement missing method GzipFile.read1(), allowing GzipFile http://hg.python.org/cpython/rev/9775d67c9af9 -- nosy: +python-dev

[issue10791] Wrapping TextIOWrapper around gzip files

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch now committed, thank you! Since the patch adds a new API (GzipFile.read1()), I think it's better not to backport it. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed type: behavior - feature

[issue11734] Add half-float (16-bit) support to struct module

2011-04-04 Thread Mark Wiebe
Mark Wiebe mwwi...@gmail.com added the comment: The patch currently assumes IEEE 754 with byte-order matching the integer type. I see that pyconfig.h defines three possible cases when IEEE 754 doubles are supported, DOUBLE_IS_LITTLE_ENDIAN_IEEE754, DOUBLE_IS_BIG_ENDIAN_IEEE754, and

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-04-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: And also with an extension module I'm trying to build with Python-2.7.1 AMD64. Schnur's suggestion fixes it. -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org

[issue11731] Simplify email API via 'policy' objects

2011-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For some reason the create patch button isn't working (perhaps because I'm using a named branch?), so here is a patch representing the current state of the feature branch. -- keywords: +patch Added file:

[issue6040] bdist_msi does not deal with pre-release version

2011-04-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Is there any workaround we can use in setup.py to set correct version for build_msi subcommand only? -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: s = x * (2**29) case.assertEqual(s + a, s + b) Traceback (most recent call last): File stdin, line 1, in module File /home/antoine/cpython/default/Lib/unittest/case.py, line 643, in assertEqual assertion_func(first, second, msg=msg)

[issue1425127] os.remove OSError: [Errno 13] Permission denied

2011-04-04 Thread Christoph Gohlke
Changes by Christoph Gohlke cgoh...@uci.edu: -- nosy: +cgohlke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1425127 ___ ___ Python-bugs-list

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2011-04-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Another workaround is by adding the linker argument to Extension() as extra_link_args: extra_link_args=['/MANIFEST'] -- ___ Python tracker rep...@bugs.python.org

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-04 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: In Python 3 a metclass can create a class __dict__ that is not a true dictionary. This can trigger code execution when accessing __dict__ members. getattr_static should not access them directly but do so using dict methods directly

[issue11731] Simplify email API via 'policy' objects

2011-04-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file21533/policy.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11731 ___

[issue11731] Simplify email API via 'policy' objects

2011-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Try again with a patch going in the expected direction :) -- Added file: http://bugs.python.org/file21534/policy.patch ___ Python tracker rep...@bugs.python.org

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Here are some example performance results: def cmp(x, y): return y - x sorted(range(1, 1000), key=cmp_to_key(cmp)) ''' C version: real0m19.994s user0m8.053s sys 0m1.044s Python version: real0m28.825s user

[issue11765] test_faulthandler failure

2011-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/4334/steps/test/logs/stdio == FAIL: test_dump_tracebacks_later

[issue11619] On Windows, don't encode filenames in the import machinery

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1b7f484bab6e by Victor Stinner in branch 'default': Issue #11619: _PyImport_LoadDynamicModule() doesn't encode the path to bytes http://hg.python.org/cpython/rev/1b7f484bab6e -- nosy: +python-dev

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I'm working on cleaning-up (and speeding-up) the patch. I'll post new timings once that's done. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707

[issue2193] Cookie Colon Name Bug

2011-04-04 Thread BM
BM shouri...@yandex.ru added the comment: To Carsten Klein: It would be great if you turn your eyes on and try to read more carefully before posting something here. NAME=VALUE NAME is the cookie’s name, and VALUE is its value. Thus the header Set-Cookie: id=waldo

[issue11766] test_multiprocessing failure (test_pool_worker_lifetime)

2011-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This sometimes happens on the buildbots: test test_multiprocessing failed -- Traceback (most recent call last): File D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_multiprocessing.py, line 1191, in

[issue11765] test_faulthandler failure

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I wrote the assertion while dump_tracebacks_later() was implemented using SIGALRM + alarm(timeout). A simple fix for this issue is just to remove the assertion. But... I'm curious, and I would like to understand. The problem is on

[issue11734] Add half-float (16-bit) support to struct module

2011-04-04 Thread Eli Stevens
Eli Stevens wickedg...@gmail.com added the comment: There seems to be some disagreement about the double-rounding issue; Mark Dickinson posted on python-ideas that he doesn't think that there is one. If possible, I think that removing code paths that aren't needed are generally a good thing,

[issue2736] datetime needs an epoch method

2011-04-04 Thread Jay Taylor
Jay Taylor outtat...@gmail.com added the comment: I couldn't agree more with ping's position on this. It is against the spirit of what Python has set out to be, and the blocking needs to stop. Any chance we could get a .epoch() function into python 2.7 as well? -- nosy: +Jay.Taylor

[issue11765] test_faulthandler failure

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 8da8cd1ba9d9 by Victor Stinner in branch 'default': Issue #11765: don't test time.sleep() in test_faulthandler http://hg.python.org/cpython/rev/8da8cd1ba9d9 -- nosy: +python-dev ___

[issue11765] test_faulthandler failure

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: 8da8cd1ba9d9 should fix this issue. Please reopen it if it doesn't solved it. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11734] Add half-float (16-bit) support to struct module

2011-04-04 Thread Mark Wiebe
Mark Wiebe mwwi...@gmail.com added the comment: There's no disagreement, since they're different cases. Taking an arbitrary double, rounding to float, then rounding to half definitely has double-rounding issues. (And I would recommend constructing an example to add to the test case to make

[issue11754] Changed test to check calculated constants in test_string.py

2011-04-04 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Being rather circular, that doesn't seem to be a particularly useful test. (Not that the original is either.) It'd be more correct if you actually tested that hex numbers are contained within string.hexdigits, for example. --

[issue11761] fragile tests in test_gc

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11761

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The new FreeBSD buildbot had a sporadic SIGKILL in http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1/steps/test/logs/stdio (apparently, faulthandler didn't dump a traceback) By the way, we can be fairly

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-04-04 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- nosy: +jaraco ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___ Python-bugs-list mailing

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, at this point I think we could simply skip the test on BSDs and OS X. The tested functionality is cross-platform, so testing under a limited set of systems should be ok. -- ___ Python

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: For the new FreeBSD bot, the issue was simply insufficient swap space. With 1GB of memory and 2GB of swap test_zlib runs fine. -- ___ Python tracker rep...@bugs.python.org

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Attached patch adds a _diffThreshold attribute of 2**16 and uses _baseAssertEqual whenever one of the two string is longer than 2**16 chars. -- keywords: +patch Added file: http://bugs.python.org/file21535/issue11763.diff

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Rather than hardwiring `self.addCleanup(lambda: setattr(self, '_diffThreshold', 2**16))`, you should retrieve the previous value. -- ___ Python tracker rep...@bugs.python.org

[issue11767] Maildir iterator leaks file descriptors by default

2011-04-04 Thread Brendan Dolan-Gavitt
New submission from Brendan Dolan-Gavitt brenda...@gatech.edu: The default constructor for Maildir is rfc822.Message. This means that when iterating over a Maildir mailbox instantiated with default settings, the Mailbox class will return self._factory(self.get_file(key)), leaking the file

[issue11763] assertEqual memory issues with large text inputs

2011-04-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: michael.foord - ezio.melotti components: +Library (Lib) nosy: +rhettinger stage: - patch review type: - behavior Added file: http://bugs.python.org/file21536/issue11763-2.diff ___ Python

[issue10785] parser: store the filename as an unicode object

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 6e9dc970ac0e by Victor Stinner in branch 'default': Issue #10785: Store the filename as Unicode in the Python parser. http://hg.python.org/cpython/rev/6e9dc970ac0e -- nosy: +python-dev

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 7b8d625eb6e4 by Victor Stinner in branch 'default': Issue #9319: Include the filename in Non-UTF8 code ... syntax error. http://hg.python.org/cpython/rev/7b8d625eb6e4 -- nosy: +python-dev

[issue9709] test_distutils warning: initfunc exported twice on Windows

2011-04-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: A workaround would be to define an arbitrary macro when building with distutils. For example, in setup.cfg: [build_ext] define = _DISTUTILS Then in some main header file(s) in your project: #ifdef _DISTUTILS #undef

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Hum, I'm not sure that my patch works if the locale encoding is not UTF-8: import.c manipulates path in the filesystem encoding, whereas PyTokenizer_FindEncodingFilename() expects UTF-8 filename. Thanks to my work on #3080, the

[issue10785] parser: store the filename as an unicode object

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10785 ___

[issue9709] test_distutils warning: initfunc exported twice on Windows

2011-04-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9709 ___ ___

[issue7805] test_multiprocessing failure

2011-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7805 ___ ___

[issue11768] test_signals() of test_threadsignals failure on Mac OS X Tiger

2011-04-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: test_threadsignals hangs on x86 Tiger 3.x and PPC Tiger 3.x: - [279/354] test_threadsignals Thread 0xa000d000: File /Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_threadsignals.py, line 46 in

[issue2736] datetime needs an epoch method

2011-04-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Apr 4, 2011 at 5:42 PM, Jay Taylor rep...@bugs.python.org wrote: .. I couldn't agree more with ping's position on this. Adding votes to a tracker issue without a working patch will not move it any further. There

[issue11768] test_signals() of test_threadsignals failure on Mac OS X Tiger

2011-04-04 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d14eac872a46 by Victor Stinner in branch 'default': Issue #11768: add debug messages in test_threadsignals.test_signals http://hg.python.org/cpython/rev/d14eac872a46 -- nosy: +python-dev

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Attaching timing code. Results with and without patch (as cleaned-up): 7.1 seconds without patch 3.2 seconds with patch -- Added file: http://bugs.python.org/file21537/time_cmp_to_key.py

[issue11707] Create C version of functools.cmp_to_key()

2011-04-04 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Attaching cleaned-up version of the patch, making it more like the pure python version: * Made 'obj' a member so it is an accessible field * Accept keyword arguments * Create arg tuple like was done in the Py2.7 code * Create the

[issue11769] test_notify() of test_threading hang on x86 XP-4 3.x:

2011-04-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Timeout of 15 minutes on x86 XP-4 3.x: ... [334/354] test_threading Thread 0x024c: File D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\threading.py, line 235 in wait File

[issue11727] Add a --timeout option to regrtest.py using the faulthandler module

2011-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: regrtest default timeout is now 30 minutes. I opened specific issues for each failure: * test_sendall_interrupted() of test_socket: issue #11753 * test_itimer_real() of test_signal: issue #11755 * test_threadsignals: issue

  1   2   >