[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-25 Thread Ned Deily
Ned Deily added the comment: BTW, the patched IDLEs were tested on 2.7 and py3k (3.2a3+) on 10.4, 10.5, and 10.6 with the Apple-supplied Tk 8.4 (all), the Apple-supplied Tk 8.5 (available only in 10.6), ActiveState Tk 8.4 (all), and ActiveState 8.5 (all). And the patches have no affect nor a

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-25 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file19367/issue10107-27.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-25 Thread Ned Deily
Ned Deily added the comment: The attached patches implement an "exit" callback for IDLE on OS X that ensures IDLE will not terminate from an application Quit command without giving the opportunity to save files. -- assignee: ned.deily -> ronaldoussoren components: +Macintosh keywords:

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Jon Parise
Changes by Jon Parise : -- nosy: +jon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-10-25 Thread Bruce Sherwood
New submission from Bruce Sherwood : Using Python 3.1 installed on Ubuntu 10.10 from the package manager, distutils.get_python_lib() returns the nonexistent location /usr/local/python3/dist-packages instead of the correct location /usr/local/python3.1/dist-packages. This subversion bug is not

[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-25 Thread Jack Diederich
Jack Diederich added the comment: There was no test suite for telnetlib prior to 2.7/3.1 so it is easily possible that this is a regression. If you can post a test case that fails or - even better - a patch that passes where the current code fails I'd be very appreciative. -- nosy:

[issue10195] Memory allocation fault-injection?

2010-10-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: We should do something like SQLite: http://sqlite.org/testing.html -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think you need to bring this up on python-ideas/python-dev. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Ned Deily
Changes by Ned Deily : -- nosy: +pitrou stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10195] Memory allocation fault-injection?

2010-10-25 Thread Dave Malcolm
New submission from Dave Malcolm : We were chatting on #python-dev on possible ways of testing the correct handling of "MemoryError". Attached is one idea: adding a sys._inject_malloc_failure() hook, letting you inject a memory-allocation (or reallocation) failure some number of allocations i

[issue775964] fix test_grp failing when NIS entries present

2010-10-25 Thread Bobby Impollonia
Bobby Impollonia added the comment: I am encountering this issue with py3k on a Debian machine. test_grp consistently fails due to a line with a plus sign in /etc/group I believe that the previous patch attached to this bug is not correct due to the issues others have raised: It only handles

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Dave Malcolm
Dave Malcolm added the comment: I should note that I've only ever been testing this with SystemTap, on Linux. I don't have a box with DTrace, and I've never directly used it. I wouldn't today be able to diagnose a buildbot failure related to DTrace (I believe I would with systemtap, fwiw).

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Dave Malcolm
Dave Malcolm added the comment: > It would be better to generate the sample dynamically, so that users > with an incompatible locale or filesystem aren't prevented from checking > out the source. Thanks: am attaching updated patch: I've removed Lib/test/systemtap_sample_☠.py, and now generate a

[issue6269] threading documentation makes no mention of the GIL

2010-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: nobody -> d...@python nosy: +d...@python versions: +Python 3.1, Python 3.2 ___ Python tracker ___

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Peter Ingebretson
Changes by Peter Ingebretson : Removed file: http://bugs.python.org/file19361/python_remap.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Peter Ingebretson
Changes by Peter Ingebretson : Added file: http://bugs.python.org/file19362/issue10194_gc_remap.diff ___ Python tracker ___ ___ Python-bugs-li

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: -> barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Peter Ingebretson
New submission from Peter Ingebretson : This patch implements the gc.remap() function as described in the following document: http://doublestar.org/in-place-python-reloading/ The intended use is an enhanced module reloading mechanism, a prototype of which is described here: http://doublestar

[issue1772788] chr(128) in u'only ascii' -> TypeError with misleading msg

2010-10-25 Thread Georg Brandl
Georg Brandl added the comment: Ah. I tried the other combination :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've wrapped the whole of get_frame_marker_info with a > PyErr_Fetch/PyErr_Restore pair: the PyUnicode_AsUTF8String calls could > fail with a MemoryError, and we don't want to confuse the regular > exception handling within ceval. If PyUnicode_AsUTF8String()

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Dave Malcolm
Dave Malcolm added the comment: Updated patch, removing the FIXMEs, and slightly reworking the test code. I've wrapped the whole of get_frame_marker_info with a PyErr_Fetch/PyErr_Restore pair: the PyUnicode_AsUTF8String calls could fail with a MemoryError, and we don't want to confuse the reg

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Frank Ch. Eigler
Frank Ch. Eigler added the comment: I believe the problem jcea is experiencing is with the solaris (/linux?) branch of the configure.in: if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null It seems solaris doesn't like the -o /dev/null part. Try specifying some real tempor

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: > If you ascertain yourself that the test works under ZFS then I think it > is enough. Of course, it would be better if a buildbot ran that test, > but we can live without it (IMHO). I agree. I trust that the patch is correct, and we really don't need to test

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I will update documentation. > > Antoine, it is difficult to write a testcase when I can only test > under a system with ZFS. I don't think we have a buildbot with > Solaris/*BSD and ZFS. If you ascertain yourself that the test works under ZFS then I think i

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Danek Duvall
Changes by Danek Duvall : -- nosy: +dhduvall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I will update documentation. Antoine, it is difficult to write a testcase when I can only test under a system with ZFS. I don't think we have a buildbot with Solaris/*BSD and ZFS. Any suggestion?. -- ___ Python t

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the docs should also make it clear that these flags are only supported by os.lseek() (unless you have tested the IO lib to work properly, that is, but in this case it would be nice to add unit tests). -- __

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch lacks a documentation change. Otherwise, it looks fine. -- ___ Python tracker ___ ___ Py

[issue8769] Straightforward usage of email package fails to round-trip

2010-10-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue8409] gettext should honor $LOCPATH environment variable

2010-10-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1288056] pygettext: extract translators comments

2010-10-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9762] PEP 3149 related build failures

2010-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Closing this because I can't think of anything better than your workaround (plus, I was apparently unable to reproduce it). -- resolution: -> fixed status: open -> closed title: build failures -> PEP 3149 related build failures _

[issue10094] test_urllib.py fails in py3k r85440 with RuntimeError

2010-10-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This was already backported but the issue wasn't closed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1772788] chr(128) in u'only ascii' -> TypeError with misleading msg

2010-10-25 Thread R. David Murray
R. David Murray added the comment: I'm not sure that I'd consider: >>> 'abc' in b'abcde' Traceback (most recent call last): File "", line 1, in TypeError: Type str doesn't support the buffer API a clear error message :) It certainly isn't as bad as the 2.x message, though. -- nosy

[issue10193] Simplify instrospection used by turtle module

2010-10-25 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The turtle module uses introspection in order to generate module level functions. Attached patch streamlines the introspection code by using inspect module function instead of direct access to cod object attributes. -- components: Library (Li

[issue4402] os.getenv('PATH') return different result between 2.5 and 3.0rc3

2010-10-25 Thread Georg Brandl
Changes by Georg Brandl : -- Removed message: http://bugs.python.org/msg76444 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1772788] chr(128) in u'only ascii' -> TypeError with misleading msg

2010-10-25 Thread Georg Brandl
Georg Brandl added the comment: I don't think we'll do anything about this message in 2.x -- in 3.x you get a clear TypeError anyway if you mix str and bytes. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python track

[issue3018] tkinter demos fixed

2010-10-25 Thread Georg Brandl
Georg Brandl added the comment: Committed remaining changes from patch in r85840. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue10184] tarfile touches directories twice

2010-10-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-li

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I am using Solaris 10, but the configure script detects "apple" implementation. -- ___ Python tracker ___ _

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-25 Thread Georg Brandl
Georg Brandl added the comment: +1 for adding at least the info the symtable knows (this is already done in one of the branches in that function that raises a SyntaxError). -- nosy: +georg.brandl ___ Python tracker

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Compiling WITH dtrace... shows the same error :- -- ___ Python tracker ___ ___ Python-bugs-list

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Compiling the code WITHOUT dtrace support gives an error: """ Undefined first referenced symbol in file __dtrace_python___function__entry ./libpython3.2m.so __dtraceenabled_python___function__return ./libpyt

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: We need some documentation, too. Maybe a new chapter, or a new section in the debug chapter. Better the first, since this is not only for debugging, but for performance study too. -- ___ Python tracker

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: -giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Malcolm, does your last patch address the performance issue?. Ideally, dtrace support should be compiled in by default, so performance issues are important. Idealy, performance difference between compiling dtrace or not should be negligible. Until you actual

[issue10192] 'from urllib.parse import *' does not import urlencode function

2010-10-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in revision 85837. -- assignee: -> orsenthil nosy: +orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Dave Malcolm
Dave Malcolm added the comment: Updated version of the patch; this ought to contain Include/pydtrace.d: $ diffstat /tmp/py3k-add-systemtap-2010-10-25.patch Include/pydtrace.d | 10 Lib/test/test_systemtap.py | 89 ++ Makefile.pre.in| 10 Python/ceval.c

[issue10192] 'from urllib.parse import *' does not import urlencode function

2010-10-25 Thread hhas
New submission from hhas : Problem: The following statement fails to import the public urlencode function into the current namespace: from urllib.parse import * Solution: Add 'urlencode' to urllib.parse.__all__. -- components: Library (Lib) messages: 119558 nosy: hhas priority:

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2010/10/25 Jesús Cea Avión : .. > Another question: I am not able to decide between Sun/Apple style, or > breaking dtrace scripts > compatibility completely. Anybody has an opinion about this?. Is this > actually important?. Are > there so many legacy dt

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I am trying to review this for 3.2, but I am having some issues. For instance, "include/pydtrace.d" is not present in the last patch. Please, post a patch with all the required changes in the same (patch) file. Hurry, we are still on track for 3.2. :-). Ano

[issue1191964] asynchronous Subprocess

2010-10-25 Thread Andrew Boettcher
Changes by Andrew Boettcher : -- nosy: +Andrew.Boettcher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9935] Faster pickling of instances

2010-10-25 Thread Jesse Noller
Jesse Noller added the comment: On Mon, Oct 25, 2010 at 10:17 AM, Antoine Pitrou wrote: > Well, I'm not asking anyone to rewrite the entire multiprocessing test suite; > and, besides, I've provided a patch myself to improve it in that respect ;) > (in issue10173) I just saw that one - I'll

[issue6269] threading documentation makes no mention of the GIL

2010-10-25 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: jnoller -> nobody keywords: +easy nosy: +nobody priority: normal -> low ___ Python tracker ___ _

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-10-25 Thread Jesse Noller
Jesse Noller added the comment: Sridhar can you confirm if this is still a problem on 3.2? -- ___ Python tracker ___ ___ Python-bugs-l

[issue9935] Faster pickling of instances

2010-10-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I doubt I, or Ask will have the time to rewrite the entire > multiprocessing test suite right now to work around the change > Antoine. Well, I'm not asking anyone to rewrite the entire multiprocessing test suite; and, besides, I've provided a patch myself to

[issue9935] Faster pickling of instances

2010-10-25 Thread Jesse Noller
Jesse Noller added the comment: I doubt I, or Ask will have the time to rewrite the entire multiprocessing test suite right now to work around the change Antoine. -- ___ Python tracker

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: [j...@babylon5 py3k]$ ./python Python 3.2a3+ (py3k:85834M, Oct 25 2010, 15:37:04) [GCC 4.5.1] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.SEEK_DATA 3 >>> os.SEEK_HOLE 4 >>> -- _

[issue10191] scripts files are not RECORDed.

2010-10-25 Thread Atsushi Odagiri
New submission from Atsushi Odagiri : I wrote setup.py includes scripts with distutils2, and ran `setup.py install`. scripts were installed in scripts directory, but not recorded in .dist-info/RECORD. I think that `distutils2._backport.shutil:copytree` should return copied filenames. ---

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I attach patch. I have reviewed the IO module and I think we don't need to do any change there, since values over 2 are not touched. The patch is trivial. My plan was to leave this patch for a novice :-). Please, review. But let me do the final commit (I hav

[issue1054967] bdist_deb - Debian packager

2010-10-25 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> rejected stage: -> committed/rejected versions: +3rd party -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker

[issue10143] Update "os.pathconf" values

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Committed in r85834. Solaris 10 now shows 25 names available, instead of 14. -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue10157] Refleaks in pythonrun.c

2010-10-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think your patch looks good. -- assignee: -> ocean-city ___ Python tracker ___ ___ Python-bug

[issue5178] Add context manager for temporary directory

2010-10-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Nick, could you comment about my last proposal? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Éric Araujo
Changes by Éric Araujo : -- components: -Documentation nosy: +eric.araujo versions: +Python 3.2 ___ Python tracker ___ ___ Python-bug

[issue10184] tarfile touches directories twice

2010-10-25 Thread Lars Gustäbel
Lars Gustäbel added the comment: I'm not entirely happy with the name of the "touch" argument. Apart from it being nice and short, I think it's a little too unix-y and might be misleading because it is not only about setting the modification time as the name implies, but also owner and mode.

[issue1542677] IDLE shell gives different len() of unicode strings compared to Python shell

2010-10-25 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Tim Golden
Changes by Tim Golden : -- assignee: d...@python -> bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Tim Golden
Tim Golden added the comment: Removing docs unless this actually becomes a doc issue -- nosy: +tim.golden -d...@python ___ Python tracker ___ ___

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Dariusz Suchojad
Dariusz Suchojad added the comment: I find that _AttributeHolder is a handy way for passing the command line options around the application. What is lacks though is a documented API for actually fetching the attributes in batches, like .items() or something similar that could be used for iter

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Steven Bethard
Steven Bethard added the comment: Could you elaborate a little on what you use it for? The argparse module only uses this for pretty __repr__ on the various objects. (And in fact, it looks like it's gotten a little out of sync - "required" is missing from Action, and a number of things are mi