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

2010-07-08 Thread Craig McQueen
New submission from Craig McQueen : 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 Python object using str(

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

2010-07-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2010-07-08 Thread Craig McQueen
Craig McQueen 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 conversion to string, no encoding e

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

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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 why it shouldn't work. Note that

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

2010-07-08 Thread Ezio Melotti
Ezio Melotti 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 database as followi

[issue9197] subprocess module causing crash

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

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

2010-07-08 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : 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" property is a P

[issue9197] subprocess module causing crash

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

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

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. -- ___ Python tracke

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

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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 ex

[issue9197] subprocess module causing crash

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren 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 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, Ronald Oussoren wrote: Ronald Oussor

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

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc 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

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

2010-07-08 Thread Ezio Melotti
Ezio Melotti 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() of an object should w

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

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: [Adding some bits from the discussion on #5127 for better context] """ Ezio Melotti wrote: > > > > Ezio Melotti added the comment: > > > > [This should probably be discussed on python-dev or in another issue, so > > feel free to move the conversation ther

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

2010-07-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 the > iss

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

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 _

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

2010-07-08 Thread Ezio Melotti
Ezio Melotti 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 linux terminal and about

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg 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 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 sys.stdout? --

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

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, repr() should not depend on the user's terminal. -- ___ Python tracker ___ ___ Python-bug

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

2010-07-08 Thread Ezio Melotti
Ezio Melotti 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 tracker

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

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 this becaus

[issue9197] subprocess module causing crash

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 as the attached cra

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I would like any such change to show what it improves through benchmarks. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue9197] subprocess module causing crash

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren 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 object clean up m_copy? I d

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +jyasskin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9197] subprocess module causing crash

2010-07-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: We definitely need unit tests about embedded python interpreter, I think there are none. -- ___ Python tracker ___ __

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

2010-07-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9199] distutil upload command crashes when displaying server response

2010-07-08 Thread Phillip J. Eby
New submission from Phillip J. Eby : 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 scripts = scripts, File "/usr/lib/python2.7/distutils/core.py", line 152, in s

[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 : 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 points are stored with

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread R. David Murray
R. David Murray 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 considered a bug (the

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

2010-07-08 Thread Matthias Klose
New submission from Matthias Klose : [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 = "test" and set

[issue1524639] Fix Tkinter Tcl-commands memory-leaks

2010-07-08 Thread Matthieu Labbé
Changes by Matthieu Labbé : -- nosy: +matthieu.labbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg 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

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

2010-07-08 Thread Brian Curtin
New submission from Brian Curtin : 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 tuple, every field

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

2010-07-08 Thread Matthieu Labbé
Changes by Matthieu Labbé : -- nosy: +matthieu.labbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Changes by Andrew Clegg : Removed file: http://bugs.python.org/file17900/py3k-fnmatch.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7846] Fnmatch cache is never cleared during usage

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

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

2010-07-08 Thread Brian Curtin
Brian Curtin 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() -maj,min,buildno,plat,csd = winv

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Andrew Clegg 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 _

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread Andrew Clegg
Changes by Andrew Clegg : Removed file: http://bugs.python.org/file16116/fnmatch.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-07-08 Thread Ezio Melotti
Ezio Melotti 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 UTF-*). This can be done cha

[issue7766] sys.getwindowsversion as PyStructSequence

2010-07-08 Thread Brian Curtin
Brian Curtin 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. -- status: closed

[issue7846] Fnmatch cache is never cleared during usage

2010-07-08 Thread R. David Murray
R. David Murray 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 of the checkout? It

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Demur Rumed
Demur Rumed 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. Thus the only bloat is t

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Andy Buckley
Andy Buckley 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 issue I had some need l

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

2010-07-08 Thread Martin v . Löwis
Martin v. Löwis 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 are. Or you change it

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

2010-07-08 Thread Brian Curtin
Brian Curtin 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 by name only (fo

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch fails compiling with --with-computed-gotos: Python/ceval.c: In function ‘PyEval_EvalFrameEx’: Python/opcode_targets.h:101: erreur: label ‘TARGET_DUP_TOPX’ used but not defined make: *** [Python/ceval.o] Erreur 1 -- _

[issue9203] Use computed gotos by default

2010-07-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 Core messages:

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, my bad. The implementation already has a __del__ method. -- ___ Python tracker ___ ___ Python-bu

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

2010-07-08 Thread Daniel Urban
New submission from Daniel Urban : 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 is no types.TypeType

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Demur Rumed
Demur Rumed 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: http://bugs.python.org/file17903/cmpoprotdupalluny3.dif

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

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___ Python tracker

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

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___ __

[issue9155] Reserve COMPARE_OP for rich comparisons

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou 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

[issue4044] test_output_textcalendar fails on non-englisch locale

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 tracker

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

2010-07-08 Thread Eric Smith
Eric Smith 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 ___ Pyth

[issue8605] test_gdb can fail with compiler opts

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in 82647 (3.2) and 82648 (2.7). Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2010-07-08 Thread Dave Malcolm
Dave Malcolm 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 test_gdb if the com

[issue9188] test_gdb fails for UCS2 builds with UCS2 gdb

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou 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 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 ___ Pytho

[issue9163] test_gdb fails

2010-07-08 Thread Dave Malcolm
Dave Malcolm 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 : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2010-07-08 Thread Dave Malcolm
Changes by Dave Malcolm : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4045] test_mboxmmdf_to_maildir fails on non-englisch locale

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___ Python tracker

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___

[issue4297] Add error_log attribute to optparse.OptionParser

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 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 de

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

2010-07-08 Thread Alexander Belopolsky
Alexander Belopolsky 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 code and it appeared right to

[issue3155] Python should expose a pthread_cond_timedwait API for threading

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou 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 added the comment: Greg - what platform? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman
Greg Brockman added the comment: I'm on Ubuntu 10.04, 64 bit. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-07-08 Thread Brian Curtin
Brian Curtin 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 status: open -> cl

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 be suitable for the

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Erik Demaine
Erik Demaine 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 *second* instan

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

2010-07-08 Thread Mark Lawrence
Mark Lawrence added the comment: Would someone with knowledge of the buildbots like to comment please. -- keywords: +buildbot nosy: +BreamoreBoy ___ Python tracker ___ __

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- versions: -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller
Jesse Noller 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 : 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, leaving multiprocessin

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : 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 "", line 1, in SystemError: NULL result without error in PyObject_Call W

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch Added file: http://bugs.python.org/file17906/issue9206.diff ___ Python tracker ___ __

[issue9206] os.stat() is broken

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

[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17907/issue9206.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Éric Araujo
Éric Araujo 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 won’t get lost agai

[issue9207] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman
New submission from Greg Brockman : 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): time.sleep(3)

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

2010-07-08 Thread Éric Araujo
Changes by Éric Araujo : -- 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 added the comment: Sure thing. See http://bugs.python.org/issue9207. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue4028] Problem compiling the multiprocessing module on sunos5

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___ Python tracker

[issue9207] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller
Jesse Noller added the comment: Thanks greg; so this affects 2.6 as well (not using the backport at all) -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ __

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

2010-07-08 Thread Mark Lawrence
Mark Lawrence added the comment: Would someone with knowledge of subprocess please comment on this. -- nosy: +BreamoreBoy ___ Python tracker ___ _

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

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren 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 to group18 * Create a u

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

2010-07-08 Thread Jesse Noller
Changes by Jesse Noller : -- title: multiprocessing occasionally spits out exception during shutdown -> multiprocessing occasionally spits out exception during shutdown (_handle_workers) ___ Python tracker ___

[issue8946] PyBuffer_Release signature in 3.1 documentation is incorrect

2010-07-08 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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() Py_XDECREFs it and clears it

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

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren 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 doing that. I'm addin

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

2010-07-08 Thread Mark Lawrence
Mark Lawrence 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 ___ __

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

2010-07-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jul 8, 2010 at 4:30 PM, Ronald Oussoren wrote: .. > Note that explicitly setting the effective uid and gid of processes is > somewhat frowned upon by Apple, they'd prefer if all daemon processes where > started using launchd and used launchd to

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

2010-07-08 Thread Greg Brockman
Greg Brockman 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 multiprocessing-from-trunk, if tha

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

2010-07-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: Your test might expect different behaviour than what OSX actually does (this is an annoying limitation of unittests for wrappers of system behaviour, you'll implicitly test system behaviour as well as the wreappers themselves) The behaviour w.r.t. secondairy

  1   2   3   >