[issue9195] Link in docs from String Formatting Operations to Template Strings

2010-07-08 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: I stumbled across Template Strings of PEP 292 by accident recently. I'd never heard of it before. I'm familiar with the string interpolation aka String Formatting Operations, and I know to find that in the docs under Standard

[issue9195] Link in docs from String Formatting Operations to Template Strings

2010-07-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9195 ___ ___ Python-bugs-list

[issue9196] Improve docs for string interpolation %s re Unicode strings

2010-07-08 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: I have just been trying to figure out how string interpolation works for %s, when Unicode strings are involved. It seems it's a bit complicated, but the Python documentation doesn't really describe it. It just says %s converts any

[issue9196] Improve docs for string interpolation %s re Unicode strings

2010-07-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9196 ___

[issue9196] Improve docs for string interpolation %s re Unicode strings

2010-07-08 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Another thing I discovered, for Example 1: 4. If test_object.__str__() returns a Unicode object (for some reason), and test_object.__unicode__() does not exist, then the Unicode value from the __str__() call is used as-is (no

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Given that '\U0001'.isprintable() returns True, I would say yes. If someone needs to print this char and has an appropriate font to do it, I don't see

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: [This should probably be discussed on python-dev or in another issue, so feel free to move the conversation there.] The current implementation considers printable all the characters except those characters defined in the Unicode character

[issue9197] subprocess module causing crash

2010-07-08 Thread Palluat de Besset
Changes by Palluat de Besset marc.palluatdebes...@sophos.com: -- assignee: ronaldoussoren components: Macintosh nosy: mpalluat, ronaldoussoren priority: normal severity: normal status: open title: subprocess module causing crash type: crash versions: Python 3.1

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: On wide unicode builds, '\U0001'.isprintable() returns True, and repr() returns the character unmodified. Is it a good behavior, given that very few fonts have can display this character? Marc-Andre Lemburg wrote: The printable

[issue9197] subprocess module causing crash

2010-07-08 Thread Palluat de Besset
New submission from Palluat de Besset marc.palluatdebes...@sophos.com: there is a crash log inside the archive -- Added file: http://bugs.python.org/file17898/OSDP2.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9197

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I suggest to go ahead and apply this patch, at least it correctly selects printable characters, whatever this means. I filed issue9198 to decide whether chr(0x1) should be printable. --

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: [This should probably be discussed on python-dev or in another issue, so feel free to move the conversation there.] The current implementation considers

[issue9197] subprocess module causing crash

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The title is somewhat misleading, this is a C program that uses dlopen to load the python framework. I will look into this, but it is just as likely that code that loads or uses the python framework has a problem. --

[issue9197] subprocess module causing crash

2010-07-08 Thread Palluat de Besset
Palluat de Besset marc.palluatdebes...@sophos.com added the comment: Hi Ronald, Thank you for looking into it, and sorry for the misleading title. You will find a crash log and some instructions on how to reproduce the problem inside the archive. Thanks, Marc On 8 Jul 2010, at 10:18,

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I suggest to go ahead and apply this patch, at least it correctly selects printable characters, whatever this means. I filed issue9198 to decide

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Amaury, before applying the patch consider replacing the tab characters before the comments with spaces. The use of tabs is discouraged. Marc-Andre Lemburg wrote: I was never a fan of the Unicode repr() change to begin with. The repr()

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: [Adding some bits from the discussion on #5127 for better context] Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: [This should probably be discussed on python-dev or in another issue, so feel free to

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Marc-Andre Lemburg wrote: I was never a fan of the Unicode repr() change to begin with. The repr() of an object should work in almost all cases. I still think that #5110 should be fixed (there's also a patch to fix

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: consider replacing the tab characters before the comments with spaces It's actually already the case in my working copy. -- ___ Python tracker rep...@bugs.python.org

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Regarding the fonts, I think that who actually uses or needs to use characters outside the BMP might have (now or in a few months/years) a font able to display them. I also tried to print the printable chars from U+ to U+1 on my

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg a...@pml.ac.uk added the comment: Hi, This bug seems to have stalled - how can I get it moved forward? There don't seem to be any objections with the patch as-is, and the problem seems clear. Cheers -- ___ Python tracker

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A more accurate approach would be to actually try to encode the string and escape only the chars that can't be encoded This is already the case with sys.stderr, it uses the backslashreplace error handler. Do you suggest the same for

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Yes, repr() should not depend on the user's terminal. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9198 ___

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is already the case with sys.stderr, it uses the backslashreplace error handler. Do you suggest the same for sys.stdout? See http://bugs.python.org/issue5110#msg84965 -- ___ Python

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The chapter Rationale in PEP3138 explains why sys.stdout uses strict encoding, when sys.stderr uses backslashreplace. It would be possible to use backslashreplace for stdout as well for interactive sessions, but the PEP also rejected

[issue9197] subprocess module causing crash

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I reproduce the problem on Linux (./configure --enable-shared), after I modified the source code a bit to directly use Python.h and to link with libpython3.2.so (no call to dlopen). In gdb the stack trace has exactly the same symbols

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I would like any such change to show what it improves through benchmarks. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9155

[issue9197] subprocess module causing crash

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Removing the call to Py_DECREF is fishy. The cleanup of the interpreter state in Py_Finalize doesn't clean up all state when m_copy refers to a version from a previous instance of the interpreter. Maybe the tp_dealloc of a module

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jyasskin, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9155 ___ ___ Python-bugs-list

[issue9197] subprocess module causing crash

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: We definitely need unit tests about embedded python interpreter, I think there are none. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9197

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9198 ___ ___

[issue9199] distutil upload command crashes when displaying server response

2010-07-08 Thread Phillip J. Eby
New submission from Phillip J. Eby p...@telecommunity.com: When showing a server response (--show-response), the upload command crashes with the following traceback: Traceback (most recent call last): File setup.py, line 94, in module scripts = scripts, File

[issue9200] str.isprintable() is always False for large code points

2010-07-08 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc amaur...@gmail.com: On narrow unicode builds: unicodedata.category(chr(0x1)) == 'Lo' # correct Py_UNICODE_ISPRINTABLE(0x1)== 1 # correct str.isprintable(chr(0x1)) == False # inconsistent On narrow unicode builds, large code

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, I've looked at the patch now. (1) it needs unit tests. (2) a py3k port would be helpful, since the code is very different in py3k, and we are now applying patches first to the py3k branch and then backporting. I think this can be

[issue9201] IDLE: raises Exception TclError in a special case

2010-07-08 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [forwarded from https://launchpad.net/bugs/597763] seen with all version, built with Tcl8.5 To reproduce the bug, use the following class: class x(object): TEST = hello THE_MAXIMUM = 55 def __init__(self, a, b): self.a = 3 self.b =

[issue1524639] Fix Tkinter Tcl-commands memory-leaks

2010-07-08 Thread Matthieu Labbé
Changes by Matthieu Labbé bugs.python@mattlabbe.com: -- nosy: +matthieu.labbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1524639 ___ ___

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg a...@pml.ac.uk added the comment: Attached is the Py3K version of the patch, and a unit test (Py3K only). -- Added file: http://bugs.python.org/file17900/py3k-fnmatch.patch ___ Python tracker rep...@bugs.python.org

[issue9202] Update platform.win32_ver() to account for change to #8413

2010-07-08 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: The change to #8413 broke the use of sys.getwindowsversion() in platform.platform() calls on Windows, which subsequently breaks all runs of regrtest (e.g. buildbots) since it outputs platform info at the start. Now that structseq subclasses

[issue3485] os.path.normcase documentation/behaviour unclear on Mac OS X

2010-07-08 Thread Matthieu Labbé
Changes by Matthieu Labbé bugs.python@mattlabbe.com: -- nosy: +matthieu.labbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3485 ___ ___

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Changes by Andrew Clegg a...@pml.ac.uk: Removed file: http://bugs.python.org/file17900/py3k-fnmatch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7846 ___

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg a...@pml.ac.uk added the comment: Sorry, messed up indentation on last patch, trying again... -- Added file: http://bugs.python.org/file17901/py3k-fnmatch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7846

[issue9202] Update platform.win32_ver() to account for change to #8413

2010-07-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The following little patch could do the trick. --- platform.py (revision 82643) +++ platform.py (working copy) @@ -606,7 +606,9 @@ # Find out the registry key and some general version infos winver = GetVersionEx() -

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg a...@pml.ac.uk added the comment: Attached is a patch and unit test against release27-maint. -- Added file: http://bugs.python.org/file17902/py27-fnmatch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7846

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Changes by Andrew Clegg a...@pml.ac.uk: Removed file: http://bugs.python.org/file16116/fnmatch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7846 ___

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Yes, but as I said in the message I linked, that's *not* what I want to do. I want to change only the behavior of the interactive interpreter and only when the string sent to stdout is not encodable (so only when the encoding is not

[issue7766] sys.getwindowsversion as PyStructSequence

2010-07-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The previously mentioned comments about backwards incompatibility with the number of items in the sequence are now a problem, since structseq now inherits from tuple. It seems that n_in_sequence gets ignored and we have a 9 item tuple. --

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for working on this. I tried the py3k patch but it doesn't apply cleanly. Patch says patch: malformed patch at line 57: followed by an apparently blank line. Also, could you please generate the patches from the top level

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Demur Rumed
Demur Rumed junkm...@hotmail.com added the comment: The seperation of COMPARE_OP into multiple opcodes shouldn't affect cache size since the opcodes are aliased. Spreading out the switch statement shouldn't cause issue from flattening, since GCC would inline the single use of cmp_outcome.

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Andy Buckley
Andy Buckley a...@insectnation.org added the comment: Personally I think it's a very useful feature: the purpose for running which may not be to get the full path to the executable and then run it, but rather that that path prefix is important for something else. I'm sure when I joined this

[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think if you change it stop considering non-BMP characters as printable, somebody will complain. If you change it in any other way, somebody will complain. Somebody will always complain - so you might as well leave things the way they

[issue8413] String interpolation doesn't work with sys.version_info

2010-07-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: A side effect of this change is that it kills the ability to have a PyStructSequence which has a smaller visible size than the total number of items. For example, sys.getwindowsversion used to have 5 items in the sequence and 4 items accessible

[issue9203] Use computed gotos by default

2010-07-08 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Now that the option has probably been extensively tested, it would be nice to enable computed gotos by default on systems that support them. Perhaps this needs a dedicated test in the configure script. -- components: Build, Interpreter

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, my bad. The implementation already has a __del__ method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4928 ___

[issue9204] The documentation of PyType_Type in py3k mentions types.TypeType

2010-07-08 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: The documentation of PyType_Type (http://docs.python.org/dev/py3k/c-api/type.html#PyType_Type) is this: This is the type object for type objects; it is the same object as type and types.TypeType in the Python layer. But in py3k there

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Demur Rumed
Demur Rumed junkm...@hotmail.com added the comment: Replaced TARGET_DUP_TOPX with _unknown_opcode I recompiled with --with-computed-gotos, and the results remain promising, though the interpreter instead grows from 6756023B to 6765167B -- Added file:

[issue3839] wsgi.simple_server resets 'Content-Length' header on empty content even if app defined it.

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: As the patch is a one liner couldn't someone pick this up? I would have done it myself but just don't understand wsgi at all. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.6 ___

[issue3701] test_ntpath.test_relpath fails when launched from a different Windows drive

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Presumably this is still valid? -- nosy: +BreamoreBoy, loewis versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here, your patch actually show a slowdown on pybench with computed gotos. Results attached. -- Added file: http://bugs.python.org/file17904/pybench.txt ___ Python tracker rep...@bugs.python.org

[issue4044] test_output_textcalendar fails on non-englisch locale

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: It would be a lot of work to fix this as the month names are hardcoded in English in test_calendar.py -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 ___ Python

[issue9202] Update platform.win32_ver() to account for change to #8413

2010-07-08 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Surely we don't want to find every place that uses structseq and fix them. This will no doubt break user code as well. I think we'll need to fix structseq to somehow have its old behavior. -- nosy: +eric.smith

[issue8605] test_gdb can fail with compiler opts

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed in 82647 (3.2) and 82648 (2.7). Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8605

[issue8482] test_gdb, gdb/libpython.py: Unable to read information on python frame

2010-07-08 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: test_gdb fails (Unable to read information on python frame) on my i386 computer (32 bits) with -O1 (but it doesn't with -O0). I'm using Debian Sid: gcc 4.4.3 and gdb 7.1. This should be fixed now that issue 8605 is resolved: we now skip

[issue9188] test_gdb fails for UCS2 builds with UCS2 gdb

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch works ok on 2.7 but fails to apply on 3.2. Can you provide a 3.2 patch as well? Also, instead of `sys.maxunicode == 0x10`, it would be better to use something more future-proof such as `sys.maxunicode = 0x1`. --

[issue3701] test_ntpath.test_relpath fails when launched from a different Windows drive

2010-07-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This is only an issue on release31-maint. py3k and release27-maint passed this test when I ran from H:\ with my source on C:\. -- nosy: +brian.curtin stage: - needs patch versions: -Python 2.7, Python 3.2

[issue9163] test_gdb fails

2010-07-08 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: This should be fixed now that issue 8605 is resolved: we now skip test_gdb if the compiler optimization level is above -O0 -- resolution: - fixed stage: - committed/rejected ___ Python tracker

[issue9163] test_gdb fails

2010-07-08 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9163 ___ ___ Python-bugs-list

[issue8482] test_gdb, gdb/libpython.py: Unable to read information on python frame

2010-07-08 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8482 ___ ___ Python-bugs-list

[issue4045] test_mboxmmdf_to_maildir fails on non-englisch locale

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't reproduce this on Windows Vista despite setting the system locale to Dutch. Is the problem Mac OSx specific? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Would this patch be acceptable, yes or no? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue4297] Add error_log attribute to optparse.OptionParser

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: To move this forward would need patches against py3k, assuming that the original patch is agreed upon in principle. -- nosy: +BreamoreBoy versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman
Greg Brockman g...@ksplice.com added the comment: For what it's worth, I think I have a simpler reproducer of this issue. Using freshly-compiled python-from-trunk (as well as multiprocessing-from-trunk), I get tracebacks from the following about 30% of the time: import multiprocessing, time

[issue8413] String interpolation doesn't work with sys.version_info

2010-07-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: A side effect of this change is that it kills the ability to have a PyStructSequence which has a smaller visible size than the total number of items. Hmm. I was looking for this precise issue when I was reviewing the

[issue3155] Python should expose a pthread_cond_timedwait API for threading

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I hadn't seen this issue existed. This has been done in r80071 (see issue #7316). -- nosy: +pitrou resolution: - out of date status: open - closed superseder: - Add a timeout functionality to common locking operations

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Greg - what platform? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4106 ___ ___

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman
Greg Brockman g...@ksplice.com added the comment: I'm on Ubuntu 10.04, 64 bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4106 ___ ___

[issue9202] Update platform.win32_ver() to account for change to #8413

2010-07-08 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Agreed. This started out as a knee-jerk reaction to regrtest not working, but the problem is deeper. Closing this. The structseq stuff is being dealt with elsewhere. -- resolution: - rejected stage: needs patch - committed/rejected

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: The patch as-is can't be accepted if not for Python 4.x maybe, obviously because it's just too breaking. A proper patch would provide aliases for the removed attributes and raise a DeprecationWarning in case they are accessed. It would

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Erik Demaine
Erik Demaine edema...@mit.edu added the comment: As mentioned in the original request, there are at least two motivations for which functionality that are distinct from running the program (these days, with the subprocess module). #1 was detecting existence of a program. #2 was finding the

[issue4304] build mode which fails for build failures in extensions

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Would someone with knowledge of the buildbots like to comment please. -- keywords: +buildbot nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4304

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- versions: -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4184 ___ ___

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Greg - this is actually a different exception then the original bug report; could you please file a new issue with the information you've provided? I'm going to need to find a 64bit ubuntu box as I don't have one right now. --

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-08 Thread Greg Brockman
New submission from Greg Brockman g...@ksplice.com: I have recently begun using multiprocessing for a variety of batch jobs. It's a great library, and it's been quite useful. However, I have been bitten several times by situations where a worker process in a Pool will unexpectedly die,

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Most likely the same underlying problem as in issue 9202, but can be seen on a non-windows platform. from os import * stat('/') Traceback (most recent call last): File stdin, line 1, in module SystemError: NULL

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file17906/issue9206.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9206

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +benjamin.peterson, brian.curtin, eric.smith Added file: http://bugs.python.org/file17907/issue9206.diff ___ Python tracker rep...@bugs.python.org

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17907/issue9206.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9206 ___

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I apologize for not reading the first post more carefully, thank you for restating the use cases. I’m +1 now and I’ll review the patches to make it up :) Bugs may take years to get fixed. Now that Tarek has expressed interest, be sure that this

[issue9207] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman
New submission from Greg Brockman g...@ksplice.com: On Ubuntu 10.04, using freshly-compiled python-from-trunk (as well as multiprocessing-from-trunk), I get tracebacks from the following about 30% of the time: import multiprocessing, time def foo(x):

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-08 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - accepted title: Finding programs in PATH, addition to os - Finding programs in PATH, adding shutil.which versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman
Greg Brockman g...@ksplice.com added the comment: Sure thing. See http://bugs.python.org/issue9207. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4106 ___

[issue4028] Problem compiling the multiprocessing module on sunos5

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still an issue with more recent versions of Python? -- components: +Build -Extension Modules nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___

[issue9207] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Thanks greg; so this affects 2.6 as well (not using the backport at all) -- assignee: - jnoller nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9207

[issue4112] Subprocess: Popen'ed children hang due to open pipes

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Would someone with knowledge of subprocess please comment on this. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4112

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

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I got some time and did an experiment to deduce how multiple groups behave. This comment is rather long, a very short summary of the results is that OSX behaves oddly. What I did: * This is on OSX 10.6 * Create 18 groups named group1

[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- title: multiprocessing occasionally spits out exception during shutdown - multiprocessing occasionally spits out exception during shutdown (_handle_workers) ___ Python tracker rep...@bugs.python.org

[issue8946] PyBuffer_Release signature in 3.1 documentation is incorrect

2010-07-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: The documentation issue appears present in 2.7 (and 2.6). Further, the Py_buffer member 'obj' is undocumented, and the in-line comment in object.h falsely states that it is a borrowed reference, whereas PyBuffer_Release()

[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Jyrki: could you please explain how you build Python to get the behavior you're seeing? The most important bit: what is the exact command-line that is used to run the configure script, and what is the contents of the environment while

[issue4179] pdb: Allow the list command to return to the currently debugged line

2010-07-08 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Even if the patch is acceptable it would need to be updated for Python 3.2. -- nosy: +BreamoreBoy versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

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

2010-07-08 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Jul 8, 2010 at 4:30 PM, Ronald Oussoren rep...@bugs.python.org wrote: .. Note that explicitly setting the effective uid and gid of processes is somewhat frowned upon by Apple, they'd prefer if all daemon

[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Greg Brockman
Greg Brockman g...@ksplice.com added the comment: That's likely a mistake on my part. I'm not observing this using the stock version of multiprocessing on my Ubuntu machine(after running O(100) times). I do, however, observe it when using either python2.7 or python2.6 with

  1   2   3   >