[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +loewis, ncoghlan

___
Python tracker 

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



[issue20755] 3.3.4: doc build fails on Sphinx < 1.2

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

Until 3.4, the docs are meant to be built with the Sphinx versions checked out 
by "make".

Someone might want to port the fix for 1.1.x on the default branch if they are 
interested.

--

___
Python tracker 

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



[issue20735] Documentation: remove stringprep deprecation mark in docs

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

Strange, the "deprecated" marker seems to have crept in in revision 
20aec9f34598 -- I don't see it in the 2.5 docs.

Since Martin is the module author and probably maintainer, I would say this was 
an accident.

--
nosy: +georg.brandl
title: Documentation: mark stringprep as deprecated -> Documentation: remove 
stringprep deprecation mark in docs

___
Python tracker 

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



[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread OPi

OPi added the comment:

All works fine with UTF-8.
All works fine with latin-1 (or other) and Windows end of line.

Maybe this issue is important, "First line can be executed twice":
http://bugs.python.org/issue18960

--

___
Python tracker 

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



[issue20735] Documentation: remove stringprep deprecation mark in docs

2014-02-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset de5d4a60ab95 by Georg Brandl in branch '3.3':
Closes #20735: remove erroneous deprecated marker from stringprep docs
http://hg.python.org/cpython/rev/de5d4a60ab95

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue20755] 3.3.4: doc build fails on Sphinx < 1.2

2014-02-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7358ca69f351 by Georg Brandl in branch '3.3':
Closes #20755: port sphinx-1.1 fixes from default
http://hg.python.org/cpython/rev/7358ca69f351

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue20693] Sidebar scrolls down 2x as fast as page content

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

Not quite fixed yet: this will happen with any build using sphinx1.1, which is 
supposed to be supported now.

--
status: closed -> open

___
Python tracker 

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



[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
nosy: +georg.brandl
priority: normal -> release blocker

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread Rik

Rik added the comment:

Line wrapping is indeed done by `Header`, but why do `base64mime` and 
`quoprimime` then have their own line wrapping? I assume so that you can also 
use them independently. So that's why I would think `Charset.header_encode` 
should also accept a `maxlinelen` so that you can use `Charset` independently 
too.

--

___
Python tracker 

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



[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I can't test on Windows but may be this patch fixes the issue.

--
keywords: +patch
nosy: +larry
stage:  -> patch review
versions: +Python 3.4
Added file: http://bugs.python.org/file34211/issue20731.patch

___
Python tracker 

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



[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

Just in time for 3.3.5...

--

___
Python tracker 

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



[issue20758] mimetypes initialization order

2014-02-24 Thread Charley Peng

New submission from Charley Peng:

I thought that it would make more sense to check that the registry entry starts 
with a . before it attempts to request it in mimetypes.py.

In any case, this fixed issue 9291 for me. (I realize it's just an incidental 
fix)

--
components: Windows
messages: 212075
nosy: chid
priority: normal
severity: normal
status: open
title: mimetypes initialization order
type: crash
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue20758] mimetypes initialization order

2014-02-24 Thread Charley Peng

Charley Peng added the comment:

Sorry forgot to attach the file.

--
keywords: +patch
Added file: http://bugs.python.org/file34212/mywork.patch

___
Python tracker 

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



[issue20693] Sidebar scrolls down 2x as fast as page content

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

Hmm, I can't reproduce here with 1.1.3.  Can someone build the tip docs locally 
with Sphinx 1.1.3 and try to reproduce?

--

___
Python tracker 

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +georg.brandl
priority: high -> release blocker
stage: needs patch -> patch review
versions:  -Python 3.4

___
Python tracker 

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



[issue20714] Allow for ]]> in CDATA in minidom

2014-02-24 Thread Peter Otten

Peter Otten added the comment:

Perhaps a look at the competition is still in order: Java silently breaks such 
an invalid CDATA in two, as suggested.

http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.htm says
"""
No lexical check is done on the content of a CDATA section and it is therefore 
possible to have the character sequence "]]>" in the content, which is illegal 
in a CDATA section per section 2.7 of [XML 1.0]. The presence of this character 
sequence must generate a fatal error during serialization or the cdata section 
must be splitted before the serialization (see also the parameter 
"split-cdata-sections" in the DOMConfiguration interface).
"""

The change Artur suggested would be covered by this.

--

___
Python tracker 

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



[issue20535] run_tests.py: Work around issues 20355 and 20361

2014-02-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue20759] unittest.mock documentation typo

2014-02-24 Thread Jurko Gospodnetić

New submission from Jurko Gospodnetić:

Python unittest.mock documentation has typo:
  indvidually
instead of
  individually

Can be seen in the documentation source file at:

http://hg.python.org/releasing/3.4/file/c1f9fbefb237/Doc/library/unittest.mock-examples.rst#l429

--
assignee: docs@python
components: Documentation
messages: 212079
nosy: Jurko.Gospodnetić, docs@python
priority: normal
severity: normal
status: open
title: unittest.mock documentation typo
versions: Python 3.3, Python 3.4

___
Python tracker 

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, I missed the patch.

--
Added file: 
http://bugs.python.org/file34213/issue19619_blacklist_transforms_py33.patch

___
Python tracker 

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

That looks ok to me.

--

___
Python tracker 

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



[issue20753] disable test_robotparser test that uses an invalid URL

2014-02-24 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Okay, here is my attempt to rewrite the test using local web server. I copied 
and modified the code from Lib/test/test_socketserver.py. The website 
mueblesmoraleda can not be accessed so I could only guess what the intention of 
this test was.

I am not sure whether I should remove the duplicate comment and using daemon or 
not.

--
keywords: +patch
nosy: +vajrasky
Added file: 
http://bugs.python.org/file34214/test_robotparser_use_local_server.patch

___
Python tracker 

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



[issue20758] mimetypes initialization order

2014-02-24 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +tim.golden
type: crash -> 
versions:  -Python 3.1, Python 3.2

___
Python tracker 

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



[issue20759] unittest.mock documentation typos

2014-02-24 Thread Jurko Gospodnetić

Jurko Gospodnetić added the comment:

Another related documentation 'bug' - the following wording:

> Mock doesn’t create these but instead of raises an
> AttributeError.

should be changed to something like:

> Mock doesn’t create these on demand and raises an AttributeError
> instead.

Can be seen in the documentation source file at:

http://hg.python.org/releasing/3.4/file/c1f9fbefb237/Doc/library/unittest.mock.rst#l960

--
title: unittest.mock documentation typo -> unittest.mock documentation typos

___
Python tracker 

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Backporting just the encode/decode changes sounds reasonable to me, since 
open() isn't likely to be a DoS vector in this particular case.

--

___
Python tracker 

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



[issue20759] unittest.mock documentation typos

2014-02-24 Thread Jurko Gospodnetić

Jurko Gospodnetić added the comment:

And another one:
  'setttings'
should be spelled
  'settings'
in:

http://hg.python.org/releasing/3.4/file/c1f9fbefb237/Doc/library/unittest.mock.rst#l1512

--

___
Python tracker 

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



[issue20535] run_tests.py: Work around issues 20355 and 20361

2014-02-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c89e495cdff8 by Serhiy Storchaka in branch '3.3':
Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
http://hg.python.org/cpython/rev/c89e495cdff8

New changeset 656d0e273ccb by Serhiy Storchaka in branch 'default':
Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
http://hg.python.org/cpython/rev/656d0e273ccb

--
nosy: +python-dev

___
Python tracker 

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



[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

This was still missing from rc2 - this is a *serious* usability issue on 
Windows and needs to be fixed before 3.4 final.

POSIX already has the python/python3 convention, so extending that to pip is 
reasonable. Windows has no such convention, and the "pip3" naming is just 
confusing there. We need to install "pip" as well.

--

___
Python tracker 

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



[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

And if that means we need an rc3, then we should *absolutely* do one. It's that 
important.

--

___
Python tracker 

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



[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

Attached patch uses a similar solution to the one I used in issue 19744 to 
better handle "make install" and "make altinstall" when SSL/TLS are missing: it 
converts the version mismatch to a printed warning that still reports "success" 
to the caller.

--
keywords: +patch
Added file: 
http://bugs.python.org/file34215/issue20757_only_print_to_stderr_for_pip_mismatch.diff

___
Python tracker 

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 95386bbf9471 by Serhiy Storchaka in branch '3.3':
Issue #19619: Blacklist non-text codecs in method API
http://hg.python.org/cpython/rev/95386bbf9471

--

___
Python tracker 

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



[issue20760] test_compileall test getting failed on 3.4 RC

2014-02-24 Thread Vipul Borikar

New submission from Vipul Borikar:

Hi,
I getting python trace when running test_compileall test case 

OS:
 
$ uname -a
Linux vipul-desktop 3.8.13.8 #1 SMP Thu Oct 3 17:54:03 IST 2013 x86_64 x86_64 
x86_64 GNU/Linux


Python Version:
 
$ ./bin/python3 -V
Python 3.4.0rc2


Output and Error:

$ ./bin/python3 -m test -v test_compileall
== CPython 3.4.0rc2 (default, Feb 24 2014, 16:28:23) [GCC 4.7.3]
==   Linux-3.8.13.8-x86_64-with-debian-wheezy-sid little-endian
==   hash algorithm: siphash24 64bit
==   /tmp/test_python_6884
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_compileall
test_compiles_as_much_as_possible (test.test_compileall.CommandLineTests) ... ok
test_d_compile_error (test.test_compileall.CommandLineTests) ... ok
test_d_runtime_error (test.test_compileall.CommandLineTests) ... ok
test_d_takes_exactly_one_dir (test.test_compileall.CommandLineTests) ... ok
test_force (test.test_compileall.CommandLineTests) ... ok
test_include_bad_file (test.test_compileall.CommandLineTests) ... ok
test_include_file_no_arg (test.test_compileall.CommandLineTests) ... ok
test_include_file_with_arg (test.test_compileall.CommandLineTests) ... ok
test_include_on_stdin (test.test_compileall.CommandLineTests) ... ok
test_invalid_arg_produces_message (test.test_compileall.CommandLineTests) ... ok
test_legacy_paths (test.test_compileall.CommandLineTests) ... ok
test_multiple_dirs (test.test_compileall.CommandLineTests) ... ok
test_multiple_runs (test.test_compileall.CommandLineTests) ... ok
test_no_args_compiles_path (test.test_compileall.CommandLineTests) ... ok
test_no_args_respects_force_flag (test.test_compileall.CommandLineTests) ... 
FAIL
test_no_args_respects_quiet_flag (test.test_compileall.CommandLineTests) ... ok
test_pep3147_paths_doubleoptimize (test.test_compileall.CommandLineTests) ... ok
test_pep3147_paths_normal (test.test_compileall.CommandLineTests) ... ok
test_pep3147_paths_optimize (test.test_compileall.CommandLineTests) ... ok
test_quiet (test.test_compileall.CommandLineTests) ... ok
test_recursion_control (test.test_compileall.CommandLineTests) ... ok
test_regexp (test.test_compileall.CommandLineTests) ... ok
test_compile_files (test.test_compileall.CompileallTests) ... ok
test_magic_number (test.test_compileall.CompileallTests) ... ok
test_mtime (test.test_compileall.CompileallTests) ... ok
test_no_pycache_in_non_package (test.test_compileall.CompileallTests) ... ok
test_optimize (test.test_compileall.CompileallTests) ... ok
test_error (test.test_compileall.EncodingTest) ... ok

==
FAIL: test_no_args_respects_force_flag (test.test_compileall.CommandLineTests)
--
Traceback (most recent call last):
  File "/opt/Python3.4/lib/python3.4/test/test_compileall.py", line 194, in 
test_no_args_respects_force_flag
self.assertRunOK('-f', PYTHONPATH=self.directory)
  File "/opt/Python3.4/lib/python3.4/test/test_compileall.py", line 144, in 
assertRunOK
*self._get_run_args(args), **env_vars)
  File "/opt/Python3.4/lib/python3.4/test/script_helper.py", line 69, in 
assert_python_ok
return _assert_python(True, *args, **env_vars)
  File "/opt/Python3.4/lib/python3.4/test/script_helper.py", line 55, in 
_assert_python
"stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 1, stderr follows:


--
Ran 28 tests in 1.791s

FAILED (failures=1)
test test_compileall failed
1 test failed:
test_compileall

--
components: Tests
messages: 212091
nosy: vipulb
priority: normal
severity: normal
status: open
title: test_compileall test getting failed on 3.4 RC
type: crash
versions: Python 3.4

___
Python tracker 

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



[issue20760] test_compileall test getting failed on 3.4 RC

2014-02-24 Thread Vipul Borikar

Vipul Borikar added the comment:

Linux Distribution: Ubuntu 13.04

--

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

I've no clue, to tell you the truth.  Those APIs evolved long before I took 
over email package maintenance.  And since we are talking about 2.7,  we can't 
change the existing API.  In Python3, Charset.header_encode will as of 3.5 
become a legacy interface, so there's not much point in changing it there 
either, although it is not out of the question if there is a use case.

--

___
Python tracker 

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



[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Final patch should remove a workaround in Tools/scripts/run_tests.py.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Final patch should remove a workaround in Tools/scripts/run_tests.py.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20535] run_tests.py: Work around issues 20355 and 20361

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM too. Thank you for your patch Arfrever.

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

___
Python tracker 

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



[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think that issue20404 should be backported too. It is common to wrap socket 
stream with io.TextIOWrapper, and socket.makefile() returns text stream by 
default.

--

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread Rik

Rik added the comment:

Ok, so you suggest to use `maxlinelen=None` for the `base64mime.header_encode` 
which will act the same as giving `maxlinelen=None` to `email.quoprimime`, so 
that we don't need to change the API?

And this change would then also be reflected in the Python 3.5 legacy interface?

--

___
Python tracker 

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



[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Tiberiu Dragulinescu

New submission from Tiberiu Dragulinescu:

>>>d="asdasd"+chr(10)
>>>print os.path.normpath(os.path.join('a/b',d,'d'))
a\b\asdasd
\d

LF or CR cannot be part of a URI (rfc1738)

--
components: Windows
messages: 212099
nosy: ExtraVeral
priority: normal
severity: normal
status: open
title: os.path.join doesn't strip LF or CR
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue20733] Typo in itertools docs - "itertool-functions"

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Elazar, this is a nit and isn't worth changing the section head (that would 
break any external links to the section).   Also, I like the way it reads now 
(itertools functions is technically correct but sounds odd to my  ear).

--
nosy: +rhettinger
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

Well, we have to make base64mime.header_encode also handle a None value...so 
perhaps instead we should just use 1, which is what the Header wrapping 
code in python3 does.

Python3's Header doesn't have this bug.

--

___
Python tracker 

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



[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I like the brevity and clarity of your version.  If you would like, I can also 
add your name as the credit for the recipe.

It is up to Larry whether this goes in before or after the 3.4 release.

--
assignee: docs@python -> rhettinger
nosy: +larry
priority: normal -> low
type:  -> performance

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> Currently, it's a bit annoying to sort collections 
> containing "None" values in Python 3

I think we should seriously consider whether to restore None's ability to 
compare with other entries.   Removing this capability has been a major PITA 
and is an obstacle for people converting code to Python 3.

The need to create helper function work-arounds is a symptom, not a cure.

--
nosy: +rhettinger

___
Python tracker 

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



[issue20457] Use partition and enumerate make getopt easier

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I don't find the new patch to be any clearer than the original.

--
nosy: +rhettinger

___
Python tracker 

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



[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2014-02-24 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
nosy: +rhettinger, tim.peters

___
Python tracker 

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



[issue16499] CLI option for isolated mode

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

For the record (since it took me a while to figure it out), the changeset that 
this was committed in is dd0d751cc7f1.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Steven D'Aprano

Steven D'Aprano added the comment:

> LF or CR cannot be part of a URI

But they can be part of a filename, at least on POSIX systems. Are you 
proposing that only the Windows version of os.path.join strip LF/CR? 

I don't think that it up to the join function to validate the path, and 
certainly not to modify the substrings. Would you expect it to complain about 
this? os.path.join('/', 'AUX')? (AUX is a reserved name and forbidden for file 
names under Windows.)

I don't think it is up to join to validate that the path generated is legal, so 
I don't think this is a bug in join.

--
nosy: +stevenjd

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread Rik

Rik added the comment:

Ok, do you think there's any risk in making `base64mime.header_encode` handle 
`maxlinelen=None`? I think it would be more consistent if 
`base64mime.header_encode` and `quoprimime.header_encode` interpret their 
arguments similarly.

--

___
Python tracker 

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



[issue20745] test_statistics fails in refleak mode

2014-02-24 Thread Steven D'Aprano

Steven D'Aprano added the comment:

I don't know how to interpret this. Where can I find out more about refleak 
mode? Thanks.

--

___
Python tracker 

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



[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This doesn't sound like a bug. File paths are not URIs: almost all characters 
are valid in a POSIX filename. Also, sanity checking of user input is up to the 
caller.

I recommend closing this issue.

--
nosy: +pitrou
resolution:  -> invalid

___
Python tracker 

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



[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Tiberiu Dragulinescu

Tiberiu Dragulinescu added the comment:

The join function should know that it will compose a path with the provided
string, so I think it should complain or ignore ilegal path/filename
components, in regard to the host OS.

But if it is not a valid point of view python-wise, one can check his own
path :P

On Mon, Feb 24, 2014 at 4:03 PM, Steven D'Aprano wrote:

>
> Steven D'Aprano added the comment:
>
> > LF or CR cannot be part of a URI
>
> But they can be part of a filename, at least on POSIX systems. Are you
> proposing that only the Windows version of os.path.join strip LF/CR?
>
> I don't think that it up to the join function to validate the path, and
> certainly not to modify the substrings. Would you expect it to complain
> about this? os.path.join('/', 'AUX')? (AUX is a reserved name and forbidden
> for file names under Windows.)
>
> I don't think it is up to join to validate that the path generated is
> legal, so I don't think this is a bug in join.
>
> --
> nosy: +stevenjd
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

Well, there's the usual API change risk: something that works on 2.7.x doesn't 
work on 2.7.x-1.  So since we can fix the bug without making the API change, I 
think we should.

--

___
Python tracker 

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



[issue18652] Add itertools.first_true (return first true item in iterable)

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

As soon as the trunk opens again, I'll add Nick's version to the itertools  
recipes section.  

I'm disinclined to add it directly to the itertools module as a native C 
function for several reasons:


* The problem solved isn't that common (very little of code I've ever written 
or seen would be better-off if this function had been available).   The OP's 
regex use case was shown by Martin to be better written as an explicit 
for-loop.  I think this is probably also true in the general case.

* The module unity is about creating iterators.  Consumers of iterators such as 
any(), all(), next(), sum(), min(), max() and others all lie elsewhere. 

* For-loops are likely to be the one obvious way to do it for other variants 
such first_false(), first_true_raise_exception_if_not_found(),
 or first_greater_than_limit(), etc.

* For the most part, the functional style of itertool composition has been a 
win for performance, but not for readabilty.  Also, users of the module seem to 
suffer from having-too-many-choices.  Accordingly, I only want to grow the 
module for cases where there is a clear win.

I would have pronounced on this one sooner but was stayed by the enthusiasm of 
the participants in this thread.

David said, "now I have a place in the non-test email code where using this 
would lead to easier-to-read code".   IMO, this is telling.  The bar is higher 
than "I would have used this one time".  That doesn't make it worth having to 
learn and remember.

--

___
Python tracker 

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



[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

That wasn't clear.  By "something that works" I mean exactly what you are 
talking about: someone writing code using these functions would naturally try 
to use None with base64mime, and if we make it work, that would work fine in 
2.7.x, but mysteriously break if run on an earlier version of 2.7.  So instead 
we force the author of new code to use a non-None value that will in fact work 
in previous versions of 2.7.

--

___
Python tracker 

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



[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven added the comment:

Nick, this resolves the installation issues for me at least. +1

--

___
Python tracker 

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



[issue20762] SSLSocket.read() not documented

2014-02-24 Thread Enrico Bianchi

New submission from Enrico Bianchi:

although exists, read() method isn't reported in the SSLSocket documentation. 
Please, fix it

--
assignee: docs@python
components: Documentation
messages: 212115
nosy: docs@python, ebianchi
priority: normal
severity: normal
status: open
title: SSLSocket.read() not documented
versions: Python 3.3

___
Python tracker 

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



[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Larry Hastings

Larry Hastings added the comment:

Doc changes are fine basically anytime, but I don't want low-priority changes 
in Lib for 3.4.0.  But this would be fine for 3.4.1 if you like, or you could 
just wait for 3.5.

--

___
Python tracker 

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



[issue20762] SSLSocket.read() not documented

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

That's because SSLSocket is a wrapper around a regular socket, and the read 
method is documented in the Socket documentation.  You will notice that *only* 
SSL specific methods are documented in the SSLSocket documentation.

--
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

It's a doc change only.  Do you want it in the 3.4.0RC or in 3.4.1?

--

___
Python tracker 

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



[issue18652] Add itertools.first_true (return first true item in iterable)

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> David said, "now I have a place in the non-test email code where using this
> would lead to easier-to-read code".   IMO, this is telling.  The bar is
> higher than "I would have used this one time".  That doesn't make it worth
> having to learn and remember.

I will explain my last comment. Four months ago this place was rewritten, so 
now there is no place for this function.

--

___
Python tracker 

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



[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Larry Hastings

Larry Hastings added the comment:

The patch attached to this issue has changes to Lib/test/test_itertools.py.

--

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Tim Peters

Tim Peters added the comment:

I've haven't yet seen anyone complain about the inability to compare None 
except in the specific context of sorting.  If it is in fact specific to 
sorting, then this specific symptom and "the problem" are in fact the same 
thing ;-)

--
nosy: +tim.peters

___
Python tracker 

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



[issue20762] SSLSocket.read() not documented

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

Oops.  My mistake.  It's been too long since I did any socket programming :(

--
resolution: invalid -> 
stage: committed/rejected -> needs patch
status: closed -> open

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Both Nick's proposals look ok to me.

--
nosy: +pitrou

___
Python tracker 

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



[issue20745] test_statistics fails in refleak mode

2014-02-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The best way to learn about the different testing modes is to run
"./python -m test -h".

Basically "-R" executes the given tests several times in a row. This failure 
shows that test_statistics doesn't like being executed several times, which is 
a bug.

(the same problem arises with "-F" instead of "-R")

--

___
Python tracker 

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



[issue20762] SSLSocket.read() not documented

2014-02-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Hmm, yeah, this is actually intended. The read() and write() methods on 
SSLSocket are not intended to be a public API: you should call send() or recv() 
instead.

Ideally we would deprecate the read() and write() methods and rename the 
internal helpers to _read() and _write(). Christian, what do you think?

--
nosy: +christian.heimes, pitrou
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue20745] test_statistics fails in refleak mode

2014-02-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

(ah, actually "-F" seems to work fine with test_statistics :-))

--

___
Python tracker 

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



[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Mark Dickinson

Mark Dickinson added the comment:

That's not nitpicky!  It's a potentially confusing error that should definitely 
be rectified.

(Alternatively, we could redefine squares in Python.  All other languages just 
have the regular squares;  Python has a super *extra* square 2!  That clearly 
makes squares in Python *better* than squares in other languages...)

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Martin v . Löwis

Martin v. Löwis added the comment:

We should then declare that π is a square, which would allow an easy solution 
to squaring a circle in Python ☺

--
nosy: +loewis

___
Python tracker 

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



[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Python has a super *extra* square 2!

And let's not forget about -1.

--
nosy: +pitrou

___
Python tracker 

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



[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 151a498c55e3 by Ezio Melotti in branch '3.3':
#20740: desquarify 2.
http://hg.python.org/cpython/rev/151a498c55e3

New changeset 1bc585ba5df2 by Ezio Melotti in branch 'default':
#20740: merge with 3.3.
http://hg.python.org/cpython/rev/1bc585ba5df2

--
nosy: +python-dev

___
Python tracker 

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



[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report and the patch!

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Can anyone please test the patch on Windows?

--

___
Python tracker 

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



[issue20693] Sidebar scrolls down 2x as fast as page content

2014-02-24 Thread Ezio Melotti

Ezio Melotti added the comment:

I can reproduce on tip with Sphinx v1.1.3; seems to work fine on 3.3 and tip 
with Sphinx v1.2.

--

___
Python tracker 

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



[issue20628] Improve doc for csv.DictReader 'fieldnames' parameter

2014-02-24 Thread Sean Rodman

Sean Rodman added the comment:

Is there anything else that should be added to this patch? I don't mean to bug 
you guys just want to make sure that everything is right with it so that if and 
or when it is applied it will apply without any problems. Also, if there is 
anything else I should change I am definitely open to changing anything that is 
needed.

--

___
Python tracker 

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



[issue16074] Bad error message in os.rename, os.link, and os.symlink

2014-02-24 Thread Georg Brandl

Georg Brandl added the comment:

No change for 3.3.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue20762] SSLSocket.read() not documented

2014-02-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue20749] shutil.unpack_archive(): security concerns not documented

2014-02-24 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage:  -> needs patch
type:  -> behavior
versions: +Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue20628] Improve doc for csv.DictReader 'fieldnames' parameter

2014-02-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a5d4660c6cb6 by R David Murray in branch '3.3':
#20628: make it clear that DictReader/Writer *fieldnames* is a Sequence.
http://hg.python.org/cpython/rev/a5d4660c6cb6

New changeset 9f036047187b by R David Murray in branch '3.3':
#20628: wrap lines to < 80.
http://hg.python.org/cpython/rev/9f036047187b

New changeset 5eb7e29df762 by R David Murray in branch 'default':
Merge #20628: make it clear that DictReader/Writer *fieldnames* is a Sequence.
http://hg.python.org/cpython/rev/5eb7e29df762

New changeset 0e77dd295a88 by R David Murray in branch '2.7':
#20628: make it clear that DictReader/Writer *fieldnames* is a Sequence.
http://hg.python.org/cpython/rev/0e77dd295a88

New changeset 0926adcc335c by R David Murray in branch '2.7':
#20628: wrap lines to < 80.
http://hg.python.org/cpython/rev/0926adcc335c

--
nosy: +python-dev

___
Python tracker 

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



[issue20628] Improve doc for csv.DictReader 'fieldnames' parameter

2014-02-24 Thread R. David Murray

R. David Murray added the comment:

Applied.  Thanks, Sean.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue16074] Bad error message in os.rename, os.link, and os.symlink

2014-02-24 Thread Larry Hastings

Larry Hastings added the comment:

It's fine that we're not fixing this in 3.3, but since this did get fixed in 
3.4, I propose dropping 3.3 from the version list and changing the resolution 
to "fixed".

*waves magic wand*

--
resolution: wont fix -> fixed
stage: needs patch -> committed/rejected
versions:  -Python 3.3

___
Python tracker 

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



[issue20283] Wrong keyword parameter name in regex pattern methods

2014-02-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch with the show_in_signature hack for 3.4.

--
priority: normal -> release blocker
Added file: 
http://bugs.python.org/file34216/sre_deprecate_pattern_keyword-3.4.patch

___
Python tracker 

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



[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Okay, after the RC then.

David, would you like to be credited in the recipe?

--
resolution:  -> remind

___
Python tracker 

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



[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread David Lindquist

David Lindquist added the comment:

Sure. That would be nice. :)

Thanks Raymond and Larry

--

___
Python tracker 

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



[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Ned Deily

Ned Deily added the comment:

LGTM

--
nosy: +ned.deily

___
Python tracker 

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



[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

While it occurs to me that changing ensurepip's default behaviour on
Windows is likely a better long term (3.5+) solution, I think passing the
option in the installer is still the better near term (3.4 rc3/final)
solution.

--

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

It occurred to me the current names are a bit misleading when using
"reverse=True", so low/high is likely a better naming scheme than
first/last.

I think I'll propose a patch for six before doing anything to the standard
library - this is already an issue for some forward ports, so at least
adding a "none_low" sort key that is a no-op on Py2 makes sense.

--

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

And in case that last comment worried anyone - I won't commit *anything*
related to this to the standard library until after creating a PyPI
"sortlib" module that includes both this and an "order_by_key" class
decorator, and we have consensus that the proposed changes are reasonable.

--

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> If it is in fact specific to sorting, then this specific symptom
> and "the problem" are in fact the same thing ;-)

The first rule of tautology club is the first rule of tautology club ;-)

FWIW, we had to add a work-around for this in pprint._safe_key class.  Without 
that work-around, it was difficult to work with JSON-style data hierarchies:

# wouldn't pprint() without the _safe_key() work-around:
temperatures = {'Jan': 25.2, 'Feb': 22.3, 'Mar': None, 'Apr': 19.1,
'May': 22.2, 'Jun': None, 'July': 22.3}

I think this will be typical for the kind of issue people will encounter when 
using None as a placeholder for missing data.

FWIW, if None stays non-comparable, Nick's additions look fine to me.  I just 
think it easier for everyone to restore None's universal comparability rather 
than adding work-arounds for the problems caused by removing that capability.

--

___
Python tracker 

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



[issue20726] inspect: Make Signature instances picklable

2014-02-24 Thread Yury Selivanov

Changes by Yury Selivanov :


Added file: http://bugs.python.org/file34217/sig_picklable_03.patch

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Nick Coghlan

Nick Coghlan added the comment:

I suspect if we'd thought of it back in the 3.0 or 3.1 time frame then
giving the Py3 None a consistent "sorts low" behaviour would have been more
likely.

At this stage of the Py3 life cycle, though, it seems simpler overall to
remain consistent with earlier Py3 releases.

--

___
Python tracker 

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



[issue20760] test_compileall test getting failed on 3.4 RC

2014-02-24 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +r.david.murray
type: crash -> 

___
Python tracker 

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



[issue20146] UserDict module docs link is obsolete

2014-02-24 Thread Sean Rodman

Sean Rodman added the comment:

Hey drunax, I would like to create a patch for this and upload, but I don't see 
the link you are talking about. Is it in the documentation or is it in the file 
UserDict.py?

--
nosy: +sean.rodman

___
Python tracker 

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



[issue20737] 3.3 _thread lock.acquire() timeout and threading.Event().wait() do not wake for certain values on Windows

2014-02-24 Thread Alex Grönholm

Changes by Alex Grönholm :


--
nosy: +alex.gronholm

___
Python tracker 

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



[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue20754] distutils should use SafeConfigParser

2014-02-24 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +eric.araujo, tarek
versions: +Python 3.4

___
Python tracker 

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



[issue19614] support.temp_cwd should use support.rmtree

2014-02-24 Thread Sean Rodman

Sean Rodman added the comment:

Hey r.david.murray, so should this change be made in the test?

--
nosy: +sean.rodman

___
Python tracker 

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



[issue19614] support.temp_cwd should use support.rmtree

2014-02-24 Thread Sean Rodman

Sean Rodman added the comment:

I don't see where temp_cwd uses shutil.rmtree, but I do see where temp_dir uses 
shutil.rmtree. Here is a patch to change that to support.rmtree. If I am way 
off base on this patch please let me know and I will change it to fix whatever 
needs to be fixed. I want to contribute to python as much as I can so I will do 
anything to get this fixed that is necessary. Please let me know what you think.

--
keywords: +patch
Added file: http://bugs.python.org/file34218/issue19614.patch

___
Python tracker 

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



[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2014-02-24 Thread Yury Selivanov

Yury Selivanov added the comment:

Fixed in 19674. Closing this one.

--
nosy: +yselivanov
resolution:  -> out of date
status: open -> closed
superseder:  -> Add introspection information for builtins

___
Python tracker 

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



[issue20146] UserDict module docs link is obsolete

2014-02-24 Thread Ned Deily

Ned Deily added the comment:

This problem is a duplicate of Issue16484.

The URL is generated by pydoc's getdocloc() when you use pydoc explicitly or 
through the interactive interpreter's help command.  But the doc web server is 
not set up to handle links for modules with mixed-case names, like UserDict; 
http://docs.python.org/2/library/userdict works.  Sean, you can add yourself to 
Issue16484 if you'd like to help.

--
nosy: +ned.deily
resolution:  -> duplicate
stage: needs patch -> committed/rejected
status: open -> closed
superseder:  -> pydoc generates invalid docs.python.org link for 
xml.etree.ElementTree and other modules
type: enhancement -> 

___
Python tracker 

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



  1   2   >