[issue20569] IDLE : Add clipboard history feature

2014-02-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Some issues that I think of off the top of my head, without looking into the 
details of the code.

0. I am not sure how I would use this. I am thus not sure why I might push 
this, especially given that there are a hundred other Idle issues, many with 
patches that also need to be reviewed. Enlighten and persuade me. Also see 7.

1. There are at least 4 styles of tkinter imports:
a. import tkinter
b. import tkinter as tk
c. from tkinter import a,b,c
d. from tkinter import *

My personal preference is b, c, (a,d). I have never done a census of idlelib 
modules to see what is currently used. While tkinter was designed somewhat to 
allow d, 'from *' in general has lost favor since 
Idle was written to in favor of b. That change was made in the tkinter docs, 
for instance
http://docs.python.org/3/library/tkinter.html#a-simple-hello-world-program
a few years ago. So I would like to use 'as tk' for new code.

2. idlever is useless and should probably be removed after checking for any 
current uses. The import here is not used and should be removed.

3. Writing tests for old code is slow and somewhat tedious. A new module should 
come with a test module in idle_test/. It might be named test_clipboard.py (see 
6.) Check the README and existing files for what I might be looking for.

4. The purpose of the if __name__: block is not clear. If it is simply a sanity 
check, this should be in the test file, guarded by 'requires(gui)'. The 'if 
__name__' block should run that file.

5. I dislike the existing and obsolete practice of camel-case module names that 
duplicate class names. They also violate PEP 8. Uppercase module names outside 
of idlelib were changed in 3.0. I would like to change the existing names 
within idlelib also.

6. The practice of putting each class in a separate file is not standard, 
neither in the stdlib nor in the community at large. This file is under 50 
lines, which is pretty small. Some possibilities of where to put this class are 
the editor file, an new editor helper class file, or a clipboard file. Are 
there other clipboard classes or functions that could be moved into a 
consolidated clipboard.py? existing file where this class might 

7. As you indicate, this seems more like a proof of concept than a finished 
design. Let us consider features of the recent files list.

a. The recent files list is not tied to a particular Idle version, let alone a 
particular window in a particular session of a particular version. I use the 
save-across sessions and versions features constantly. Most uses I can think of 
for a clipboard history would involve multiple windows, and possible multiple 
Idle sessions. An example would be boilerplate 'if __name__'. Perhaps I am more 
interested in a persistent snippets list with a easy way to copy an entire item 
(ie, click anywhere on an item and have that copy the entire item to the 
clipboard to be pasted whereever).

b. The recent files list contains short pointers to possible large files on 
disk. The clipboard contents are not limited in size. I might not want 10 
megabytes kept and saved to disk, so there should be a way to delete entries. 
Or perhaps entries should be added explicitly rather than automatically.

c. The recent files list is limited to 20 entries -- the 20 most recently 
opened. (This should be user-configurable.) Entries that are dropped off can be 
found through the normal open process. Entries that are dropped off a snippet 
list are gone. So perhaps they should not disappear without warning.

d. Entries in the recent files list fit on one line. That would not be true for 
snippets. Perhaps a snippets window should use a tree widget so items could be 
condensed to a single line (the first, or a title) or expanded to the full 
snippet.

8. In some respects it would be good if this were implemented as an extension 
that could be enabled or not. See #3068 for improving the selection and 
configuration of extensions.

9. Little features for Idle can be applied to all versions current at the time 
of application. See PEP 434 for Idle does not follow the normal rule. But don't 
worry about the version header.

* (I prefer not to read patches in detail until the author is recorded as 
having signed the CLA.)

--
nosy: +terry.reedy
stage:  -> test needed

___
Python tracker 

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



[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2014-02-09 Thread Charles-François Natali

Charles-François Natali added the comment:

Should be fixed now.

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



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

2014-02-09 Thread Paul Moore

Paul Moore added the comment:

I had not noticed that, but yes. It would be unreasonable on Windows to install 
pip3 and pip3.4 but not plain pip. So +1 on this change.

(In fact, on Windows, omitting the versioned names would conform more closely 
to how Python is installed, but it's not something that's worth losing sleep 
over).

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Here's a first cut at a patch.  With this applied Python passes the whole test 
suite.

I was surprised at how ticklish the OSError object was about adding a fifth 
member, with this weird "exception tuples can only have two members" policy.  
But test_exceptions helped me find all the problems.

--
keywords: +patch
Added file: http://bugs.python.org/file34004/larry.oserror.add.filename2.1.diff

___
Python tracker 

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



[issue20538] Segfault in UTF-7 incremental decoder

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Marking as closed and opening a new issue as per Serhiy's suggestion.

--
resolution:  -> fixed
stage: needs patch -> 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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread Larry Hastings

New submission from Larry Hastings:

The Windows buildbots are currently broken due to a codec issue.  I populated 
the "nosy" list based on the "unicode" experts from the Experts Index.


http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/4040


test_streamreaderwriter (test.test_codecs.WithStmtTest) ... test test_codecs 
failed
ok

==
ERROR: test_readline (test.test_codecs.CP65001Test)
--
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_codecs.py", 
line 157, in test_readline
self.assertEqual(readalllines("".join(vw), True), "|".join(vw))
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_codecs.py", 
line 136, in readalllines
line = reader.readline(size=size, keepends=keepends)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\codecs.py", line 548, 
in readline
data = self.read(readsize, firstline=True)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\codecs.py", line 494, 
in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'CP_UTF8' codec can't decode bytes in position 0--1: No 
mapping for the Unicode character exists in the target code page.

--
components: Tests
messages: 210732
nosy: benjamin.peterson, ezio.melotti, haypo, larry, loewis, pitrou
priority: release blocker
severity: normal
stage: needs patch
status: open
title: test_codecs currently failing on several Windows buildbots
type: behavior
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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Note that this appears to be in Windows-specific code ("CP_UTF8"), rather than 
being cross-platform code which happens to only fail on Windows.  So we need 
someone who does both Windows and Unicode.

--

___
Python tracker 

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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
components: +Unicode, Windows
nosy: +doerwalter, lemburg, serhiy.storchaka

___
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-09 Thread Larry Hastings

Larry Hastings added the comment:

Use #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-09 Thread Larry Hastings

Larry Hastings added the comment:

"pattern" should be keyword-only, and if used the function should generate a 
DeprecationWarning.

--

___
Python tracker 

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



[issue14983] email.generator should always add newlines after closing boundaries

2014-02-09 Thread Dmitry Shachnev

Dmitry Shachnev added the comment:

Thank you for committing this!

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Added a test checking that the error messages show up properly.

--
assignee:  -> larry
stage: needs patch -> patch review
Added file: http://bugs.python.org/file34005/larry.oserror.add.filename2.2.diff

___
Python tracker 

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



[issue20567] test_ttk_guionly gets 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you try test_ttk_guionly after test_all, test_builtins, test_tcl? If the 
issue is not reproduced, try to use binary search: divide the tests before 
test_ttk_guionly on to parts, and run tests with one half, then with other. 
Repeat until found the culprit.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue19255] Don't "wipe" builtins at shutdown

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Unfortunately this patch doesn't fix issue19021. Popen.__del__ is called when 
whiping the idlelib.rpc module which was collected in a weaklist. But the 
builtins module also was collected in a weaklist and wiped before idlelib.rpc.

Here is revised patch which fixes issue19021. It defers wiping of the builtins 
and sys modules (this partially restores 3.3 algorithm) and fixes other related 
issues (some of these fixes should be backported to older versions).

--
stage: needs patch -> patch review
versions: +Python 3.4 -Python 3.5
Added file: http://bugs.python.org/file34006/modules_cleanup.patch

___
Python tracker 

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



[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-09 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola':

http://hg.python.org/cpython/file/29d9638bf449/Lib/subprocess.py#l1144
This was introduced in revision 6b627e121573  and is currently not documented.
I'm not sure whether this is a documentation issue or "endtime" should have 
been "_endtime" instead.

--
messages: 210740
nosy: giampaolo.rodola, rnk
priority: normal
severity: normal
status: open
title: subprocess.Popen.wait() undocumented "endtime" parameter
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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread STINNER Victor

STINNER Victor added the comment:

It looks to be related to changeset e988661e458c5402c0236cd1084a8671249a760d
Issue #20538: UTF-7 incremental decoder produced inconsistant string when
input was truncated in BASE64 section.

--

___
Python tracker 

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



[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-09 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Sorry: revision a161081e8f7c.

--

___
Python tracker 

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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Serhiy said on IRC that he doesn't have a Windows development environment, so 
he didn't think he could help.

--

___
Python tracker 

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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

UTF-7 decoder is not related to this test.

The test_readline test was broken from the born, and a part of this test was do 
nothing. After fixing it in issue20520, new bugs were exposed: issue20538 and 
this. This bug was hidden until fixing issue20538.

Note that there is no test_partial in CP65001Test. Perhaps it is related.

The simplest solution would be to temporary skip test_readline in CP65001Test:

test_readline = unittest.expectedFailure(ReadTest.test_readline)

--

___
Python tracker 

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



[issue20567] test_ttk_guionly gets 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Threading and subprocess tests also evoke a suspicion.

--

___
Python tracker 

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



[issue20567] test_ttk_guionly gets 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Ned Deily

Ned Deily added the comment:

$ /usr/local/bin/python3.3 -m test -w -uall test_idle test_ttk_guionly
[1/2] test_idle
[2/2] test_ttk_guionly
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
All 2 tests OK.

--

___
Python tracker 

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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread STINNER Victor

STINNER Victor added the comment:

The test tries to decode a partial UTF-8 bytes string. The problem is that 
codecs.code_page_decode() doesn't implement fully partial decoders. The decoder 
only supports partial decoding for a few code pages: 932, 936, 949, 950, and 
1361. The partial decoding is currently based on IsDBCSLeadByteEx():
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318667%28v=vs.85%29.aspx

It may be possible to enhance decoders, but it's not a regression from Python 
3.3 and so can be done in Python 3.5.

Please just skip failing tests for CP_UTF8 (cp 65001) and maybe other Windows 
code pages in test_codecs.

(I don't have time to write a patch to skip, sorry.)

--

___
Python tracker 

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



[issue20567] test_ttk_guionly gets 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Ned Deily

Changes by Ned Deily :


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



[issue20573] "built-in repr()" function link on the repr module documentation is incorrect

2014-02-09 Thread Vladimir Rutsky

New submission from Vladimir Rutsky:

http://docs.python.org/2/library/repr.html page contains several links on 
built-in function `repr()` (search for "built-in repr()" on page), but links 
goes to `Repr.repr()` functions of `Repr` module instead of 
http://docs.python.org/library/functions.html#repr

This is reverse situation to bug described in http://bugs.python.org/issue14489

--
messages: 210748
nosy: rutsky
priority: normal
severity: normal
status: open
title: "built-in repr()" function link on the repr module documentation is 
incorrect
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



[issue20567] test_ttk_guionly gets 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Ned Deily

Changes by Ned Deily :


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



[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Ned Deily

Ned Deily added the comment:

The combination of just test_idle followed by test_ttk_guionly also produces 
the "application has been destroyed" messages on Debian Linux and when run from 
a build directory (e.g. not installed) and with 2.7, 3.3, and default.

--
title: test_ttk_guionly gets 'can't invoke "event" command: application has 
been destroyed' messages from Tk -> test_idle causes test_ttk_guionly 'can't 
invoke "event" command: application has been destroyed' messages from Tk

___
Python tracker 

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



[issue20573] "built-in repr()" function link on the repr module documentation is incorrect

2014-02-09 Thread Ned Deily

Changes by Ned Deily :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python

___
Python tracker 

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-02-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6b10943a5916 by Serhiy Storchaka in branch '2.7':
Issue #20437: Fixed 43 potential bugs when deleting objects references.
http://hg.python.org/cpython/rev/6b10943a5916

New changeset 6adac0d9b933 by Serhiy Storchaka in branch '3.3':
Issue #20437: Fixed 21 potential bugs when deleting objects references.
http://hg.python.org/cpython/rev/6adac0d9b933

New changeset 3110fb3095a2 by Serhiy Storchaka in branch 'default':
Issue #20437: Fixed 22 potential bugs when deleting objects references.
http://hg.python.org/cpython/rev/3110fb3095a2

--
nosy: +python-dev

___
Python tracker 

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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f6499fc2f09 by Victor Stinner in branch 'default':
Issue #20571: skip test_readline() of test_codecs for Windows code page 65001.
http://hg.python.org/cpython/rev/4f6499fc2f09

--
nosy: +python-dev

___
Python tracker 

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



[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

_send_bytes() now looks a little complicated.

There are no need in separate branches for n==0. header + buf where buf is b'' 
is fast (it is not slower than additional check n > 0). So this 
microoptimization is not needed.

The chunks list is not needed, we can just call self._send(). This will get rid 
of small overhead of creating and iterating a list.

--
keywords: +patch
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file34007/multi_nagle_simplify.patch

___
Python tracker 

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



[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-09 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution: rejected -> fixed

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Are *WithUnicodeFilenames() functions needed? Py_UNICODE API considered as 
deprecated and there is no need to support compatibility with older versions.

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

There aren't any deprecation warnings in the code.

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

http://docs.python.org/3/c-api/unicode.html#deprecated-py-unicode-apis

--

___
Python tracker 

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-09 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven added the comment:

Nick et al,

currently trying b3 and using the bundled pip (1.5.2) to update the bundled 
setuptools from 2.1 to 2.2 on Windows 7 and I get the following. Any idea if 
this is still an issue with the newer versions (and thus might be relevant to 
this case)?

F:\Python34>Scripts\pip3.4.exe install -U setuptools
Downloading/unpacking setuptools from 
https://pypi.python.org/packages/3.4/s/setuptools/setuptools-2.2-py2.py3-none-any.whl#md5=3b7d84f496aed8c07b91efba4aa197a4

Cleaning up...
Exception:
Traceback (most recent call last):
  File "F:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
  File "F:\Python34\lib\site-packages\pip\commands\install.py", line 274, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
bundle=self.bundle)
  File "F:\Python34\lib\site-packages\pip\req.py", line 1206, in prepare_files
for subreq in dist.requires(req_to_install.extras):
  File "F:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2232, 
in requires
dm = self._dep_map
  File "F:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2423, 
in _dep_map
self.__dep_map = self._compute_dependencies()
  File "F:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2445, 
in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
  File "F:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2415, 
in _parsed_pkg_info
self._pkg_info = Parser().parsestr(self.get_metadata(self.PKG_INFO))
  File "F:\Python34\lib\email\parser.py", line 70, in parsestr
return self.parse(StringIO(text), headersonly=headersonly)
  File "F:\Python34\lib\email\parser.py", line 60, in parse
return feedparser.close()
  File "F:\Python34\lib\email\feedparser.py", line 170, in close
self._call_parse()
  File "F:\Python34\lib\email\feedparser.py", line 163, in _call_parse
self._parse()
  File "F:\Python34\lib\email\feedparser.py", line 449, in _parsegen
self._cur.set_payload(EMPTYSTRING.join(lines))
  File "F:\Python34\lib\email\message.py", line 311, in set_payload
" payload") from None
TypeError: charset argument must be specified when non-ASCII characters are 
used in the payload

Storing debug log for failure in C:\Users\asmodai\pip\pip.log

--
nosy: +asmodai

___
Python tracker 

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



[issue3068] IDLE - Add an extension configuration dialog

2014-02-09 Thread Tal Einat

Tal Einat added the comment:

It's an old patch and it may not be in a properly recognized format.

I'll create a new patch soon.

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

But the PyErr_ functions that accept Py_UNICODE aren't marked deprecated.

http://docs.python.org/3.4/c-api/exceptions.html#unicode-exception-objects

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Perhaps they should be. Note that all functions that accept Py_UNICODE are not 
a part of stable API.

In any case I don't think we should add *new* functions with deprecated API.

--

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-02-09 Thread STINNER Victor

New submission from STINNER Victor:

(Follow up of issue #20538 and #20571.) Attached patch implements incremental 
decoders for multibyte code pages (on Windows), especially for CP_UTF8 aka 
"cp65001" in Python.

Code pages 932, 936, 949, 950 and 1361 already have an incremental decoder 
since:
---
changeset:   38817:549c547700af
branch:  legacy-trunk
user:Martin v. Löwis 
date:Wed Jun 14 05:21:04 2006 +
files:   Doc/api/concrete.tex Include/unicodeobject.h Lib/encodings/mbcs.py 
Misc/NEWS Modules/_codecsmodule.c Objects/unicodeobject.c
description:
Patch #1455898: Incremental mode for "mbcs" codec.
---

Python currently uses IsDBCSLeadByteEx():
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318667%28v=vs.85%29.aspx

And CharPrevA():
http://msdn.microsoft.com/en-us/library/windows/desktop/ms647471%28v=vs.85%29.aspx

But IsDBCSLeadByteEx() only supports code pages 932, 936, 949, 950 and 1361.

Python supports the code page 65001 (codec "cp65001") since Python 3.3. New 
tests on incremental decoders were added in Python 3.4: I addedd a skip for 
cp65001 since it was not supported (#20571). This issue implements the 
incremental decoder and so removes the skip.

I prefer to wait for Python 3.5 (not rush for add this new feature after 3.4 
beta 3). cp65001 is mostly used for output (sys.stdout/sys.stderr) on Windows, 
not for input.

--
files: incremental_cp_utf8.patch
keywords: patch
messages: 210759
nosy: haypo, larry, loewis, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Implement incremental decoder for cp65001
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file34008/incremental_cp_utf8.patch

___
Python tracker 

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



[issue20571] test_codecs currently failing on several Windows buildbots

2014-02-09 Thread STINNER Victor

STINNER Victor added the comment:

I opened #20574 to implement the missing feature for cp65001.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue20575] Type handling policy for the statistics module

2014-02-09 Thread Oscar Benjamin

New submission from Oscar Benjamin:

As of issue20481, the statistics module for Python 3.4 will disallow any mixing 
of numeric types with the exception of int that can mix with any other type 
(but only one at a time). My understanding is that this change was not 
necessarily considered to be a permanent policy but rather a quick fix for 
Python 3.4 in order to explicitly prevent certain confusing situations arising 
from mixing Decimal with other stdlib numeric types.

issue20499 has a lot of discussion about different ways to improve accuracy and 
speed for the mean, variance etc. functions in the statistics module. It's 
tricky though to come up with a concrete implementation without having a clear 
specification for how the module should handle different numeric types.

There are several related issues to do with type handling. Should the 
statistics module
1) Use the same coercion rules as the numeric tower (pep-3141)?
2) Allow Decimal to mix with any types from the numeric tower?
3) Allow non-stdlib types that don't use the numeric tower?
4) Allow any mixing of types at all?
5) Strive to achieve the maximum possible accuracy for every type that it 
accepts?

I don't personally see much of a use-case for mixing e.g. Decimal and Fraction. 
I don't think it's unreasonable to require users to choose a numeric type and 
stick to it. The common cases will almost certainly be either all int or all 
float so those should be the main targets of any speed optimisation.

If a user is using Fraction/Decimal then they must have gone out of their way 
to do so and they may as well do so  consistently for all of their data. When 
choosing to use Fraction you do so because you want perfect accuracy. Mixing 
those Fractions with floating point types such as float and Decimal doesn't 
make any sense. Although there is a sense in which Decimals are also exact 
since they are always exact in their constructor. However I don't think there's 
any case where the Decimal constructor can be used but the Fraction constructor 
cannot so this mixing of types is unnecessary.

As with Fraction a user who chooses to use Decimal is going out of their way to 
do so because of the kind of accuracy guarantees that the type provides. It 
doesn't make any sense to mix these with floats that are inherently tainted 
with the wrong kind of rounding error. So mixing Decimal and float doesn't make 
any sense either.

Note that ordinary arithmetic prohibits the mixing of Decimal with 
Fraction/float so that on this point the statistics module is essentially 
maintaining a consistent position with respect to the policy of the Decimal 
type.

On the other hand ordinary arithmetic allows all of int, float, Fraction and 
complex and indeed any other type subscribing to the ABCs in the numeric tower 
to be mixed. As of issue20481 the statistics module does not allow any type 
mixing except for int:
http://hg.python.org/cpython/rev/5db74cd953ab
Note also that it uses type identity rather than subclass relationships or ABCs 
so that it is not even possible to mix e.g. float with a float subclass.

The most common case of mixing will almost certainly be int and float which 
will work. However I doubt that the current policy would be considered to be in 
keeping with Python's general policy on numeric types and anticipate that there 
will be a desire to change it in the future. The obvious candidate for a policy 
is the numeric tower and ABCs of PEP-3141. In that case the statistics module 
has a partial precedent on which to base its policy. The only tricky part is 
that Decimal is not part of the numeric tower. So there needs to be a special 
rule for Decimal such as "it only mixes with int/Integral".

Basing the policy on the numeric tower is attractive but it is worth noting 
that the std lib types int, float, Fraction and Decimal are the only types that 
actually implement and register with these ABCs. So it's not much different 
from saying that those particular types (and subclasses of) are accepted but I 
think that that is better than the current policy. 

Third party numeric types don't implement the interfaces described in PEP-3141. 
However one thing that is implemented by every third-party numeric type that I 
know of is __float__. So if there was to be a desire to support those in the 
statistics module then the simplest extension of the policy on types is to say 
that any non-numeric-tower types will simply be coerced with float. This still 
leaves the issue about how type mixing works there but, again, perhaps the 
safest option before the need arises is just to say that no type mixing is 
allowed if any input object is not from the numeric tower.

What do you think?

--
components: Library (Lib)
messages: 210762
nosy: ncoghlan, oscarbenjamin, skrah, stevenjd, wolma
priority: normal
severity: normal
status: open
title: Type handling policy for the statistics module
type: enhancement
versions: Python 3.5


[issue20576] Default signatures for slots should be positional-only

2014-02-09 Thread Larry Hastings

New submission from Larry Hastings:

I just realized that the signatures for builtin slot functions (__iadd__, 
__delitem__, etc) only accept positional-only arguments.  But when I added the 
signatures by hand to all the slots I didn't mark them as positional-only.  The 
attached patch remedies that oversight.

--
assignee: larry
components: Library (Lib)
files: larry.slots.are.positional.only.1.diff
keywords: patch
messages: 210763
nosy: larry, ncoghlan, yselivanov
priority: normal
severity: normal
stage: patch review
status: open
title: Default signatures for slots should be positional-only
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file34009/larry.slots.are.positional.only.1.diff

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Nice.

Could you please also add test_partial for CP65001 (if this will make sense)?

What is performance regression of this patch?

I considered this issue as a bug. And if performance regression is not too big, 
I think it can be applied to 3.3+. Otherwise a warning should be added that 
CP65001 doesn't not work with input text streams.

--

___
Python tracker 

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



[issue20566] asyncio as_completed() thrashes adding and removing callbacks

2014-02-09 Thread Glenn Langford

Glenn Langford added the comment:

> OK, code is ready for review at 
> http://code.google.com/p/tulip/source/detail?r=674355412f33

This looks like a link to an old revision.

--

___
Python tracker 

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



[issue20437] Use Py_CLEAR to safe clear attributes

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Larry and Antoine for your reviews.

--
assignee:  -> serhiy.storchaka
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



[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
components: +IDLE
nosy: +kbk, roger.serwy, terry.reedy
type:  -> behavior

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Georg Brandl

Georg Brandl added the comment:

I agree.

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Attached is patch #3.  This one has been tested on Linux, Windows 7 64-bit, and 
Snow Leopard 64-bit.  Windows Server 2008 32-bit and 64-bit
are running now, looking good so far.

Changes:

* The order of arguments for OSError is now:
(errno, string, filename, winerror, filename2)
  The winerror argument is always ignored on non-Windows platforms and
  may be any value.  Preserving the order of existing calls is
  important.  I considered making filename2 a keyword-only argument
  (as Georg suggested in IRC) but this would have made pickling and
  unpickling much more elaborate.

* Removed new functions taking Py_UNICODE at Serhiy's insistence.

* Removed PyErr_SetFromWindowsErrWithFilenameObject from documentation,
  as it doesn't even exist.

* Further documentation fixes.

--
Added file: http://bugs.python.org/file34010/larry.oserror.add.filename2.3.diff

___
Python tracker 

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



[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Ned, do you actually *see* this on 2.7, 3.3? The message looks suspiciously 
like the somewhat strange 3.4-only shutdown message suppressed by #20167.

--

___
Python tracker 

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



[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-09 Thread R. David Murray

R. David Murray added the comment:

Indeed, there's no issue number or NEWS entry.  It's not clear from the limited 
context why this parameter was added.  It doesn't appear to be consistent with 
the rest of the stdlib: the application can compute timeout from its desired 
endtime, which is how all of the other stdlib 'wait' APIs work.

--
nosy: +gps, r.david.murray

___
Python tracker 

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



[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-09 Thread R. David Murray

R. David Murray added the comment:

Also, the implementation as it stands is in any case flawed, since specifying 
both timeout and endtime is allowed by the code, and results in endtime 
overriding timeout silently, and in the posix version the resulting timeout 
error message will have the ignored timeout in it.

Unfortunately this has been in here for a while (March 2011) so people may be 
using it.

Based on the docs in the original commit (c4a0fa6e687c), I suspect endtime on 
wait was supposed to be an internal parameterexcept that it is never used 
internally.  The endtime is converted back to a timeout in order to call wait.  
Ideally we'd just drop it...but it may be in use in wild.

--

___
Python tracker 

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



[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which fixes symptoms. Maybe we'll find better solution.

These messages are produced when the ttk::ThemeChanged command called from a 
callback for already destroyed Tk root window.

--
keywords: +patch
Added file: http://bugs.python.org/file34011/issue20567.patch

___
Python tracker 

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



[issue3068] IDLE - Add an extension configuration dialog

2014-02-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Please do; the devguide says which format is preferred. While you are at it, 
please
1. write it against 3.3, leaving a 2.7 backport for last;
2. just add the new stuff, leaving format-paragraph changes for a separate 
patch;
3. consider the format points I raised with #20569 (if you disagree, let's 
discuss)
a. 'import tkinter as tk'
b. a new test file
c. shorter, lowercase title, such as 'configex.py', or...
d. is a new file really needed? or add to what is now called configDialog.py?

I am ready to do this. While it is too late for 3.3.4 and 3.4.0 (rc1) due out 
today, I would like to have this in and tested in use for subsequent releases 
after that (2.7.7, the final 3.3.5, 3.4.1, and of course, 3.5.0).

While reviewing #20569 I realized that having an easy way to enable/disable 
extensions would lower the bar for adding new ones. The fact that some people 
would not want something present would not prevent having it available to 
others. (This point is true even if a clipboard history or snippets list could 
not be added as an extension.)

A current 'Future of Python' thread on idle-sig reminded me that multiple 
people would like 1 or more of the tested idlex extensions added. This dialog 
would make additions easier by making their use easier. That thread also 
suggested that Idle needs more 'excitement', which means some new features. 
Tests and bug fixes, though important, tend to be boring to most people. So I 
have adjusted my priorities a bit.

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm not sure that PyErr_SetFromWindowsErrWithFilenames() and 
PyErr_SetExcFromWindowsErrWithFilenames() will be useful. "const char*" 
filenames are not recommended on Windows. Victor can say more.

--
nosy: +haypo

___
Python tracker 

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



[issue3068] IDLE - Add an extension configuration dialog

2014-02-09 Thread Tal Einat

Tal Einat added the comment:

I'm glad that adding features to IDLE is being considered! However, I really 
think that new features should be chosen with extreme care. Adding advanced 
features aimed mostly at "power" users should be avoided unless really 
necessary, IMO.

The reason I'm pushing this extension is because it is straight-forward to use 
and make things using IDLE easier and less frustrating, especially for novice 
users.

--

___
Python tracker 

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



[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Running just the two tests fails on windows also, with all three versions. For 
2.7, test_ttk_guionly is skipped with "test_ttk_guionly skipped -- tk not 
available: Can't find a usable init.tcl in the following directories:. This in 
spite of the fact that the idle test just found init.tcl and that the ttk test 
passes without the idle test running first. This is relatively recent.

Does the test runner not delete modules as they are finished?

I am rebuilding python and will try tests again. If problem persists and patch 
solves it, I will go ahead and apply.

--

___
Python tracker 

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



[issue20569] IDLE : Add clipboard history feature

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Clipboard history is OS feature, an application shouldn't duplicate it. Every 
modern Linux DE has builtin clipboard history manager, and I believe there are 
third-party programs for Windows.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

New patch incorporating Serhiy's suggestions.  Thanks, Serhiy!

Did more testing with the buildbots.  Windows Server 2008 32-bit and 64-bit 
were both fine.  So were ARMv7, OpenIndiana 64-bit, Gentoo 32-bit, FreeBSD 10 
64-bit, and PowerLinux PPC 64-bit.  (This was all run using diff #3, but diff 
#4 doesn't change any C code.  It just changes the test and some docs.)

Can I get a LGTM?

--
Added file: http://bugs.python.org/file34012/larry.oserror.add.filename2.4.diff

___
Python tracker 

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



[issue20577] IDLE: Remove FormatParagraph's width setting from config dialog

2014-02-09 Thread Tal Einat

New submission from Tal Einat:

Following up issue3068, this is a separate patch which moves the "paragraph 
reformat width" setting from the "general" tab in IDLE's config dialog to the 
relevant place in the extensions configuration.

--
components: IDLE
files: 
taleinat.20140209.IDLE__Remove_format_paragraph_width_from_config_dialog.patch
keywords: patch
messages: 210779
nosy: taleinat
priority: normal
severity: normal
status: open
title: IDLE: Remove FormatParagraph's width setting from config dialog
versions: Python 3.3, Python 3.4, Python 3.5
Added file: 
http://bugs.python.org/file34013/taleinat.20140209.IDLE__Remove_format_paragraph_width_from_config_dialog.patch

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



[issue3068] IDLE - Add an extension configuration dialog

2014-02-09 Thread Tal Einat

Tal Einat added the comment:

Here's an updated patch. As requested, the patch is against the current 3.3 
branch and applies cleanly to default.

I tested with both Python 3.3.4 RC1 and 3.4.0 beta 3, while overriding their 
idlelib with the one from the repo with these changes.

I also removed from this patch the moving of the line width setting for the 
FormatParagraph extension from the base config dialog to the extensions config. 
See separate patch for this in issue20577.

--
Added file: 
http://bugs.python.org/file34014/taleinat.20140209.IDLE__Add_a_config_dialog_for_extensions.patch

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Martin.

May be this issue was fixed in issue19020.

--

___
Python tracker 

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



[issue1602742] itemconfigure returns incorrect text property of text items

2014-02-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> duplicate
stage: needs patch -> committed/rejected
status: open -> pending
superseder:  -> Regression: Windows-tkinter-idle, unicode, and 0xxx filename

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

One more tweak from Serhiy.

--
Added file: http://bugs.python.org/file34015/larry.oserror.add.filename2.5.diff

___
Python tracker 

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



[issue20574] Implement incremental decoder for cp65001

2014-02-09 Thread STINNER Victor

STINNER Victor added the comment:

It might be faster, or (more likely) has zero impact on performances.

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread STINNER Victor

STINNER Victor added the comment:

Support of bytes filenames has ben deprecated on Windows, Unicode is really
the native type.

--

___
Python tracker 

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-09 Thread Nick Coghlan

Nick Coghlan added the comment:

I believe that may be an actual bug in the 3.4b3 email module (especially
if pip 1.5.2 behaves itself in 3.3). If you can reproduce the error with
the default branch (or rc1 when it's available), please file a new issue
(with me, Larry and R. David Murray on the nosy list). If it doesn't happen
with rc1,then I would assume it was caused by one of the 3.4 email issues
that David fixed recently.

--

___
Python tracker 

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



[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is updated patch (after committing issue20368 which made main 
refactoring). It makes PythonCmd never fail due to arguments decoding error.

--
Added file: http://bugs.python.org/file34016/tkinter_pythoncmd_args_2.patch

___
Python tracker 

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



[issue20576] Default signatures for slots should be positional-only

2014-02-09 Thread Nick Coghlan

Nick Coghlan added the comment:

Good catch, and the patch looks fine to me.

--

___
Python tracker 

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



[issue6815] UnicodeDecodeError in os.path.expandvars

2014-02-09 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



[issue19974] tarfile doesn't overwrite symlink by directory

2014-02-09 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



[issue19954] test_tk floating point exception on my gentoo box with tk 8.6.1

2014-02-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think we can close this issue as far as the bug is in third-party software 
and we can't do anything with this.

--
status: open -> pending

___
Python tracker 

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



[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-09 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

I'd be for just getting rid of it for 3.4 now that we still can.
Being that this parameter is 1) not documented and 2) it's not even clear what 
it does I think it's unlikely that there's people using it.

--
nosy: +georg.brandl, larry
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



[issue16314] Support xz compression in distutils

2014-02-09 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

AFAIK distutils is no longer frozen.

--
nosy: +Arfrever
resolution: wont fix -> 
stage: committed/rejected -> patch review
status: closed -> open
versions: +Python 3.5 -Python 3.4

___
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-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This sounds fine.

--

___
Python tracker 

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-09 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven added the comment:

Yes, looks like it is just the email module:

F:\Python33>Scripts\pip3.3.exe install -U setuptools
Downloading/unpacking setuptools from 
https://pypi.python.org/packages/3.4/s/setuptools/setuptools-2.2-py2.py3-none-any.whl#md5=3b7d84f496aed8c07b91efba4aa197a4

Installing collected packages: setuptools
  Found existing installation: setuptools 2.1
Uninstalling setuptools:
  Successfully uninstalled setuptools
Successfully installed setuptools
Cleaning up...

I'll check rc1 when it's released by Larry and file as needed. Thanks for 
verifying.

--

___
Python tracker 

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



[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-09 Thread R. David Murray

R. David Murray added the comment:

Yes, that issue was fixed on Friday.  It is *possible* the fix still has a 
problem though, since the code in question is still different from that in 
3.3.3.

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-02-09 Thread Nikolaus Rath

New submission from Nikolaus Rath:

It would be nice to have a readinto1 method to complement the existing read, 
readinto, and read1 methods of io.BufferedIOBase.

--
components: Library (Lib)
messages: 210794
nosy: nikratio
priority: normal
severity: normal
status: open
title: BufferedIOBase.readinto1 is missing
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-02-09 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +pitrou

___
Python tracker 

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-02-09 Thread Nikolaus Rath

Nikolaus Rath added the comment:

(I'll work on a patch for this myself, this bug is just to prevent duplicate 
work)

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

Okay.  I have revived the Py_UNICODE functions I removed in patch #3.  The 
patch now works fine on my Ubuntu 13.10 64-bit box, and at least compiled on a 
Windows buildbot.  It's now building on nine buildbots.

Assuming the buildbots look good, can I check this in?

--
Added file: http://bugs.python.org/file34017/larry.oserror.add.filename2.6.diff

___
Python tracker 

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



[issue19772] str serialization of Message object may mutate the payload and CTE.

2014-02-09 Thread Vajrasky Kok

Vajrasky Kok added the comment:

> So why check specifically for 8bit and base64?

I was in hurry when creating this patch. I think that was part of the debug 
code. This patch was created with the purpose to illuminate the culprit of this 
bug. And it served its purpose.

After uploading this patch, I was about to refine the patch. Then I started to 
think about shouldn't there be a more elegant way to solve this problem? 
Cloning the msg after entering the flatten message? It is supposed to be a 
clean and simple solution. Then I hit the part where the boundary computation 
intentionally modifies the message object. Then I remembered the email API had 
too much magics on it. >.<

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 081a9d8ba3c7 by Larry Hastings in branch 'default':
Issue #20517: Functions in the os module that accept two filenames
http://hg.python.org/cpython/rev/081a9d8ba3c7

--
nosy: +python-dev

___
Python tracker 

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



[issue20318] subprocess.Popen can hang in threaded applications in Python 2

2014-02-09 Thread Martin Panter

Changes by Martin Panter :


--
nosy: +vadmium

___
Python tracker 

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



[issue20530] Change the text signature format (again) to be more robust

2014-02-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 28aef6e22736 by Larry Hastings in branch 'default':
Issue #20530: The signatures for slot builtins have been updated
http://hg.python.org/cpython/rev/28aef6e22736

--

___
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-09 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Now, that we have fixed this bug in Python 3.4 with this commit 
http://hg.python.org/cpython/rev/081a9d8ba3c7, what should we do with the bug 
in Python 3.3?

Use my patch (omitting filenames)?

Keep the status quo (one filename)? If yes, close this ticket as invalid.

Backport Larry's commit (two filenames) which is not straightforward?

--

___
Python tracker 

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



[issue20517] Support errors with two filenames for errno exceptions

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

It's in!  And the buildbots look healthy.

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



[issue20576] Default signatures for slots should be positional-only

2014-02-09 Thread Larry Hastings

Larry Hastings added the comment:

I used a different issue number in Misc/NEWS, but this was fixed in revision 
28aef6e22736 checked in just a little while ago.

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



[issue19974] tarfile doesn't overwrite symlink by directory

2014-02-09 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Yeah, you are right, Serhiy. I check the behaviour of GNU tar command line. It 
always replaces the target no matter what kind of file source and target are.

--

___
Python tracker 

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



[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

2014-02-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type

2014-02-09 Thread Ezio Melotti

Ezio Melotti added the comment:

The two signatures of assertRaisesRegex are:
assertRaisesRegex(exception, regex, callable, *args, **kwds)
assertRaisesRegex(exception, regex, msg=None)

IIUC what you are saying is that if you forget the regex and call 
assertRaisesRegex(exception, callable) the test will pass.

I think it would be ok to add a check to see if the second argument is a 
callable or None (or maybe check if it's a string or regex object?), and give 
an appropriate error message if it's not.

--
keywords: +easy

___
Python tracker 

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