[issue31121] Unable to exit pdb when script becomes invalid

2017-08-05 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
nosy: +xdegaye

___
Python tracker 

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



[issue1612262] Class Browser doesn't show internal classes

2017-08-05 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I added a more complete set of unit tests to the PR.

--

___
Python tracker 

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



[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2017-08-05 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Regarding "atrocious connection": I wish I knew, but I have no control of the 
connection. All I can tell is that there are frequent disconnects, occasional 
latency spikes, my remote ip address seems to change frequently (while the 
apparent local one stays as-is, so presumably some NAT in between), temporary 
bandwidth drops, etc.

--

___
Python tracker 

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



[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-05 Thread Alexander Mohr

Alexander Mohr added the comment:

bad news, I just got a crash in the same place (updating defaultdict) after 
running for a week with the fixes from this and inada naoki's patches.  I think 
the threadpool may be leaking threads too as I had > 40 threads after running 
for a week when I use no more than ~10.  I'm going to switch to debug build and 
will update when I get more details.

--

___
Python tracker 

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



[issue31029] test_tokenize fails when run directly

2017-08-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: backport needed -> 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



[issue31029] test_tokenize fails when run directly

2017-08-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 9cd0ef8f3b93818f0ee5318cb1fc9a1ea32e95b6 by Serhiy Storchaka 
(Rajath Agasthya) in branch '3.6':
bpo-31029: test_tokenize Add missing import unittest (#2998)
https://github.com/python/cpython/commit/9cd0ef8f3b93818f0ee5318cb1fc9a1ea32e95b6


--

___
Python tracker 

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



[issue31125] shelve.open of temporary file fails with error "anydbm.error: db type could not be determined"

2017-08-05 Thread Stephen Larroque

New submission from Stephen Larroque:

This is a followup of issue 23174.

When using `shelve.open(tempfile.mkstemp()[1])`, the shelve (or anydbm or 
dumbdbm) fail with "anydbm.error: db type could not be determined".

Instead, the module could detect the file is empty and use it as if it were not 
existing before ('c' or 'n' flag). For the moment, there is no way around 
except creating the temporary file and then delete it.

--
components: IO
messages: 299790
nosy: Stephen Larroque
priority: normal
severity: normal
status: open
title: shelve.open of temporary file fails with error "anydbm.error: db type 
could not be determined"
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



[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread José Leite

José Leite added the comment:

Thank You very much!!!
Thumbs up!

--

___
Python tracker 

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



[issue31107] copyreg does not properly mangle __slots__ names

2017-08-05 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue31107] copyreg does not properly mangle __slots__ names

2017-08-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 885ddbb8692ecb2c661aa29000dbde9eff8c by Serhiy Storchaka 
(Shane Harvey) in branch '2.7':
[2.7] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989). (#3004)
https://github.com/python/cpython/commit/885ddbb8692ecb2c661aa29000dbde9eff8c


--

___
Python tracker 

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



[issue31107] copyreg does not properly mangle __slots__ names

2017-08-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 4795ba857ef2a89e6b477285df961672106a1792 by Serhiy Storchaka 
(Shane Harvey) in branch '3.6':
[3.6] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989) (#3003)
https://github.com/python/cpython/commit/4795ba857ef2a89e6b477285df961672106a1792


--

___
Python tracker 

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



[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread Christian Heimes

Christian Heimes added the comment:

Thanks!

--

___
Python tracker 

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



[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread Christian Heimes

Changes by Christian Heimes :


--
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread José Leite

José Leite added the comment:

Yes, there is such a file. I will report to web2py developers for windows 
version.
Thanks, renamed the file and everything seems fine.

--

___
Python tracker 

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



[issue31103] Windows Installer Product does not include micro version in display name

2017-08-05 Thread Steve Dower

Changes by Steve Dower :


--
title: Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0 -> 
Windows Installer Product does not include micro version in display name

___
Python tracker 

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



[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-05 Thread Steve Dower

Steve Dower added the comment:

This issue is about A.

B has a separate issue. C will not be changed. Please don't bother bringing 
them up again here, it's just a distraction.

--
components: +Installation
priority: normal -> low
type: behavior -> enhancement
versions: +Python 3.7

___
Python tracker 

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



[issue31100] unable to open python on Windows

2017-08-05 Thread Steve Dower

Steve Dower added the comment:

This probably means that your system failed to install the C Runtime, but not 
badly enough that it actually reported an error.

First try rebooting, and if that doesn't work then search for the VisualC++ 
2015 Redistributable installer and run that.

--

___
Python tracker 

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



[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread Christian Heimes

Christian Heimes added the comment:

There is no _ssl.py. The internal _ssl module is a C extension module. Under 
Windows it is called _ssl.pyd. Do you have a _ssl.py  or _ssl package in your 
project that may confict with _ssl.pyd?

--

___
Python tracker 

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



[issue31124] ImportError: cannot import name HAS_ALPN

2017-08-05 Thread José Leite

New submission from José Leite:

When Running Web2py with Python 2.7.11 or 2.7.13 in windows 10 I get the 
following error:

Traceback (most recent call last):
File "C:\web2py\web2py.py", line 21, in 
import gluon.widget
File "C:\web2py\gluon\widget.py", line 26, in 
from gluon import main, newcron
File "C:\web2py\gluon\main.py", line 28, in 
import ssl
File "C:\Python27\lib\ssl.py", line 126, in 
from _ssl import HAS_SNI, HAS_ECDH, HAS_NPN, HAS_ALPN
ImportError: cannot import name HAS_ALPN


It seem like a windows Python bug in _ssl.py

--
assignee: christian.heimes
components: SSL, Windows
messages: 299781
nosy: Jhleite, christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: ImportError: cannot import name HAS_ALPN
versions: Python 2.7

___
Python tracker 

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



[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2017-08-05 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Issue 31114 is the same issue and proposes a workaround and another fix.

--
nosy: +xdegaye

___
Python tracker 

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



[issue31114] 'make install' fails when exec_prefix is '/' and DESTDIR not empty

2017-08-05 Thread Xavier de Gaye

Xavier de Gaye added the comment:

In the subprocess test named test_executable_without_cwd and when the test is 
run on the installed Python, argv[0] is not the python executable and 
calculate_path() in Modules/getpath.c, as a last resort, searches the 
directories pointed to by the preprocessor variables PREFIX and EXEC_PREFIX 
defined in the Makefile. So this test indeed would have failed with the 
(rejected) proposition made in issue 1676135 to substitute the prefix '/' for 
'' in the configure script.  But the test would succeed when the substitution 
replaces '/' with '/./' as proposed here (after Python has effectively been 
manually installed on '/' of course).

Actually using '/.' instead of '/./' is better since the configure script will 
remove the trailing slash anyway. In both cases the value of prefix in the 
sysconfig module is '/.'.

--

___
Python tracker 

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



[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2017-08-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

If, judging by 
https://github.com/pydata/numexpr/commit/07d9245d88759f0c3dcabd88e6edefadc3061ee3,
 you are really calling a bunch of C API functions without holding the GIL, 
then it's not surprising you may get crashes all over the place.

--
nosy: +pitrou

___
Python tracker 

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



[issue16865] ctypes arrays >=2GB in length causes exception

2017-08-05 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +3040

___
Python tracker 

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



[issue29304] dict: simplify lookup functions

2017-08-05 Thread INADA Naoki

INADA Naoki added the comment:

On i386 docker image, pyperformance:

 ./python -m perf compare_to before.json after.json -G --min-speed=2
Slower (4):
- regex_dna: 279 ms +- 1 ms -> 288 ms +- 3 ms: 1.03x slower (+3%)
- deltablue: 17.9 ms +- 0.3 ms -> 18.3 ms +- 1.0 ms: 1.03x slower (+3%)
- scimark_monte_carlo: 258 ms +- 4 ms -> 264 ms +- 4 ms: 1.02x slower (+2%)
- unpack_sequence: 115 ns +- 1 ns -> 117 ns +- 3 ns: 1.02x slower (+2%)

Faster (9):
- scimark_lu: 408 ms +- 16 ms -> 389 ms +- 13 ms: 1.05x faster (-5%)
- spectral_norm: 315 ms +- 3 ms -> 302 ms +- 2 ms: 1.04x faster (-4%)
- xml_etree_process: 235 ms +- 2 ms -> 228 ms +- 3 ms: 1.03x faster (-3%)
- telco: 19.8 ms +- 0.4 ms -> 19.3 ms +- 0.3 ms: 1.03x faster (-3%)
- scimark_sor: 487 ms +- 6 ms -> 474 ms +- 4 ms: 1.03x faster (-3%)
- django_template: 385 ms +- 3 ms -> 376 ms +- 3 ms: 1.02x faster (-2%)
- unpickle_pure_python: 934 us +- 13 us -> 913 us +- 11 us: 1.02x faster (-2%)
- pathlib: 68.2 ms +- 0.8 ms -> 66.7 ms +- 0.5 ms: 1.02x faster (-2%)
- xml_etree_generate: 277 ms +- 3 ms -> 271 ms +- 7 ms: 1.02x faster (-2%)

Benchmark hidden because not significant (44)

and microbench:

 ./python -m perf compare_to before-dict.json after-dict.json -G
Slower (2):
- fromkeys_str: 5.12 us +- 0.10 us -> 5.27 us +- 0.09 us: 1.03x slower (+3%)
- unicode_split: 636 ns +- 11 ns -> 648 ns +- 16 ns: 1.02x slower (+2%)

Faster (2):
- unicode_nodummy_5: 837 ns +- 28 ns -> 818 ns +- 21 ns: 1.02x faster (-2%)
- unicode_nodummy_6: 824 ns +- 10 ns -> 808 ns +- 20 ns: 1.02x faster (-2%)

Benchmark hidden because not significant (1): fromkeys_int

--

___
Python tracker 

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



[issue31113] Stack overflow with large program

2017-08-05 Thread Antoine Pitrou

Antoine Pitrou added the comment:

By the way, since you're using Python 3, you can probably workaround this issue 
by delegating some of the work to helper functions using `yield from`.

--

___
Python tracker 

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