[issue12702] shutil.copytree() should use os.lutimes() to copy the metadata of symlinks

2011-08-05 Thread Petri Lehtinen

New submission from Petri Lehtinen :

As discussed in issue 12183, shutil.copytree(..., symlinks=True) should copy 
the metadata of symlinks instead of the metadata of the file that the symlink 
refers to.

This can be achieved by using os.lstat() and os.lutimes() (new in 3.3) on 
symlinks.

--
components: Library (Lib)
keywords: easy
messages: 141712
nosy: orsenthil, petri.lehtinen
priority: normal
severity: normal
status: open
title: shutil.copytree() should use os.lutimes() to copy the metadata of 
symlinks
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-05 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

Terry J. Reedy wrote:
> Adding a feature 'fixes' the deficiency of its absence. I personally
> have no use for 'accepted' and find it ambiguous. My best
> understanding is what David has seen (accepted in principle).

Ditto.

Having separate resolutions for bugs and features makes it harder to
find all issues that have been closed as "bug fixed or feature
accepted", because you cannot select multiple resolutions when
searching.

With one resolution, you can simply search for "fixed" issues. If you
only want to find feature requests that were accepted, search for
type=feature and resolution=fixed.

--

___
Python tracker 

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



[issue12697] timeit documention still refers to the timeit.py script

2011-08-05 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Thanks for the report, Boris Feld and Alexis.

--
assignee: alexis -> docs@python
nosy: +docs@python, orsenthil

___
Python tracker 

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




[issue12697] timeit documention still refers to the timeit.py script

2011-08-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset fa1e5fe55664 by Senthil Kumaran in branch '2.7':
Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.
http://hg.python.org/cpython/rev/fa1e5fe55664

New changeset 87de58db3d40 by Senthil Kumaran in branch '3.2':
Fix closes Issue12697 - Update the usage syntax of timeit module in the docs.
http://hg.python.org/cpython/rev/87de58db3d40

New changeset 46b801545126 by Senthil Kumaran in branch 'default':
merge from 3.2 - Fix closes Issue12697 - Update the usage syntax of timeit 
module in the docs.
http://hg.python.org/cpython/rev/46b801545126

--
nosy: +python-dev
resolution:  -> fixed
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



[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-08-05 Thread Oleg Oshmyan

Oleg Oshmyan  added the comment:

I have another proposition (as an alternative). The new _bz2.BZ2Decompressor 
objects have an attribute called eof which is False until the end of the stream 
is read. The same attribute could be added to zlib.Decompress objects.

--

___
Python tracker 

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



[issue12653] Provide accelerators for all buttons in Windows installers

2011-08-05 Thread Senthil Kumaran

Changes by Senthil Kumaran :


--
nosy: +markm

___
Python tracker 

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



[issue11047] Bad description for an entry in whatsnew/2.7

2011-08-05 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Sandro, perhaps got overlooked. :) But yeah, why wait. Done.

--
nosy: +orsenthil

___
Python tracker 

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



[issue11047] Bad description for an entry in whatsnew/2.7

2011-08-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 298df0970eec by Senthil Kumaran in branch '2.7':
Fix closes issue11047 - Correct the 2.7 whatsnew description for issue 7902.
http://hg.python.org/cpython/rev/298df0970eec

New changeset dafdbd0d570a by Senthil Kumaran in branch '3.2':
merge from 2.7 - Fix closes issue11047 - Correct the 2.7 whatsnew description 
for issue 7902.
http://hg.python.org/cpython/rev/dafdbd0d570a

New changeset aea6f588230b by Senthil Kumaran in branch 'default':
merge from 3.2 - Fix closes issue11047 - Correct the 2.7 whatsnew description 
for issue 7902.
http://hg.python.org/cpython/rev/aea6f588230b

--
nosy: +python-dev
resolution:  -> fixed
stage: commit review -> 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



[issue12698] urllib does not use no_proxy when it has blanks

2011-08-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset c5a35bcfa3ee by Senthil Kumaran in branch '2.7':
Fix closes issue12698 - make the no_proxy environment variable handling a bit 
lenient (accomodate spaces in between the items)
http://hg.python.org/cpython/rev/c5a35bcfa3ee

New changeset 1d4bd059a9b6 by Senthil Kumaran in branch '3.2':
Fix closes issue12698 - make the no_proxy environment variable handling a bit 
lenient (accomodate spaces in between the items)
http://hg.python.org/cpython/rev/1d4bd059a9b6

New changeset 47573019bfc8 by Senthil Kumaran in branch 'default':
merge from 3.2 - Fix closes issue12698 - make the no_proxy environment variable 
handling a bit lenient (accomodate spaces in between the items)
http://hg.python.org/cpython/rev/47573019bfc8

--
nosy: +python-dev
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



[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-05 Thread Andrew Wilkins

Andrew Wilkins  added the comment:

In _pickle.c, the load_put function calls _Unpickler_Readline, which may 
prefetch data and place it after the line read in with "readline". load_put 
then calls PyLong_FromString, which doesn't like the trailing data after the 
'\n'.

Maybe just use PyOS_strtol instead? Alternatively, replace the newline with a 
null byte.

--
nosy: +axwalk

___
Python tracker 

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



[issue7367] pkgutil.walk_packages fails on write-only directory in sys.path

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
versions: +Python 3.3 -Python 3.1

___
Python tracker 

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



[issue7367] pkgutil.walk_packages fails on write-only directory in sys.path

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
assignee:  -> ned.deily

___
Python tracker 

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



[issue11914] pydoc modules/help('modules') crash in dirs with unreadable subdirs

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
assignee:  -> ned.deily
nosy: +ned.deily
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



[issue12696] pydoc error page due to lacking permissions on ./*

2011-08-05 Thread Ned Deily

Ned Deily  added the comment:

This is essentially a duplicate of Issue11914.  The root cause is that 
pkgutil.iter_modules doesn't deal with permission errors when traversing paths. 
 Issue7367 is also related.

--
assignee:  -> ned.deily
nosy: +ned.deily

___
Python tracker 

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



[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

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



[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-05 Thread deadshort

deadshort  added the comment:

Blecch: cut-o.
The bad case should have been the matching:

idiotbox:Python-2.7.2 cloomis$ ./seqpoint 40 40
a=40, b=40, c(a*b)=-2446744073709551616, c/b=40
overflow detected: 0

--

___
Python tracker 

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



[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-05 Thread deadshort

New submission from deadshort :

Apple Radar ticket 9908625 has been filed. The clang 2.1 optimizer causes 
overflows in Object/intobject.c:int_pow() to be missed, so 2**63 turns into a 
negative integer. The attached test program narrows it down. llvm-gcc is fine, 
so this ticket is mostly an FYI.

idiotbox:Python-2.7.2 cloomis$ ./seqpoint-OK 40 40
a=40, b=40, c(a*b)=-2446744073709551616, c/b=-611686018
overflow detected: 1

  to turn into:

idiotbox:Python-2.7.2 cloomis$ ./seqpoint 4294967296 42
a=4294967296, b=42, c(a*b)=-407881430509551616, c/b=4294967296
overflow detected: 0

--
components: Interpreter Core
files: seqpoint.c
messages: 141701
nosy: deadshort
priority: normal
severity: normal
status: open
title: Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c
versions: Python 2.7
Added file: http://bugs.python.org/file22845/seqpoint.c

___
Python tracker 

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



[issue12661] Add a new shutil.cleartree function to shutil module

2011-08-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I also think it sounds too specialized.

--
nosy: +pitrou

___
Python tracker 

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I wonder if we should raise LookupError for unknown uids/gids. Do we have other 
APIs with similar semantics?

--
nosy: +pitrou

___
Python tracker 

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



[issue12691] tokenize.untokenize is broken

2011-08-05 Thread Gareth Rees

Gareth Rees  added the comment:

Thanks Ezio for the review. I've made all the changes you requested, (except 
for the re-ordering of paragraphs in the documentation, which I don't want to 
do because that would lead to the "round-trip property" being mentioned before 
it's defined). Revised patch attached.

--
Added file: http://bugs.python.org/file22844/Issue12691.patch

___
Python tracker 

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



[issue11481] The copy module already uses copyreg

2011-08-05 Thread Sandro Tosi

Sandro Tosi  added the comment:

A quick reword could be the one attached.

--
keywords: +patch
nosy: +ezio.melotti, sandro.tosi
stage:  -> patch review
versions: +Python 2.7 -Python 3.1
Added file: http://bugs.python.org/file22843/issue11481.patch

___
Python tracker 

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



[issue12256] Link isinstance/issubclass doc to abc module

2011-08-05 Thread Sandro Tosi

Sandro Tosi  added the comment:

I think the patch is fine to apply.

--
nosy: +ezio.melotti, sandro.tosi
stage: patch review -> commit review

___
Python tracker 

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



[issue12700] test_faulthandler fails on Mac OS X Lion

2011-08-05 Thread Gareth Rees

New submission from Gareth Rees :

On Mac OS 10.7, test_faulthandler fails. See test output below.

It looks as though the tests may be at fault in expecting to see 
"(?:Segmentation fault|Bus error)" instead of "(?:Segmentation fault|Bus 
error|Illegal instruction)".

test_disable (__main__.FaultHandlerTests) ... ok
test_dump_traceback (__main__.FaultHandlerTests) ... ok
test_dump_traceback_file (__main__.FaultHandlerTests) ... ok
test_dump_traceback_threads (__main__.FaultHandlerTests) ... ok
test_dump_traceback_threads_file (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_cancel (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_file (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_repeat (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_twice (__main__.FaultHandlerTests) ... ok
test_enable_file (__main__.FaultHandlerTests) ... FAIL
test_enable_single_thread (__main__.FaultHandlerTests) ... FAIL
test_fatal_error (__main__.FaultHandlerTests) ... ok
test_gil_released (__main__.FaultHandlerTests) ... FAIL
test_is_enabled (__main__.FaultHandlerTests) ... ok
test_read_null (__main__.FaultHandlerTests) ... FAIL
test_register (__main__.FaultHandlerTests) ... ok
test_register_chain (__main__.FaultHandlerTests) ... ok
test_register_file (__main__.FaultHandlerTests) ... ok
test_register_threads (__main__.FaultHandlerTests) ... ok
test_sigabrt (__main__.FaultHandlerTests) ... ok
test_sigbus (__main__.FaultHandlerTests) ... ok
test_sigfpe (__main__.FaultHandlerTests) ... ok
test_sigill (__main__.FaultHandlerTests) ... ok
test_sigsegv (__main__.FaultHandlerTests) ... ok
test_stack_overflow (__main__.FaultHandlerTests) ... ok
test_unregister (__main__.FaultHandlerTests) ... ok

==
FAIL: test_enable_file (__main__.FaultHandlerTests)
--
Traceback (most recent call last):
  File "test_faulthandler.py", line 207, in test_enable_file
filename=filename)
  File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation 
fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n  File "", line 4 in 
$' not found in 'Fatal Python error: Illegal instruction\n\nCurrent 
thread XXX:\n  File "", line 4 in '

==
FAIL: test_enable_single_thread (__main__.FaultHandlerTests)
--
Traceback (most recent call last):
  File "test_faulthandler.py", line 217, in test_enable_single_thread
all_threads=False)
  File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation 
fault|Bus error)\n\nTraceback\\ \\(most\\ recent\\ call\\ first\\):\n  File 
"", line 3 in $' not found in 'Fatal Python error: Illegal 
instruction\n\nTraceback (most recent call first):\n  File "", line 3 
in '

==
FAIL: test_gil_released (__main__.FaultHandlerTests)
--
Traceback (most recent call last):
  File "test_faulthandler.py", line 195, in test_gil_released
'(?:Segmentation fault|Bus error)')
  File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation 
fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n  File "", line 3 in 
$' not found in 'Fatal Python error: Illegal instruction\n\nCurrent 
thread XXX:\n  File "", line 3 in '

==
FAIL: test_read_null (__main__.FaultHandlerTests)
--
Traceback (most recent call last):
  File "test_faulthandler.py", line 115, in test_read_null
'(?:Segmentation fault|Bus error)')
  File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation 
fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n  File "", line 3 in 
$' not found in 'Fatal Python error: Illegal instruction\n\nCurrent 
thread XXX:\n  File "", line 3 in '

--
Ran 27 tests in 21.711s

FAILED (failures=4)
Traceback (most recent call last):
  File "test_faulthandler.py", line 

[issue12691] tokenize.untokenize is broken

2011-08-05 Thread Gareth Rees

Gareth Rees  added the comment:

Please find attached a patch containing four bug fixes for untokenize():

* untokenize() now always returns a bytes object, defaulting to UTF-8 if no 
ENCODING token is found (previously it returned a string in this case).
* In compatibility mode, untokenize() successfully processes all tokens from an 
iterator (previously it discarded the first token).
* In full mode, untokenize() now returns successfully (previously it asserted).
* In full mode, untokenize() successfully processes tokens that were separated 
by a backslashed newline in the original source (previously it ran these tokens 
together).

In addition, I've added some unit tests:

* Test case for backslashed newline.
* Test case for missing ENCODING token.
* roundtrip() tests both modes of untokenize() (previously it just tested 
compatibility mode).

and updated the documentation:

* Update the docstring for untokenize to better describe its actual behaviour, 
and remove the false claim "Untokenized source will match input source 
exactly". (We can restore this claim if we ever fix tokenize/untokenize so that 
it's true.)
* Update the documentation for untokenize in tokenize.rdt to match the 
docstring.

I welcome review: this is my first proper patch to Python.

--
keywords: +patch
Added file: http://bugs.python.org/file22842/Issue12691.patch

___
Python tracker 

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



[issue11047] Bad description for an entry in whatsnew/2.7

2011-08-05 Thread Sandro Tosi

Sandro Tosi  added the comment:

Hello, the patch seems indeed to fix a "reverse" description of issue 7902. Was 
there a reason (given the quite long list of nosy people) why it was not 
applied? "lack of time" doesn't count :)

--
nosy: +ezio.melotti, sandro.tosi
stage:  -> commit review
versions: +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



[issue12696] pydoc error page due to lacking permissions on ./*

2011-08-05 Thread Martin von Gagern

Martin von Gagern  added the comment:

The server continues all right. It's the browser window which displays the 
error message. Not much better in my opinion, though.

To be completely accurate: currently the -b option doens't work as it should 
due to issue #11432. But using "-p 0" and opening the link manually is a 
suitable workaround for now.

--

___
Python tracker 

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



[issue12699] strange behaviour of locale.getlocale() -> None, None

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> 3.x locale does not default to C,   contrary to the 
documentation and to 2.x behavior

___
Python tracker 

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



[issue12698] urllib does not use no_proxy when it has blanks

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +orsenthil

___
Python tracker 

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



[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-05 Thread Sandro Tosi

Changes by Sandro Tosi :


--
nosy: +sandro.tosi

___
Python tracker 

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



[issue11572] bring Lib/copy.py to 100% coverage

2011-08-05 Thread Sandro Tosi

Sandro Tosi  added the comment:

Brandon, thanks for your work on this patch! I've just committed the unittests 
update+removal of _test() part.

For the remaining part, I see that Nick and you worked on it during a sprint, 
so I'm quite sure it's fine, but nonetheless it would be awesome if you can 
fill in the missing bits.

re coverage: I saw the other issue, but I didn't connect the dots, thanks for 
doing it for me :)

--
assignee:  -> sandro.tosi

___
Python tracker 

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



[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-08-05 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +haypo

___
Python tracker 

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



[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-05 Thread Gareth Rees

Gareth Rees  added the comment:

Terry: agreed. Does anyone actually use this module? Does anyone know what the 
design goals are for tokenize? If someone can tell me, I'll do my best to make 
it meet them.

Meanwhile, here's another bug. Each character of trailing whitespace is 
tokenized as an ERRORTOKEN.

Python 3.3.0a0 (default:c099ba0a278e, Aug  2 2011, 12:35:03) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on 
darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tokenize import tokenize,untokenize
>>> from io import BytesIO
>>> list(tokenize(BytesIO('1 '.encode('utf8')).readline))
[TokenInfo(type=57 (ENCODING), string='utf-8', start=(0, 0), end=(0, 0), 
line=''), TokenInfo(type=2 (NUMBER), string='1', start=(1, 0), end=(1, 1), 
line='1 '), TokenInfo(type=54 (ERRORTOKEN), string=' ', start=(1, 1), end=(1, 
2), line='1 '), TokenInfo(type=0 (ENDMARKER), string='', start=(2, 0), end=(2, 
0), line='')]

--

___
Python tracker 

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



[issue11572] bring Lib/copy.py to 100% coverage

2011-08-05 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 74e79b2c114a by Sandro Tosi in branch 'default':
#11572: improvements to copy module tests along with removal of old test suite
http://hg.python.org/cpython/rev/74e79b2c114a

--
nosy: +python-dev

___
Python tracker 

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



[issue12662] Add support for duplicate options in configparser

2011-08-05 Thread Łukasz Langa

Łukasz Langa  added the comment:

This specific config format you're discussing strikes me as error prone and 
barely useful. With the use case you've given I cannot justify introducing 
support for it in the standard library. Remember that each switch, variant, 
however obscure and rarely used, increases source code complexity and 
introduces a maintenance burden.

As you've seen with the freshly introduced `strict` option, we're generally 
heading the other direction: to let application users know early they 
potentially made a misconfiguration that could confuse them later on.

So, thanks for your feedback but unfortunately I will have to say no to that 
proposal.

--
resolution:  -> 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



[issue12691] tokenize.untokenize is broken

2011-08-05 Thread Gareth Rees

Gareth Rees  added the comment:

I think I can make these changes independently and issue two patches, one 
fixing the problems with untokenize listed here, and another improving tokenize.

I've just noticed a third bug in untokenize: in full mode, it doesn't handle 
backslash-continued lines correctly.

Python 3.3.0a0 (default:c099ba0a278e, Aug  2 2011, 12:35:03) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on 
darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from io import BytesIO
>>> from tokenize import tokenize, untokenize
>>> untokenize(tokenize(BytesIO('1 and \\\n not 
2'.encode('utf8')).readline))
b'1 andnot 2'

--

___
Python tracker 

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-05 Thread Sandro Tosi

Sandro Tosi  added the comment:

Gaaah, sorry about that: I've just uploaded the correct fifth version.

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue12690] Tix bug 2643483

2011-08-05 Thread Gary Levin

Gary Levin  added the comment:

Terry, I am just a new casual user.

The fix described in the Tix report (adding the '-') fixed the problem for me.  
But the report (2009-02-26) is after the most recent Tix build (8.4.3   
2008-03-17).  I don't know if it was ever added to the repository.   

Is Tix still being supported?  No, the last CVS change was FileEnt.tcl revision 
1.7 by hobbs, Sun Mar 28 02:44:57 2004.  Looks pretty dead to me.

If not, a good reason for me to skip Tix and use tkinter and ttk.  There have 
been recent commits (last commit on 2011-06-30).

--

___
Python tracker 

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-05 Thread Sandro Tosi

Changes by Sandro Tosi :


Removed file: http://bugs.python.org/file22675/shutil_chown-default-v5.patch

___
Python tracker 

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-05 Thread Sandro Tosi

Changes by Sandro Tosi :


Added file: http://bugs.python.org/file22841/shutil_chown-default-v5.patch

___
Python tracker 

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



[issue12696] pydoc error page due to lacking permissions on ./*

2011-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Do any of you three have anything to do with pydoc?

Given that the manual simply says "pydoc -b will start the server and 
additionally open a web browser to a module index page." without 
qualifications, quitting when started from certain locations strikes me as a 
bug.  I do not see a reason to not just continue.

--
nosy: +eric.araujo, ezio.melotti, georg.brandl, terry.reedy
stage:  -> test needed
type: feature request -> behavior
versions: +Python 2.7, Python 3.3

___
Python tracker 

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



[issue12699] strange behaviour of locale.getlocale() -> None, None

2011-08-05 Thread Feth AREZKI

New submission from Feth AREZKI :

Tested on linux arch & debian, freeBSD and MacOSX :

% python2.7
[...]
>>> import locale
>>> locale.getlocale()
(None, None)
>>> locale.getlocale(locale.LC_CTYPE)  #or any type
(None, None)

% python3.2
[...]
>>> import locale
>>> locale.getlocale()
('fr_FR', 'UTF-8')

We feel this is strange!

--
messages: 141683
nosy: alexis, feth
priority: normal
severity: normal
status: open
title: strange behaviour of locale.getlocale() -> None, None
versions: Python 2.7

___
Python tracker 

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



[issue12690] Tix bug 2643483

2011-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Gary, did you mean that there is a fix in the Tix bug report?
(the addition of '-'?)
If so, what has it not been applied to the Tix repository?
Is it still active?
Once changed there, the change should be propagated to the Python distribution.

--
nosy: +terry.reedy
status: pending -> open

___
Python tracker 

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



[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Adding a feature 'fixes' the deficiency of its absence. I personally have no 
use for 'accepted' and find it ambiguous. My best understanding is what David 
has seen (accepted in principle).

--
nosy: +terry.reedy

___
Python tracker 

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



[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I have not used tokenize, but if it is *not* intended to exactly reproduce the 
internal tokenizer  behavior, the claim that it is should be amended.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue12697] timeit documention still refers to the timeit.py script

2011-08-05 Thread Ezio Melotti

Ezio Melotti  added the comment:

Sounds good to me.

I would also replace the % with $ in the first example and use triple-quoted 
docstrings and spaces around the == in the last.

--
keywords: +easy
nosy: +ezio.melotti, sandro.tosi
stage:  -> needs patch
versions:  -Python 2.6, Python 3.1, Python 3.4

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue12662] Add support for duplicate options in configparser

2011-08-05 Thread ojab

ojab  added the comment:

It may be impelmented as configparser.ConfigParser(strict=yes|no|multiline), so 
no existing configs will be broken.

--

___
Python tracker 

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



[issue12675] tokenize module happily tokenizes code with syntax errors

2011-08-05 Thread Daniel Urban

Changes by Daniel Urban :


--
nosy: +durban

___
Python tracker 

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



[issue12691] tokenize.untokenize is broken

2011-08-05 Thread Daniel Urban

Changes by Daniel Urban :


--
nosy: +durban

___
Python tracker 

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



[issue12662] Add support for duplicate options in configparser

2011-08-05 Thread Brian Curtin

Brian Curtin  added the comment:

This would break existing config files, including some of my own. 

It would also require that you have some end delimiter on every item in order 
to handle the event that someone duplicates options, otherwise the following 
would likely behave badly in your application

[sect]
opt=first
opt=second

This would give you "firstsecond" that you'd somehow need to parse. Sometimes 
if I'm testing out options, like I want to check how "second" works, I'll 
quickly just do it as above. With a change like this, I couldn't do that, I'd 
be forced to comment out the first line, or add a delimiter and split on it.

--
nosy: +brian.curtin

___
Python tracker 

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



[issue12662] Add support for duplicate options in configparser

2011-08-05 Thread ojab

ojab  added the comment:

There is some [leagcy] proprietary soft-switches, which uses this config format.
Personally I use [hacked] configparser to process Mera systems MVTS/SIP-HIT 
configs in this format, for example.

--

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: docs@python -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue12694] crlf.py script from Tools doesn't work with Python 3.2

2011-08-05 Thread R. David Murray

Changes by R. David Murray :


--
status: open -> closed

___
Python tracker 

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



[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-05 Thread R. David Murray

R. David Murray  added the comment:

I don't see any such code in the 3.3 source for the context manager.  There the 
resource name is put in the ResourceDenied message.  I think we'll need the 
reproducer.

--

___
Python tracker 

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



[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-05 Thread Brett Cannon

Brett Cannon  added the comment:

On Fri, Aug 5, 2011 at 04:33, R. David Murray wrote:

It just seems odd to print when verbosity is  off, but not when it is on. I
don't have  the repo in front of me right now, but is there some other
mechanism which prints out similar info when verbosity is on?

> --
> nosy: +r.david.murray
>
> ___
> Python tracker 
> 
> ___
>

--
Added file: http://bugs.python.org/file22840/unnamed

___
Python tracker 

___On Fri, Aug 5, 2011 at 04:33, R. David Murray 
rep...@bugs.python.org> 
wrote:


R. David Murray rdmur...@bitdance.com> added the 
comment:

I'm pretty sure this was intentional.  It is analogous to Skip messages 
and the messages issued when a resource hasn't been enabled, which also 
print when verbose is not true: the test wasn't run, and it lets you know 
why.


It just seems odd to print when verbosity is  off, 
but not when it is on. I don't have  the repo in front of me right now, 
but is there some other mechanism which prints out similar info when verbosity 
is on?

 
--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org>
http://bugs.python.org/issue12693>
___

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



[issue12692] test_urllib2net is triggering a ResourceWarning

2011-08-05 Thread Brett Cannon

Brett Cannon  added the comment:

Thanks for the info, Nadeem.

--
assignee:  -> orsenthil
nosy: +orsenthil

___
Python tracker 

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



[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-08-05 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

The replacement file, for anyone without a dev setup, is
http://hg.python.org/cpython/file/cc86f4ca5020/Lib/idlelib/PyShell.py

After renaming PyShell to PyShellBak and replacing with the above,
IDLE seems to run better than ever. On my XP system, the several second delay 
for the old process dying is gone and I never see 3 pythonw processes, even 
temporarily, as before. I can no longer tell from TaskManager that one process 
has been killed and another started. Testing included running tk windows. Will 
test later on new Win7 system.

Pending some unforeseen new problem, thank you Ned and Eli.

--

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I'm not sure how the bugtracker patch mechanism works, but the patch it 
produced included a lot of changes that I didn't make (changesets already 
committed to the master repo).

--
keywords:  -patch

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I don't know how that repo got to be private; I created it just like every 
other public repo I have, and I thought I was only allowed one private repo 
(this was my second). In any case, I updated the setting, and now it appears to 
be accessible via the bug tracker.

--

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
keywords: +patch
Added file: http://bugs.python.org/file22839/bc362109eed8.diff

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Can you provide a public URI?

--

___
Python tracker 

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



[issue12666] map semantic change not documented in What's New

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

(HTTPS repos are not supported)

--
hgrepos: +51
nosy: +eric.araujo

___
Python tracker 

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



[issue12661] Add a new shutil.cleartree function to shutil module

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

It looks like this new function would just replace a loop using os.walk and 
fnmatch.  Is it really needed?

--
nosy: +eric.araujo

___
Python tracker 

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



[issue12662] Add support for duplicate options in configparser

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report.  Could you tell us more about the use cases?  Are you 
aware of some config files using this form?

--
nosy: +eric.araujo
title: Allow configparser to process suplicate options -> Add support for 
duplicate options in configparser

___
Python tracker 

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



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

You should replace the v5 file (or even remove all files, for clarity) with the 
actual output of hg diff, not hg status ;-)

--

___
Python tracker 

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



[issue12697] timeit documention still refers to the timeit.py script

2011-08-05 Thread Alexis Metaireau

Changes by Alexis Metaireau :


--
title: timeiot documention still refers to the timeit.py script -> timeit 
documention still refers to the timeit.py script

___
Python tracker 

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



[issue12698] urllib does not use no_proxy when it has blanks

2011-08-05 Thread jimmi

New submission from jimmi :

if you define your no_proxy var as mentioned in /etc/sysocnfig/proxy

# Example: NO_PROXY="www.me.de, do.main, localhost"

then python's urllib will never make use of it, cause there are blanks.
urllib does not remove blanks.

Reproducible: Always

Steps to Reproduce:
1.try it out

Actual Results:  
proxy will not be bypassed

Expected Results:  
proxy should be bypassed

you can also review this bug:
https://bugzilla.novell.com/show_bug.cgi?id=710736

--
components: Library (Lib)
files: python-2.7-urllib-no_proxy.patch
keywords: patch
messages: 141664
nosy: jimmi.pip.verisignlabs.com.
priority: normal
severity: normal
status: open
title: urllib does not use no_proxy when it has blanks
versions: Python 2.7
Added file: http://bugs.python.org/file22838/python-2.7-urllib-no_proxy.patch

___
Python tracker 

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



[issue12697] timeiot documention still refers to the timeit.py script

2011-08-05 Thread Alexis Metaireau

Changes by Alexis Metaireau :


--
nosy: +Boris.FELD

___
Python tracker 

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



[issue12697] timeiot documention still refers to the timeit.py script

2011-08-05 Thread Alexis Metaireau

New submission from Alexis Metaireau :

The example section of the timeit documentation still refers to "timeit.py", 
and isn't using the "python -m timeit" syntax used above.
http://docs.python.org/library/timeit.html#examples

I'm not sure when and if the timeit.py script has been removed from the python 
installation (and I'm not sure on where to look for this).

The timeit.py docstring also refers to this "old" syntax. Should we update it?

All credit for this report goes to Boris Feld.

--
assignee: alexis
components: Library (Lib)
messages: 141663
nosy: alexis
priority: low
severity: normal
status: open
title: timeiot documention still refers to the timeit.py script
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue12641] Remove -mno-cygwin from distutils

2011-08-05 Thread Jon

Jon  added the comment:

shortly after opening this issue i removed -mno-cygwin from my 2.7.2 install 
and have had no issues on win7 32bit. but i understand you're hesitation.

regardless what you decide, please consider placing a summary note in the 
source comments as a safety net.

if you'd like me to try building a limited set of extensions to help with your 
decision, let me know.  i have the following mingw toolchains on my win7 32bit 
system:

* tdm gcc 4.5.2 - http://tdm-gcc.tdragon.net/
* mingw-w64 prefix-stripped gcc 4.5.4 - 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Automated%20Builds/
* Ruben's gcc 4.6.2 personal build - 
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/4.6.2-1/

i'm not speaking for Ruben, but as he maintains 
https://github.com/rubenvb/MinGW-w64-build-scripts you might try cajoling him 
if you feel you need more test results ;)

re: re.search, understood, thanks...quick-testing.

--

___
Python tracker 

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



[issue12641] Remove -mno-cygwin from distutils

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

The necessity of walking on eggs with the distutils codebase restrains me.  
I’ve read the thread on sourceforge (thanks Ruben) but don’t have enough 
information yet to decide whether to do a version check, call gcc -dumpspecs or 
remove the option altogether.

BTW, there’s no need to use re.search if you’re not using a regular expression: 
“'no-cygwin' in output” will work.

--

___
Python tracker 

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



[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2011-08-05 Thread Éric Araujo

Éric Araujo  added the comment:

There is.  Someone wanting to help could reply to the question I asked :)

--
type: feature request -> behavior
versions: +Python 3.3

___
Python tracker 

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



[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-05 Thread James Y Knight

James Y Knight  added the comment:

Oh wow, so it depends on the *build* time major version? That's really not 
useful at all for linux 2.x and 3.x; there is nothing useful anyone can 
possibly do with the distinction between platform == "linux2" and platform == 
"linux3". All it could possibly do is to break apps.

Given that:
a) old versions of Python won't even build without a patch and
b) changing platform to linux3 will break a lot of python apps that check 
sys.platform. 
c) It's completely useless to change it, as the change contains no actual 
information.

Why is forcing sys.platform to remain linux2 not the *obviously right thing to 
do*?

--
nosy: +foom

___
Python tracker 

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



[issue12696] pydoc error page due to lacking permissions on ./*

2011-08-05 Thread Martin von Gagern

New submission from Martin von Gagern :

I'd like to be able to run "pydoc -b" in whatever directory I'm currently in. 
Most of the time that would be the root of my home directory, which is an 
ext4fs mount. So it has a subdirectory called "lost+found" for which I don't 
have any access permissions. As a result, the main pydoc info page will simply 
print an error message:

OSError: [Errno 13] Permission denied: './lost+found'

I'm not sure how best to address this. There are several possibilities that 
come to my mind:

 1. Provide a command line switch to strip '.' from sys.path.
 2. Skip any sys.path elements which cause exceptions, possibly
printing a warning in addition to the remaining page content.
 3. Skip any single subdirectry which causes an exception,
as this more closely models what importing by name would do.
 4. Explicitely skip lost+found, or perhaps any directory name which
would be invalid as a module name.

Obviously, the workaround is to change to a sufficiently empty directory before 
starting pydoc. So this is a minor issue, but annoying nevertheless.

--
components: Library (Lib)
messages: 141658
nosy: gagern
priority: normal
severity: normal
status: open
title: pydoc error page due to lacking permissions on ./*
type: feature request
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



[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-08-05 Thread Tobias Klausmann

Tobias Klausmann  added the comment:

This bug is still not fixed and basically makes the curses module unusable 
except for very narrow use cases. Unfortunately, my C-fu is very weak, 
otherwise I'd try to make a patch.

--
nosy: +klausman

___
Python tracker 

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



[issue12540] "Restart Shell" command leaves pythonw.exe processes running

2011-08-05 Thread Eli Bendersky

Eli Bendersky  added the comment:

On Fri, Aug 5, 2011 at 09:43, Ned Deily  wrote:

>
> Ned Deily  added the comment:
>
> With Eli's concurrence, I have applied the updated patch to 3.2 (for 3.2.2)
> and to default (for 3.3).
>
> --
>

Tested this on Windows XP with Python 3.2 installed into "Program Files".
Works fine (including shell restart).

It would be great to get more people to test it though, especially people
who ran into the problem originally - Peter? Terry? Anish? Qiang Sun?

--
Added file: http://bugs.python.org/file22837/unnamed

___
Python tracker 

___On Fri, Aug 5, 2011 at 09:43, Ned Deily 
rep...@bugs.python.org> 
wrote:


Ned Deily n...@acm.org> added the 
comment:

With Eli's concurrence, I have applied the updated patch to 3.2 (for 
3.2.2) and to default (for 3.3).

--Tested this on Windows XP with Python 3.2 
installed into "Program Files". Works fine (including shell 
restart).It would be great to get more people to test it though, 
especially people who ran into the problem originally - Peter? Terry? Anish? 
Qiang Sun?


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



[issue12694] crlf.py script from Tools doesn't work with Python 3.2

2011-08-05 Thread R. David Murray

Changes by R. David Murray :


--
resolution:  -> duplicate
stage:  -> committed/rejected
superseder:  -> Tools/Scripts/crlf.py needs updating for python 3+

___
Python tracker 

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



[issue12032] Tools/Scripts/crlf.py needs updating for python 3+

2011-08-05 Thread R. David Murray

Changes by R. David Murray :


--
title: Tools/Scripts/crlv.py needs updating for python 3+ -> 
Tools/Scripts/crlf.py needs updating for python 3+
type: crash -> behavior

___
Python tracker 

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



[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-05 Thread R. David Murray

R. David Murray  added the comment:

I'm pretty sure this was intentional.  It is analogous to Skip messages and the 
messages issued when a resource hasn't been enabled, which also print when 
verbose is not true: the test wasn't run, and it lets you know why.

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



[issue12695] subprocess.Popen: OSError: [Errno 9] Bad file descriptor

2011-08-05 Thread Martin von Gagern

Martin von Gagern  added the comment:

Sorry, this is a duplicate of issue #11432. Failed to find that, and also 
failed to realize that python is now using hg and my svn checkout might be 
outdated. Sorry there.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

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



[issue12695] subprocess.Popen: OSError: [Errno 9] Bad file descriptor

2011-08-05 Thread Martin von Gagern

New submission from Martin von Gagern :

suprocess.Popen on POSIX (using _posixsubprocess Module) has a good chance of 
repeatedly closing the same file descriptor if the descriptor for stdin is also 
used for stdout and/or stderr. Only stdout and stderr are checked for equality 
with one another.

This breaks webbrowser.open for me, as the browser remote has all three 
descriptors redirected from/to /dev/null. This breaks "pydoc -p". I've taken 
this scenario and turned it into a unit test, which you find attached together 
with a proposed fix.

On my currently installed Python 3.2, the unit tests results in this traceback 
(and two more like it for other test classes):

ERROR: test_inouterr_fileobj (__main__.ProcessTestCase)
--
Traceback (most recent call last):
  File "Lib/test/test_subprocess.py", line 630, in test_inouterr_fileobj
stderr = devnull)
  File "/usr/lib64/python3.2/subprocess.py", line 736, in __init__
restore_signals, start_new_session)
  File "/usr/lib64/python3.2/subprocess.py", line 1330, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 9] Bad file descriptor

--
components: Library (Lib)
files: subprocess.patch
keywords: patch
messages: 141653
nosy: gagern
priority: normal
severity: normal
status: open
title: subprocess.Popen: OSError: [Errno 9] Bad file descriptor
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file22836/subprocess.patch

___
Python tracker 

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



[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

2011-08-05 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> PyImport_ExecCodeModuleEx adds the module to sys.modules *before*
> actually executing the code. This is a design flaw (can it really be
> changed? )

I guess it is done so to allow for circular imports.

> The second bug: in cPickle.c: func_class() 
> cPickle 'manually' checks if a module is in sys.modules instead of
> letting the import mechanism do it for him (hence breaking the import
> lock's defense here).

I would guess it is an optimization shortcut. A solution (while keeping the 
optimization) would be to take the import lock before checking sys.modules.

Note that the _pickle module in 3.x has the same kind of logic, and therefore 
probably the same issue too (haven't tested).

--
nosy: +pitrou
versions: +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



[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-05 Thread Sandro Tosi

Sandro Tosi  added the comment:

On Mon, Jul 25, 2011 at 13:50, Éric Araujo  wrote:
> Éric Araujo  added the comment:
>
> FTR, for Debian and derivatives, doko chose to use 'linux2' when building on 
> linux3.

Luckily that has just been reverted.

--
nosy: +sandro.tosi

___
Python tracker 

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



[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-05 Thread Martin von Gagern

Changes by Martin von Gagern :


--
nosy: +gagern

___
Python tracker 

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



[issue12694] crlf.py script from Tools doesn't work with Python 3.2

2011-08-05 Thread Alexander Belchenko

New submission from Alexander Belchenko :

Attempt to use crlf.py script from standard windows install always fail with 
traceback:

C:\Python32\Tools\Scripts>C:\Python32\python.exe crlf.py 2to3.py
Traceback (most recent call last):
  File "crlf.py", line 23, in 
main()
  File "crlf.py", line 12, in main
if '\0' in data:
TypeError: Type str doesn't support the buffer API

C:\Python32\Tools\Scripts>C:\Python32\python.exe -V
Python 3.2

--
messages: 141650
nosy: bialix
priority: normal
severity: normal
status: open
title: crlf.py script from Tools doesn't work with Python 3.2
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



[issue12692] test_urllib2net is triggering a ResourceWarning

2011-08-05 Thread Nadeem Vawda

Changes by Nadeem Vawda :


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



[issue12692] test_urllib2net is triggering a ResourceWarning

2011-08-05 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

Relevant: http://mail.python.org/pipermail/python-dev/2011-July/112551.html

--
nosy: +nadeem.vawda

___
Python tracker 

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