[issue25219] Update doc for Idle command line argument.

2015-09-22 Thread Terry J. Reedy

New submission from Terry J. Reedy:

idle.rst is either wrong or obsolete.  Some options are missing and the notes 
are not now correct.  I am editing so it matches code and help message in 
PyShell.py.

I believe there is a mismatch between code and help message with respect to 
interaction with configuration settings.  But I need to do some tests to be 
sure.

--
messages: 251407
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Update doc for Idle command line argument.
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

I committed the changes to expressions.rst for 3.4+. That still leaves the 
changes to test_compare.py, and possibly changes for 2.7.

Andy: In msg229721 you mentioned a potential 2.7 patch. Did you get anywhere 
with that? Even if it is only half finished, someone else may be able to keep 
working on it.

--

___
Python tracker 

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



[issue12067] Doc: remove errors about mixed-type comparisons.

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1fc049e5ec14 by Martin Panter in branch '3.4':
Issue #12067: Rewrite Comparisons section in the language reference
https://hg.python.org/cpython/rev/1fc049e5ec14

New changeset b6698c00265b by Martin Panter in branch '3.5':
Issue #12067: Merge comparisons doc from 3.4 into 3.5
https://hg.python.org/cpython/rev/b6698c00265b

New changeset 294b8a7957e9 by Martin Panter in branch 'default':
Issue #12067: Merge comparisons doc from 3.5
https://hg.python.org/cpython/rev/294b8a7957e9

--
nosy: +python-dev

___
Python tracker 

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



[issue22555] Tracking issue for adjustments to binary/text boundary handling

2015-09-22 Thread Nick Coghlan

Nick Coghlan added the comment:

The Fedora RFE at https://bugzilla.redhat.com/show_bug.cgi?id=902094 to provide 
a C.UTF-8 locale by default has been addressed for Fedora 24 (the current 
Fedora Rawhide).

This means the "LANG=C.UTF-8 python3" replacement for the ASCII-centric "LANG=C 
python3" will become more widely available over the course of 2016.

--

___
Python tracker 

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



[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-09-22 Thread Christopher Meng

Changes by Christopher Meng :


--
nosy: +Christopher Meng

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Through the contributions of several people, Zack's key idea, that Idle 
documentation should have a single source, idle.rst, has come to fruition. So I 
think it time to close this.  I already mentioned #25198 for improving the 
tkinter viewer. I also opened #25218 for revising Zack's patch and possibly 
using an 'idledoc' target in the release process.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue15347] IDLE - does not close if the debugger was active

2015-09-22 Thread Mark Roseman

Mark Roseman added the comment:

See #24455 for a patch that includes the changes from this one as well as some 
additional changes that fixes that bug.

--

___
Python tracker 

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



[issue25218] Automate creation of idlelib/help.html from Doc/.../idle.html

2015-09-22 Thread Terry J. Reedy

New submission from Terry J. Reedy:

This continues #16893, which replaced help.txt with help.html for the Idle doc 
display.  It also replaced the display classes with new classes in help.py.  I 
currently create help.html in a .bat file.  With Doc as current directory, it 
uses
  ..\pcbuild\python_d.exe -c "from idlelib.help import copy_strip; copy_strip()"
With a change to the help.py if __name__ block so that
  ..\pcbuild\python_d.exe -m idlelib.help copy_strip
would work.

This issue is first about revising Zack Ware's makefile patch, 
https://bugs.python.org/file36975/issue16893-v4.diff, which adds an 'idledoc' 
target.  It is attached to #16893.  It needs 'copy' replaced by 'copy, strip, 
and rename'. The command above requires finding a compatible python.exe, and I 
do not know if that is a problem.

In normal use, 'idledoc' should only be invoked for the earliest 3.x getting 
maintenance patches, and the result merged forward.

If this is resolved, it would be nice if the new 'idledoc' target were built as 
apart of the release process, and any changes checked in.  But the latter 
should currently still be done for all 3.x branches

--
assignee: terry.reedy
messages: 251402
nosy: terry.reedy, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Automate creation of idlelib/help.html from Doc/.../idle.html
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue24455] IDLE debugger causes crash if not quitted properly before next run

2015-09-22 Thread Mark Roseman

Mark Roseman added the comment:

Like #15347 and #15348, this was also caused by nested event loops, though the 
exact problem is slightly different.  I've attached fix-mainloop2.patch which 
has a lengthy comment explaining the problem and how the patch solves it. 

This patch also includes the changes from fix-nested-mainloop.patch.

--
keywords: +patch
Added file: http://bugs.python.org/file40553/fix-mainloop2.patch

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thank you for reporting this. My general problem is that idlelib was only 
informally private until PEP434 and I only started adding 'private' and 
'deprecated' to the code a week ago.  So I am trying to make changes in 
existing versions while not breaking even unlikely uses of the current API. The 
specific problem is the the class init method *is* used -- to create an unused 
instance -- on import.

  helpDialog = HelpDialog()  # singleton instance, no longer used

The patch fixes the problem by moving the deprecation to the show method, which 
Idle really does not now call.

--

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 26e819909891 by Terry Jan Reedy in branch '2.7':
Issue #16893: Move idlelib.EditorWindow.HelpDialog deprecation warning
https://hg.python.org/cpython/rev/26e819909891

New changeset c607004a98bf by Terry Jan Reedy in branch '3.4':
Issue #16893: Move idlelib.EditorWindow.HelpDialog deprecation warning
https://hg.python.org/cpython/rev/c607004a98bf

--

___
Python tracker 

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



[issue22052] Comparison operators called in reverse order for subclasses with no override.

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

Does anyone know enough about Python 2 to propose a fix? I don’t know enough 
about object classes versus “instance” classes, and potential interference of 
the __cmp__() method. In Python 2 the order seems to depend on the class type:

(<__main__.A instance at 0x7f730d37f5f0>, <__main__.B instance at 
0x7f730d37f518>)
(<__main__.B object at 0x7f730d37dc10>, <__main__.A object at 0x7f730d37d110>)

Or perhaps we should just close this now and forget about Python 2 ;)

--
stage:  -> needs patch
versions:  -Python 3.4, Python 3.5

___
Python tracker 

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



[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Not sure yet :)

There are a lot of undocumented (or not-yet-documented) APIs accessible from 
the bootstrap app and I haven't gone through them yet - see 
https://github.com/wixtoolset/wix3/tree/develop/src/libs, probably dutil.

It may also be something that we have to request or contribute to WiX.

--

___
Python tracker 

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



[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-22 Thread eryksun

eryksun added the comment:

Where is the API documented to change the install scope dynamically? I see 
where it's apparently defined in the burn manifest (extracted from the 
executable) as PerMachine="no":

http://schemas.microsoft.com/wix/2008/Burn";>
  <>
  
http://www.python.org/"; 
 DisableModify="button"/>
  

--
nosy: +eryksun

___
Python tracker 

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



[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Windows Updates may do something different here. I'd guess it's added to a 
queue and will be installed on next restart, probably based on something it 
detected as being in use, or maybe just because it's a server OS (or possibly 
both - typically a reboot isn't required to install the UCRT for the first 
time, but maybe an early prerelease version was there?).

--

___
Python tracker 

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



[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-22 Thread Martin Panter

Changes by Martin Panter :


--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The change is for two issues. I now filter out "Lib\*\test" and "Lib\*\tests" 
for this one, and bdist_wininst.py and *.exe for #25086. I believe that's what 
the suggestions were - the regular installer (that we've been discussing) 
wasn't mentioned in the original post.

(Adding site-packages to the set is a bit of tidying that I noticed while 
fixing the others. It doesn't have an issue anywhere.)

--

___
Python tracker 

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



[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ff7aba08ada6 by Martin Panter in branch '3.4':
Issue #25047: Respect case writing XML encoding declarations
https://hg.python.org/cpython/rev/ff7aba08ada6

New changeset 9c248233754c by Martin Panter in branch '3.5':
Issue #25047: Merge Element Tree encoding from 3.4 into 3.5
https://hg.python.org/cpython/rev/9c248233754c

New changeset 409bab2181d3 by Martin Panter in branch 'default':
Issue #25047: Merge Element Tree encoding from 3.5
https://hg.python.org/cpython/rev/409bab2181d3

--
nosy: +python-dev

___
Python tracker 

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



[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-22 Thread Martin Panter

Changes by Martin Panter :


--
assignee:  -> martin.panter
nosy: +berker.peksag
stage: patch review -> commit review

___
Python tracker 

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



[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread eryksun

eryksun added the comment:

> The problem here is probably that installing the CRT update 
> required a restart

I saw that, but it didn't make any sense to me that the DLL isn't available 
immediately after wusa.exe exits. Is it in limbo until the system is restarted? 
I know in Windows 10 these api-ms-win-crt* DLLs are actually virtual API sets 
managed by the loader (i.e. they all have the same module handle, that of 
ucrtbase.dll). How does this relate to what's going on with Windows 8/Server 
2012, if at all? Marius reports that "Python seems to work", but doesn't 
mention whether or not a reboot was necessary.

--

___
Python tracker 

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



[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

If the Tcl/Tk/Idle bundle is installed, then I prefer that /idle-test be 
included, even if '[ ] include tests' is left blank, as I may someday make part 
of it runnable from the help menu.  IE, the status quo. I do not care about any 
of the other package test directories.

If I understand the patch correctly, you already excluded the tkinter bundle 
from the embeddable zip.  The change I see is elimination of site-packages 
(#?) and *.exe (#26086).  It appears that you rejected the proposal in this 
issue, so the resolution should say so.

--

___
Python tracker 

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



[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

The tests seem to have grown a new Deprecation Warning (triggered when run with 
python -bWall). Looks like this may be a side effect of revision 2d808b72996d.

[160/392] test_idle
/media/disk/home/proj/python/cpython/Lib/idlelib/EditorWindow.py:88: 
DeprecationWarning: EditorWindow.HelpDialog is no longer used by Idle.
It will be removed in 3.6 or later.
It has been replaced by private help.HelpWindow

  helpDialog = HelpDialog()  # singleton instance, no longer used

--
nosy: +martin.panter

___
Python tracker 

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



[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


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

___
Python tracker 

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



[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


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

___
Python tracker 

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



[issue25081] Windows installer Upgrade->Customize->Back goes to Install page

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


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

___
Python tracker 

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



[issue25102] Windows installer: 'precompile standard library' option should pre-compile with -O and -OO

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


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

___
Python tracker 

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



[issue25196] Installer>Install in user folder by default when you check: for all users

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Did you check the checkbox on the front page?

The checkbox that says "Install launcher for all users" only installs the 
launcher for all users, which is recommended for compatibility with Python 3.4 
or 2.7 (which would otherwise override the launcher with one that doesn't work).

To install Python itself for all users you need to go through Customize and 
select it on the second page.

--

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-09-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Serhiy, thanks for the review.  I bungled the issue number on the commit 
message, so here are the commit notices.  Will correct for NEWS.

New changeset b79dd0d7dc98 by Terry Jan Reedy in branch '2.7':
Issue #24570: Right-click for context menus now work on Mac Aqual also.
https://hg.python.org/cpython/rev/b79dd0d7dc98

New changeset 51b2b1a821b7 by Terry Jan Reedy in branch '3.4':
Issue #24570: Right-click for context menus now work on Mac Aqual also.
https://hg.python.org/cpython/rev/51b2b1a821b7

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

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



[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4d0d987bf6a8 by Steve Dower in branch '3.5':
Issues #25112: py.exe launcher is missing icons
https://hg.python.org/cpython/rev/4d0d987bf6a8

--
nosy: +python-dev

___
Python tracker 

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



[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-22 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
Removed message: http://bugs.python.org/msg251380

___
Python tracker 

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



[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2015-09-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Sorry, #24801.

--

___
Python tracker 

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



[issue25166] Windows AllUsers installation places uninstaller in user profile

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Burn is always started in the per-user scope so that we can do per-user 
installs without elevating, but it looks like we need to manually change this 
once we know it's an all-users install.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2015-09-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Right click for context menu in Mac Aqua is fixed in ##24570.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue25164] Windows default installation path is inconsistent between per-user and system-wide installation

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Might be too much of a breaking change for 3.5.1 - what do the other Windows 
guys think about making them both "Python 3.5" (or "Python 3.5-32" in the 
per-user case, to avoid conflicting with a 64-bit install)?

--

___
Python tracker 

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



[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b79dd0d7dc98 by Terry Jan Reedy in branch '2.7':
Issue #24570: Right-click for context menus now work on Mac Aqual also.
https://hg.python.org/cpython/rev/b79dd0d7dc98

New changeset 51b2b1a821b7 by Terry Jan Reedy in branch '3.4':
Issue #24570: Right-click for context menus now work on Mac Aqual also.
https://hg.python.org/cpython/rev/51b2b1a821b7

--
nosy: +python-dev

___
Python tracker 

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



[issue25163] Windows installer in AllUsers mode presents wrong installation path

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Just an incorrect variable reference in the localization file. Should be easy 
enough to fix (if the variable is initialized at the start of installation...)

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25162] Windows installation does not appear in list of installed applications

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

This is caused by the same configuration as issue 25166, so I'm closing this 
one as a duplicate.

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Windows AllUsers installation places uninstaller in user profile

___
Python tracker 

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



[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

Here is a patch documenting the += and *= mutable sequence operations. Please 
review my wording.

These operations already seem to be tested, at least on the basic mutable 
sequences: see /Lib/test/list_tests.py, test_array, test_collections, 
test_bytes (tests bytearray).

The only other places that I thought might be missing augmented assignment were 
for sets, but there is no problem there: 
.

However, there are other operations that I think may be missing from this page 
of the documentation. But it might be better to handle those in a separate bug 
report. Some of this could build off the work in Issue 12067.

* Equality comparisons (mentioned for range and dict, but apparently not tuple, 
set, strings, etc)
* Ordering comparisons (not supported for range)
* min() and max() don’t really belong; maybe substitute with iter()

--
keywords: +patch
nosy: +martin.panter
stage: needs patch -> patch review
versions: +Python 3.6
Added file: http://bugs.python.org/file40552/seq-inplace.patch

___
Python tracker 

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



[issue25165] Windows uninstallation should not remove launcher if other versions remain

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

I'm going to look into having the launcher's MSI stay behind when the bundle is 
removed, so it will have to be uninstalled separately. It can already be 
installed separately, though there isn't a really easy way to get the installer 
so you can do that.

(Because prior versions of Python did not always use the same component ID for 
the launcher, we have to have a break here. However, we now have a single MSI 
that is identical for all future versions, so the problem should not arise 
again.)

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25143] 3.5 install fails poorly on Windows XP

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

I don't have any XP machines handy, but I'll see if I can at least get an early 
termination from the installer rather than broken UI.

IIRC, Larry was against having prominent warnings about unsupported platforms 
on the download page, but with python.org being the official source of Windows 
binaries and XP still having an overly large market share, maybe it needs to be 
there? (Though it probably won't ever be prominent *enough*, and we'll still 
have people miss it.)

--
nosy: +larry

___
Python tracker 

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



[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Well, I made this happen once, but not a second time. That's better than most 
setup issues I get to deal with :)

Still working on it - will post when I figure it out.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The problem here is probably that installing the CRT update required a restart 
(see the line below from the log), but we didn't interrupt installation to make 
you restart before continuing.

>From the first log file:

[0A68:0EC8][2015-09-14T05:54:24]i319: Applied execute package: 
crt_14.0_v6.2_x64, result: 0x0, restart: Required


Handling this nicely could be some work. We would want to force the restart 
immediately if the user is installing pip or precompiling the stdlib, but 
otherwise they can finish installation and then restart. I'll try and look into 
this soon, but I don't think it needs to hold up a 3.5.1.

--

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Done. As this is (meant to be) a purely informational/diagnostic module, seems 
like a good idea to fix every version we're supporting in any way.

--
assignee:  -> steve.dower
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior
versions: +Python 3.6

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2f57270374f7 by Steve Dower in branch '3.4':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/2f57270374f7

--

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa869ccf9368 by Steve Dower in branch '3.5':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/fa869ccf9368

New changeset 2f55d73e5ad6 by Steve Dower in branch 'default':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/2f55d73e5ad6

--

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d8453733cc0c by Steve Dower in branch '2.7':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/d8453733cc0c

--
nosy: +python-dev

___
Python tracker 

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



[issue25091] Windows Installer uses small font

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 07a3d804c6ea by Steve Dower in branch '3.5':
Issue #25091: Increases font size of the installer.
https://hg.python.org/cpython/rev/07a3d804c6ea

--
nosy: +python-dev

___
Python tracker 

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



[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 812e30f67d6e by Steve Dower in branch '3.5':
Closes #25085 and #25086: Exclude distutils and test directories from 
embeddable distro.
https://hg.python.org/cpython/rev/812e30f67d6e

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue25102] Windows installer: 'precompile standard library' option should pre-compile with -O and -OO

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 31b230e5517e by Steve Dower in branch '3.5':
Issue #25102: Windows installer does not precompile for -O or -OO.
https://hg.python.org/cpython/rev/31b230e5517e

--
nosy: +python-dev

___
Python tracker 

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



[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e98c622ab20 by Steve Dower in branch '3.5':
Issue #25126: Clarifies that the non-web installer will download some 
components.
https://hg.python.org/cpython/rev/4e98c622ab20

--
nosy: +python-dev

___
Python tracker 

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



[issue25081] Windows installer Upgrade->Customize->Back goes to Install page

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 94ea3e05817f by Steve Dower in branch '3.5':
Issue #25081: Makes Back button in installer go back to upgrade page when 
upgrading.
https://hg.python.org/cpython/rev/94ea3e05817f

--
nosy: +python-dev

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aa6b9205c120 by Steve Dower in branch '3.5':
Issue #25092: Fix datetime.strftime() failure when errno was already set to 
EINVAL.
https://hg.python.org/cpython/rev/aa6b9205c120

--
nosy: +python-dev

___
Python tracker 

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



[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 812e30f67d6e by Steve Dower in branch '3.5':
Closes #25085 and #25086: Exclude distutils and test directories from 
embeddable distro.
https://hg.python.org/cpython/rev/812e30f67d6e

--
nosy: +python-dev

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b7f0f1d1e923 by Steve Dower in branch '3.5':
Issue #25213: Restores requestedExecutionLevel to manifest to disable UAC 
virtualization.
https://hg.python.org/cpython/rev/b7f0f1d1e923

--
nosy: +python-dev

___
Python tracker 

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



[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Can you try executing the following command (fix the paths as necessary, but 
leave all the quotes where they are):

"C:\Program Files (x86)\Python 3.5\python.exe" -m idlelib "C:\test.py"

That's what should be launched by the menu, with a minor change to use 
python.exe instead of pythonw.exe to show up any errors you are hitting.

I couldn't reproduce the issue on Windows 10, but when I'm back at work I'll 
try with some other OS versions.

--

___
Python tracker 

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



[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25081] Windows installer Upgrade->Customize->Back goes to Install page

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue17942] IDLE Debugger: Improve GUI

2015-09-22 Thread Mark Roseman

Mark Roseman added the comment:

Have attached debugger-ui.patch, which greatly updates the user interface for 
the existing debugger.  

This also relies on some images that should be downloaded and unpacked into the 
'Icons' directory: http://www.tkdocs.com/images/debugicons.zip

Summary of changes:
 * works with both Tk 8.4 and 8.5+
 * paned window separates left and right, allowing adjusting relative sizes
 * on left, toolbar with graphical/text buttons, plus message, and stack
 * on right, local and global variables of selected stack frame
 * running program can be interrupted via 'stop' button
 * stack and variables use listbox (8.4) or tree (with resizable columns)
 * removed locals, globals, and stack 'view' options
 * source option changed to auto-open windows to see source
 * can always view source by double-clicking or context menu in stack
 * full value of variable can be seen via tooltip in variable list
 
In future, this will also replace the 'stack viewer' feature for displaying
exceptions, but this has not yet been integrated.

--
keywords: +patch
Added file: http://bugs.python.org/file40551/debugger-ui.patch

___
Python tracker 

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



[issue15347] IDLE - does not close if the debugger was active

2015-09-22 Thread Mark Roseman

Mark Roseman added the comment:

Figured out the cause of this hang, it was to do with the nested event loops.

It turns out that mainloop() really should just be for the mainloop. Or at 
least quit() should only be used to quit the outer loop, as it relies on 
setting a static variable, so is not reentrant, i.e. does not handle nested 
event loops.

I changed the nested loop to use a different mechanism to start the nested 
event loop (vwait, which waits for a tcl variable to be set) and terminate the 
nested loop (setting that variable). Have attached fix-nested-mainloop.patch.

Fixes the problem here, and in #15348, and another case I was using (start, 
enable debugger, open module, run module, quit).

The one in #24455 is something different, I'll look into it.

--
keywords: +patch
Added file: http://bugs.python.org/file40550/fix-nested-mainloop.patch

___
Python tracker 

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



[issue25148] Windows registry PythonCore key changed inconsistent with other releases

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

It was changed to be consistent with the PEP 397 launcher (and the launcher was 
actually updated to match the registry key directly, rather than special-casing 
the "-32" suffix).

The original naming ("3.5") can't be used because you can't simultaneously 
install 32-bit and 64-bit per-user Pythons with the same key name. (Previously 
it would "work", but you couldn't find both of them through the registry. Now, 
because of other changes, it will have more serious issues.)

Changing to "3.5-64" and "3.5-32" and not use "3.5" anymore was inconsistent 
with the launcher, but that's a fairly weak reason. There just didn't seem to 
be a stronger reason to change.

(I don't consider this a bug, so I'm closing, but if Barry or someone else 
wants to argue that it should be changed then I'm willing to consider it for 
3.6. I don't think changing it for 3.5.1 is a good move at this point.)

--
components: +Windows
nosy: +paul.moore, tim.golden, zach.ware
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Yeah, changing the item description is a good suggestion.

It basically doubles the size of the download to include everything all at once.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The file associations are actually part of the launcher, which *technically* is 
independent of the Python install it is bundled with. So it doesn't have any 
references to the Python install directory, and double-clicking Python files 
with shebang lines will work properly.

For 3.5.1 I'm considering making the launcher an independent uninstall item (in 
response to another issue), so if you install 3.5.1 and then remove it, you can 
keep the launcher. For this to work, it has to be independent of the main 
install, so it can't refer to the DLLs directory.

--

___
Python tracker 

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



[issue25103] 3.5.0 installed standard library on Windows has LF line endings

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Yeah, this was just me forgetting to enable eol when I last recreated my build 
machine. It's on now, so the next release will be fine.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

True, those files aren't needed in the embeddable distro.

Terry - you're right, if someone chooses to install Tcl/Tk/idle then they'll 
get the tests for them as well, regardless of their test suite selection. Since 
we're not really talking about a lot of files, I'd rather leave them this way 
(which I think is what you're also suggesting?) than deal with the 
cross-installer dependencies that would exist otherwise.

--

___
Python tracker 

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



[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Good catch, none of the bdist_wininst command is really needed. I'll drop it.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue23630] support multiple hosts in create_server/start_server

2015-09-22 Thread Yann Sionneau

Yann Sionneau added the comment:

Thanks a lot Victor for your numerous reviews and your help on this!
Also thanks for all other who commented.

--

___
Python tracker 

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



[issue25116] It failed to install Py3.5 on win2008R2

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

If you could provide more information, that would be helpful.

In particular, there may be some entries in the Event Log around the time you 
were trying to install 3.5, if nothing popped up at all. There may also be log 
files in your %TEMP% directory.

--
components: +Windows
nosy: +paul.moore, tim.golden, zach.ware

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25159] Regression in time to import a module

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I just have rebuilt my Python's in development brances after made distclean to 
avoid possible effects of incremental building, and got the same results.

(1) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 -s "import sys; 
sys.modules.clear()" -- "import enum"; done

Python 3.4: 29 msec
Python 3.5: 43.4 msec (+50%)
Python 3.6: 44.4 msec (+2%, +53%)


(2) for i in `seq 5`; do ./python -I -m timeit "import enum"; done

Python 3.4: 3.02 usec
Python 3.5: 3.14 usec (+4%)
Python 3.6: 3.34 usec (+6%, +10%)


(3) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 "import enum"; done

Python 3.4: 3.49 msec
Python 3.5: 4.19 msec (+20%)
Python 3.6: 4.45 msec (+6%, +28%)


32-bit Ubuntu 14.04, Linux 3.16, gcc 4.8.4, Intel(R) Atom(TM) CPU N570   @ 
1.66GH.

--

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Arguably it's because of the platforms that don't reliably set errno. (I don't 
know exactly which those are, but I'm not about to enable it everywhere right 
now. If someone else wants to do it and deal with the fallout they're welcome.)

--

___
Python tracker 

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



[issue25124] No single .msi available for 3.5 release

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The decision cannot reasonably be reversed now - this sort of passionate 
feedback was really needed during the alphas to have any impact. I'm sorry you 
didn't feel the need to participate in Python's development, as this extra 
feedback would have been useful.

For most users who are installing Python for themselves, the bundle launcher 
provides a much better experience. As well as CRT detection, it also allows 
true per-user installation as well as decoupling tasks such as precompiling 
.pyc files from installing components and enabling the web installers. There is 
also a more reliable upgrade mechanism that retains previous settings and the 
launcher is now correctly reference counted (though there will be conflicts 
with the 2.7 and 3.4 installer...).

After discussions at PyCon US in April, I chose to make the per-user 
installation the default as it best fits the user segment we (as a development 
team) are most concerned about. Administrators who are deploying across a 
network do now need to work harder than before, which we considered a fair 
tradeoff for non-admin users to be able to install and use Python.

If you much prefer MSIs, you can pass the /layout option to the wrapper and 
obtain the raw MSIs and install them individually (passing 
"TARGETPATH=location" as a property). However, I think the documentation for 
the launcher options (https://docs.python.org/3.5/using/windows.html) is much 
better than anything we had in the past (I had nothing to do with the old 
installer, but had to regularly decompile it to diagnose installation issues).

So thankyou for the feedback, but on balance between administrators and 
individual users we've decided to help save individual users from having to 
read documentation, at the expense of needing administrators to refer to the 
instructions to do automated installation.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue20519] Replace uuid ctypes usage with an extension module.

2015-09-22 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue25209] Append space after completed keywords

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

“Else” doesn’t always use a colon. Consider “1 if x else 2”. Again, if Python 
started adding unwanted spaces and colons I imagine users could be annoyed and 
think Python is being too smart and complicated for its own good. But maybe see 
what others say.

--

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Confirmed. I have a trivial fix coming to restore the requestedExecutionLevel.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

Eryksun: If you mean tagging the bug report, I think we usually tag all the 
applicable open branches that are due for another release.

I’m not sure anything needs to be documented regarding setattr(). At best it is 
an implementation detail that should not be relied on, although making the 
implementation stricter could be a compatibility problem.

There are other places where troublesome names are allowed. One that caught my 
eye recently is os.sendfile(in=..., ...) is a syntax error, but you can still 
pass the “in” keyword via os.sendfile(**{"in": ...}, ...).

--
versions: +Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue24295] Backport of #17086 causes regression in setup.py

2015-09-22 Thread Moritz Sichert

Moritz Sichert added the comment:

No this isn't an issue in Python 3.5. It was caused by the backport that was 
diffed against an older version that didn't include 7955d769fdf5 and thus 
reverted that.

--

___
Python tracker 

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2015-09-22 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I don't think so.

On Tue, Sep 22, 2015, at 11:52, Serhiy Storchaka wrote:
> 
> Serhiy Storchaka added the comment:
> 
> Is this issue fixed?
> 
> --
> nosy: +serhiy.storchaka
> status: open -> pending
> 
> ___
> Python tracker 
> 
> ___

--
status: pending -> open

___
Python tracker 

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



[issue9051] Improve pickle format for timezone aware datetime instances

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

For stability it is better to use public name 'timezone.utc' instead of '_utc'. 
Dotted names now are supported with all protocols.

> but there is still room for improvement:

Don't worry about this. When you pickle a number of datetime objects with the 
same timezone, the timezone is pickled only once and for all other datetime 
objects only a reference is used.

--
nosy: +serhiy.storchaka
type: behavior -> enhancement
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue25217] Method cache can crash at shutdown in _PyType_Lookup

2015-09-22 Thread Mark Shannon

Changes by Mark Shannon :


--
nosy: +Mark.Shannon

___
Python tracker 

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



[issue25217] Method cache can crash at shutdown in _PyType_Lookup

2015-09-22 Thread Antoine Pitrou

New submission from Antoine Pitrou:

In the following gdb backtrace you'll see that if Python code is executed from 
the PyInterpreterState_Clear() step in Py_Finalize() (apparently when clearing 
the builtins), _PyType_Lookup() can be executed and crash on a NULL entry in 
the method cache.

Note the reason this happens is that we set a weakref callback on the global 
print() function, and for some reason the weakref is able to survive longer 
than the global print() function. We don't have the crash on previous versions 
of Python (< 3.5).

Here is the backtrace:

#0  0x7fc17dba90cf in _PyType_Lookup (type=type@entry=0x291e0d8, 
name=name@entry='_globals') at Objects/typeobject.c:2913
#1  0x7fc17db90346 in _PyObject_GenericGetAttrWithDict (obj=
, 
attributes={<_TypeMetaclass(_abc_negative_cache_version=30, 
__module__='numba.types', _abc_registry=, data=set()) 
at remote 0x7fc175c366d8>, __doc__=None, __abstractmethods__=frozenset(), 
_abc_negative_cache=, data=set()) at remote 
0x7fc175c36878>, _abc_cache=, data=set()) at remote 
0x7fc175c367a8>) at remote 0x2809e18>: ) at 
remote 0x7fc1741c2948>, <_TypeMetaclass(_abc_negative_cache_version=30, 
_abc_cache=, data=set()) at remote 0x7fc175c286d8>, key=, __init__=, can_convert_to=, 
name=) at Objects/object.c:1119
#3  0x7fc17db8e3c4 in PyObject_GetAttr (
v=v@entry=, 
attributes={<_TypeMetaclass(_abc_negative_cache_version=30, 
__module__='numba.types', _abc_registry=, data=set()) 
at remote 0x7fc175c366d8>, __doc__=None, __abstractmethods__=frozenset(), 
_abc_negative_cache=, data=set()) at remote 
0x7fc175c36878>, _abc_cache=, data=set()) at remote 
0x7fc175c367a8>) at remote 0x2809e18>: ) at 
remote 0x7fc1741c2948>, <_TypeMetaclass(_abc_negative_cache_version=30, 
_abc_cache=, data=set()) at remote 0x7fc175c286d8>, key=, __init__=, can_convert_to=)
at Objects/object.c:889
#4  0x7fc17dc37e9d in PyEval_EvalFrameEx (
f=f@entry=Frame 0x7fc17c7887f8, for file 
/home/antoine/numba/numba/typing/context.py, line 238, in on_disposal 
(wr=), throwflag=throwflag@entry=0) at 
Python/ceval.c:2688
#5  0x7fc17dc3c56c in _PyEval_EvalCodeWithName (_co=, globals=, locals=locals@entry=0x0, 
args=args@entry=0x7fc174b5e428, argcount=1, kws=kws@entry=0x0, kwcount=0, 
defs=0x0, defcount=0, kwdefs=0x0, 
closure=(,), name=0x0, qualname=0x0) at 
Python/ceval.c:3962
#6  0x7fc17dc3c659 in PyEval_EvalCodeEx (_co=, 
globals=, locals=locals@entry=0x0, 
args=args@entry=0x7fc174b5e428, 
argcount=, kws=kws@entry=0x0, kwcount=0, defs=0x0, 
defcount=0, kwdefs=0x0, closure=(,))
at Python/ceval.c:3983
#7  0x7fc17db66f08 in function_call (func=, arg=(,), kw=0x0)
at Objects/funcobject.c:632
#8  0x7fc17db30ce1 in PyObject_Call (func=func@entry=, arg=arg@entry=(,), 
kw=kw@entry=0x0) at Objects/abstract.c:2147
#9  0x7fc17db318e8 in PyObject_CallFunctionObjArgs 
(callable=callable@entry=) at 
Objects/abstract.c:2427
#10 0x7fc17dc04228 in handle_callback (ref=ref@entry=0x7fc1741bd2d8, 
callback=callback@entry=)
at Objects/weakrefobject.c:868
#11 0x7fc17dc047aa in PyObject_ClearWeakRefs (object=object@entry=)
at Objects/weakrefobject.c:913
#12 0x7fc17db8b57c in meth_dealloc (m=m@entry=0x7fc17e1b2d00) at 
Objects/methodobject.c:155
#13 0x7fc17db8ee49 in _Py_Dealloc (op=) at Objects/object.c:1786
#14 0x7fc17db79ca0 in free_keys_object (keys=keys@entry=0x221cef0) at 
Objects/dictobject.c:354
#15 0x7fc17db7bb63 in dict_dealloc (mp=mp@entry=0x7fc17e1d62f8) at 
Objects/dictobject.c:1567
#16 0x7fc17db8ee49 in _Py_Dealloc (
op={'FileExistsError': , 
'NotImplementedError': , 'eval': , 
'SystemError': , 'max': , 'repr': , 'sum': , 'ValueError': , 'Ellipsis': , 'next': 
, 'tuple': , 'StopIteration': 
, 'ReferenceError': , 'OverflowError': , 
'RuntimeWarning': , 'issubclass': , 'range': , filename@entry=0x7fc17e152550 "numba/pycc/pycc", 
closeit=closeit@entry=1, flags=flags@entry=0x7ffc35eb0970) at 
Python/pythonrun.c:401
#24 0x7fc17dc6900c in PyRun_AnyFileExFlags (fp=fp@entry=0x22bce90, 
filename=0x7fc17e152550 "numba/pycc/pycc", closeit=closeit@entry=1, 
flags=flags@entry=0x7ffc35eb0970) at Python/pythonrun.c:80
#25 0x7fc17dc83e57 in run_file (fp=fp@entry=0x22bce90, 
filename=filename@entry=0x21f4300 L"numba/pycc/pycc", 
p_cf=p_cf@entry=0x7ffc35eb0970)
at Modules/main.c:318
#26 0x7fc17dc84a9b in Py_Main (argc=argc@entry=3, 
argv=argv@entry=0x21f3020) at Modules/main.c:769
#27 0x00400bea in main (argc=3, argv=0x7ffc35eb0b88) at 
./Programs/python.c:69

Some inspection of local variables at the crash point:

(gdb) p type
$1 = (PyTypeObject *) 0x291e0d8
(gdb) p type->tp_flags
$2 = 808449
(gdb) p type->tp_version_tag 
$3 = 1769
(gdb) p method_cache
$4 = {{version = 0, name = 0x0, value = 0x0} , {version = 
1769, name = 0x0, value = 0x0}, {version = 0, name = 0x0, 
value = 0x0} }
(gdb) p method_cache[h]
$5 = {version = 1769, name = 0x0, value = 0x0}

--
c

[issue16251] pickle special methods are looked up on the instance rather than the type

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is this issue fixed?

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



[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN

2015-09-22 Thread Remi Pointel

Remi Pointel added the comment:

Maybe we could check if the functionality is available instead of checking a 
version? What do you think about that?

--

___
Python tracker 

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



[issue23513] Add support for classes/object model in multiprocessing/pickle

2015-09-22 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



[issue10717] Multiprocessing module cannot call instance methods across processes

2015-09-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> wont fix
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

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



[issue25214] asyncio ssl transport regression

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

The specific case of getpeercert(), there is an extra info. For other info,
did you notice that I just added ssl_object to extra info? :-)

http://bugs.python.org/issue25114

--

___
Python tracker 

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



[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread eryksun

eryksun added the comment:

This is a documentation issue and not specific to a particular version  of 
Python. What's the rule on version tagging in this case?

--
components: +Documentation

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread eryksun

eryksun added the comment:

This issue doesn't pertain to the 64-bit version.

C:\Temp>py -3.5
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) 
[MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2('test.txt', 'C:\\')
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python 3.5\lib\shutil.py", line 251, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Program Files\Python 3.5\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\test.txt'

In the 32-bit version, creating a file in the system root directory gets 
virtualized when the user doesn't have write access. It's not specific to 
shutil.copy2.

C:\Temp>py -3.5-32
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) 
[MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> open('C:\\test.txt', 'w').close()
>>> import pathlib
>>> pathlib.Path('C:\\test.txt').resolve()
WindowsPath('C:/Users/usradm/AppData/Local/VirtualStore/test.txt')

You can verify in the task manager's details tab that UAC Virtualization is 
enabled for 32-bit python.exe and disabled for 64-bit python.exe. The problem 
is that the manifest is missing the requestedExecutionLevel, which should be 
present and set to "asInvoker". This is discussed in the MSDN article [New UAC 
Technologies for Windows Vista][1].

>>> os.system('sigcheck -q -m "%s"' % sys.executable)
c:\users\usradm\appdata\local\programs\python\python35-32\python.exe:
Verified:   Signed
Signing date:   2:17 AM 9/13/2015
Publisher:  Python Software Foundation
Description:Python
Product:Python
Prod version:   3.5.0
File version:   3.5.0
MachineType:32-bit
Manifest:


  

  
  
  
  
  

  


3.4's manifest sets the requestedExecutionLevel:

C:\Temp>py -3.4-32
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) 
[MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> os.system('sigcheck -q -m "%s"' % sys.executable)
c:\users\usradm\appdata\local\programs\python\python34-32\python.exe:
Verified:   Unsigned
Link date:  9:43 PM 2/24/2015
Publisher:  n/a
Description:n/a
Product:n/a
Prod version:   n/a
File version:   n/a
MachineType:32-bit
Manifest:

  

  

  

  
 

[1]: https://msdn.microsoft.com/en-us/library/bb756960

--
components: +Windows -Library (Lib)
keywords: +3.5regression
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal -> high

___
Python tracker 

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



[issue17781] optimize compilation options

2015-09-22 Thread Matthias Klose

Matthias Klose added the comment:

On 22.09.2015 12:31, Antoine Pitrou wrote:
> Also note LTO can make compilation times much longer (it's the linking step 
> actually, which can take minutes).

use -flto=jobserver

--

___
Python tracker 

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



[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread W deW

W deW added the comment:

Thanks for the ref to issue14029. I think I see how it works. As long as the 
object's __dict__ accepts the attributeName as a key, it needs not be a valid 
string nor a string at all. Though the latter *is* checked for, and that in 
turn can be circumvented by adding the attribute to the __dict__ directly. An 
object can be made attribute to itself.

However, the documentation falls short here. So far, I haven't found where it 
defines "attribute". Is there any point in defining an attribute that cannot be 
addressed as an attribute if the parser doesn't allow it?

It seems to me that in order to catch programing errors early, the default 
behaviour should include checking the valid syntax of the attribute's name.

--
components:  -Documentation
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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Georg Brandl

Georg Brandl added the comment:

> As a french, I was always distributed by this, but it's correct in english :-)

You know what you have to tell LaTeX to not put extra space after all full 
stops? \frenchspacing :)

--
nosy: +georg.brandl

___
Python tracker 

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



[issue25209] Append space after completed keywords

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Good catch Martin. Indeed, "pass", "break" and "continue" don't need a space, 
and "True", "False" and "None" need a space only in rare cases like "None in 
collection". Some keywords ("else", "finally", "try") need a colon. But while 
"return" and "lambda" not always need a space, I think that needing a space is 
more common case, and in any case the redundant space doesn't make a harm.

Here is revised patch that doesn't add a space in some cases and instead adds a 
colon in some cases.

--
Added file: http://bugs.python.org/file40549/rlcompleter_keyword_space_2.patch

___
Python tracker 

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



[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-22 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Bar, thanks for the time you put into diagnosing this error, it is 
definitely a bug. The intention is for mean([huge, huge]) to return 
huge, not raise OverflowError.

I'm reluctant to say that mean() will *never* raise OverflowError, but 
it certainly shouldn't do so for this case if it can be avoided. I think 
Mark's diagnosis is probably correct that refactoring the code will fix 
this.

--

___
Python tracker 

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



[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-09-22 Thread Shirshendu Bhowmick

Shirshendu Bhowmick added the comment:

I am the person with this problem, i have tired the installation on another 
Windows 8.1 machine but faced the same error. Is there any update on this issue.

--
nosy: +Shirshendu Bhowmick

___
Python tracker 

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



[issue25215] Simple extension to iter(): iter() returns empty generator

2015-09-22 Thread Brett Cannon

Brett Cannon added the comment:

I agree with Raymond. Allowing a non-argument iter() runs the risk of someone 
messing up and forgetting the arguments and yet having no error that they did 
so. And considering how easy it is to get an iterator of an empty list or tuple 
I don't see a benefit.

Thanks for the suggestion, Jurjen, but I'm closing this as rejected.

--
nosy: +brett.cannon
resolution:  -> 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



[issue25216] Warnings stacklevel frames to skip

2015-09-22 Thread Jim Jewett

Changes by Jim Jewett :


--
stage:  -> needs patch

___
Python tracker 

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



[issue25216] Warnings stacklevel frames to skip

2015-09-22 Thread Jim Jewett

New submission from Jim Jewett:

warnings.warn(stacklevel=2) is a longstanding idiom.

It broke in 3.3 because python itself added some additional infrastructure 
frames in between; now stacklevel should be 8 or 10 in some releases.

issue24305 adds a workaround for 3.5, to ignore internal frames -- defined as 
those which contain both 'importlib' and '_bootstrap' in filename.

I would prefer to see a supported hook, so that either the caller or the 
program setup could list other modules or packages to ignore when counting 
frames.  That way, I could write

mycall(otherlib(foo))

and otherlib could ensure that the warning pointed to mycall, rather than to 
something internal to otherlib, even if otherlib were refactored to a different 
stack depth.

Ignoring just the import machinery would of course be a good default.

--
components: Library (Lib)
messages: 251328
nosy: Jim.Jewett
priority: normal
severity: normal
status: open
title: Warnings stacklevel frames to skip
type: enhancement
versions: Python 3.6

___
Python tracker 

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



  1   2   >