[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I think we should take this for 3.6.

--
assignee:  -> ned.deily
nosy: +ned.deily
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



[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4745d801cae2 by Benjamin Peterson in branch '3.6':
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
https://hg.python.org/cpython/rev/4745d801cae2

New changeset 1afc3f4f5502 by Benjamin Peterson in branch 'default':
merge 3.6 (#28898)
https://hg.python.org/cpython/rev/1afc3f4f5502

--
nosy: +python-dev

___
Python tracker 

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



[issue28902] 3.6.0rc1 installer fails to install / uninstall.

2016-12-07 Thread Decorater

Changes by Decorater :


--
type:  -> behavior

___
Python tracker 

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



[issue28902] 3.6.0rc1 installer fails to install / uninstall.

2016-12-07 Thread Decorater

New submission from Decorater:

When installing python 3.6.0rc1 it errors saying that it cannot find python.dll 
 in cab1.cab (or some sort of file name similar to that) which it would 
obviously not exist. and then when I try to uninstall it it will fail saying 
3.6 is not installed but not check the registry to remove the entries for the 
windows Installed programs list.

I would like if the (web and non web) installers would actually get better and 
check right before closing if 3.6 is in the registry when it cant find one 
installed and remove those entries. As well as looking for previous python 
versions that lo longer are on disk but are on the registry as if they are 
installed (basically allows for proper cleanup).

--
components: Installation, Windows
messages: 282694
nosy: Decorater, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: 3.6.0rc1 installer fails to install / uninstall.
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



[issue28901] Embedded Release interactive mode documentation

2016-12-07 Thread Matthias v/d Meent

New submission from Matthias v/d Meent:

The Windows Embedded release (at least the x86_64 version) does not include the 
usual helper functions (exit, help, ...) when run interactively (~ python.exe). 
This is not documented at the docs of Windows Embedded release, which might 
mean that this is a bug.

Documentation on Embedded release here 
(https://docs.python.org/3/using/windows.html#embedded-distribution)

missing in interactive mode of embedded release: (output of diff):
['copyright', 'credits', 'exit', 'help', 'license', 'quit']

Notice that 'help', a builtin function according to the docs [0], is missing in 
the Embedded release. Even when embedded, a builtin should be available IMO.


[0] https://docs.python.org/3.6/library/functions.html

This comparison was only between running the python executable in the [zip] and 
python installed from this [installer]. It is very well possible this is a 
long-standing issue since 3.5 (the first Embedded release), and this may occur 
on other architectures as well.

[zip] https://www.python.org/ftp/python/3.6.0/python-3.6.0rc1-embed-amd64.zip 
[installer] https://www.python.org/ftp/python/3.6.0/python-3.6.0rc1-amd64.exe

--
assignee: docs@python
components: Documentation, Windows
messages: 282693
nosy: Matthias v/d Meent, docs@python, paul.moore, steve.dower, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Embedded Release interactive mode documentation
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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

With the above changes, the sidebar should get updated for the current 2.7, 
3.5, 3.6, and 3.7 front pages within the next 24 hours.  I'm leaving this open 
as a "release blocker" as a reminder to go back and update them all again once 
3.6.0 final happens.  I've also added a reminder to PEP 101 to do this.

--
stage: needs patch -> commit review

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e414fb1640e0 by Ned Deily in branch '2.7':
Issue #28900: Update documentation sidebar for 3.6.0rc.
https://hg.python.org/cpython/rev/e414fb1640e0

New changeset d350fc4d78ff by Ned Deily in branch '3.5':
Issue #28900: Update documentation sidebar for 3.6.0rc.
https://hg.python.org/cpython/rev/d350fc4d78ff

New changeset 148c46d180b2 by Ned Deily in branch '3.6':
Issue #28900: Update documentation sidebar for 3.6.0rc.
https://hg.python.org/cpython/rev/148c46d180b2

New changeset f200ff0a0057 by Ned Deily in branch 'default':
Issue #28900: Update documentation sidebar for 3.6.0rc.
https://hg.python.org/cpython/rev/f200ff0a0057

--
nosy: +python-dev

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

No prob. Thanks, Ned.

--

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

If it's ok, I'd like to work on a patch for this :)

--
nosy: +Mariatta

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Thanks but I'm almost done, Mariatta. The most important part is ensuring PEP 
101 is correct.

--

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

OK, I see what needs to be changed.  Thanks for the reminder!

--
assignee: docs@python -> ned.deily
priority: normal -> release blocker
stage:  -> needs patch

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Matthias v/d Meent

Matthias v/d Meent added the comment:

Yes, they do work. It's just that the links to 3.5 are missing in the sidebar 
of 3.6 and 3.7. The docs are still reachable though.

--

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Links to 3.5, 3.6, and dev (future 2.7) docs are available in the pulldown menu 
above the Download sidebar.  Does that work for you?

--
nosy: +ned.deily

___
Python tracker 

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



[issue28900] update 'docs for other versions'

2016-12-07 Thread Matthias v/d Meent

New submission from Matthias v/d Meent:

The 'docs for other versions' links in the sidebar of docs.python.org do not 
link to 3.5 in both the 3.6 and 3.7 docs. As I didn't find any docs guidelines, 
I presume this is an error and should be fixed.

A link to the Python 3.6 docs should get added under all active documentations 
before or the moment python 3.6 is released (though I suspect this is 
automated).

--
assignee: docs@python
components: Documentation
messages: 282684
nosy: Matthias v/d Meent, docs@python
priority: normal
severity: normal
status: open
title: update 'docs for other versions'
type: enhancement
versions: 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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Just follow the normal 3.6 branch which will ensure it gets into 3.6.1.  If we 
end up deciding to also add it to 3.6.0 final, I will handle the cherrypicking.

--

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread INADA Naoki

INADA Naoki added the comment:

Which revision should I make patch based on? 3.6 branch? or 3.6rc1 tag?

After 3.6rc1 is tagged, I pushed optimization which contains same one line 
change.

https://hg.python.org/cpython/rev/d03562dcbb82

-#define ESTIMATE_SIZE(n)  (((n)*3) >> 1)
+#define ESTIMATE_SIZE(n)  (((n)*3+1) >> 1)

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Yes, thanks, Charles, and thanks everyone else. Sorry about the confusion with 
the changes in rc1.

--
priority: release blocker -> 

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Nick Coghlan

Nick Coghlan added the comment:

Closing as not a bug as Charles suggested, since the problem was due to a 
workaround NumPy introduced for a regression in the beta releases that was 
fixed for rc1.

--
nosy: +ncoghlan
resolution:  -> not a bug
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



[issue28635] Update What's New for 3.6

2016-12-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d12bc674b74e by Yury Selivanov in branch '3.6':
Issue #28635: Drop the note that whatsnew is incomplete
https://hg.python.org/cpython/rev/d12bc674b74e

New changeset 1883072efc5f by Yury Selivanov in branch 'default':
Merge 3.6 (issue #28635)
https://hg.python.org/cpython/rev/1883072efc5f

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

OK, you fixed what broke us before. If I revert our fixes the problem goes 
away. So, thanks I guess ;)

You can close this.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Charles, these are the two changes that went into Lib/warnings.py between b4 
and rc1:

changeset:   105490:aaee06743c61
branch:  3.6
parent:  105488:c0f59410ccfc
user:Ned Deily 
date:Tue Dec 06 17:12:47 2016 -0500
files:   Lib/warnings.py
description:
Issue #28835: Tidy previous showwarning changes based on review comments.
Patch by Serhiy Storchaka.


changeset:   105474:726308cfe3b5
branch:  3.6
parent:  105472:ab66423c3581
user:Victor Stinner 
date:Tue Dec 06 10:53:52 2016 +0100
files:   Lib/test/test_warnings/__init__.py Lib/warnings.py Misc/NEWS
description:
catch_warnings() calls showwarning() if overriden

Issue #28089: Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

I ran with Python 3.6.0rc1 (default, Dec  7 2016, 14:00:51) and get the same 
errors in both NumPy 1.13.0-dev and 1.12. But I gave you a wrong suggestion, we 
disable some test errors for releases, which is what is on PyPI, and that is 
doubtless why you don't see them. My fault, and I apologize. You will probably 
need to clone the github repo (https://github.com/numpy/numpy) and do a 
`python3.6 runtests.py` in the master branch to see the problem. 

I'm suspecting the problem needs to be fixed on the numpy end, but need to know 
what the changes were made to get an idea of a fix. We do some odd stuff with 
the warnings queue in order to make sure no warnings are inadvertently disabled 
in the tests.

--

___
Python tracker 

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



[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2016-12-07 Thread Yury Selivanov

Yury Selivanov added the comment:

Ned, sounds good.

Serhiy, we don't have _PyErr_FormatFromCause in 3.5, so I'll probably commit 
the patch as is in 3.5.  For 3.6 is definitely makes sense to use 
_PyErr_FormatFromCause.

--

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-12-07 Thread Guido van Rossum

Changes by Guido van Rossum :


--
priority: deferred blocker -> normal

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Julien Palard

Julien Palard added the comment:

Tried to run the test_nanfunctions.py on tip and Python 3.6.0b4+, on numpy 1.11 
and 1.12.0b1, can't make it fail.

Installed numpy 1.12.0b1 using: ./python -m pip install --user numpy==1.12.0b1

I suspect Charles tested using Python 3.6.0b3 (can you confirm?), which was 
released before the latest patches (commited yesterday) from 
http://bugs.python.org/issue28835.

--
nosy: +mdk

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-12-07 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

The failure is fixed now, but it is fixed not in an elegant way (sys._getframe 
is used).

I think this is not urgent. If there are no objections, then I would propose to 
change priority to normal.

--

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Min RK

Min RK added the comment:

This affects IPython (specifically the traitlets component), which is what 
prompted the report. We were able to push out a release of traitlets with a 
workaround for the bug (4.3.1), but earlier versions of IPython / traitlets 
will still be affected (all IPython >= 4, traitlets 4.0 <= v < 4.3.1). So I 
hope 3.6.0 will be released with the fix attached here.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

The NumPy 1.12.0b1 tarball is available on PyPI if you want to download it.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

You probably need to run NumPy 1.12 to see the problem. Tt looks like the new 
suppress_warnings context manager is what has been broken. Note that is was 
broken by 3.6 before, fixed, and now seems to be broken again.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

I downloaded the tarball and installed the release here and got the same 
errors. We setup the tests in developement mode by turning some warnings into 
errors, in particular DeprecationWarnings and RuntimeWarnings, and suppressing 
others. The tests that are failing are checking for warnings turn the errors 
back into warnings. The latter seems to be failing.

There could be an interaction between the setup and recent changes in Python 
3.6.0rc1. What exactly was changed in the warnings module after the last beta?

--

___
Python tracker 

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



[issue28755] Rework syntax highlighing in howto/clinic.rst

2016-12-07 Thread Julien Palard

Julien Palard added the comment:

Just rebasing my patch on tip as it does no longer cleanly apply.

--
Added file: http://bugs.python.org/file45795/issue28755-3.diff

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower

Changes by Steve Dower :


--
keywords: +patch
Added file: http://bugs.python.org/file45794/28896_doc.patch

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower

Steve Dower added the comment:

Here's my proposed doc change for 3.6.0. Any concerns about wording? (The 
change to remove the line from _bootstrap_external.py will be separate, for 
ease of cherry-picking.)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -806,6 +806,10 @@
 
.. versionadded:: 3.3
 
+   .. deprecated:: 3.6
+  Use :mod:`site` configuration instead. Future versions of Python may
+  not enable this finder by default.
+
 
 .. class:: PathFinder
 
diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst
--- a/Doc/using/windows.rst
+++ b/Doc/using/windows.rst
@@ -823,6 +823,14 @@
   * Adds ``pythonXX.zip`` as a potential landmark when directly adjacent
 to the executable.
 
+.. deprecated::
+   3.6
+
+  Modules specified in the registry under ``Modules`` (not ``PythonPath``)
+  may be imported by :class:`importlib.machinery.WindowsRegistryFinder`.
+  This finder is enabled on Windows in 3.6.0 and earlier, but may need to
+  be explicitly added to :attr:`sys.meta_path` in the future.
+
 Additional modules
 ==

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I have installed NumPy 1.11.2 and ran tests. Tests are passes successfully.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

What is Numpy doing that is breaking it?

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It works in usual circumstances.

>>> import warnings
>>> with warnings.catch_warnings(record=True) as w:
... warnings.simplefilter('always')
... warnings.warn('a test warning', DeprecationWarning)
... print(w)
... 
[]

--

___
Python tracker 

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



[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-12-07 Thread Julien Palard

Changes by Julien Palard :


Added file: http://bugs.python.org/file45793/issue26483.diff

___
Python tracker 

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



[issue28779] set_forkserver_preload() can crash the forkserver if preloaded module instantiate multiprocessing classes

2016-12-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I will probably commit this in the coming days.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

So `warnings.catch_warnings` doesn't work anymore in 3.6?

--
nosy: +pitrou

___
Python tracker 

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



[issue26865] Meta-issue: support of the android platform

2016-12-07 Thread Xavier de Gaye

Xavier de Gaye added the comment:

issue #20211: setup.py: do not add system header locations when cross compiling
issue #28190: Detect curses headers correctly for cross-compiling

--
dependencies: +Detect curses headers correctly for cross-compiling, setup.py: 
do not add system header locations when cross compiling

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily

Changes by Ned Deily :


--
keywords: +3.6regression

___
Python tracker 

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



[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Ned Deily

Changes by Ned Deily :


--
keywords: +3.6regression -patch

___
Python tracker 

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



[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin

Changes by Arkady “KindDragon” Shapkin :


--
resolution:  -> not a bug

___
Python tracker 

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



[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin

Arkady “KindDragon” Shapkin added the comment:

That was my fault

--
status: open -> closed

___
Python tracker 

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



[issue28893] Make sure exceptions raised in __aiter__ are properly chained in ceval

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Yury, sounds like a bug to me so it would be appropriate for a maintenance 
release.  And not a showstopper release critical.

--

___
Python tracker 

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



[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin

New submission from Arkady “KindDragon” Shapkin:

I installed Python 3.5.2 with PDB, but they can't be loaded.
If I try to load them manually Visual Studio displays message "A matching 
symbol file was not found in this folder."

--
components: Windows
messages: 282658
nosy: Arkady “KindDragon” Shapkin, paul.moore, steve.dower, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Symbols doesn't match in VS for python.exe and python35.dll
versions: Python 3.5

___
Python tracker 

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



[issue28835] Change in behavior when overriding warnings.showwarning and with catch_warnings(record=True)

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Brett, msg282646 ?

--

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

I'm OK with adding a doc change before 3.6.0 final.  But since this behavior is 
not new with 3.6, I would rather save any code changes for 3.6.1 unless there 
is a consensus that this is an urgent security issue.

--

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

The failing tests don't use the context manager mentioned in msg278976 and 
which was fixed. In any case, the failures are new an appeared today. A failing 
test may be viewed at: 
https://github.com/numpy/numpy/blob/master/numpy/lib/tests/test_nanfunctions.py#L546

--

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower

Steve Dower added the comment:

+Ned

Could we get a doc patch into 3.6 marking this class as deprecated? It appears 
like the importlib docs are the only ones that refer to the class, and none of 
the docs describe the functionality or indicate that it is enabled by default.

I could also pitch this as a security vulnerability and push for removing the 
default .append() right now? Since we wouldn't remove the class itself, 
restoring the previous behavior just requires inserting it into meta_path 
again. And Alexey is right that it actually allows a non-admin user to shadow 
any non-builtin module.

Looking at the latest pywin32 installer, they actually *remove* the keys they 
used to add here because they cause problems. So I think we're fairly safe to 
disable the finder by default and deprecate it into the future.

--
nosy: +ned.deily

___
Python tracker 

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



[issue672115] Assignment to __bases__ of direct object subclasses

2016-12-07 Thread Eli Collins

Changes by Eli Collins :


--
nosy: +eli.collins

___
Python tracker 

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



[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-07 Thread Marco Buttu

Marco Buttu added the comment:

I attached a patch in issue 27200 that makes all doctests pass, so I close here.

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



[issue28863] Doc/includes/*.py files and doctests

2016-12-07 Thread Marco Buttu

Marco Buttu added the comment:

I attached a patch in issue 27200 that makes all doctests pass, so I close here.

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



[issue27200] make doctest in CPython has failures

2016-12-07 Thread Marco Buttu

Marco Buttu added the comment:

This last patch (make_doctest_ok.patch) makes all doctests pass (Sphinx 1.5, 
Python 3.6). Before applaying the patch there are 466 failures in 2096 tests, 
and after we have more tests (2414) and 0 failures. Actually, sometimes 3 tests 
fail in Doc/library/unittest.mock-examples.rst, but I did not get why :/

--
Added file: http://bugs.python.org/file45792/make_doctest_ok.patch

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Xiang Zhang

Xiang Zhang added the comment:

__dict__.pop seems not uncommon. Searching Github could give many practical 
codes using it. And many of them are acting as generic containers and could be 
used against massive cases.

--

___
Python tracker 

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



[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue28898] Can't compile gdb with Python 3.6

2016-12-07 Thread Charalampos Stratakis

New submission from Charalampos Stratakis:

Trying to compile gdb, with python support and by having it depend on Python 
3.6 produces an error that the HAVE_LONG_LONG has been redefined [0].

This seems to have been introduced by this commit [1].

I'm in no way expert on gdb, but from what I could deduct from the build logs, 
the #define HAVE_LONG_LONG line in pyport.h [2] is the issue, as gdb also sets 
the same constant to 1 [3][4]

I build python and gdb as rpm's, but I can't verify if it happens as well 
outside this environment. Could someone more experienced with gdb take a look 
at it?

The issue seems to be fixed by wrapping the #define HAVE_LONG_LONG with an 
#ifndef HAVE_LONG_LONG

Attaching a patch for consideration

[0] 
https://copr-be.cloud.fedoraproject.org/results/cstratak/python3.6/fedora-26-x86_64/00485858-gdb/build.log.gz

[1] https://hg.python.org/cpython/rev/cf6e9968ebb7/

[2] https://hg.python.org/cpython/file/tip/Include/pyport.h#l42

[3] 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/config.in;h=3f8a72326b5d32db6ad8966c05045e248f955498;hb=HEAD#l282

[4] 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/configure;h=6df88d9049b546a9e906b943f67374dc90d90d6d;hb=HEAD#l11662

--
components: Interpreter Core
files: fix-gdb-compilation.patch
keywords: patch
messages: 282649
nosy: cstratak
priority: normal
severity: normal
status: open
title: Can't compile gdb with Python 3.6
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45791/fix-gdb-compilation.patch

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread STINNER Victor

STINNER Victor added the comment:

In this case, I suggest to wait for 3.6.1 to fix it.

--

___
Python tracker 

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



[issue28835] Change in behavior when overriding warnings.showwarning and with catch_warnings(record=True)

2016-12-07 Thread Brett Cannon

Brett Cannon added the comment:

There's also issue #28835 which might be related.

--

___
Python tracker 

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



[issue28190] Detect curses headers correctly for cross-compiling

2016-12-07 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

A clean patch without changes in ./configure. autoreconf necessary

--
Added file: http://bugs.python.org/file45790/ncurses-headers.patch

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also msg278976.

--

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Brett Cannon

Brett Cannon added the comment:

Deprecate the importer. If I remember correctly it took us a while to even 
notice it was missing due to missing tests prior to importlib coming into 
existence (and getting anyone to care enough to help write those tests also 
took a lot of effort).

--

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread INADA Naoki

INADA Naoki added the comment:

> Ned Deily added the comment:
>
> This issue seems to have slipped through. Should it be a release blocker for 
> 3.6.0 final or can it wait for 3.6.1?

On Python 3.5, instance.__dict__.popitem() cause this issue.
On Python 3.6, instance.__dict__.popitem() and instance.__dict__.pop()
cause this issue.

This is not new issue, but there is small regression.

I don't know this should be fixed in 3.6.0.
I'll make patch smaller anyway.

--

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Calling pop() for instance's __dict__ is not common operation. I expected that 
this bug does not affect any real code. But the case in issue28894 looks as a 
real case. This might be a release blocker.

--

___
Python tracker 

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



[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-07 Thread Chi Hsuan Yen

Changes by Chi Hsuan Yen :


--
nosy: +xdegaye

___
Python tracker 

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



[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-07 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Modified this issue a bit and add some experts on the build system

--
nosy: +zach.ware
title: setup.py: do not add invalid header locations -> setup.py: do not add 
system header locations when cross compiling
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue20211] setup.py: do not add invalid header locations

2016-12-07 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Got the same issue here on building Python for Android. See 
https://circleci.com/gh/yan12125/python3-android/11 for an example build log. 
/usr/include is erroneously included and leads to build failures:

building 'xxlimited' extension
/home/ubuntu/android-ndk-r13/toolchains/llvm/prebuilt/linux-x86_64/bin/clang 
-target aarch64-none-linux-android -gcc-toolchain 
/home/ubuntu/android-ndk-r13/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64
 --sysroot=/home/ubuntu/android-ndk-r13/platforms/android-21/arch-arm64/usr 
-fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv 
-O3 -Wall -Wstrict-prototypes -fPIE -fno-integrated-as -fPIE -fno-integrated-as 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -DPy_LIMITED_API=0x0305 -I../Include 
-I/usr/include -IObjects -IPython -I. 
-I/home/ubuntu/python3-android/build/21-aarch64-linux-android-4.9/usr/include 
-I/home/ubuntu/python3-android/src/cpython/Include 
-I/home/ubuntu/python3-android/src/cpython/build-target -c 
/home/ubuntu/python3-android/src/cpython/Modules/xxlimited.c -o 
build/temp.linux-aarch64-3.7/home/ubuntu/python3-android/src/cpython/Modules/xxlimited.o
In file included from 
/home/ubuntu/python3-android/src/cpython/Modules/xxlimited.c:17:
In file included from ../Include/Python.h:11:
In file included from /usr/include/limits.h:25:
/usr/include/features.h:398:10: fatal error: 'gnu/stubs.h' file not found
#include 
 ^
1 error generated.

The patch looks reasonable and still applies to the default branch. With this 
patch the build is fine: https://circleci.com/gh/yan12125/python3-android/12

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please show an example of failing test?

--

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Paul Moore

Paul Moore added the comment:

I thought that most of the users of this functionality had stopped doing so 
(the only one I recall for certain was pywin32, and last time this came up, I 
think someone said they had stopped).

If the functionality isn't used in any of the well-known modules, I'm +1 on 
deprecating it (if it is, I'm all for encouraging them to stop and then *still* 
deprecating it :-))

Use of the registry keys would prevent virtual environments from managing 
proper isolation, as well, so it's not just an issue for the embedded 
distribution.

--

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Steve Dower

Steve Dower added the comment:

It's not intentional, but we clearly haven't done anything to prevent it.

Arguably this finder should be omitted when you run in isolated mode, and I'm 
on the fence about deprecating it entirely. Adding the importlib experts in 
case they have opinions (relevant ones, ideally).

A one line workaround that can be added to any code base is:

>>> sys.meta_path[:] = [m for m in sys.meta_path if m.__name__ != 
>>> 'WindowsRegistryFinder']

But it would also be good to close off this hole. Thoughts on the best option? 
(-I, move to site.py and -S, something new...)

--
nosy: +brett.cannon, eric.snow, ncoghlan
versions: +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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

Charles Harris added the comment:

Probably this commit: https://hg.python.org/cpython/rev/aaee06743c61 .

--

___
Python tracker 

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



[issue28147] Unbounded memory growth resizing split-table dicts

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

This issue seems to have slipped through. Should it be a release blocker for 
3.6.0 final or can it wait for 3.6.1?

--
nosy: +ned.deily

___
Python tracker 

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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Ned Deily

Ned Deily added the comment:

Serhiy, Victor, can you look at this please?

--
nosy: +haypo, ned.deily, serhiy.storchaka
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



[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris

New submission from Charles Harris:

The lastest Python 3.6 pre-release broke a number of NumPy tests. The failing 
tests are of the sort

with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
...

And the failure seems to be that nothing is recorded in w. None of the beta 
releases caused problems. It is possible that the testing environment (Travis 
CI) messed up, but reporting this here just in case.

--
components: Library (Lib)
messages: 282633
nosy: charris44
priority: normal
severity: normal
status: open
title: Python 3.6.0rc1 breaks NumPy tests.
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



[issue28810] Document bytecode changes in 3.6

2016-12-07 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-07 Thread Alexey Izbyshev

New submission from Alexey Izbyshev:

The docs claim: "... the embedded distribution is (almost) fully isolated from 
the user’s system, including environment variables, system registry settings, 
and installed packages."

Via ProcessMonitor tool I've discovered that python.exe still accesses keys 
like "HKLM\Software\Python\PythonCore\3.5\Modules\collections" on every module 
import, allowing registry settings to override the location of any non-builtin 
module.

Digging into the 3.5.2 code revealed that WindowsRegistryFinder is 
unconditionally added to sys.meta_path (Lib/importlib/_bootstrap_external.py, 
line 1422):

if _os.__name__ == 'nt':
sys.meta_path.append(WindowsRegistryFinder)

It can also be confirmed in runtime:

Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.meta_path)
[, , , ]

Is this behavior intended? It seems to be against doc claims and the goal of 
embeddability.

--
components: Windows
messages: 282632
nosy: izbyshev, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Embeddable zip allows Windows registry to override module location
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2016-12-07 Thread Jon Dufresne

Jon Dufresne added the comment:

Just for some context, the e.close() is handling this bit of code:

https://github.com/python/cpython/blob/d8132c4da7c46587221c5a244224b770d03860b6/Lib/urllib/request.py#L739-L754

When there is no error, http_error_302() will close the passed fp, on error, it 
will not. The following comment indicates this is intentional:

# Don't close the fp until we are sure that we won't use it
# with HTTPError.

But I agree, this may pose a problem when enforcing deterministic resource 
handling.

--

___
Python tracker 

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



[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2016-12-07 Thread R. David Murray

R. David Murray added the comment:

Hmm.  That e.close() looks like there may be a deeper problem here.  I don't 
have time to investigate myself, unfortunately.

--

___
Python tracker 

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



[issue28867] NamedTemporaryFile does not generate a ResourceWarning for unclosed files (unlike TemporaryFile)

2016-12-07 Thread Jon Dufresne

Jon Dufresne added the comment:

Thanks for the review. I have updated the patch. Now all warnings during tests 
handled. Please let me know if there are any other concerns with the changes.

--
Added file: 
http://bugs.python.org/file45789/namedtemporaryfile-resourcewarning-2.patch

___
Python tracker 

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



[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2016-12-07 Thread Ulrich Petri

Ulrich Petri added the comment:

Should this maybe reconsidered now that dicts are ordered by default?

Having to explain why list is needed in list(some_ordered_dict.values())[0] is  
a constant thorn in my side when dealing with people new to Python.

--
nosy: +ulope

___
Python tracker 

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



[issue28895] Two suggestions for windows.html

2016-12-07 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +steve.dower

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-07 Thread Yury Selivanov

Yury Selivanov added the comment:

Please don't merge this without my review.

--

___
Python tracker 

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



[issue28894] Memory leak in dict.pop()

2016-12-07 Thread Xiang Zhang

Xiang Zhang added the comment:

This is the same problem as #28147.

--
nosy: +xiang.zhang
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Unbounded memory growth resizing split-table dicts

___
Python tracker 

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



[issue28895] Two suggestions for windows.html

2016-12-07 Thread Mark Summerfield

New submission from Mark Summerfield:

This document is v. useful for Windows Python users:
https://docs.python.org/dev/using/windows.html

However, I think it could be improved as follows:

(1) Explain which Python installer to get (since there are so many)! Even a 
"get the Windows x86 executable installer if you just want it now!". 
Alternatively, the https://www.python.org/downloads/windows/ page could begine 
with a brief explanation of the differences.

(2) Explain the trade-offs between Admin & User install & the effect this has 
on using pip (e.g., an Admin install may require pip to be used in an Admin 
console or to be used with the --user option).

--
assignee: docs@python
components: Documentation
messages: 282625
nosy: docs@python, mark
priority: normal
severity: normal
status: open
title: Two suggestions for windows.html
type: enhancement
versions: 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



[issue28894] Memory leak in dict.pop()

2016-12-07 Thread Marius Gedminas

Marius Gedminas added the comment:

If you're curious where this happens in real life, py.test's 
CaptureManager.deactivate_funcargs() does

self.__dict__.pop("_capfuncarg", None)

and I found it by running 'tox -e py36' on https://github.com/mgedmin/eazysvn

--

___
Python tracker 

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



[issue28894] Memory leak in dict.pop()

2016-12-07 Thread Marius Gedminas

New submission from Marius Gedminas:

Run the following script with Python 3.6.0rc1:

class O:
pass

o = O()
for n in range(20):
print(n)
o.x = 42
o.__dict__.pop('x', None)

You can observe the memory usage of the Python process growing exponentially.

E.g. in bash:

ulimit -v 100# don't push other processes into swap please
python3.6 break.py
0
1
2
3
4
5
6
7
8
9
10
11
Traceback (most recent call last):
  File "break.py", line 7, in 
o.x = 42
MemoryError

--
components: Interpreter Core
messages: 282623
nosy: mgedmin
priority: normal
severity: normal
status: open
title: Memory leak in dict.pop()
versions: 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



[issue26110] Speedup method calls 1.2x

2016-12-07 Thread INADA Naoki

INADA Naoki added the comment:

$ ./python-default -m perf compare_to default.json callmethod4.json -G
Slower (7):
- pickle_dict: 66.0 us +- 4.6 us -> 77.0 us +- 5.9 us: 1.17x slower
- json_loads: 63.7 us +- 0.7 us -> 68.4 us +- 1.4 us: 1.07x slower
- unpack_sequence: 120 ns +- 2 ns -> 125 ns +- 3 ns: 1.04x slower
- scimark_lu: 499 ms +- 12 ms -> 514 ms +- 24 ms: 1.03x slower
- scimark_monte_carlo: 272 ms +- 10 ms -> 278 ms +- 9 ms: 1.02x slower
- scimark_sor: 517 ms +- 9 ms -> 526 ms +- 10 ms: 1.02x slower
- regex_effbot: 5.25 ms +- 0.15 ms -> 5.27 ms +- 0.17 ms: 1.00x slower

Faster (52):
- call_method: 18.1 ms +- 0.1 ms -> 14.8 ms +- 0.1 ms: 1.22x faster
- call_method_slots: 17.9 ms +- 0.2 ms -> 14.7 ms +- 0.2 ms: 1.22x faster
- call_method_unknown: 20.0 ms +- 0.9 ms -> 16.5 ms +- 0.1 ms: 1.21x faster
- xml_etree_parse: 304 ms +- 13 ms -> 283 ms +- 6 ms: 1.07x faster
- float: 310 ms +- 4 ms -> 292 ms +- 4 ms: 1.06x faster
- call_simple: 14.2 ms +- 0.6 ms -> 13.4 ms +- 0.3 ms: 1.06x faster
- pickle_pure_python: 1.34 ms +- 0.02 ms -> 1.27 ms +- 0.02 ms: 1.05x faster
- richards: 189 ms +- 3 ms -> 180 ms +- 7 ms: 1.05x faster
- logging_silent: 793 ns +- 14 ns -> 754 ns +- 9 ns: 1.05x faster
- deltablue: 18.4 ms +- 0.2 ms -> 17.6 ms +- 0.1 ms: 1.05x faster
- go: 623 ms +- 5 ms -> 594 ms +- 5 ms: 1.05x faster
- genshi_xml: 202 ms +- 2 ms -> 193 ms +- 3 ms: 1.04x faster
- fannkuch: 1.10 sec +- 0.02 sec -> 1.05 sec +- 0.02 sec: 1.04x faster
- raytrace: 1.38 sec +- 0.02 sec -> 1.32 sec +- 0.00 sec: 1.04x faster
- django_template: 419 ms +- 5 ms -> 402 ms +- 4 ms: 1.04x faster
- hexiom: 24.2 ms +- 0.2 ms -> 23.3 ms +- 0.2 ms: 1.04x faster
- xml_etree_iterparse: 225 ms +- 4 ms -> 216 ms +- 5 ms: 1.04x faster
- spectral_norm: 282 ms +- 14 ms -> 271 ms +- 4 ms: 1.04x faster
- python_startup_no_site: 9.83 ms +- 0.02 ms -> 9.46 ms +- 0.03 ms: 1.04x faster
- python_startup: 16.4 ms +- 0.0 ms -> 15.7 ms +- 0.0 ms: 1.04x faster
- unpickle_pure_python: 918 us +- 24 us -> 884 us +- 24 us: 1.04x faster
- unpickle: 33.0 us +- 0.4 us -> 31.8 us +- 0.4 us: 1.04x faster
- dulwich_log: 158 ms +- 1 ms -> 153 ms +- 1 ms: 1.04x faster
- html5lib: 234 ms +- 6 ms -> 225 ms +- 6 ms: 1.04x faster
- scimark_fft: 735 ms +- 19 ms -> 709 ms +- 22 ms: 1.04x faster
- sqlalchemy_declarative: 325 ms +- 4 ms -> 314 ms +- 3 ms: 1.04x faster
- mako: 45.4 ms +- 0.3 ms -> 43.8 ms +- 0.7 ms: 1.04x faster
- genshi_text: 90.1 ms +- 0.9 ms -> 87.0 ms +- 0.9 ms: 1.04x faster
- tornado_http: 388 ms +- 4 ms -> 375 ms +- 4 ms: 1.03x faster
- 2to3: 758 ms +- 4 ms -> 734 ms +- 4 ms: 1.03x faster
- scimark_sparse_mat_mult: 8.75 ms +- 0.25 ms -> 8.48 ms +- 0.39 ms: 1.03x 
faster
- json_dumps: 29.9 ms +- 0.4 ms -> 29.0 ms +- 0.3 ms: 1.03x faster
- sqlite_synth: 10.1 us +- 0.2 us -> 9.80 us +- 0.19 us: 1.03x faster
- regex_dna: 286 ms +- 6 ms -> 278 ms +- 4 ms: 1.03x faster
- crypto_pyaes: 235 ms +- 2 ms -> 228 ms +- 2 ms: 1.03x faster
- pidigits: 320 ms +- 0 ms -> 311 ms +- 1 ms: 1.03x faster
- logging_format: 38.1 us +- 0.5 us -> 37.1 us +- 0.4 us: 1.03x faster
- meteor_contest: 206 ms +- 3 ms -> 201 ms +- 1 ms: 1.03x faster
- xml_etree_process: 248 ms +- 4 ms -> 241 ms +- 4 ms: 1.03x faster
- chameleon: 30.9 ms +- 0.4 ms -> 30.1 ms +- 0.4 ms: 1.03x faster
- logging_simple: 32.8 us +- 0.4 us -> 32.0 us +- 0.3 us: 1.03x faster
- sqlalchemy_imperative: 61.3 ms +- 1.6 ms -> 59.9 ms +- 1.6 ms: 1.02x faster
- chaos: 308 ms +- 2 ms -> 301 ms +- 2 ms: 1.02x faster
- unpickle_list: 7.90 us +- 0.04 us -> 7.73 us +- 0.10 us: 1.02x faster
- sympy_integrate: 47.9 ms +- 0.3 ms -> 46.9 ms +- 0.4 ms: 1.02x faster
- sympy_sum: 216 ms +- 6 ms -> 212 ms +- 6 ms: 1.02x faster
- sympy_str: 481 ms +- 5 ms -> 473 ms +- 2 ms: 1.02x faster
- sympy_expand: 1.08 sec +- 0.01 sec -> 1.06 sec +- 0.01 sec: 1.02x faster
- regex_compile: 449 ms +- 3 ms -> 442 ms +- 5 ms: 1.02x faster
- nqueens: 275 ms +- 3 ms -> 271 ms +- 3 ms: 1.02x faster
- pathlib: 51.6 ms +- 0.6 ms -> 50.9 ms +- 0.7 ms: 1.01x faster
- pickle_list: 8.85 us +- 0.09 us -> 8.79 us +- 0.11 us: 1.01x faster

Benchmark hidden because not significant (5): nbody, pickle, regex_v8, telco, 
xml_etree_generate

--
Added file: http://bugs.python.org/file45787/default.json.gz

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-07 Thread INADA Naoki

Changes by INADA Naoki :


Added file: http://bugs.python.org/file45788/callmethod4.json.gz

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Added comments on Rietveld. Please document new bytecodes in the dis module 
documentation and What's New.

--

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please increase the magic number by 10. We need to reserve few numbers for the 
case of bytecode bug fixes in 3.6.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-07 Thread INADA Naoki

Changes by INADA Naoki :


--
versions: +Python 3.7 -Python 3.6
Added file: http://bugs.python.org/file45786/call_method_4.patch

___
Python tracker 

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



[issue28818] simplify lookdict functions

2016-12-07 Thread INADA Naoki

INADA Naoki added the comment:

Thank you for review. And I'm sorry about I committed the patch
before seeing last comment.

--

___
Python tracker 

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



[issue28818] simplify lookdict functions

2016-12-07 Thread INADA Naoki

Changes by INADA Naoki :


--
assignee: rhettinger -> 
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



[issue28818] simplify lookdict functions

2016-12-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8d4b2c6a0a7f by INADA Naoki in branch 'default':
Issue #28818: Simplify lookdict functions
https://hg.python.org/cpython/rev/8d4b2c6a0a7f

--
nosy: +python-dev

___
Python tracker 

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



[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4a610bc8577b by Serhiy Storchaka in branch '3.5':
Change order of io.UnsupportedOperation base classes.
https://hg.python.org/cpython/rev/4a610bc8577b

--

___
Python tracker 

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



[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-07 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Patch version 5, updated comments. Thanks for all of those feedbacks :)

--
Added file: http://bugs.python.org/file45785/android-locale-utf8.patch

___
Python tracker 

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



[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The test is fixed if change order of base classes of UnsupportedOperation. This 
is rather a workaround, we should find more general fix.

--
Added file: 
http://bugs.python.org/file45784/UnsupportedOperation-bases-order.patch

___
Python tracker 

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



[issue10016] shutil.copyfile -- allow sparse copying

2016-12-07 Thread Samuel Shapiro

Samuel Shapiro added the comment:

Patch fails on CentOS 6 -- python 2.6

[root@LG-E1A-LNX python2.6]# patch --dry-run -l -p1 -i shutil-2.6.patch 
shutil.py
patching file shutil.py
Hunk #1 succeeded at 22 (offset 1 line).
Hunk #2 succeeded at 52 with fuzz 1 (offset 1 line).
Hunk #3 FAILED at 61.
1 out of 3 hunks FAILED -- saving rejects to file shutil.py.rej

--
nosy: +Samuel Shapiro

___
Python tracker 

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



[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-07 Thread STINNER Victor

STINNER Victor added the comment:

test_file started to crash after the change "Issue #5322: Fixed setting __new__ 
to a PyCFunction inside Python code." :-/ (so all buildbots became red.)

Can someone fix it or revert it? (Sorry, I don't have the bandwith right to 
investigate the crash.)

--
nosy: +haypo

___
Python tracker 

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



[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2016-12-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

(B5) seems was just fixed in issue5322.

>>> class C: __new__ = int.__new__
... 
>>> C()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: int.__new__(C): C is not a subtype of int
>>> class C(int): __new__ = object.__new__
... 
>>> C()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: object.__new__(C) is not safe, use int.__new__()

--
dependencies: +Python 2.6 object.__new__ argument calling autodetection faulty

___
Python tracker 

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



  1   2   >