[issue7900] posix.getgroups() failure on Mac OS X

2010-02-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Michael: * which configure options do you use? * which xcode version do you use? (this shouldn't be relevant, I'm interested in what causes the dot 1 suffix) * If you use --enable-universalsdk: do you have the 10.4 SDK installed

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-16 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: A related question: is this issue present in the 3.x trunk? (BTW: feel free to assign all OSX related issues to me) -- assignee: - ronaldoussoren ___ Python tracker rep...@bugs.python.org

[issue7846] Fnmatch cache is never cleared during usage

2010-02-16 Thread Andrew Clegg
Andrew Clegg a...@pml.ac.uk added the comment: Hi, I used a global name for a couple of reasons: it is consistent with the cache itself and the size of the cache being defined in the same place; and because I wanted to allow the value to be modified by users. I used the leading underscore to

[issue7582] [patch] diff.py to use iso timestamp

2010-02-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Ok. Let's commit it at least to 2.7 - I'll create a separate issue for discussion of unified diff format later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7582

[issue1212900] Python segfaults on OpenBSD (tested 3.4 and 3.5)

2010-02-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It is a stack overflow, which can be prevented by setting #define Py_DEFAULT_RECURSION_LIMIT 150 in Python/ceval.c. Then the program behaves in the same way as on Linux (i.e. it swallows the RuntimeError somewhere). Recommend closing.

[issue4151] Separate build dir broken

2010-02-16 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: current status with 2.7 alpha3: FAIL: test_get_python_inc (distutils.tests.test_sysconfig.SysconfigTestCase) -- Traceback (most recent call last): File

[issue5217] testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir

2010-02-16 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: this works with 2.7 alpha3, won't fix for 3.0 -- versions: -Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5217 ___

[issue7334] ElementTree: file locking in Jython 2.5 (OSError on Windows)

2010-02-16 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: The patch proposed on msg95349: * need tests * not reviewed (yet) -- keywords: +patch nosy: +flox priority: - normal stage: - needs patch title: XML file locking in Jython 2.5 (OSError on Windows) - ElementTree: file locking in

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-02-16 Thread Nikolaus Rath
Nikolaus Rath nikol...@rath.org added the comment: Does this patch still need review? Both Martin and Antoine already commented that the patch is ok, so it'd be great if someone could actually apply it... -- ___ Python tracker rep...@bugs.python.org

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If by fail you mean doesn't execute the command in the way I expected, then I believe you will be enlightened by reading the recent updates to the Popen documentation (see issue 6760). -- nosy: +r.david.murray priority: -

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I can't see changes to subprocess.call() docs in issue #6760. I reopen this bug, because call() definitely need a visible note about this significant behavior. I can not reopen #6760

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I still do not agree. There should be a note in call() documentation, because users will waste their time experiencing the bug before reading documentation again. If you can't make something just work without rereading the whole doc -

[issue7942] Inconsistent error types/messages for __len__ between old and new-style classes

2010-02-16 Thread Paul Boddie
New submission from Paul Boddie p...@boddie.org.uk: As noted here: http://www.selenic.com/pipermail/mercurial/2010-February/030068.html This is probably documented somewhere, and there may even be a good reason for the difference, but old-style classes raise TypeError when __len__ returns a

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This module also defines two shortcut functions I think given that we say the calls are shortcuts, and that their arguments are the same as Popen, I take that to mean that subprocess.call experiences the same situations as subprocess.Popen. If

[issue7943] Memory leak due to circular references in ssl.SSLSocket

2010-02-16 Thread Péter Szabó
New submission from Péter Szabó pts...@gmail.com: Here is how to reproduce the leak in Python 2.6.4 and Python 2.7: import gc import socket import ssl sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) gc.disable() gc.collect() count0 = gc.get_count()[0] for i in

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-02-16 Thread Dave Fugate
New submission from Dave Fugate dfug...@microsoft.com: Sprinkled throughout CPython's test modules are snippets of code such as the following taken from 2.7A3's test_old_mailbox.py (line 141): box = mailbox.UnixMailbox(open(self._path, 'r')) The key thing to observe here is the file being

[issue7931] Interpreter does not terminate if daemonized while running multithreaded

2010-02-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: libc.daemon() calls forks(), which duplicates only the main thread. The other thread does not exists in the forked process, and the interpreter blocks while trying to wait for it... Please use os.fork() instead, it has code to forget

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You can't even use call or check_call without referencing the Popen constructor documentation, so I'm not sure what you are advocating, Anatoly. We certainly don't want to repeat the Popen documentation in full for each convenience

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-02-16 Thread Thomas Smith
Thomas Smith thomat...@gmail.com added the comment: I'm also getting segfaults in PyMarshal_ReadLastObjectFromFile in Python 2.6.2 (on Ubuntu Jaunty). It's very sporadic, I've been reproducing it by running a minimal script 100,000 times, and getting a few core dumps. There are several

[issue7846] Fnmatch cache is never cleared during usage

2010-02-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Your rationale makes perfect sense. Perhaps add a comment suggesting it’s ok to change the value. Cheers -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7846

[issue1212900] Python segfaults on OpenBSD (tested 3.4 and 3.5)

2010-02-16 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1212900 ___

[issue7945] typo in operator.isCallable deprecation warning

2010-02-16 Thread kenneth dombrowski
New submission from kenneth dombrowski kenneth-pyt...@ylayali.net: The operator documentation @ http://docs.python.org/library/operator.html states for operator.isCallable(obj): Deprecated since version 2.0: Use isinstance(x, collections.Callable) instead., I believe this should read since

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-02-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Please use patches to show where the code changed. (I generated one; it looks good to me) I would like this kind of patches applied to CPython. Looking at the Pypy test suite, the following test files seem easy to update: test_bz2

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Thanks. That should be enough, although I wouldn't mind against more prominent notice to urge users to go and see Popen parameters. I would also add a second example to allow users see the difference. For instance, how to execute another

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: The last one should be: retcode = call([sys.executable, diff.py oldfile newfile]) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7939

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-16 Thread David Beazley
New submission from David Beazley d...@dabeaz.com: Background --- In order to multitask with threads, a critical part of the Python interpreter implementation concerns the behavior of I/O operations such as read, write, send, and receive. Specifically, whenever an I/O operation is

[issue7945] typo in operator.isCallable deprecation warning

2010-02-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: No, this is correct. isCallable() was deprecated since 2.0, but the replacement was the builtin callable() until 2.6. -- resolution: - fixed status: open - closed ___ Python tracker

[issue5088] optparse: inconsistent default value for append actions

2010-02-16 Thread Andrew McNabb
Andrew McNabb amcn...@mcnabbs.org added the comment: I think that optparse is doing the right thing here. I think that your code example should be changed to: import optparse parser = optparse.OptionParser() parser.add_option(-o, --option, action = append) options, args =

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-02-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for reporting this. Rather than documenting corner cases explicitly, maybe it would be enough to point to the C99 standard: the corner cases for the math functions should (modulo bugs) all follow Annex F of the C standard, while the

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-02-16 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Looking at the docs, there are a number of revisions that would be useful. For example, the docs mention signaling NaNs, but that doesn't make a lot of sense: Python essentially treats all NaNs as quiet. I'll add this to my to-do

[issue7942] Inconsistent error types/messages for __len__ between old and new-style classes

2010-02-16 Thread Paul Boddie
Paul Boddie p...@boddie.org.uk added the comment: I would have expected a more accurate error message for the new-style class. In the original message which brought this to my attention, the cause was not particularly obvious:

[issue6472] Update ElementTree with upstream changes

2010-02-16 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Update the 2.x patch with the last version uploaded to rietveld (patch set 5). Improved test coverage with upstream tests and tests cases provided by Neil on issue #6232. Note: the patch for 3.x is obsolete. -- Added file:

[issue7930] pydoc.stripid doesn't strip ID in py25, py26, py31

2010-02-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed in r78207 (trunk), r78208 (release26-maint), r78209 (py3k) and r78210 (release31-maint). After a short discussion on #python-dev I decided to remove the 'if', because it's not necessary and might creates problems with other

[issue5088] optparse: inconsistent default value for append actions

2010-02-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree with Andrew, but I think the optparse documentation should make it clear that this is what happens with a default value for an 'append' action. It is *implied* by the fact that append says it appends to a list, and default says

[issue7942] Inconsistent error types/messages for __len__ between old and new-style classes

2010-02-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: In the example you give it seems to me that the message for the new style class is more accurate and useful than the message for the old style class. Looking at your mercurial example, it looks like the problem is the same (len

[issue7005] ConfigParser does not handle options without values

2010-02-16 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Assigning to myself for handling. Bumping to Python 2.7 / 3.2 since support for this syntax variation is a new feature. -- assignee: - fdrake versions: +Python 2.7, Python 3.2 -Python 2.6 ___

[issue7948] Complete your registration to Python tracker -- key yAMyUeuHR9LS2Q86aUUs2GO4rujOhgWH

2010-02-16 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7948 ___ ___

[issue7949] idle does not handle dark gtk color schemes

2010-02-16 Thread Mathias Panzenböck
Mathias Panzenböck grosser.meister.mo...@gmx.net added the comment: I just noticed that the debugger also suffers from this problem. Doing a quick grep over the source reveals even more places that might cause problems (where only the bg or only the fg color is set). I think in

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just a quick test under Linux (on a dual quad core machine): - with iotest.py and echo_client.py both running Python 2.7: 25.562 seconds (410212.450 bytes/sec) - with iotest.py and echo_client.py both running Python 3.2: 28.160 seconds

[issue3132] implement PEP 3118 struct changes

2010-02-16 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Hi All, On Sat, Feb 13, 2010 at 5:07 AM, Mark Dickinson rep...@bugs.python.orgwrote: Mark Dickinson dicki...@gmail.com added the comment: Some of the proposed struct module additions look far from straightforward; I find that section of

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-16 Thread David Beazley
David Beazley d...@dabeaz.com added the comment: The comment on the CPU-bound workload is valid--it is definitely true that Python 2.6 results will degrade as the workload of each tick is increased. Maybe a better way to interpreter those results is as a baseline of what kind of I/O

[issue7939] subprocess: call([arg, arg2], shell=True) vs call(arg+ +arg2, shell=True)

2010-02-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: You are right - I should read the docs, but one of the outstanding features of Python is that in many cases you can test the code faster than read documentation. =) It would help if [ls, -la] example included third argument thus fully