[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 missing from ArgumentParser.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 iterating over all command line arguments. That's why I 
thought '_get_kwargs' would be a good candidate particularly because it does 
exactly what I need in my code, returns a sorted list of key/value parameters.

But I'm not really saying that it must be '_get_kwargs', could as well be 
_AttributeHolder's __dict__ attribute as long as the docs say that it's a part 
of the public API so that I'm sure I'm not using something that may silently 
break between releases.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. My proposal would be "restore_attrs" or "set_attrs" 
which isn't half as nice as "touch", but sums up better what's actually done. I 
leave this up to you.

I think the testcase wouldn't work on Windows the way it is now, would it?

Apart from these minor issues the patch gets my blessing, go ahead ;-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 have commit privileges).

--
stage: needs patch -> commit review
Added file: http://bugs.python.org/file19356/z

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
assignee: tarek
components: Distutils2
files: hello.zip
messages: 119550
nosy: Atsushi.Odagiri, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: scripts files are not RECORDed.
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file19357/hello.zip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
>>>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 improve it in that respect ;) (in 
issue10173)

Of course, it also means the present pickle patch is imperfect, though the 
result of __reduce__ in this case looks more like a side-effect of an 
implementation detail than documented behaviour (since the result isn't usable 
anyway). I may try to come up with a better patch before the 3.2 beta but it's 
not sure I will find enough time/motivation.

--
resolution: fixed -> 
stage: committed/rejected -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 poke at that next

> Of course, it also means the present pickle patch is imperfect, though the 
> result of __reduce__ in this case looks more like a side-effect of an 
> implementation detail than documented behaviour (since the result isn't 
> usable anyway). I may try to come up with a better patch before the 3.2 beta 
> but it's not sure I will find enough time/motivation.

Okie doke.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. :-).

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 dtrace scripts out there?.

--
assignee:  -> dmalcolm

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 dtrace scripts out there?.
>

I would say compatibility with Sun/Apple probes should not stand in
the way of implementing this in cpython.  Of course familiarity to
existing users is a consideration, but in cases where self-consistency
can be improved, I don't think we should be overly concerned about
legacy scripts.  I would estimate that 90% of future users will never
have used either Sun or Apple probes, 9% will have used Apple and 1%
Sun. (This is completely unscientific guess, of course.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
severity: normal
status: open
title: 'from urllib.parse import *' does not import urlencode function
type: behavior
versions: Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 |   75 +
 configure  |  576 +++--
 configure.in   |   34 ++
 pyconfig.h.in  |3 
 7 files changed, 522 insertions(+), 275 deletions(-)

Patch contains FIXMEs (sorry), which clearly need addressing.

As for the objectives, do folks here agree with the "Performance" notes in 
http://bugs.python.org/issue4111#msg100173 ?

--
Added file: http://bugs.python.org/file19358/py3k-add-systemtap-2010-10-25.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 actually use it, of course.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ./libpython3.2m.so
__dtrace_python___function__return  ./libpython3.2m.so
__dtraceenabled_python___function__entry ./libpython3.2m.so
ld: fatal: Symbol referencing errors. No output written to python
collect2: ld returned 1 exit status
"""

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (Lib)
files: turtle-inspect.diff
keywords: patch
messages: 119569
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Simplify instrospection used by turtle module
versions: Python 3.2
Added file: http://bugs.python.org/file19359/turtle-inspect.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 it
is enough. Of course, it would be better if a buildbot ran that test,
but we can live without it (IMHO).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 whether ZFS works correctly (but trust that Oracle will).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 temporary file name instead.

--
nosy: +fche

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 regular exception handling 
within ceval.

I'm not sure how to write a unit test to test for this: perhaps we could 
corrupt the __code__ instance so that co_filename is not a PyUnicodeObject, 
leading to a TypeError within the function, but that's a readonly attribute.  
Any ideas?

I've also added a unit test for a non-ASCII script 
(Lib/test/systemtap_sample_☠.py), containing a non-ASCII identifier (文字化け).

The non-ASCII script name (Lib/test/systemtap_sample_☠.py) may be 
controversial: do we have anything like that in the source tree yet?  Is there 
any risk of messing up the build across platforms, or of impacting the Hg 
migration?

Still to-do:
  - address the "Undefined symbol" issues seen by jcea.
  - documentation
  - doublecheck performance

--
Added file: 
http://bugs.python.org/file19360/py3k-add-systemtap-2010-10-25-002.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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() is meant to encode a filename, you should
use PyUnicode_EncodeFSDefault() instead.

> The non-ASCII script name (Lib/test/systemtap_sample_☠.py) may be
> controversial: do we have anything like that in the source tree yet?
> Is there any risk of messing up the build across platforms, or of
> impacting the Hg migration?

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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/python-hot-loading-prototype/

The patch includes unit tests for gc.remap as well as documentation.  The NEWS 
has a TODO where the issue number would be, which needs to be updated.  The 
unit test suite has been run on Ubuntu 10.10 and Windows XP.

--
components: Extension Modules
files: python_remap.diff
keywords: patch
messages: 119582
nosy: pingebretson
priority: normal
severity: normal
status: open
title: Add gc.remap() function to the gc module.
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file19361/python_remap.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 similarly-named file during 
the test, using test.support.TEST_FN and unlink

Still TODO:
  - address pitrou's concerns about PyUnicode_AsUTF8String from msg119580
  - address the "Undefined symbol" issues seen by jcea (msg119563 onwards)
  - documentation
  - doublecheck performance
  - perhaps add a systemtap "tapset", and demo code using it (like I did in 
Fedora's python3 RPMs)
  - anything else I've missed :)

--
Added file: 
http://bugs.python.org/file19363/py3k-add-systemtap-2010-10-25-003.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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).

Are there any DTrace experts around who would be willing to handle the DTrace 
side of this?  If not, would it be reasonable to make this issue be only 
explicitly about "systemtap"?  (e.g. perhaps change the "configure" argument 
accordingly?)  Alternatively, given that this bug originally started as an RFE 
about DTrace, should we split out systemtap as a separate RFE?

I'm sorry if I've "muddied the waters" by doing this.

For example, the only test coverage I've written (test_systemtap.py) checks for 
the presence of a "stap" executable, and skips the tests if it's not found.  
I'm not familiar enough with DTrace to create the same for DTrace.

FWIW (in response to IRC question): "thread_indent" is documented here:
http://sourceware.org/systemtap/SystemTap_Beginners_Guide/systemtapscript-handler.html#thread_indent

It looks like it may be systemtap-specific; however the only usage is within 
test_systemtap.py, guarded by the presence of a "stap" binary, skipping the 
tests if it is not found.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 lines with a plus sign as the 
name (not any name starting with '+' or '-') and it breaks out of the loop when 
it finds one, silently discarding any remaining lines.

I've attached a new patch which preserves the functionality of getgrall but 
updates its docstring to document that any group names starting with '+' or '-' 
represent NIS-related entries. The patch fixes the test itself so that it skips 
over NIS-related entries rather than attempting to look them up with 
grp.getgrnam.

With this patch applied (to the py3k branch HEAD), all regression tests pass on 
my machine.

--
nosy: +bobbyi
title: fix test_grp failing on RedHat 6.2 -> fix test_grp failing when NIS 
entries present
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file19364/test_grp.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
in the future:

>>> import sys
[52733 refs]
>>> 2 + 2
4
[52733 refs]
>>> sys._inject_malloc_failure(50)
[52733 refs]
>>> 2 + 2
MemoryError
[52747 refs]
>>> 2 + 2
4
[52747 refs]

I'm not sure how to make this useful; perhaps it could instead compare with the 
"serialno" in Objects/obmalloc.c so that you could set up a specific numbered 
allocation and have it fail (or perhaps a range of serial numbers, and expose 
"serialno" within the "sys" module?)

Another idea might be to randomly have some proportion of allocations fail.  
Perhaps the test suite could have an option where it runs each set of tests in 
a separate subprocess, and sets a command-line switch to inject "random" malloc 
failures? (storing the seed, so that they're reproducible, on one machine at 
least).

--
components: Tests
files: py3k-inject-malloc-failure.txt
messages: 119586
nosy: dmalcolm, pitrou
priority: normal
severity: normal
status: open
title: Memory allocation fault-injection?
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file19365/py3k-inject-malloc-failure.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +jackdied

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 present in 
distutils.get_python_inc(), which correctly returns /usr/include/python3.1.

--
assignee: tarek
components: Distutils
messages: 119590
nosy: Bruce.Sherwood, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: distutils.get_python_lib() returns /usr/local/python3/dist-packages on 
Ubuntu 10.10
type: behavior
versions: Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +patch
priority: normal -> high
stage: needs patch -> patch review
Added file: http://bugs.python.org/file19366/issue10107-py3k-31.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 are needed when linked with an X11-based Tk on OS X.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com