[issue5867] No way to create an abstract classmethod

2010-08-16 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I'm attaching a new patch containing also some documentation for the two new decorators. The doc is rather terse, and english is not my first language, so please let me know if some corrections are needed. -- Added file:

[issue9620] IDLE

2010-08-16 Thread beng umali
Changes by beng umali bpum...@gmail.com: -- nosy: bpumali priority: normal severity: normal status: open title: IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9620 ___

[issue9620] IDLE subprocess error

2010-08-16 Thread beng umali
New submission from beng umali bpum...@gmail.com: I can't seem to get my head around solving this problem after installing Python 2.7 on a mac os x 10.6.4. The error message that comes out after clicking IDLE from the applications reads: IDLE's subprocess didn't make connection. Either IDLE

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-16 Thread Freek Dijkstra
Freek Dijkstra fr...@macfreek.nl added the comment: If it would help to separate things, let me know, and I split this up in three separate bug reports. (For the record, knowing these limitations, I could work around it in my code, so they are low priority for me; I just think that it will

[issue9587] unittest.assertRaises() return the raised exception

2010-08-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Pehaps it hasn't been demonstrated before, but just for the sake of argument (and because I'm a persistant bugger), here are the two different cases: current: ctxt = self.assertRaises(MyException) with ctxt: foo()

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, apparently, r78942 was not included in 3.1.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9257 ___

[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-08-16 Thread Freek Dijkstra
Freek Dijkstra fr...@macfreek.nl added the comment: I can confirm that both the problem exists and the patch works on Python 2.6 and 3.1. I love to see it committed. -- nosy: +macfreek ___ Python tracker rep...@bugs.python.org

[issue1982] Feature: extend strftime to accept milliseconds

2010-08-16 Thread Thomas Guettler
Thomas Guettler guet...@thomas-guettler.de added the comment: Yes, I think this can be closed, too. -- nosy: +guettli ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1982 ___

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-16 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Thanks Freek - we're actually discussing some stuff like this in issue9205 as well -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9592

[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

2010-08-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: mmap, buffer, bytearray, string and unicode objects set the char buffer callback (bf_getcharbuffer). The bytearray object sets also the release

[issue8857] socket.getaddrinfo needs tests

2010-08-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I think the main problem here is that it's not easy to write reliable tests that work across all platforms (getaddrinfo(host, 'ftp') returning UDP addresses on FreeBSD/Qemu only is an example). We might try to go a little deeper as you

[issue7902] relative import broken

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Btw, the comment and failure message in r81380/r81381 look wrong. -# If absolute import syntax is used, then do not try to perform -# a relative import in the face of failure. +# If explicit relative import syntax is used,

[issue9621] Graphviz output for 2to3 fixer patterns

2010-08-16 Thread Matt Bond
New submission from Matt Bond gmattb...@gmail.com: As part of my GSoC project working on 2to3, I've created a script which will allow compiled fixer patterns to be visualized using graphviz. This would be useful for debugging and understanding exactly how patterns are matched. I've written

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Alberto Trevino
Alberto Trevino albe...@byu.edu added the comment: On Sunday, August 15, 2010 09:19:27 am Giampaolo Rodola' wrote: Patch no longer applies cleanly because smtpd.py changed in the meantime. Is someone going to fix that or I am expected to play daily catch-up until this gets merged? A further

[issue1982] Feature: extend strftime to accept milliseconds

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- resolution: - out of date stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1982

[issue9145] test_coercion fails in refleak runs

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed in 2.6.6 with release manager approval on r84093. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9145

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2010-08-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102

[issue6724] r74463 causes failures in test_xmlrpc

2010-08-16 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Does this still need a patch or can it be closed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6724 ___

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2010-08-16 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- components: +Windows nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102 ___ ___

[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Note that the buffer interface release API is meant to protect against such modifications, so I don't see why rejecting objects that do implement this API should be rejected. As I explained, the release API is *not* used by

[issue9622] Allow to set profile/trace function globally

2010-08-16 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: issue 9609 updates _lsprof.c to be multi-stack aware. This allows cProfile.Profile() objects to be shared by many threads and provide meaningfull results. This update makes it more convenient to profile running,

[issue1615] descriptor protocol bug

2010-08-16 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1615 ___ ___ Python-bugs-list

[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-08-16 Thread Joel Brobecker
Joel Brobecker brobec...@gnat.com added the comment: More update on this patch: It's incomplete, and possibly wrong, unfortunately. The issue that someone else noticed is that it does not handle the case when Python was configured with --libdir=...; and I think that the default lib dir on

[issue9599] Add PySys_FormatStdout and PySys_FormatStderr functions

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited as r84094 to 3.2. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9599 ___

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Re-adapted patch including size_limit change as described in my previous message is in attachment. Barry and Alberto, could you take a final look at it before committing? -- Added file: http://bugs.python.org/file18546/smtpd.patch

[issue9189] Improve CFLAGS handling

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18062/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9189 ___

[issue9189] Improve CFLAGS handling

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Build nosy: +eric.araujo type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9189 ___

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7741 ___ ___ Python-bugs-list

[issue9618] IDLE shell ignores all but first statement

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9618 ___ ___ Python-bugs-list

[issue9562] Slightly misleading wording in documentation of dict.update

2010-08-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 on committing this change. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9562 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: zipimport_read_directory.patch commited as r84095. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18527/zipimport_read_directory.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Alberto Trevino
Alberto Trevino albe...@byu.edu added the comment: On Monday, August 16, 2010 11:42:51 am you wrote: Re-adapted patch including size_limit change as described in my previous message is in attachment. Barry and Alberto, could you take a final look at it before committing? Looks good to me.

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Can someone explain why among the 6 calls to Py_GetFinalPathNameByHandle, 5 of them use VOLUME_NAME_DOS and only one uses VOLUME_NAME_NT? -- nosy: +amaury.forgeotdarc status: closed - pending

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Py_UNICODE_strncmp.patch: create Py_UNICODE_strncmp() function. -- Added file: http://bugs.python.org/file18547/Py_UNICODE_strncmp.patch ___ Python tracker rep...@bugs.python.org

[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-08-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir - pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir versions: +Python 3.2 -Python 2.7 ___ Python tracker

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: The one thing that looks weird to me is VRFY. Since it never actually does verify the user, should we even claim to support the command? Why not let subclasses claim support if they want to add it? --

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I committed the code you speak of (posix__getfinalpathname in Modules/posixmodule.c), but I don't know if I have a great answer for that question. It looks like VOLUME_NAME_NT (path with volume device path) should just be changed to

[issue7902] relative import broken

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Comment changed in r84097, 3.2 branch, with minor fixes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7902 ___

[issue665761] reduce() masks exception

2010-08-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed to py3k in r84098. Accepting this change for py3k was an easy decision to make because zip and map already behave this way in 3.x. I am inclined to reject this for 2.7, however. While I agree that this is a

[issue7902] relative import broken

2010-08-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Guido has spoken: http://mail.python.org/pipermail/python-dev/2010-August/103104.html We'll keep the change for 2.6.6rc2. -- nosy: +barry status: open - closed ___ Python tracker

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: r84103 in release26-maint I will let Ronald commit to the other branches. I did this one due to the timing of 2.6.6 rc 2. Bumping status away from release blocker. -- priority: release blocker - high

[issue9623] test_site.py has a couple of stray self.assertTrue calls that test for equality

2010-08-16 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: test_site.py has a couple of assertions of the form self.assertTrue(len(foo), some number) which appear to be incorrect, and should read: self.assertEqual(len(foo), some number) or assertEquals (that file uses both methods). r76047

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: In the case where I did use VOLUME_NAME_NT, I think I chose it because it returned a more robust result. That is, it's not clear what the result is if the result is not on a volume that is assigned a drive letter, but all files referenced

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Alberto Trevino
Alberto Trevino albe...@byu.edu added the comment: On Monday, August 16, 2010 12:58:07 pm Barry A. Warsaw wrote: The one thing that looks weird to me is VRFY. Since it never actually does verify the user, should we even claim to support the command? Why not let subclasses claim support if

[issue1581183] pickle protocol 2 failure on int subclass

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581183 ___

[issue998998] pickle bug - recursively memoizing class?

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue998998 ___

[issue8983] Docstrings should refer to help(name), not name.__doc__

2010-08-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r84106. I left the __init__ docstring issue unresolved because it is orthogonal to the name.__doc__ vs. help(name) issue here. With redundant help(type(x)), the meaning of the docstring is not changed. I am

[issue8857] socket.getaddrinfo needs tests

2010-08-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Using www.google.com for IPv6 lookups is a bad idea: whether or not you get an IPv6 address depends on whether your nameserver participates in google over ipv6. www.python.org would be a better choice. --

[issue9623] test_site.py has a couple of stray self.assertTrue calls that test for equality

2010-08-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It looks like you forgot to attach the patch :) -- nosy: +ezio.melotti versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9623

[issue9623] test_site.py has a couple of stray self.assertTrue calls that test for equality

2010-08-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: (BTW assertEquals is deprecated, see #9424) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9623 ___

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Committed fix verified on 2.6: test_urllib2_localnet no longer fails on 10.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9568 ___

[issue8857] socket.getaddrinfo needs tests

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Using www.google.com for IPv6 lookups is a bad idea (...) There is also ipv6.google.com -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8857

[issue6724] r74463 causes failures in test_xmlrpc

2010-08-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6724 ___

[issue2548] Undetected error in exception handling

2010-08-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2548 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Py_UNICODE_strncmp.patch was wrong for n=0. New version based on libiberty/strncmp.c source code. -- Added file: http://bugs.python.org/file18548/Py_UNICODE_strncmp-2.patch ___ Python

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18547/Py_UNICODE_strncmp.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9623] test_site.py has a couple of stray self.assertTrue calls that test for equality

2010-08-16 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Hopefully actually attaching the patch this time I've used assertEqual in the lines I've touched. I haven't touched the other lines, in order to isolate the semantic fix from the stylistic one. -- Added file:

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Py_UNICODE_strncmp-2.patch commited as r84111. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18548/Py_UNICODE_strncmp-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9189] Improve CFLAGS handling

2010-08-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This is what happens. In the Makefile, I have: CONFIGURE_LDFLAGS= -fprofile-arcs PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS) But since LDFLAGS=-fprofile-arcs is in the environment, too, we get the duplication. The sysconfig

[issue7902] relative import broken

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Merged in 3.1 with r84115. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7902 ___

[issue1104249] configure doesn't set up CFLAGS properly

2010-08-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Closing as a duplicate of issue 9189. -- nosy: +skrah resolution: - duplicate stage: unit test needed - committed/rejected status: open - closed superseder: - Improve CFLAGS handling ___

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The calls to Py_GetFinalPathNameByHandle come in pairs: one to get the length, the other to retrieve the value. They should at least be consistent. There are two other issues: - in all three places, it's possible for the function to

[issue9624] 2755

2010-08-16 Thread Jay Ballard
New submission from Jay Ballard jay.ballar...@gmail.com: failure to find drive -- components: None messages: 114085 nosy: Kartton priority: normal severity: normal status: open title: 2755 versions: Python 2.7 ___ Python tracker

[issue9624] 2755

2010-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Please be more descriptive about the problem you have. What were you trying to do? On which operating system? How could we try to reproduce the problem? -- nosy: +amaury.forgeotdarc ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r84120: get_data() function of zipimport uses an unicode path. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue5867] No way to create an abstract classmethod

2010-08-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks good. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5867 ___ ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r84121: repr() method zipimporter object uses unicode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r84122 saves/restores the exception around filename = _PyUnicode_AsString(co-co_filename); because it raises an unicode error on unencodable filename. -- ___ Python tracker

[issue5867] No way to create an abstract classmethod

2010-08-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Applied in r84124. Thanks for the patch. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5867

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9573 ___ ___ Python-bugs-list

[issue9569] Add tests for posix.mknod() and posix.mkfifo()

2010-08-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the patch. r84129 -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9569 ___

[issue2521] ABC caches should use weak refs

2010-08-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Some comments: - The test should be in test_abc.py and should probably not use a collections class. - Use test_support.gc_collect(). - What's the __len__() stuff for? -- keywords: -26backport

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Added Greg to nosy list as the one that fixed issue 7242 with the current _PyImport_ReInitLock semantics. Also kicking over to Barry regarding implications for 2.6.6 (this is a regression from 2.6.4 due to the resolution of 7242). 7242 was

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: One slight tweak to that suggested change - the lock reinitialisation needs to acquire the new lock in the first branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9573

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-16 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This is a duplicate of open Issue9227. As described there, a workaround is to use the 32-bit only (10.3) python.org installer for Python 2.7. -- assignee: - ronaldoussoren components: +Macintosh nosy: +ned.deily, ronaldoussoren title: IDLE

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Minimal patch attached (no niceties like NEWS or unit tests included yet) -- keywords: +patch Added file: http://bugs.python.org/file18551/issue9573_fork_on_import.diff ___ Python tracker

[issue9573] importing a module that executes fork() raises RuntimeError

2010-08-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Test script attached that demonstrates the underlying problem directly via imp.lock_held() (this could easily form the basis of a unit test) -- Added file: http://bugs.python.org/file18552/fork_on_import.py

[issue9189] Improve CFLAGS handling

2010-08-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: issue9047 is related to the issue Stefan mentions -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9189 ___