[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 I don't really understand your algorithm. Why do you need a stack?

Before resolving the symlink we mark the path as unresolved symlink for 
detecting infinite symlink loops. Before resolving the symlink we mark the path 
as resolved symlink (and cache the resolved value for speed) for allowing 
finite symlink recursion.

Here is a test which pathlib fails.

--
Added file: http://bugs.python.org/file28720/pathlib_resolve_test.py

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



[issue16960] Fix PEP8 errors in stdlib.

2013-01-14 Thread Ramchandra Apte

New submission from Ramchandra Apte:

This bug is intended to contain all the patches for fixing PEP8 errors in 
stdlib.
I am thinking of using a tool such as autopep8 to help fix the errors.

--
messages: 179921
nosy: ramchandra.apte
priority: normal
severity: normal
status: open
title: Fix PEP8 errors in stdlib.

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread Ramchandra Apte

Ramchandra Apte added the comment:

s/stdlib/everywhere

--
components: +None
title: Fix PEP8 errors in stdlib. - Fix PEP8 errors everywhere

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread Ezio Melotti

Ezio Melotti added the comment:

Sorry, but we don't fix style issue unless we are already working on that code 
for some other reasons.

--
nosy: +ezio.melotti
resolution:  - rejected
stage:  - committed/rejected
status: open - closed
type:  - enhancement

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Why? This may be low priority.

--

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread Ezio Melotti

Ezio Melotti added the comment:

Several reasons, e.g.:
 * there's the risk of introducing new bugs;
 * it makes merging more difficult;
 * it takes time to produce and review the patches;
 * it makes hg annotate harder to use;

--

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



[issue11159] Sax parser crashes if given unicode file name

2013-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, this thing was doubted me too. I proceeded from the following 
considerations.

1. Often system id is used for file operations and in this case you need to use 
the file system encoding. Unfortunately Python 2 does not have 
'surrogateescape' handler which would allow to encode arbitrary name and then 
restore and re-encode it for file operations.

2. Python 2 in contrary to Python 3 accepts bytes and they may not be valid 
UTF-8.

We have to choose between compatibility with Python 2 and Python 3. I chose the 
first, because it is more important for bugfix.

May be I am wrong.

--

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



[issue16500] Add an 'atfork' module

2013-01-14 Thread STINNER Victor

STINNER Victor added the comment:

 Might make sense to put this in atexit.atfork() to avoid small-module 
 inflation?

It sounds strange to mix at exit and at fork in the same module.
Both are very different.

2013/1/13 Arfrever Frehtes Taifersar Arahesis rep...@bugs.python.org:

 Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


 --
 nosy: +Arfrever

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

--

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



[issue2128] sys.argv is wrong for unicode strings

2013-01-14 Thread STINNER Victor

STINNER Victor added the comment:

 is it correct that this bug no longer appears in Python 2.7.3?

Martin wrote that it cannot be fixed in Python 2: For 2.6, I don't think 
fixing it is feasible.

The fix is to upgrade your application to Python 3.

--

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I concur with Ezio's reasons for rejecting this.

--
nosy: +rhettinger

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread Ramchandra Apte

Ramchandra Apte added the comment:

It's a valid bug report however difficult or low priority it is.

--

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



[issue15870] PyType_FromSpec should take metaclass as an argument

2013-01-14 Thread lekma

Changes by lekma lekma...@gmail.com:


--
nosy: +lekma

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



[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2013-01-14 Thread gac

gac added the comment:

Here's a second path I've done for the current/default branch, using a separate 
print function for output, as recommended by Berker Peksag. I tried to add it 
as a separate patch set using the code review tool but every time I did, I just 
got a screen full of debug output from Django so I'm going to attach it here 
instead.

The for loop on args inside _print_debug probably isn't ideal, but I've done 
this to try and make sure that debuglevel 1 output is identical to what it was 
before my patches. Because args is passed into _print_debug as a tuple, I found 
that when doing print(message, args, file=stderr) it introduced the extra 
parentheses and quotes inherent with a tuple into the output. By concatenating 
string representations of this tuple onto the existing string it means the 
original output format is duplicated exactly. There may be a speed penalty for 
this, but realistically it seems that a minor speed penalty would be expected 
when using debugging options and the output consistency trumps raw speed for 
debugging.

Once I've found a way of achieving the same in 2.7 (i.e. maintaining the 
original output format when being passed a tuple, the approach I've used for 
Python 3 doesn't seem to have the desired affect in 2.7) then I'll hopefully 
submit a patch for that as well.

--
Added file: http://bugs.python.org/file28721/smtplib.34.patch

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



[issue11159] Sax parser crashes if given unicode file name

2013-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is an alternative patch. It doesn't encode system id when it settled, 
instead system id attribute can be bytes or an unicode and encoding/decoding 
happened only a file opened.

--
Added file: http://bugs.python.org/file28722/sax_unicode_fn_alt-2.7.patch

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



[issue16903] subprocess.Popen.communicate with universal_newlines=True doesn't accept strings on 3.2

2013-01-14 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
stage:  - needs patch

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



[issue16954] Add docstrings for ElementTree module

2013-01-14 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee: docs@python - serhiy.storchaka

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



[issue16960] Fix PEP8 errors everywhere

2013-01-14 Thread R. David Murray

R. David Murray added the comment:

It is valid, but it is not *useful* to have it in the bug tracker as an open 
bug.  All developers are aware that when they touch code for some other reason, 
they can fix PEP8 errors at the same time.  Having an open bug report for it 
would just clutter the ticket system for no practical purpose.

--
nosy: +r.david.murray

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



[issue16961] No regression tests for -E and individual environment vars

2013-01-14 Thread Nick Coghlan

New submission from Nick Coghlan:

Accessing an environment variable without Py_GETENV (or breaking 
Py_IgnoreEnvironmentFlag configuration *cough*) may lead to environment 
variables being accessed even if -E is passed on the command line.

As part of the PEP 432 implementation, I'm adding appropriate regression tests 
for affected environment variables as I go.

Creating this as a reminder to look into backporting the relevant regression 
tests at least to 3.3

--
assignee: ncoghlan
messages: 179934
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: No regression tests for -E and individual environment vars
versions: Python 3.3

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



[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2013-01-14 Thread R. David Murray

R. David Murray added the comment:

Thanks for the suggestion and patch.  I haven't reviewed it thoroughly yet, but 
if you change _print_debug to be:

   def _print_debug(*args):

then

   print(datetime.datetime.now(), *args, file=stderr)

should do what you want for python3 (I don't think the [] are needed, 
personally).  This patch won't be applied to 2.7, which I presume you know, so 
making that work would be for informational purposes only.

--
versions:  -Python 2.7

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



[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2013-01-14 Thread R. David Murray

R. David Murray added the comment:

Er, that should have been (self, *args), but actually I'd recommend making it a 
module function, not a method, in which case my signature would be correct :)

--

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



[issue16962] _posixsubprocess module uses outdated getdents system call

2013-01-14 Thread Riku Voipio

New submission from Riku Voipio:

Getdents system call was superseded with with getdents64 in Linux 2.4 (January 
2001). New architectures, such as 64-Bit ARM opt out not to support legacy 
system calls, and getdents is one of them. 

Since getdents64 has been supported for over a decade, I don't think adding 
ifdef to support both makes sense. Using getdents64 cleans up the current 
_posixsubprocess code as the entries are long long everywhere.

The attached patch makes _posixsubprocess module compile on 64-Bit ARM and 
causes on regressions on the python3.3 testsuite on x86 and x86_64

--
components: Extension Modules
files: movetogetdents64.diff
keywords: patch
messages: 179937
nosy: riku-voipio
priority: normal
severity: normal
status: open
title: _posixsubprocess module uses outdated getdents system call
versions: Python 3.3
Added file: http://bugs.python.org/file28723/movetogetdents64.diff

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



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread sean

New submission from sean:

NOTE: SAME AS Python 3.2.2, Python 3.3 from python.org/download

Python 3.2.2 Stackless 3.1b3 060516 (default, Feb 20 2012, 13:36:12) [MSC 
v.1500 32 bit (Intel)] on win32
Type copyright, credits or license() for more information.
 from html.parser import HTMLParser
 class LooseParser(HTMLParser):
def __init__(self, strict=False):
HTMLParser.__init__(self, strict=strict)
def handle_starttag(self, tag, attrs):
print('Tag:', tag)


 p = LooseParser()
 p.feed('phello/p')


--
components: Library (Lib)
messages: 179938
nosy: pysean
priority: normal
severity: normal
status: open
title: module html.parser HTMLParser's strict mode don't work
type: behavior
versions: Python 3.2

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



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread Ezio Melotti

Ezio Melotti added the comment:

It works for me on 3.2.3, 3.2.3+, 3.3.0+, 3.4.0a0
 from html.parser import HTMLParser
 class LooseParser(HTMLParser):
... def __init__(self, strict=False):
... HTMLParser.__init__(self, strict=strict)
... def handle_starttag(self, tag, attrs):
... print('Tag:', tag)
... 
 p = LooseParser()
 p.feed('phello/p')
Tag: p


--
nosy: +ezio.melotti

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



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread sean

sean added the comment:

SAME AS
 #issue13273
http://bugs.python.org/issue13273

--
resolution:  - duplicate
status: open - closed

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



[issue16963] module html.parser HTMLParser's strict mode don't work

2013-01-14 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - committed/rejected

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



[issue1602133] non-framework python fails to define os.environ properly

2013-01-14 Thread Ronald Oussoren

Ronald Oussoren added the comment:

The patch didn't work for me because I manually applied and missed a bit. The 
patches fixes https://bitbucket.org/ronaldoussoren/py2app/issue/81 for me, 
and the environ(7) manpage also indicates that the call to _NSEnvironment is 
needed in shared libraries. 

I've attached a slightly different version of the patch that only enabled the 
_NSGetEnvironment path for shared library builds (--enable-shared and 
--enable-framework) and doesn't change anything for the default static builds.

Ned: I think this is a bugfix and should be merged into all active branches. Do 
you agree? If so, I'll apply the patch.

--
nosy: +ned.deily
versions: +Python 3.4

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



[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2013-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated. Fixed an error which Georg have found. Restored testing 
XMLGenerator with StringIO as Antoine pointed. Now XMLGenerator tested for 
StringIO, BytesIO and an user writer. Added tests for encoding.

--
keywords:  -easy
Added file: http://bugs.python.org/file28724/XMLGenerator-4.patch

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



[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2013-01-14 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
stage: needs patch - patch review

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-14 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Added some comments on Rietveld.
The .fileno() method is missing. Can this cause a problem when the file is 
passed to stdlib functions? subprocess for example?

--

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



[issue12939] Add new io.FileIO using the native Windows API

2013-01-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

What does this proposal bring exactly?

--

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



[issue16500] Add an 'atfork' module

2013-01-14 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 13.01.2013 00:37, STINNER Victor wrote:
 By the way, OpenSSL expects that its PRNG is reseed somehow (call RNG_add) 
 after a fork. I wrote a patch for OpenSSL, but I don't remember if I sent it 
 to OpenSSL.
 https://bitbucket.org/haypo/hasard/src/4a1be69a47eb1b2ec7ca95a341d4ca953a77f8c6/patches/openssl_rand_fork.patch?at=default

Apparently not, and according to this thread, they don't think
this is an OpenSSL problem to solve:

http://openssl.6102.n7.nabble.com/recycled-pids-causes-PRNG-to-repeat-td41669.html

Note that you don't have to reseed the RNG just make sure that the
two forks use different sequences. Simply adding some extra data
in each process will suffice, e.g. by adding the PID of the new process
to the RNG pool. This is certainly doable without any major CPU
overhead :-)

--
nosy: +lemburg

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



[issue16962] _posixsubprocess module uses outdated getdents system call

2013-01-14 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +gregory.p.smith
stage:  - patch review
type:  - behavior
versions: +Python 3.4

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



[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Still, raising SkipTest from the toplevel is useful when some toplevel setup 
code otherwise depends on the missing module.

--
nosy: +pitrou

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



[issue13968] Support recursive globs

2013-01-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I should add a symlink loop detecting to _rlistdir() as Antoine advised me on 
IRC.

--
stage: patch review - needs patch

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



[issue16956] Allow signed line number deltas in the code object's line number table

2013-01-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

How does this interact with pdb?

--
nosy: +georg.brandl, haypo, pitrou
stage:  - patch review
type:  - enhancement
versions: +Python 3.4

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



[issue16500] Add an 'atfork' module

2013-01-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 It sounds strange to mix at exit and at fork in the same module.
 Both are very different.

That's true. The sys module would probably be the right place for both 
functionalities.

--

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



[issue16715] Get rid of IOError. Use OSError instead

2013-01-14 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Please email python-dev if you think LoadError should be directly specified.

--

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



[issue16944] German number separators not working using format language and locale de_DE

2013-01-14 Thread Eric V. Smith

Eric V. Smith added the comment:

I think this issue should be closed, since we're doing as we're instructed by 
the OS. If someone wants to open a new issue for the m format specifier type, 
I'd support that.

--
nosy: +eric.smith

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



[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-14 Thread Zachary Ware

Zachary Ware added the comment:

I agree that raising SkipTest (or subclasses thereof, such as ResourceDenied) 
at module level should be supported.  That would mean no changes would be 
needed in most of the should-be-skipped-but-fail-instead tests listed in issue 
16748 to make test discovery play nicely, and in fact the changes to test_crypt 
could be mostly reverted.

Personally, I don't find either of the suggestions given as alternates to what 
I did in test_crypt to be particularly prettier, not that what I did is pretty 
either.

--

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



[issue16944] German number separators not working using format language and locale de_DE

2013-01-14 Thread Stefan Krah

Stefan Krah added the comment:

I agree, we can't really do anything here.

--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Zachary Ware

Zachary Ware added the comment:

Georg:
 Note that Sphinx' make text output already should be suitable. We 
 already update the pydoc topics with that on every release, so we could 
 just as well do the same for the IDLE doc.  No need for another 
 separate script.

I take it this would mean generating help.txt and then checking it in?  
Otherwise, users who built their own Python would likely run into issues with 
IDLE not finding its help file, or would be required to have sphinx available.  
That's not quite what I had in mind, but if we already do it for pydoc topics, 
it sounds fine to me.

--

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



[issue16964] Add 'm' format specifier for mon_grouping etc.

2013-01-14 Thread Stefan Krah

New submission from Stefan Krah:

This issue proposes an additional 'm' format specifier that behaves like
'n', but uses mon_grouping, mon_decimal_point and mon_thousands_sep.

See #16944 for the rationale.

--
components: Interpreter Core
messages: 179955
nosy: Peter.Stahl, eric.smith, mark.dickinson, skrah
priority: low
severity: normal
stage: needs patch
status: open
title: Add 'm' format specifier for mon_grouping etc.
type: enhancement
versions: Python 3.4

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



[issue16748] Make CPython test package discoverable

2013-01-14 Thread Zachary Ware

Zachary Ware added the comment:

Chris:
 There are lots of modules to change here.  I wonder if some or most of 
 this couldn't be automated.

Possibly, but I don't mind going through individually if Ezio (or others) don't 
mind committing individually.  From what I've seen, the test suite is varied 
enough within itself that it would be pretty hard to properly automate the 
changes I've been making.  Also, I'm of the opinion that we'll end up with a 
higher quality result doing things by hand anyway.

--

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



[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d1ef91025d70 by Andrew Svetlov in branch 'default':
Issue #5066: Update IDLE docs
http://hg.python.org/cpython/rev/d1ef91025d70

--
nosy: +python-dev

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



[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-14 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Pushed. Thanks.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue16932] urlparse fails at parsing www.python.org:80/

2013-01-14 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Regenerating idle.txt and committing it is fine to me.

--

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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Georg Brandl

Georg Brandl added the comment:

 I take it this would mean generating help.txt and then checking it in? 
 Otherwise, users who built their own Python would likely run into issues with 
 IDLE not finding its help file, or would be required to have sphinx available.

Yes, it will be checked in.

 That's not quite what I had in mind, but if we already do it for pydoc 
 topics, it sounds fine to me.

I don't think we have to worry about it getting out of date quickly.  
Automatically generating the IDLE help at run time from a documentation source 
file is not posssible anyway, since the doc sources are not available in a 
standard location for installed Pythons.

--

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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Zachary Ware

Zachary Ware added the comment:

 I don't think we have to worry about it getting out of date quickly.  

Fair point :)

 Automatically generating the IDLE help at run time from a documentation 
 source file is not posssible anyway, since the doc sources are not 
 available in a standard location for installed Pythons.

This isn't quite what I meant either; I had intended it to be done at either 
Python build or install time.  Your method is much simpler, though, I like it.

That said, here's the diff between the (now) current Lib/idlelib/help.txt and 
the Sphinx ``make text`` output of Doc/library/idle.rst.  I've not found where 
we've automated the pydoc topics generation, else I'd try to provide a patch to 
do this as well.

--
keywords: +patch
Added file: http://bugs.python.org/file28725/issue16893.diff

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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Georg Brandl

Georg Brandl added the comment:

The unified diff is not very helpful; I think somebody has to put the files 
side by side and merge.

The pydoc topics are built with a custom Sphinx builder implemented in 
tools/sphinxext/pyspecific.py -- but if we just want the vanilla text builder 
output it should be enough to add a Doc/Makefile target:

idledoc: BUILDER = text
idledoc: SOURCES = library/idle
idledoc: build
@echo Build finished; now copying build/text/library/idle.txt to 
../Lib/idlelib/help.txt.
@cp build/text/library/idle.txt ../Lib/idlelib/help.txt

and I add a step to PEP 101 to run this.

--

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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-01-14 Thread Georg Brandl

Georg Brandl added the comment:

To make it actually work, replace library/idle by library/idle.rst.

--

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



[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2013-01-14 Thread Barry A. Warsaw

New submission from Barry A. Warsaw:

In this distribute bug I describe a problem when pip installing mimeparse, 
which has a setup.py with a BOM.  distribute uses execfile() which gets fixed 
in Python 3 to use a combination of compile(open()) as the fixer.

https://bitbucket.org/tarek/distribute/issue/349/dont-rely-on-2to3-to-properly-rewrite

I think the problem is that the fixer opens the file in text mode, which leaves 
the BOM as a bogus fi