[issue28097] IDLE: document all key bindings, add menu items for more.

2016-09-12 Thread Terry J. Reedy

New submission from Terry J. Reedy:

(Follow-up to #15308, which added ^C Interrupt Execution to doc and Shell menu, 
and to #27120, which proposed to add ^/ Toggle Highlighting, until I realized 
that that should be part of #6858, about highlighting non-.py files.)

Every IDLE function should be documented.  More should be on menu.  Perhaps add 
Move/delete menus for cursor movement and directional deletion, if not a 
diagram.

Another idea.  A searchable current key binding list, possible sortable by key 
as well as function.  It should include fixed builtin bindings as well as 
extension bindings.  See #27120 for motivation.

Side issue 1: Menu entries for extensions do not reflect customization (? 
verify, from Roger).

Side issue 2: Menus need to be tested.

--
assignee: terry.reedy
components: IDLE
messages: 275980
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: document all key bindings, add menu items for more.
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



[issue6858] This is a python file, apply syntax highlighting

2016-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There exists a <> bound (at least on Windows) to ^/.  
When toggled off, it does not removes existing highlighting.  So accidentally 
hitting the key has no immediate visible effect (see #27170 for problem this 
caused someone.)  It does re-highlight existing code when toggled on.  The turn 
off part should be fixed and maybe a status bar message given.

It only applies to .py files.  With a .txt, it selects the entire file, 
including the trailing blank (which ^A omits).  For this issue, it should be 
fixed to allow for any file, just starting off for non .py files.

It is one of many key bindings not in doc or not on menu.  #28097 is about this 
general issue.

--

___
Python tracker 

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



[issue17941] namedtuple should support fully qualified name for more portable pickling

2016-09-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> fixed
status: open -> closed
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



[issue17941] namedtuple should support fully qualified name for more portable pickling

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c8851a0ce7ca by Raymond Hettinger in branch 'default':
Issue #17941: Add a *module* parameter to collections.namedtuple()
https://hg.python.org/cpython/rev/c8851a0ce7ca

--
nosy: +python-dev

___
Python tracker 

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



[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The patch changes 4 non-tkinter clinic files.  Accident?  All 4 are rejected.  
Will compile and test tkinter changes.

--

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Wolfgang Langner

Wolfgang Langner added the comment:

This can be related to building manylinux1 binaries where the Centos 5.11 is 
used.
There can be a possibility to break manaylinux1 builds for Python 3.6, they are 
used to distribute packages for every Linux distribution.

https://www.python.org/dev/peps/pep-0513/

--
nosy: +tds333

___
Python tracker 

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



[issue28096] set.difference() is not interruptible

2016-09-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This is no different than the many other places in Python where you can tell 
the language to go on an infinite wild goose chase:  sum(count()), 
list(count()), etc.  I believe there is already a tracker item open for such 
things.  Someone is going to have to make a decision whether to slow-down every 
single possible input source, or slow-down every possible consumer, or to just 
punt, because this never comes up in practice.

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

___
Python tracker 

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



[issue6858] This is a python file, apply syntax highlighting

2016-09-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

+0 from me.

--
assignee: rhettinger -> terry.reedy

___
Python tracker 

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



[issue28098] sys.getsizeof(0) is incorrect

2016-09-12 Thread Mark Dickinson

New submission from Mark Dickinson:

Low-priority issue, possibly not worth fixing at all, but maybe worth recording.

sys.getsizeof(0) currently reports 24 on a 64-bit machine using 30-bit limbs. 
That's inaccurate, since we're actually allocating 28 bytes for 0 as part of 
the small-int cache. PyLong_FromLong also always requests at least one limb.

--
assignee: mark.dickinson
components: Interpreter Core
messages: 275987
nosy: mark.dickinson
priority: low
severity: normal
stage: needs patch
status: open
title: sys.getsizeof(0) is incorrect
type: behavior
versions: 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



[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Much better.  I can more or less follow IDLE startup.
>>> import tkinter
>>> tkinter.debug
False
>>> tkinter.debug = True
>>> import idlelib.idle
proc tkerror {} {}
proc exit {} {}
proc 27305592destroy {} {>}
wm protocol . WM_DELETE_WINDOW 27305592destroy
wm withdraw .
wm iconbitmap . -default F:\\Python\\dev\\36\\lib\\idlelib\\Icons\\idle.ico
tcl_wordBreakAfter {a b} 0
set tcl_wordchars [a-zA-Z0-9_]
set tcl_nonwordchars [^a-zA-Z0-9_]
tk windowingsystem  
menu .`menu
toplevel .`listedtoplevel -menu .`menu
wm iconname . None
wm iconname .`listedtoplevel {}
wm title . None
wm title .`listedtoplevel idle
...
proc 67104888handler {} {>}
bind .`listedtoplevel.`frame.text  if\ \{"[67104888handler\ 
%#\ %b\ %f\ %h\ %k\ %s\ %t\ %w\ %x\ %y\ %A\ %E\ %K\ %N\ %W\ %T\ %X\ %Y\ %D]"\ 
==\ "break"\}\ break\
... # lots of above, binding for Shell window. Default print is noisy.
# I presume a custom handler that recognizes 'proc' could be better.

menu .`menu.file -tearoff 0
.`menu add cascade -label File -menu .`menu.file -underline 0
... # menu for Shell
.`menu.file add command -label {New File} -underline 0 -command 62029624command 
-accelerator Ctrl+N
... # more menu - new names **really** help!!!

Will ...settrace(None)?  Aside from that, I would like to see this in 3.6. (ie, 
applied now, upgraded later, if definitely safe).  (Note: 4AM here, so this is 
best I can review now ;-).

--

___
Python tracker 

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



[issue28098] sys.getsizeof(0) is incorrect

2016-09-12 Thread Mark Dickinson

Mark Dickinson added the comment:

Related: http://bugs.python.org/issue3690

--

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-12 Thread Batiste

Batiste added the comment:

Here is a second patch which is improved in some ways:

1. removed the '.headerlink .headerlink'
2. when scrolling over the side bar the 'snappin' is disabled therefor it is 
rather easy to search and find the desired section or the search box
3. removed an error when collapsing the menu
4. Scrolling all the way down with a small viewport doesn't push the sidebar 
over the footer

--
Added file: http://bugs.python.org/file44590/following-sidebar-2.patch

___
Python tracker 

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



[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I ran idle and tcl/tk/ttk tests.  all pass with and without patch. text_tcl 
before and with patch ends with warning: Windows fatal exception: access 
violation.  I have seen this for perhaps a couple of weeks (check windows 
buildbot), but not forever.  You should probably try to fix.

--

___
Python tracker 

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



[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

If not in 3.6, I can still apply patch from shelf, recompile, use for awhile, 
re-shelve, recompile.  So not tragedy if miss deadline.

--

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-12 Thread Batiste

Batiste added the comment:

Minor typo fix.

--
Added file: http://bugs.python.org/file44591/following-sidebar-3.patch

___
Python tracker 

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



[issue28098] sys.getsizeof(0) is incorrect

2016-09-12 Thread Mark Dickinson

Mark Dickinson added the comment:

I don't think anything has changed substantially since the discussion in issue 
3690. Closing as "won't fix".

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

___
Python tracker 

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



[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-12 Thread Kubilay Kocak

Kubilay Kocak added the comment:

@Martin tldr; That was three years ago so I don't know if the issue remains. 
Perhaps a new out of tree builder will help answer that question.

We(FreeBSD) gave up^W switched away from out of tree builds due to lack of 
support getting issues fixed and the frequency at which commits would 
alternately break in tree builds then out of tree builds.

Unfortunately that also lost us the flexibility to create dual static/shared 
builds.

The relevant downstream commit log: 
https://svnweb.freebsd.org/ports?view=revision&revision=350610

The patch we added (reverting 2dde5a7439fd) that was mentioned in msg203348 
was: 

https://svnweb.freebsd.org/ports/head/lang/python27/files/patch-Makefile.pre.in?view=markup&pathrev=318353

If the current code is the same as per the 2dde5a7439fd change, then I'd guess 
it would still be an issue.

--

___
Python tracker 

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



[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, I can't push the patch in a haste. In needs more design discussion, 
comparing with other implementations (I found only that ZipFile in Java can 
take the charset argument, but "charset" is common name for text encoding in 
Java), wider discussion. The problem exists for years, and there are 
workarounds.

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

Do we know for sure that the manylinux1 builds are affected by this, i.e. can 
someone try building manylinux1 for 3.6?

On the one hand, it is clear that many core developers would like to use these 
newer features of C, features that have been available for many years.  On the 
other, we may be breaking the "manylinux1" proposed standard and force a move 
to a newer one, as well as directly impacting some users (such as Steven and 
one of our buildbots) using old setups.

Nick, as BDFL-Delegate for PEP 513, what do you think?  We need to resolve this 
issue before we can release b1.

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



[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread SilentGhost

SilentGhost added the comment:

Floats are also not fully supported by the Counter class, for example,
sorted(Counter(a=1.0).elements()) results in TypeError.

--
nosy: +SilentGhost

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-12 Thread Batiste

Batiste added the comment:

So answer to your comments SilentGhost:

I had a look at what Mozilla recommend. Their proposition of using 
position:sticky is interesting and probably possible for this use case but 
might require quite a bit of extra work. There is also the other suggestion to 
use something like https://lodash.com/docs/4.15.0#debounce but that would mean 
more jumpy animations but less computation. Also there is this 
http://caniuse.com/#feat=css-snappoints that would solve the issue created just 
before but it is not well supported yet.

All in all interesting points.

Off course I am willing to spend some time on optimization this if necessary. 
But before that I might want to have some kind of "approval" that my work as a 
chance to be used.

And I have a question for you R. David Murray. Look here for example:

https://docs.python.org/3/library/asyncio-protocol.html#udp-echo-server-protocol

What is the value of having an empty left sidebar here? Shoudn't we remove the 
sidebar completly if you have to scroll all the way up anyway? I don't really 
see the value for this sidebar in many of the long pages Python documentation 
offers.

--

___
Python tracker 

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



[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This feature is useful first at all for us, core developers. I think we could 
add it with provisional status in the beta stage or wait to 3.7. In any case 
the documentation and tests are not ready yet.

--
nosy: +ned.deily

___
Python tracker 

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



[issue24821] The optimization of string search can cause pessimization

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I would commit the patch before beta 1, but:

1) The issue can be considered not as a new feature, but as a fix of 
performance bug (just we don't will to backport the fix to 3.5). I think the 
patch can be committed at the beta stage.

2) I would want to tune magic constants. I experimented on my two computers, 
and thing they are good enough, but would be nice to test them on other 
computers. I need to write automatic benchmark for running on foreign 
computers. This will take a time.

--

___
Python tracker 

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



[issue24821] The optimization of string search can cause pessimization

2016-09-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +ned.deily

___
Python tracker 

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



[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

I just rebuilt the default Python branch (rev c8851a0ce7ca) on Windows in debug 
mode and 32-bit: the compilation succeeded and test_dict pass.

* Windows 8.1 (Version 6.3, Build 9600)
* Visual Studio 2015 : version 14.0.23107.0 D14EL


> It's unlikely, but we also print out the UCRT version at the end of the build 
> process (with a warning if you need to update the WinSDK).

Ah, UCRT seems outdated on my PC:

29>-- Rebuild All started: Project: _testbuffer, Configuration: Debug Win32 
--
27>  Generating Code...
26>  C:\Windows\SYSTEM32\ucrtbased.dll is version 10.0.10150.0
26>  WARN: ucrtbased contains known issues. Please update the Windows 10 SDK.
26>  See:
26>http://bugs.python.org/issue27705
26>https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

--

___
Python tracker 

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



[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf2689e191f8 by Christian Heimes in branch 'default':
Issue #28093: Check more invalid combinations of PROTOCOL_TLS_CLIENT / 
PROTOCOL_TLS_SERVER
https://hg.python.org/cpython/rev/cf2689e191f8

--
nosy: +python-dev

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have committed the patch before beta 1 because it change bytecode generating 
and interpreting. The bytecode generated before the patch is compatible with 
the patched interpreter, but the bytecode generated by patched compiler can be 
not compatible with unpatched interpreter. After releasing beta 1 this would 
require changing bytecode magic number.

--

___
Python tracker 

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



[issue24821] The optimization of string search can cause pessimization

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

If it has waited this long and is truly low priority, I think it can wait a 
little longer until 3.7.

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

The change 51b635e81958 introduced memory leaks. Example:

$ ./python -m test -R 3:3 test_extcall
(...)
test_extcall leaked [102, 102, 102] references, sum=306
test_extcall leaked [41, 41, 41] memory blocks, sum=123

I'm analyzing the change to try to identify leaks.

--

___
Python tracker 

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



[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread SilentGhost

Changes by SilentGhost :


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

___
Python tracker 

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



[issue25478] Consider adding a normalize() method to collections.Counter()

2016-09-12 Thread SilentGhost

Changes by SilentGhost :


--
nosy:  -SilentGhost

___
Python tracker 

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



[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

Let's target it for 3.7 and when it is ready we can discuss whether to backport 
it to 3.6 as well.

--
versions: +Python 3.7 -Python 3.6

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f217419d08f0 by Victor Stinner in branch 'default':
Issue #27213: Fix reference leaks
https://hg.python.org/cpython/rev/f217419d08f0

--

___
Python tracker 

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



[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

The warning is gone. Close this thread. :)

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



[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-12 Thread Petri Lehtinen

Changes by Petri Lehtinen :


--
nosy:  -petri.lehtinen

___
Python tracker 

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



[issue27744] Add AF_ALG (Linux Kernel crypto) to socket module

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a951f8f30922 by Victor Stinner in branch 'default':
Cleanup socketmodule.c
https://hg.python.org/cpython/rev/a951f8f30922

New changeset 3a6917c73857 by Victor Stinner in branch 'default':
socket: Fix memory leak in sendmsg() and sendmsg_afalg()
https://hg.python.org/cpython/rev/3a6917c73857

--

___
Python tracker 

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



[issue27866] ssl: get list of enabled ciphers

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2a1c7d0fdde6 by Victor Stinner in branch 'default':
Issue #27866: Fix refleak in cipher_to_dict()
https://hg.python.org/cpython/rev/2a1c7d0fdde6

--

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Nick Coghlan

Nick Coghlan added the comment:

While manylinux1 requires that compliant binaries *run* when linked against the 
GCC 4.2 binaries, the actual recommended compiler version (and the one used in 
the reference Docker image) is 4.8.2: 
https://www.python.org/dev/peps/pep-0513/#compilation-of-compliant-wheels

That's the compiler version in Red Hat's Developer Toolset 2, the last version 
to support RHEL/CentOS 5.

Unfortunately, softwarecollections.org only goes back to RHEL/CentOS 6, so the 
devtoolset RPMs are available via Tru Huynh's personal account on the CentOS 
file server: https://people.centos.org/tru/devtools-2/readme

So if 3.6 compiles and runs on CentOS 5 with GCC 4.8.2, that's sufficiently 
compatible for manylinux1 purposes.

--

___
Python tracker 

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



[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

I compiled Python in 4 modes:

* debug/32 bits
* debug/64 bits
* release/32 bits
* release/64 bits

Compilation never fails and test_dict always pass.

I'm unable to reproduce the issue, so I removed the "release blocker" flag to 
not stress our release manager :-)

--
priority: release blocker -> deferred blocker

___
Python tracker 

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



[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread Emanuel Barry

Emanuel Barry added the comment:

I actually did a clean rebuild and could not reproduce, so I'm guessing 
something did go wrong on my side.

--
priority: deferred blocker -> normal
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed
type: crash -> 

___
Python tracker 

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



[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> I actually did a clean rebuild and could not reproduce, so I'm guessing 
> something did go wrong on my side.

Don't worry. It shouldn't hurt to double or tiple check. I'm not fully 
confident of this critical change (compact dict). It's good to get any kind of 
feedback ;-)

--

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-12 Thread Emanuel Barry

Emanuel Barry added the comment:

Fair enough, but please open a new issue for that.

@Terry - you're welcome; that's exactly the reason I pushed for it :)

--

___
Python tracker 

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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Ned Deily

Ned Deily added the comment:

Thanks for the info, Nick.  With that in mind, I"m removing this as a "release 
blocker" for now.  Steven, would it be possible to upgrade gcc on your system?  
We'll have to deal with the Tiger buildbot separately.

--
priority: release blocker -> 

___
Python tracker 

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



[issue27604] More details about `-O` flag

2016-09-12 Thread Berker Peksag

Berker Peksag added the comment:

This is a duplicate of issue 17232. Note that "This changes the filename 
extension for compiled files from ``.pyc`` to ``.pyo``." part is no longer 
true. See PEP 488 for details.

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Improve -O docs

___
Python tracker 

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



[issue28099] Drop Mac OS X Tiger support in Python 3.6

2016-09-12 Thread STINNER Victor

New submission from STINNER Victor:

Mac OS X Tiger was released in 2004: 12 years ago, 3 years after Windows XP.

The Tiger buildbot has many issues, it uses an old compiler (GCC 4.0) and an 
old OpenSSL version.

Python 3.6 now requires ISO C99 support, whereas Tiger GCC 4.0 lacks support 
for C99 "extern inline" functions: issue #28092.

I propose to officially stop supporting Mac OS X Tiger in Python 3.6: modify 
the PEP 11 and What's New in Python 3.6 to announce the end of the support. 
Python 3.5 would be the last version supporting Tiger.

--
messages: 276019
nosy: haypo, ned.deily
priority: normal
severity: normal
status: open
title: Drop Mac OS X Tiger support in Python 3.6
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



[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

I created the issue #28099 "Drop Mac OS X Tiger support in Python 3.6.

--
nosy: +haypo

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f860b7a775c5 by Victor Stinner in branch 'default':
ssue #27213: Reintroduce checks in _PyStack_AsDict()
https://hg.python.org/cpython/rev/f860b7a775c5

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e372c0ad32ce by Victor Stinner in branch 'default':
Revert change f860b7a775c5
https://hg.python.org/cpython/rev/e372c0ad32ce

New changeset 2558bc4a4ebf by Victor Stinner in branch 'default':
Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()
https://hg.python.org/cpython/rev/2558bc4a4ebf

--

___
Python tracker 

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



[issue27845] Optimize update_keyword_args() function

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

_PyStack_AsDict() doesn't check anymore if keys are unique.

BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL opcodes now use PyDict_Update() 
to combine mappings and _PyDictView_Intersect() to check if keys are unique.

I don't know if there is still something to optimize. The opcode changed the 
method to C and Python functions (FASTCALL) changed a lot recently ;-)

I suggest to close the issue.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28100] Refactor error messages in symtable.c

2016-09-12 Thread Ivan Levkivskyi

New submission from Ivan Levkivskyi:

Patch with added comment and a minor refactoring to error messages in symtable.c

Now the error message is simply always overwritten by any more "severe" 
SyntaxError found in the same block.

--
components: Interpreter Core
files: refactor-error-msg.diff
keywords: patch
messages: 276024
nosy: christian.heimes, levkivskyi
priority: normal
severity: normal
status: open
title: Refactor error messages in symtable.c
versions: Python 3.6
Added file: http://bugs.python.org/file44592/refactor-error-msg.diff

___
Python tracker 

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



[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Stephen J. Turnbull

Stephen J. Turnbull added the comment:

If you have a workaround that's available to nonprogrammers, I'd like to hear 
about it.  I have found none, that's why I went to the trouble to put together 
a patch even though I knew that the odds of actually getting it in to Python 
3.6 was very low -- my patch (or Sergey Dorofeev's, but that needs work to be 
applicable to trunk) does everything I've ever needed, so I suppose it would do 
for all the use cases so far posted (except umedoblock's encoding-guessing 
approach, but that can be handled by many 3rd-party encoding-guessing codecs, I 
think, and IMO should be).

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

Hum, I understand that it's a bug, so do you know how to reproduce the bug from 
a pure Python script? If yes, it would be nice to include an unit test.

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread INADA Naoki

INADA Naoki added the comment:

It cannot hit from Python.
The function never called for split table, since resize function combine
split table.

So we can just comment the function supports only combined table.

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0e986b81cc1c by Victor Stinner in branch 'default':
Issue #28077: find_empty_slot() only supports combined dict
https://hg.python.org/cpython/rev/0e986b81cc1c

--
nosy: +python-dev

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> find_empty_slot will also do *value_addr = &mp->ma_values[-1] if it 
> encounters a split dict.

I checked just before Naoki comment the issue, but I have the same conclusion: 
find_empty_slot() is never called on a split table.

By the way, we might modify find_empty_slot() to call insertion_resize(), 
because insertion_resize() is always called before find_empty_slot().

I close the issue. Please open a new issue if you want to refactor the code.

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



[issue27350] Compact and ordered dict

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0773e5cb8608 by Victor Stinner in branch 'default':
Issue #27350: Document compact dict memory usage
https://hg.python.org/cpython/rev/0773e5cb8608

--

___
Python tracker 

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



[issue27350] Compact and ordered dict

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

Serhiy: "Could you compare the performance between the version just before 
adding new dict implementation and the version just after this?"

I'm running benchmarks, I will keep you in touch :-)

Since the main issue (implement compact dict) is solved, I close the issue. 
Please open new specific issue if you want to enhance the implementation, fix 
bugs, etc.

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



[issue28081] [Patch] timemodule: Complete Autoconf bits for clock_*() functions: make clock_getres() and clock_settime() optional

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

LGTM, but I wait until Python 3.6 beta 1 is tagged to push this change.

--

___
Python tracker 

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



[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

Stefan Behnel: "There is a tiny bit of a backwards compatibility concern as the 
new function signature would be incompatible with anything we had before,"

Python 3.6 will probably have two "fast call" calling convention:

* _PyObject_FastCallDict(): expect a Python dict for keyword arguments
* _PyObject_FastCallKeywods(): expect a Python tuple for keys of keyword 
arguments, keyword values are packed in the same array than positional arguments

_PyObject_FastCallKeywods() is not really written to be called directly: 
Python/ceval.c calls you, but you may call _PyObject_FastCallKeywods() again 
"wrapper" functions, like functools.partial().

Currently, tp_call (and tp_init and tp_new) still expects a (tuple, dict) for 
positional and keyword arguments, but later I will add something to also 
support METH_FASTCALL for callable objects. I just don't know yet what is the 
best option to make this change.

--

The main idea is implemented (implement METH_FASTCALL), I close the issue.

I will open new issues for more specific changes, and maybe extend the API 
(especially tp_call).

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



[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Christian Heimes

Christian Heimes added the comment:

Or we can just skip the test like the other tests with 
self._skip_if_sys_path_not_writable()

--
nosy: +christian.heimes

___
Python tracker 

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



[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Chris Angelico

Chris Angelico added the comment:

Huh. Yeah, that would work really nicely. Thanks Christian!

Does this count as a bugfix? I think we've missed 3.6 feature freeze.

--

___
Python tracker 

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



[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e9e4d1b5b4b5 by Christian Heimes in branch 'default':
Issue #27322: skip test_compile_path when sys.path is not writeable.
https://hg.python.org/cpython/rev/e9e4d1b5b4b5

--
nosy: +python-dev

___
Python tracker 

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



[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Christian Heimes

Christian Heimes added the comment:

AFAIK Ned hasn't tagged the beta yet. Let's see if this fixes the failing 
Gentoo build bot.

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

Yes. It cannot be hit and I want to remove it at first. But I decide not to do 
that since there is no clue in the future find_empty_slot will not be used 
against split dict.

And hapyo, if you decide to make find_empty_slot support only combined dict, 
why not remove mp_values check?

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

mp_values should be mp->ma_values, sorry.

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> And hapyo, if you decide to make find_empty_slot support only combined dict, 
> why not remove mp_values check?

Oh, I didn't notice that find_empty_slot() partially support split tables. 
Would you like to write a patch? I reopen the issue to fix this nit ;-)

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

___
Python tracker 

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



[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f7d198fc4c96 by Christian Heimes in branch 'default':
Issue #27322: back out the commit. needs to be addressed after beta1.
https://hg.python.org/cpython/rev/f7d198fc4c96

--

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

Just need to delete the lines :) :

diff -r 0773e5cb8608 Objects/dictobject.c
--- a/Objects/dictobject.c  Mon Sep 12 14:43:14 2016 +0200
+++ b/Objects/dictobject.c  Mon Sep 12 21:26:41 2016 +0800
@@ -1011,10 +1011,7 @@
 ep = &ep0[mp->ma_keys->dk_nentries];
 *hashpos = i & mask;
 assert(ep->me_value == NULL);
-if (mp->ma_values)
-*value_addr = &mp->ma_values[ix];
-else
-*value_addr = &ep->me_value;
+*value_addr = &ep->me_value;
 return ix;
 }

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



[issue17128] OS X system openssl deprecated - installer should build local libssl

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bfd0a73cf907 by Ned Deily in branch 'default':
Issue #17128: Build OS X installer for 3.6 with private copy of OpenSSL.
https://hg.python.org/cpython/rev/bfd0a73cf907

--

___
Python tracker 

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



[issue27129] Wordcode, part 2

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

This issue can now be closed, no?

--

___
Python tracker 

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



[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Jens Timmerman

Jens Timmerman added the comment:

I'm also regularly running into this, it is really annoying, Can I do anything 
to help getting this merged in?

--
nosy: +Jens.Timmerman

___
Python tracker 

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



[issue28077] Fix find_empty_slot in dictobject

2016-09-12 Thread Xiang Zhang

Changes by Xiang Zhang :


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

___
Python tracker 

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



[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-12 Thread sashk

Changes by sashk :


--
nosy: +sashk

___
Python tracker 

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



[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please wrap "#define METH_FASTCALL  0x0080" with "#ifndef 
Py_LIMITED_API"/"#endif"? I think this method still is not stable, and we 
shouldn't encourage using it in third-party extensions.

I would use two methods: just METH_FASTCALL and METH_FASTCALL|METH_KEYWORDS. 
The former is simpler and more stable, it takes just an array of positional 
parameters. The latter takes also keyword arguments, and the format of passing 
keyword arguments may be changed.

--

___
Python tracker 

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



[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> Could you please wrap "#define METH_FASTCALL  0x0080" with "#ifndef 
> Py_LIMITED_API"/"#endif"?

Sorry, this is a mistake. I tried to exclude all new symbols related to fast 
call from the stable API.

It should now be fixed.

--

___
Python tracker 

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



[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 08a500e8b482 by Victor Stinner in branch 'default':
Issue #27810: Exclude METH_FASTCALL from the stable API
https://hg.python.org/cpython/rev/08a500e8b482

--

___
Python tracker 

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



[issue27129] Wordcode, part 2

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

No, only the simpler and safer part was committed. I divided the original patch 
on four parts, but since the code was significantly evolved, they no longer 
applied clearly.

--

___
Python tracker 

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



[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))

2016-09-12 Thread Melvyn Sopacua

Melvyn Sopacua added the comment:

The cause for this error is any cause for not being able to load a module. This 
includes version conflicts, so when trying to load a virtualenv with python 3.3 
interpreter by a uWSGI embedded python3.4 interpreter the action fails.

This is - bluntly overstated - a design flaw or overly confident claim with 
respect to virtualenv support in uWSGI. This configuration can never work and 
becomes a configuration error.

It really deserves a less generic error message, indicating the version 
conflict and possibly the path to the encoding module it tried to load. This 
helps in debugging the cause and possibly abandon the idea before wading 
through the list of reports generated by this error message (only one of which 
I found to hint at the version conflict and most don't have a clear solution or 
different root cause).

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



[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Python is programming language, I don't understand what you mean saying 
"available to nonprogrammers". As a programmer you can recode ZipInfo name 
before outputting or what you want to do with it:

filename = filename.encode('cp437').decode(encoding)

In command line you can can use iconv or other converters:

python3 -m zipfile -l myzip.zip | iconv -t cp437 | iconv -f "$encoding"

This is not very handy, but works in most cases.

--

___
Python tracker 

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



[issue28101] Add utf-8 alias to aliases.py dictionary

2016-09-12 Thread Christian Sarazin

New submission from Christian Sarazin:

The utf-8 alias should be added to the utf_8 codec block inside aliases.py


Thx

Cheers
Christian

--
components: email
messages: 276052
nosy: Christian Sarazin, barry, r.david.murray
priority: normal
severity: normal
status: open
title: Add utf-8 alias to aliases.py dictionary
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue28101] Add utf-8 alias to aliases.py dictionary

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> The utf-8 alias should be added to the utf_8 codec block inside aliases.py

Codec names are normalized by encodings.normalize_encoding():

>>> encodings.normalize_encoding(' Utf-8 ')
'Utf_8'

And then converted to lower case, so there is no need to all syntaxes of 
"utf-8", it already works ;-)

>>> codecs.lookup(' Utf-8 ').name
'utf-8'

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



[issue28080] Allow reading member names with bogus encodings in zipfile

2016-09-12 Thread Stephen J. Turnbull

Stephen J. Turnbull added the comment:

Cleaned up a few loose ends while it's all fresh in mind.  Will ping python-dev 
in 4-6 weeks for review for 3.7.

Thanks to Serhiy for review.  The current version of the patch is much improved 
over the initial submission due to his efforts.

--
Added file: http://bugs.python.org/file44593/encoded-member-names-v3

___
Python tracker 

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



[issue27129] Wordcode, part 2

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

Serhiy Storchaka added the comment:
> No, only the simpler and safer part was committed. I divided the original 
> patch on four parts, but since the code was significantly evolved, they no 
> longer applied clearly.

Oh ok. I saw that a change was pushed, I didn't read the history of the issue.

I should take a look after the beta1 release.

--

___
Python tracker 

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



[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Stephen J. Turnbull

New submission from Stephen J. Turnbull:

Pointed out by Serhiy Storchaka in a different context.

--
components: Library (Lib)
files: zipfile-errmsg
keywords: patch
messages: 276056
nosy: sjt
priority: normal
severity: normal
status: open
title: zipfile.py script should print usage to stderr
versions: Python 3.7
Added file: http://bugs.python.org/file44594/zipfile-errmsg

___
Python tracker 

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



[issue27181] Add geometric mean to `statistics` module

2016-09-12 Thread Mark Dickinson

Mark Dickinson added the comment:

Steven: any thoughts about the

statistics.geometric_mean(0.7 for _ in range(5000))

failure? Should I open a separate bug report for that, or would you rather 
address it as part of this issue?

--

___
Python tracker 

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



[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Stephen J. Turnbull

New submission from Stephen J. Turnbull:

Makes style of references to open modes 'r', 'a', ... more consistent.

CA pending (I have received PDF, but no star in tracker yet).

--
assignee: docs@python
components: Documentation
files: zipfile-doc-style
messages: 276058
nosy: docs@python, sjt
priority: normal
severity: normal
status: open
title: Style fix in zipfile.rst
versions: Python 3.7
Added file: http://bugs.python.org/file44595/zipfile-doc-style

___
Python tracker 

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



[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Stephen J. Turnbull

Stephen J. Turnbull added the comment:

CA pending (I have received PDF, but no star in tracker yet).

--

___
Python tracker 

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



[issue27181] Add geometric mean to `statistics` module

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

>>> statistics.geometric_mean([0.7 for _ in range(5000)])
Traceback (most recent call last):
  File "/Users/mdickinson/Python/cpython-git/Lib/statistics.py", line 362, in 
float_nroot
isinfinity = math.isinf(x)
OverflowError: int too large to convert to float

=> see also issue #27975

--

___
Python tracker 

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



[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I would request tests, but since currently there are no tests for command line 
interface to zipfile, it's okay. LGTM. Will commit right after beta 1 is tagged.

--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka
stage:  -> commit review
type:  -> enhancement

___
Python tracker 

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



[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
nosy: +serhiy.storchaka
stage:  -> commit review
type:  -> enhancement

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread Yury Selivanov

Yury Selivanov added the comment:

>  After releasing beta 1 this would require changing bytecode magic number.

Why don't we change the magic number before b1 (if your bytecode change is 
already committed)?

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> Why don't we change the magic number before b1 (if your bytecode change is 
> already committed)?

The magic number changed many times between Python 3.5 and the future Python 
3.6 beta 1. Maybe we skipped increasing this number for one bytecode change, 
but it should only impact the few developers who worked on the development 
version. In this case: just remove all ".pyc" files and it should be fine ;-)

In short: I think it's fine, don't do anything else ;-)

--

___
Python tracker 

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



[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread SilentGhost

SilentGhost added the comment:

I get the following compiler warning now:

In file included from ./Include/Python.h:66:0,
 from /cpython/Modules/_ssl.c:19:
/cpython/Modules/_ssl.c: In function ‘_setup_ssl_threads’:
./Include/pymem.h:136:18: warning: comparison is always false due to limited 
range of data type [-Wtype-limits]
   ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
  ^
/cpython/Modules/_ssl.c:5076:22: note: in expansion of macro ‘PyMem_New’
 _ssl_locks = PyMem_New(PyThread_type_lock, _ssl_locks_count);
  ^

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



[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread SilentGhost

Changes by SilentGhost :


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

___
Python tracker 

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



[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Chi Hsuan Yen

Changes by Chi Hsuan Yen :


--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue28086] test.test_getargs2.TupleSubclass test failure

2016-09-12 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I'm marking this as a deferred blocker as i believe we want this resolved 
before we exit the betas.

--
nosy: +gregory.p.smith
priority: normal -> deferred blocker

___
Python tracker 

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



[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-09-12 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +belopolsky

___
Python tracker 

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



[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread STINNER Victor

STINNER Victor added the comment:

> I get the following compiler warning now: (...)

Why do you think that it's related to stdint.h changes?

--

___
Python tracker 

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



[issue17884] Try to reuse stdint.h types like int32_t

2016-09-12 Thread SilentGhost

SilentGhost added the comment:

Probably, not for a particularly good reason, but none of the near-by code in 
_ssl.c seemed relevant on superficial inspection. The commit 02c8db9c255f which 
modified Include/pymem.h didn't have an issue associated with it.

--

___
Python tracker 

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



  1   2   3   >