[issue29049] Lazy GC tracking frame

2016-12-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, sorry. Then it LGTM.

Do you have a microbenchmark that exposes a maximal effect of this change?

--

___
Python tracker 

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



[issue29066] PIP doesn't honor --trusted-host or --cert options

2016-12-24 Thread Utku Gultopu

New submission from Utku Gultopu:

Steps to Reproduce
==
1. Install Python 3.6.0 on macOS Sierra, using the macOS binary installer from 
python.org.
2. Don't install any SSL certificates.
3. Run `pip install -U channels`. It will fail.
4. Run `pip install -U --trusted-host pypi.python.org channels`. It will fail 
too.
5. Run `pip --cert ~/cacert.pem install -U channels` (where `cacert.pem` is 
[this](https://curl.haxx.se/ca/cacert.pem).) It will fail too.

Expected Results

Command at number 3 to fail, commands at number 4 and 5 to succeed.

Actual Results
==
Commands at number 3, 4 and 5 fail.

Version Info

Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

macOS Sierra 10.12

pip 9.0.1 from 
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages 
(python 3.6)

Related Issues
=
29065

Explanation
===
I installed Python 3.6.0 on macOS Sierra, using the macOS binary installer from 
python.org.

Initially, I didn't install the necessary certificates by running the script 
/Applications/Python 3.6/Install Certificates.command.

When I wanted to install a module where PIP establishes an SSL connection 
during installation, I got an SSL: CERTIFICATE_VERIFY_FAILED error, as expected.

Command at step 3:

(virtualenv) user@host:~/Documents/virtualenv$ pip install -U channels
Collecting channels
  Downloading channels-0.17.3-py2.py3-none-any.whl (53kB)
100% || 61kB 299kB/s 
Requirement already up-to-date: Django>=1.8 in ./lib/python3.6/site-packages 
(from channels)
Collecting asgiref>=0.13 (from channels)
  Downloading asgiref-1.0.0-py2.py3-none-any.whl
Collecting daphne>=0.14.1 (from channels)
  Downloading daphne-0.15.0-py2.py3-none-any.whl
Collecting six (from asgiref>=0.13->channels)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting twisted>=16.0 (from daphne>=0.14.1->channels)
  Downloading Twisted-16.6.0.tar.bz2 (3.0MB)
100% || 3.0MB 265kB/s 
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/incremental/: [SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some 
packages may not be found!
Couldn't find index page for 'incremental' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some 
packages may not be found!
No local packages or working download links found for incremental>=16.10.1
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/private/var/folders/45/r4yr9bbj29dfbtxqv75_785mgn/T/pip-build-o5qosaie/twisted/setup.py",
 line 21, in 
setuptools.setup(**_setup["getSetupArgs"]())
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py",
 line 108, in setup
_setup_distribution = dist = klass(attrs)
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/setuptools/dist.py",
 line 316, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/setuptools/dist.py",
 line 371, in fetch_build_eggs
replace_conflicting=True,
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/pkg_resources/__init__.py",
 line 846, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/pkg_resources/__init__.py",
 line 1118, in best_match
return self.obtain(req, installer)
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/pkg_resources/__init__.py",
 line 1130, in obtain
return installer(requirement)
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/setuptools/dist.py",
 line 439, in fetch_build_egg
return cmd.easy_install(req)
  File 
"/Users/user/Documents/virtualenv/lib/python3.6/site-packages/setuptools/command/easy_install.py",
 line 668, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for 
Requirement.parse('incremental>=16.10.1')


Command "python setup.py egg_info" failed with error code 1 in 
/private/var/folders/45/r4yr9bbj29dfbtxqv75_785mgn/T/pip-build-o5qosaie/twisted/

Command at step 4:

(virtualenv) user@host:~/Documents/virtualenv$ pip install -U --trusted-host 
pypi.python.org channels
Collecting channels
  Downloading channels-0.17.3-py2.py3-none-any.whl (53kB)
100% || 61kB 291kB/s 
Requirement already up-to-date: Django>=1.8 in ./lib/python3.6/site-packages 
(from channels)
Collecting asgiref>=0.13 (from channels)
  Downloading 

[issue1116520] Prefix search is filesystem-centric

2016-12-24 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue29062] hashlib documentation link error

2016-12-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Replace ".. module" with ".. currentmodule".

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue29065] SSL module problem on Python 3.6.0 and macOS Sierra

2016-12-24 Thread Ned Deily

Ned Deily added the comment:

I've also added a note to the release downloads "Notes on this release" section:

"macOS users: If you are using the Python 3.6 from the python.org binary 
installer linked on this page, please carefully read the Important Information 
displayed during installation; this information is also available after 
installation by clicking on /Applications/Python 3.6/ReadMe.rtf. There is 
important information there about changes in the 3.6.0 installer-supplied 
Python, particularly with regard to SSL certificate validation."

--

___
Python tracker 

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



[issue29065] SSL module problem on Python 3.6.0 and macOS Sierra

2016-12-24 Thread Ned Deily

Ned Deily added the comment:

>From the output you supplied, you appear to be using Python 3.6.0 from the 
>python.org macOS binary installer.  Please read the ReadMe.rtf file for the 
>installer which should have been displayed when you installed Python 3.6; a 
>copy of it is also installed in /Applications/Python 3.6.  You can read it by 
>double-clicking on the icon in the Finder or by entering the following shell 
>command:

open "/Applications/Python 3.6/ReadMe.rtf"

In it, the section on "Certificate verification and OpenSSL" notes that, as of 
the 3.6.0 installer, the Python supplied no longer links with the deprecated 
Apple-supplied system OpenSSL libraries but rather supplies a private copy of 
OpenSSL 1.0.2 which does not automatically access the system default root 
certificates.  "For 3.6.0, a sample command script is included in 
/Applications/Python 3.6 to install a curated bundle of default root 
certificates from the third-party certifi package 
(https://pypi.python.org/pypi/certifi).  If you choose to use certifi, you 
should consider subscribing to the project's email update service to be 
notified when the certificate bundle is updated."  You can run the command 
script by double-clicking on it or by entering the shell command:

open "/Applications/Python 3.6/Install Certificates.command"

If necessary, you can adapt the script for other options rather than using the 
certifi-supplied bundle.  For later releases, other standard options will 
likely be provided.

I don't understand your comment that using the system openssl command doesn't 
work, e.g. "openssl s_client -connect www.python.org:443".  The output you 
supply appears to show it working as expected.  But, in any case, that's not 
relevant to the Python 3.6 usage as different OpenSSL versions and libraries 
are being used.

Also note that this description only applies to the Python 3.6 supplied by the 
python.org macOS installer.  mscOS Pythons supplied by third-party distributors 
likely link with each distributor's version of OpenSSL and follow their root 
certificate policies.

--
assignee: christian.heimes -> 
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



[issue28293] Don't completely dump the regex cache when full

2016-12-24 Thread INADA Naoki

INADA Naoki added the comment:

LGTM for re_cache_ordered_dict_popitem.patch

--
nosy: +inada.naoki

___
Python tracker 

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



[issue29059] Windows: Python not using ANSI compatible console

2016-12-24 Thread Joseph Hackman

Joseph Hackman added the comment:

The flag is application specific. I.e. a python program that writes to console  
using ansi codes, when used on windows, will just display the codes. If the 
Output is redireced to file and then the file is printed to console using a 
console tool, the colors will show instead.

--

___
Python tracker 

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



[issue25591] refactor imaplib tests

2016-12-24 Thread R. David Murray

R. David Murray added the comment:

Committed.  FYI, I did have to make a few tweaks.  There were several lines 
longer than 80 characters still that I wrapped.  The tests failed with -W 
error:BytesWarning, something I normally run the tests with.  That required a 
fix to the library (a decode on the error message...if anyone is depending on 
the error message being bytes instead of string I'm sorry, but I doubt anyone 
is.  And finally, committing to 3.6 required adding the 'r' prefix to some of 
the tests regexes to eliminate the invalid escape warnings.

Thanks for your patience and persistence, Maciej.

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
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



[issue25591] refactor imaplib tests

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 75f9cca86fa1 by R David Murray in branch '3.5':
#25591: improve imap tests.
https://hg.python.org/cpython/rev/75f9cca86fa1

New changeset 4663466b0d66 by R David Murray in branch '3.6':
Merge: #25591: improve imap tests.
https://hg.python.org/cpython/rev/4663466b0d66

New changeset 93d8cce449eb by R David Murray in branch 'default':
Merge: #25591: improve imap tests.
https://hg.python.org/cpython/rev/93d8cce449eb

--
nosy: +python-dev

___
Python tracker 

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



[issue29059] Windows: Python not using ANSI compatible console

2016-12-24 Thread INADA Naoki

INADA Naoki added the comment:

Is it a global state, or application specific state?
In other words, if Python enables VT100, doesn't it remain after os._exit(1)?

If it is global state of console, why Python should change it?
Shouldn't user who want to use VT100 enable it before starting Python?

--
nosy: +inada.naoki

___
Python tracker 

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



[issue29062] hashlib documentation link error

2016-12-24 Thread INADA Naoki

INADA Naoki added the comment:

1. remove `.. module:: hashlib` from Doc/library/hashlib-blake2.rst
2. merge Doc/library/hashlib-blake2.rst content into Doc/library/hashlib.rst

Hmm, which is better?

--
nosy: +inada.naoki

___
Python tracker 

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



[issue29049] Lazy GC tracking frame

2016-12-24 Thread INADA Naoki

INADA Naoki added the comment:

> Please wrap private functions in #ifndef Py_LIMITED_API/#endif.

No problem.  Whole Include/frameobject.h is wrapped by Py_LIMITED_API.

--

___
Python tracker 

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



[issue29065] SSL module problem on Python 3.6.0 and macOS Sierra

2016-12-24 Thread Utku Gultopu

New submission from Utku Gultopu:

It seems like ssl module is not working for me:

(virtualenv) user@host:~$ python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> import socket
>>> context = ssl.create_default_context()
>>> conn = context.wrap_socket(socket.socket(socket.AF_INET), 
>>> server_hostname="www.python.org")
>>> conn.connect(("www.python.org", 443))
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 
1093, in connect
self._real_connect(addr, False)
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 
1084, in _real_connect
self.do_handshake()
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 
1061, in do_handshake
self._sslobj.do_handshake()
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 
683, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 
(_ssl.c:749)
>>> 

It seems like a problem with OpenSSL in Sierra itself. Because the following 
command does not work either:

(virtualenv) user@host:~$ openssl s_client -connect www.python.org:443
CONNECTED(0003)
depth=1 /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended 
Validation Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/businessCategory=Private 
Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=3359300/street=16
 Allen Rd/postalCode=03894-4801/C=US/ST=NH/L=Wolfeboro/O=Python Software 
Foundation/CN=www.python.org
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended 
Validation Server CA
 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended 
Validation Server CA
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV 
Root CA
---
Server certificate
-BEGIN CERTIFICATE-
MIIIWjCCB0KgAwIBAgIQCXCW7BLw16II/CMOsOFe/jANBgkqhkiG9w0BAQsFADB1
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMTQwMgYDVQQDEytEaWdpQ2VydCBTSEEyIEV4dGVuZGVk
IFZhbGlkYXRpb24gU2VydmVyIENBMB4XDTE2MDYyOTAwMDAwMFoXDTE4MDkyNzEy
MDAwMFowgfgxHTAbBgNVBA8TFFByaXZhdGUgT3JnYW5pemF0aW9uMRMwEQYLKwYB
BAGCNzwCAQMTAlVTMRkwFwYLKwYBBAGCNzwCAQITCERlbGF3YXJlMRAwDgYDVQQF
EwczMzU5MzAwMRQwEgYDVQQJEwsxNiBBbGxlbiBSZDETMBEGA1UEERMKMDM4OTQt
NDgwMTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAk5IMRIwEAYDVQQHEwlXb2xmZWJv
cm8xIzAhBgNVBAoTGlB5dGhvbiBTb2Z0d2FyZSBGb3VuZGF0aW9uMRcwFQYDVQQD
Ew53d3cucHl0aG9uLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AMpgUlIza25mor2AW20yRs8uHtRJs0kXpMF2zATQjhYAgfpqjoKugoWBlMrLCFQj
G/Aq8W7pT4WWHCb9Nv2QGdnIEapxi5HSfxc3b1HIRmJDdfxsc2Y4dATfgzIS4wNw
jDM9tmYcMZMKZVdW4WxurQIka8r3tBFP944yAllRn8uuFVXSDYALkZOiiWxuMYKA
q40hYrDhWO53uKk23HNBo5Kgfvcj3t0ZcMSkzekClxyxgyS1nnkNWIdEEMCP/FFU
UXrQt0MEtkmfc++6Ps2SEiHL2T4MEqY8eE0ss6Mvmt+yzy8QsZOArrpxv7l8OwBO
5yB0LU3ByoQan1O/upeNclkCAwEAAaOCBGAwggRcMB8GA1UdIwQYMBaAFD3TUKXW
oK3u80pgCmXTIdT4+NYPMB0GA1UdDgQWBBTL2ztKcGS38IxHEASJaOzwHuUqljCC
AQsGA1UdEQSCAQIwgf+CDnd3dy5weXRob24ub3Jngg9kb2NzLnB5dGhvbi5vcmeC
D2J1Z3MucHl0aG9uLm9yZ4IPd2lraS5weXRob24ub3Jngg1oZy5weXRob24ub3Jn
gg9tYWlsLnB5dGhvbi5vcmeCD3B5cGkucHl0aG9uLm9yZ4IUcGFja2FnaW5nLnB5
dGhvbi5vcmeCEGxvZ2luLnB5dGhvbi5vcmeCEmRpc2N1c3MucHl0aG9uLm9yZ4IM
dXMucHljb24ub3JnggdweXBpLmlvggxkb2NzLnB5cGkuaW+CCHB5cGkub3Jngg1k
b2NzLnB5cGkub3Jngg9kb25hdGUucHlwaS5vcmcwDgYDVR0PAQH/BAQDAgWgMB0G
A1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjB1BgNVHR8EbjBsMDSgMqAwhi5o
dHRwOi8vY3JsMy5kaWdpY2VydC5jb20vc2hhMi1ldi1zZXJ2ZXItZzEuY3JsMDSg
MqAwhi5odHRwOi8vY3JsNC5kaWdpY2VydC5jb20vc2hhMi1ldi1zZXJ2ZXItZzEu
Y3JsMEsGA1UdIAREMEIwNwYJYIZIAYb9bAIBMCowKAYIKwYBBQUHAgEWHGh0dHBz
Oi8vd3d3LmRpZ2ljZXJ0LmNvbS9DUFMwBwYFZ4EMAQEwgYgGCCsGAQUFBwEBBHww
ejAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29tMFIGCCsGAQUF
BzAChkZodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGlnaUNlcnRTSEEyRXh0
ZW5kZWRWYWxpZGF0aW9uU2VydmVyQ0EuY3J0MAwGA1UdEwEB/wQCMAAwggF9Bgor
BgEEAdZ5AgQCBIIBbQSCAWkBZwB2AKS5CZC0GFgUh7sTosxncAo8NZgE+RvfuON3
zQ7IDdwQAAABVkgj4a8AAAQDAEcwRQIhAMhsxamO6hrRjfNmH4Yj/cnJo72cmTHm
rSlEi0FHilNtAiB/tDiULYh6rf9H5eKmrV8PRsvFNSflBsQIIF1VejnWrwB2AGj2
mPgfZIK+OozuuSgdTPxxUV1nk9RE0QpnrLtPT/vEAAABVkgj4XYAAAQDAEcwRQIg
Ygh+rvtk2KQd2CRaM+whfGgc6waZACSMgwzYVmOZr9sCIQDGs78IDIoPZhNBGfIK
xXQdq8DwAjahQboXeJWx/AfAxQB1AFYUBpov18Ls0/XhvUSyPsdGdrm8mRFcwO+U
mFXWidDdAAABVkgj4dkAAAQDAEYwRAIgMOOdrhZ0280XsmWuLt7fcFnwtRIu42j7
WmRrQ2NlJLUCIG5Z6vzlhvFNIhN67A0G/hrRH7hzJ13/elILZcjZYJQqMA0GCSqG
SIb3DQEBCwUAA4IBAQCuDt1T9tBxAVYp2u10uONL6FTHQlgguQCiN5ANmjp6dUAq
2I1nCgZB9nxhGUFOsdiQ5DFDgJ0xTAgwF4nWAyXEHKjyacoaUOh3Zq7A62r5+0eE
P3XDNKIN2TWF3+djFneND/uqqpDGo2bMdcm9l0dvktUP9xQXIZBBkOMJZfXSxh0/
7H+bDizx+bq/5Dwv97fs770UCz5LqGRuIUaZQvBQblsP5QoBaKEYW5Hsmfu9FWbW

[issue29049] Lazy GC tracking frame

2016-12-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please wrap private functions in #ifndef Py_LIMITED_API/#endif.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue29060] Changing the installation location still adds AppData filepaths that do not exist to the path variable on Windows 10

2016-12-24 Thread Daz

Daz added the comment:

You're right. It was the launcher I was viewing. On the first page, I
unchecked installing the launcher for all users. Thanks for pointing out
that distinction.

Happy holidays.

On Dec 24, 2016 12:28 AM, "Steve Dower"  wrote:

>
> Steve Dower added the comment:
>
> You should have a set of log files in your %TEMP% directory. Could you zip
> them up and attach to this issue? That should show whether the installer
> got confused about something.
>
> Note that if you install the launcher but not for all users (the other
> check box on the first page) you can't actually reconfigure where it
> installs to, and it will be put on PATH, so you may be seeing that.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue23903] Generate PC/python3.def by scraping headers

2016-12-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Following patch against 3.6 just adds new names to PC/python3.def. The only 
removed names are PyExc_MemoryErrorInst and PyUnicode_SetDefaultEncoding. They 
don't exist in 3.x.

--
Added file: http://bugs.python.org/file46027/python3def-3.6.patch

___
Python tracker 

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



[issue23903] Generate PC/python3.def by scraping headers

2016-12-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a shell script that uses the C preprocessor and other Unix tools to 
generate PC/python3.def. It doesn't add PyAST_* and PyNode_* functions and 
doesn't remove PyArg_VaParse* functions. But it still removes some names that 
are no longer used in public interface, but should be kept in the stable ABI 
for compatibility. E.g. PyCFunction_New (now it is a macro expanded to 
PyCFunction_NewEx) or _PyTrash_deposit_object (invoked by the macros before 
3.2.4). It seems to me that this is unavoidable, and the resulting file must be 
manually edited.

--
dependencies: +Mark new limited C API
Added file: http://bugs.python.org/file46026/genpython3def.sh

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

OK, for now. Let's disregard my idea that stderr is swallowed. At some
point these test might have worked under coverage.

I was more thinking to bisect cpython. Perhaps i can find a revision that
works.

Patrik

Den 24 dec 2016 20:26 skrev "Ned Batchelder" :

>
> Ned Batchelder added the comment:
>
> I don't believe this is coverage.py's fault, so I don't have an answer to
> your question.  There is no revision of coverage.py that *does* swallow
> stderr.  Also, as you can see from the test output, it isn't swallowed,
> it's not being captured where it should be captured, but it is appearing on
> the terminal.  I see more than 60 uses of captured_stderr in the Python
> test suite. If coverage.py were swallowing stderr, I would expect dozens of
> test failures.  The problem is more subtle.
>
> If you want, you can bisect against any revision of coverage.py you like,
> perhaps the released 4.2?
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder

Ned Batchelder added the comment:

I don't believe this is coverage.py's fault, so I don't have an answer to your 
question.  There is no revision of coverage.py that *does* swallow stderr.  
Also, as you can see from the test output, it isn't swallowed, it's not being 
captured where it should be captured, but it is appearing on the terminal.  I 
see more than 60 uses of captured_stderr in the Python test suite. If 
coverage.py were swallowing stderr, I would expect dozens of test failures.  
The problem is more subtle.

If you want, you can bisect against any revision of coverage.py you like, 
perhaps the released 4.2?

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

@nedbat, do you know of a revision where coverage doesn't influence the tests? 
If so, which one? Perhaps i can perform a bisect search to find when this went 
bad.

I'm testing the latest tip/head. So that's one part of the bisect.

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

Sure, here you go.

$ ./python ../coveragepy debug sys
-- sys ---
  version: 4.3a0
 coverage: ../coveragepy/coverage/__init__.py
   cover_dirs: /home/irina/patrik/coveragepy/coverage
   pylib_dirs: /home/irina/patrik/cpython/Lib
   tracer: PyTracer
 plugins.file_tracers: -none-
 config_files: .coveragerc
   setup.cfg
   tox.ini
 configs_read: -none-
data_path: /home/irina/patrik/cpython/.coverage
   python: 3.7.0a0 (default:7ceacac48cd2+, Dec 24 2016, 19:08:24) 
[GCC 5.4.0 20160609]
 platform: Linux-4.4.0-53-generic-x86_64-with-debian-stretch-sid
   implementation: CPython
   executable: /home/irina/patrik/cpython/python
  cwd: /home/irina/patrik/cpython
 path: 
   /usr/local/lib/python37.zip
   /home/irina/patrik/cpython/Lib
   /home/irina/patrik/cpython/build/lib.linux-x86_64-3.7
  environment: -none-
 command_line: ../coveragepy/coverage/__main__.py debug sys
 source_match: -none-
source_pkgs_match: -none-
include_match: -none-
   omit_match: -none-
  cover_match: /home/irina/patrik/coveragepy/coverage
  pylib_match: /home/irina/patrik/cpython/Lib

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder

Ned Batchelder added the comment:

Can you show the output of "coverage debug sys"?

--

___
Python tracker 

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



[issue29047] Where are the test results stored?

2016-12-24 Thread Berker Peksag

Changes by Berker Peksag :


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



[issue29047] Where are the test results stored?

2016-12-24 Thread Berker Peksag

Changes by Berker Peksag :


--
stage:  -> resolved

___
Python tracker 

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



[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

My GitHub PR got closed. So closing this issue as well.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue1116520] Prefix search is filesystem-centric

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

What about the performance penalty for zipping stdlib? is it significant?

When would you like to zip stdlib? For embedded systems with limited disk
space?

Patrik Iselind

On Sat, Dec 24, 2016 at 6:34 PM, Patrik Iselind 
wrote:

>
> Patrik Iselind added the comment:
>
> How much smaller would the stdlib for 3.5 become if you compress it with
> zip?
>
> --
> nosy: +patriki
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue1116520] Prefix search is filesystem-centric

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

How much smaller would the stdlib for 3.5 become if you compress it with zip?

--
nosy: +patriki

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

I'd like to clarify that the file i just attached, no-stderr.diff, is in no way 
a suggestion for a fix. It's just my way of conveying what i see.

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

For clarity, this is what i get in the test_exceptions test when i've applied 
the attached diff.

$ ./python -m test -v test_exceptions
== CPython 3.7.0a0 (default:8e311f109b22, Dec 24 2016, 12:26:43) [GCC 5.4.0 
20160609]
==   Linux-4.4.0-53-generic-x86_64-with-debian-stretch-sid little-endian
==   hash algorithm: siphash24 64bit
==  cwd: /home/irina/patrik/cpython/build/test_python_19104
==  encodings: locale=UTF-8, FS=utf-8
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_exceptions
testAttributes (test.test_exceptions.ExceptionTests) ... ok
testChainingAttrs (test.test_exceptions.ExceptionTests) ... ok
testChainingDescriptors (test.test_exceptions.ExceptionTests) ... ok
testExceptionCleanupNames (test.test_exceptions.ExceptionTests) ... ok
testExceptionCleanupState (test.test_exceptions.ExceptionTests) ... ok
testInfiniteRecursion (test.test_exceptions.ExceptionTests) ... ok
testInvalidAttrs (test.test_exceptions.ExceptionTests) ... ok
testInvalidTraceback (test.test_exceptions.ExceptionTests) ... ok
testKeywordArgs (test.test_exceptions.ExceptionTests) ... ok
testNoneClearsTracebackAttr (test.test_exceptions.ExceptionTests) ... ok
testRaising (test.test_exceptions.ExceptionTests) ... ok
testSettingException (test.test_exceptions.ExceptionTests) ... ok
testSyntaxErrorMessage (test.test_exceptions.ExceptionTests) ... ok
testSyntaxErrorOffset (test.test_exceptions.ExceptionTests) ... ok
testWithTraceback (test.test_exceptions.ExceptionTests) ... ok
test_3114 (test.test_exceptions.ExceptionTests) ... ok
test_MemoryError (test.test_exceptions.ExceptionTests) ... ok
test_WindowsError (test.test_exceptions.ExceptionTests) ... ok
test_badisinstance (test.test_exceptions.ExceptionTests) ... ok
test_errno_ENOTDIR (test.test_exceptions.ExceptionTests) ... ok
test_exception_target_in_nested_scope (test.test_exceptions.ExceptionTests) ... 
ok
test_exception_with_doc (test.test_exceptions.ExceptionTests) ... ok
test_generator_close_cleanup_exc_state (test.test_exceptions.ExceptionTests) 
... ok
test_generator_del_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_doesnt_retain_old_exc (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_finalizing_and_exc_info (test.test_exceptions.ExceptionTests) 
... ok
test_generator_leaking (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking2 (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking3 (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking4 (test.test_exceptions.ExceptionTests) ... ok
test_generator_next_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_send_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_throw_cleanup_exc_state (test.test_exceptions.ExceptionTests) 
... ok
test_memory_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
test_recursion_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
test_str (test.test_exceptions.ExceptionTests) ... ok
test_unhandled (test.test_exceptions.ExceptionTests) ... ok
test_unicode_change_attributes (test.test_exceptions.ExceptionTests) ... ok
test_unicode_errors_no_object (test.test_exceptions.ExceptionTests) ... ok
test_unraisable (test.test_exceptions.ExceptionTests) ... 
BEGINBEGINBEGINBEGINBEGIN
Exception ignored in: .BrokenDel.__del__ of 
>
Traceback (most recent call last):
  File "/home/irina/patrik/cpython/Lib/test/test_exceptions.py", line 1024, in 
__del__
raise exc
ValueError: del is broken

ENDENDENDENDENDENDENDEND
BEGINBEGINBEGINBEGINBEGIN
Exception ignored in: 
Traceback (most recent call last):
  File "/home/irina/patrik/cpython/Lib/test/test_exceptions.py", line 1024, in 
__del__
raise exc
ValueError: del is broken

ENDENDENDENDENDENDENDEND
BEGINBEGINBEGINBEGINBEGIN
Exception ignored in: .BrokenExceptionDel.__del__ of 
>
Traceback (most recent call last):
  File "/home/irina/patrik/cpython/Lib/test/test_exceptions.py", line 1034, in 
__del__
raise exc
test.test_exceptions.BrokenStrException: 

ENDENDENDENDENDENDENDEND
ok
test_windows_message (test.test_exceptions.ExceptionTests)
Should fill in unknown error code in Windows error message ... skipped 'test 
specific to Windows'
test_attributes (test.test_exceptions.ImportErrorTests) ... ok
test_non_str_argument (test.test_exceptions.ImportErrorTests) ... ok
test_reset_attributes (test.test_exceptions.ImportErrorTests) ... ok

--
Ran 44 tests in 0.158s

OK (skipped=1)
1 test OK.

Total duration: 

[issue13886] readline-related test_builtin failure

2016-12-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Thanks for waiting for a run of the patch on Android.
Indeed, test_input_tty_non_ascii fails with this patch on Android when LANG is 
not set and is ok when LANG=en_US.UTF-8. As you are suggesting, the test is ok 
when skipping the Readline half of the test. This may be done by adding 
'is_android' in the 'from test.support import ...' statement and updating the 
test with:

if readline and not is_android:
tests.append(True)

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

yes, I'm sure. i printed markings around where the text should have been.

Patrik

Den 24 dec 2016 17:37 skrev "Ned Batchelder" :

>
> Ned Batchelder added the comment:
>
> Are you sure the code that tried to print to stderr was even run? It's in
> a __del__ method, which is notorious for being affected by surprising
> things.
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder

Ned Batchelder added the comment:

Are you sure the code that tried to print to stderr was even run? It's in a 
__del__ method, which is notorious for being affected by surprising things.

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

report doesn't contain any text when run under coverage. something made the
text not appear...

Patrik

Den 24 dec 2016 16:39 skrev "Patrik Iselind" :

>
> Patrik Iselind added the comment:
>
> i use the latest code. perhaps something for introduced after 3.6?
>
> Patrik
>
> Den 24 dec 2016 13:51 skrev "Ned Batchelder" :
>
> >
> > Ned Batchelder added the comment:
> >
> > I doubt very very much that coverage.py is stealing stderr.  Many many
> > test suites would have this problem if that were true.  More likely is
> that
> > somehow __del__ is not being invoked when you need it to be.
> >
> > I tried running the tests under coverage also, and did not see this
> > behavior. I don't have a build tree of the latest code, but I ran it on
> > 3.6.0.  The tests passed both with and without coverage measurement
> (output
> > below).  I would like to understand why you are seeing the results you
> are.
> >
> > $ mkvirtualenv -p python3.6 issue29048
> > Running virtualenv with interpreter /usr/local/bin/python3.6
> > Using base prefix '/usr/local/pythonz/pythons/CPython-3.6.0'
> > New python executable in issue29048/bin/python3.6
> > Also creating executable in issue29048/bin/python
> > Installing setuptools, pip, wheel...done.
> > Collecting pip
> >   Using cached pip-9.0.1-py2.py3-none-any.whl
> > Collecting setuptools
> >   Using cached setuptools-32.2.0-py2.py3-none-any.whl
> > Installing collected packages: pip, setuptools
> >   Found existing installation: pip 7.1.2
> > Uninstalling pip-7.1.2:
> >   Successfully uninstalled pip-7.1.2
> >   Found existing installation: setuptools 18.2
> > Uninstalling setuptools-18.2:
> >   Successfully uninstalled setuptools-18.2
> > Successfully installed pip-9.0.1 setuptools-32.2.0
> > (issue29048)$ pip install coverage
> > Collecting coverage
> > Installing collected packages: coverage
> > Successfully installed coverage-4.2
> > (issue29048)$ python3.6 -m test -v test_exceptions
> > == CPython 3.6.0 (default, Dec 23 2016, 07:11:25) [GCC 4.2.1 Compatible
> > Apple LLVM 7.0.2 (clang-700.1.81)]
> > ==   Darwin-14.5.0-x86_64-i386-64bit little-endian
> > ==   hash algorithm: siphash24 64bit
> > ==  cwd: /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hmgp
> > /T/test_python_20266
> > ==  encodings: locale=UTF-8, FS=utf-8
> > Testing with flags: sys.flags(debug=0, inspect=0, interactive=0,
> > optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
> > ignore_environment=0, verbose=0, bytes_warning=0, quiet=0,
> > hash_randomization=1, isolated=0)
> > Run tests sequentially
> > 0:00:00 [1/1] test_exceptions
> > testAttributes (test.test_exceptions.ExceptionTests) ... ok
> > testChainingAttrs (test.test_exceptions.ExceptionTests) ... ok
> > testChainingDescriptors (test.test_exceptions.ExceptionTests) ... ok
> > testExceptionCleanupNames (test.test_exceptions.ExceptionTests) ... ok
> > testExceptionCleanupState (test.test_exceptions.ExceptionTests) ... ok
> > testInfiniteRecursion (test.test_exceptions.ExceptionTests) ... ok
> > testInvalidAttrs (test.test_exceptions.ExceptionTests) ... ok
> > testInvalidTraceback (test.test_exceptions.ExceptionTests) ... ok
> > testKeywordArgs (test.test_exceptions.ExceptionTests) ... ok
> > testNoneClearsTracebackAttr (test.test_exceptions.ExceptionTests) ... ok
> > testRaising (test.test_exceptions.ExceptionTests) ... ok
> > testSettingException (test.test_exceptions.ExceptionTests) ... ok
> > testSyntaxErrorMessage (test.test_exceptions.ExceptionTests) ... ok
> > testSyntaxErrorOffset (test.test_exceptions.ExceptionTests) ... ok
> > testWithTraceback (test.test_exceptions.ExceptionTests) ... ok
> > test_3114 (test.test_exceptions.ExceptionTests) ... ok
> > test_MemoryError (test.test_exceptions.ExceptionTests) ... ok
> > test_WindowsError (test.test_exceptions.ExceptionTests) ... ok
> > test_badisinstance (test.test_exceptions.ExceptionTests) ... ok
> > test_errno_ENOTDIR (test.test_exceptions.ExceptionTests) ... ok
> > test_exception_target_in_nested_scope (test.test_exceptions.
> ExceptionTests)
> > ... ok
> > test_exception_with_doc (test.test_exceptions.ExceptionTests) ... ok
> > test_generator_close_cleanup_exc_state (test.test_exceptions.
> ExceptionTests)
> > ... ok
> > test_generator_del_cleanup_exc_state (test.test_exceptions.
> ExceptionTests)
> > ... ok
> > test_generator_doesnt_retain_old_exc (test.test_exceptions.
> ExceptionTests)
> > ... ok
> > test_generator_finalizing_and_exc_info (test.test_exceptions.
> ExceptionTests)
> > ... ok
> > test_generator_leaking (test.test_exceptions.ExceptionTests) ... ok
> > test_generator_leaking2 (test.test_exceptions.ExceptionTests) ... ok
> > test_generator_leaking3 (test.test_exceptions.ExceptionTests) ... ok
> > test_generator_leaking4 (test.test_exceptions.ExceptionTests) ... ok
> > test_generator_next_cleanup_exc_state (test.test_exceptions.
> ExceptionTests)
> > ... ok
> > 

[issue29064] Package numpy can't be used normally

2016-12-24 Thread Xiang Zhang

Changes by Xiang Zhang :


--
resolution:  -> third party
status: open -> closed

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

i use the latest code. perhaps something for introduced after 3.6?

Patrik

Den 24 dec 2016 13:51 skrev "Ned Batchelder" :

>
> Ned Batchelder added the comment:
>
> I doubt very very much that coverage.py is stealing stderr.  Many many
> test suites would have this problem if that were true.  More likely is that
> somehow __del__ is not being invoked when you need it to be.
>
> I tried running the tests under coverage also, and did not see this
> behavior. I don't have a build tree of the latest code, but I ran it on
> 3.6.0.  The tests passed both with and without coverage measurement (output
> below).  I would like to understand why you are seeing the results you are.
>
> $ mkvirtualenv -p python3.6 issue29048
> Running virtualenv with interpreter /usr/local/bin/python3.6
> Using base prefix '/usr/local/pythonz/pythons/CPython-3.6.0'
> New python executable in issue29048/bin/python3.6
> Also creating executable in issue29048/bin/python
> Installing setuptools, pip, wheel...done.
> Collecting pip
>   Using cached pip-9.0.1-py2.py3-none-any.whl
> Collecting setuptools
>   Using cached setuptools-32.2.0-py2.py3-none-any.whl
> Installing collected packages: pip, setuptools
>   Found existing installation: pip 7.1.2
> Uninstalling pip-7.1.2:
>   Successfully uninstalled pip-7.1.2
>   Found existing installation: setuptools 18.2
> Uninstalling setuptools-18.2:
>   Successfully uninstalled setuptools-18.2
> Successfully installed pip-9.0.1 setuptools-32.2.0
> (issue29048)$ pip install coverage
> Collecting coverage
> Installing collected packages: coverage
> Successfully installed coverage-4.2
> (issue29048)$ python3.6 -m test -v test_exceptions
> == CPython 3.6.0 (default, Dec 23 2016, 07:11:25) [GCC 4.2.1 Compatible
> Apple LLVM 7.0.2 (clang-700.1.81)]
> ==   Darwin-14.5.0-x86_64-i386-64bit little-endian
> ==   hash algorithm: siphash24 64bit
> ==  cwd: /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hmgp
> /T/test_python_20266
> ==  encodings: locale=UTF-8, FS=utf-8
> Testing with flags: sys.flags(debug=0, inspect=0, interactive=0,
> optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
> ignore_environment=0, verbose=0, bytes_warning=0, quiet=0,
> hash_randomization=1, isolated=0)
> Run tests sequentially
> 0:00:00 [1/1] test_exceptions
> testAttributes (test.test_exceptions.ExceptionTests) ... ok
> testChainingAttrs (test.test_exceptions.ExceptionTests) ... ok
> testChainingDescriptors (test.test_exceptions.ExceptionTests) ... ok
> testExceptionCleanupNames (test.test_exceptions.ExceptionTests) ... ok
> testExceptionCleanupState (test.test_exceptions.ExceptionTests) ... ok
> testInfiniteRecursion (test.test_exceptions.ExceptionTests) ... ok
> testInvalidAttrs (test.test_exceptions.ExceptionTests) ... ok
> testInvalidTraceback (test.test_exceptions.ExceptionTests) ... ok
> testKeywordArgs (test.test_exceptions.ExceptionTests) ... ok
> testNoneClearsTracebackAttr (test.test_exceptions.ExceptionTests) ... ok
> testRaising (test.test_exceptions.ExceptionTests) ... ok
> testSettingException (test.test_exceptions.ExceptionTests) ... ok
> testSyntaxErrorMessage (test.test_exceptions.ExceptionTests) ... ok
> testSyntaxErrorOffset (test.test_exceptions.ExceptionTests) ... ok
> testWithTraceback (test.test_exceptions.ExceptionTests) ... ok
> test_3114 (test.test_exceptions.ExceptionTests) ... ok
> test_MemoryError (test.test_exceptions.ExceptionTests) ... ok
> test_WindowsError (test.test_exceptions.ExceptionTests) ... ok
> test_badisinstance (test.test_exceptions.ExceptionTests) ... ok
> test_errno_ENOTDIR (test.test_exceptions.ExceptionTests) ... ok
> test_exception_target_in_nested_scope (test.test_exceptions.ExceptionTests)
> ... ok
> test_exception_with_doc (test.test_exceptions.ExceptionTests) ... ok
> test_generator_close_cleanup_exc_state (test.test_exceptions.ExceptionTests)
> ... ok
> test_generator_del_cleanup_exc_state (test.test_exceptions.ExceptionTests)
> ... ok
> test_generator_doesnt_retain_old_exc (test.test_exceptions.ExceptionTests)
> ... ok
> test_generator_finalizing_and_exc_info (test.test_exceptions.ExceptionTests)
> ... ok
> test_generator_leaking (test.test_exceptions.ExceptionTests) ... ok
> test_generator_leaking2 (test.test_exceptions.ExceptionTests) ... ok
> test_generator_leaking3 (test.test_exceptions.ExceptionTests) ... ok
> test_generator_leaking4 (test.test_exceptions.ExceptionTests) ... ok
> test_generator_next_cleanup_exc_state (test.test_exceptions.ExceptionTests)
> ... ok
> test_generator_send_cleanup_exc_state (test.test_exceptions.ExceptionTests)
> ... ok
> test_generator_throw_cleanup_exc_state (test.test_exceptions.ExceptionTests)
> ... ok
> test_memory_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
> test_recursion_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
> test_str (test.test_exceptions.ExceptionTests) ... ok
> test_unhandled 

[issue29064] Package numpy can't be used normally

2016-12-24 Thread kevin

kevin added the comment:

Hi Xiang,
Thanks for your information.

--
resolution: third party -> 
status: closed -> open

___
Python tracker 

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



[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-24 Thread Pam McA'Nulty

Pam McA'Nulty added the comment:

New patch to make consistent wrt use of "defined()"

--
Added file: http://bugs.python.org/file46024/Issue29057_random_include-v2.patch

___
Python tracker 

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



[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-24 Thread Pam McA'Nulty

Pam McA'Nulty added the comment:

Good question.

It looks like there are 3 defines getting checked:
HAVE_SYS_RANDOM_H and either HAVE_GETRANDOM or HAVE_GETENTROPY

The previous issue seemed to be that you could have HAVE_GETRANDOM and/or 
HAVE_GETENTROPY be set, but still not have a sys/random.h, so a check was added 
for HAVE_SYS_RANDOM_H.  However, on macs, you can HAVE_SYS_RANDOM_H, but still 
not have either HAVE_GETRANDOM or HAVE_GETENTROPY.

This _probably_ implies that the sys/random.h that's present isn't conformant 
enough for the compiler settings and my mac's os and/or xcode.

--

___
Python tracker 

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



[issue28997] test_readline.test_nonascii fails on Android

2016-12-24 Thread Xavier de Gaye

Xavier de Gaye added the comment:

With your patch Martin, test_nonascii is skipped on Android when LANG is not 
set and the issue is fixed.

> Just to clarify, is the problem that Python (correctly) assumes UTF-8 
> encoding on Android, but Readline does not unless you tweak the environment 
> variable?

Readline (correctly) uses the locale environment variables to set eight-bit 
mode (see function _rl_init_eightbit() in Readline nls.c) and when the LC_CTYPE 
category is C or POSIX, eight-bit characters are discarded on input and a bell 
character ('\x07') is echoed instead.

--

___
Python tracker 

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



[issue29054] pty.py: pty.spawn hangs after client disconnect over nc (netcat)

2016-12-24 Thread Cornelius Diekmann

Cornelius Diekmann added the comment:

Thank you Martin very much. To resolve this issue, I decided to document the 
current behavior and add test cases for it. No change in behavior is 
introduced. This hopefully allows to close this issue. The test cases for the 
current behavior ensure that we can (at some point in the future) add some 
different behavior without breaking backwards compatibility.

Fixed: Observed behavior is now expected+documented behavior. Improved test 
cases.

Happy Holidays!

--
Added file: http://bugs.python.org/file46023/test_pty_and_doc.patch

___
Python tracker 

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



[issue28815] test_socket fails if /proc/modules is existent but not readable

2016-12-24 Thread Martin Panter

Martin Panter added the comment:

That would be possible in Python 3, not Python 2 though.

--

___
Python tracker 

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



[issue29064] Package numpy can't be used normally

2016-12-24 Thread Xiang Zhang

Xiang Zhang added the comment:

Hi kevin. This tracker is used to report problems about CPython. Your problem 
seems related to numpy and you'd better go to numpy's tracker to ask for help. 
:-)

--
nosy: +xiang.zhang
resolution:  -> third party
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



[issue29064] Package numpy can't be used normally

2016-12-24 Thread kevin

New submission from kevin:

I used package numpy,but encounter the following error:

Traceback (most recent call last):
  File "rgbtoyuv.py", line 2, in 
import numpy as np
  File 
"/usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/__init__.py",
 line 163, in 
from . import random
  File 
"/usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/random/__init__.py",
 line 99, in 
from .mtrand import *
ImportError: 
/usr/local/lib/python3.5/site-packages/numpy-1.11.2-py3.5-linux-x86_64.egg/numpy/random/mtrand.cpython-35m-x86_64-linux-gnu.so:
 undefined symbol: PyFPE_jbuf

I have download the numpy install package,and installed.

Platform ubuntu16.04 x86_64

python version: 3.5.2

numpy version:1.11.2 and try to version:1.9.0 also,but installed failed.

Please help me find the reason,thanks a lot.

--
components: Library (Lib)
messages: 283949
nosy: kevin.zhai80
priority: normal
severity: normal
status: open
title: Package numpy can't be used normally
type: resource usage
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



[issue29062] hashlib documentation link error

2016-12-24 Thread Xiang Zhang

Xiang Zhang added the comment:

Is the https://docs.python.org/3/library/crypto.html section messed up? Two 
hashlib entries and some other bad entries?

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Ned Batchelder

Ned Batchelder added the comment:

I doubt very very much that coverage.py is stealing stderr.  Many many test 
suites would have this problem if that were true.  More likely is that somehow 
__del__ is not being invoked when you need it to be.

I tried running the tests under coverage also, and did not see this behavior. I 
don't have a build tree of the latest code, but I ran it on 3.6.0.  The tests 
passed both with and without coverage measurement (output below).  I would like 
to understand why you are seeing the results you are.

$ mkvirtualenv -p python3.6 issue29048
Running virtualenv with interpreter /usr/local/bin/python3.6
Using base prefix '/usr/local/pythonz/pythons/CPython-3.6.0'
New python executable in issue29048/bin/python3.6
Also creating executable in issue29048/bin/python
Installing setuptools, pip, wheel...done.
Collecting pip
  Using cached pip-9.0.1-py2.py3-none-any.whl
Collecting setuptools
  Using cached setuptools-32.2.0-py2.py3-none-any.whl
Installing collected packages: pip, setuptools
  Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
  Successfully uninstalled pip-7.1.2
  Found existing installation: setuptools 18.2
Uninstalling setuptools-18.2:
  Successfully uninstalled setuptools-18.2
Successfully installed pip-9.0.1 setuptools-32.2.0
(issue29048)$ pip install coverage
Collecting coverage
Installing collected packages: coverage
Successfully installed coverage-4.2
(issue29048)$ python3.6 -m test -v test_exceptions
== CPython 3.6.0 (default, Dec 23 2016, 07:11:25) [GCC 4.2.1 Compatible Apple 
LLVM 7.0.2 (clang-700.1.81)]
==   Darwin-14.5.0-x86_64-i386-64bit little-endian
==   hash algorithm: siphash24 64bit
==  cwd: 
/private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hmgp/T/test_python_20266
==  encodings: locale=UTF-8, FS=utf-8
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_exceptions
testAttributes (test.test_exceptions.ExceptionTests) ... ok
testChainingAttrs (test.test_exceptions.ExceptionTests) ... ok
testChainingDescriptors (test.test_exceptions.ExceptionTests) ... ok
testExceptionCleanupNames (test.test_exceptions.ExceptionTests) ... ok
testExceptionCleanupState (test.test_exceptions.ExceptionTests) ... ok
testInfiniteRecursion (test.test_exceptions.ExceptionTests) ... ok
testInvalidAttrs (test.test_exceptions.ExceptionTests) ... ok
testInvalidTraceback (test.test_exceptions.ExceptionTests) ... ok
testKeywordArgs (test.test_exceptions.ExceptionTests) ... ok
testNoneClearsTracebackAttr (test.test_exceptions.ExceptionTests) ... ok
testRaising (test.test_exceptions.ExceptionTests) ... ok
testSettingException (test.test_exceptions.ExceptionTests) ... ok
testSyntaxErrorMessage (test.test_exceptions.ExceptionTests) ... ok
testSyntaxErrorOffset (test.test_exceptions.ExceptionTests) ... ok
testWithTraceback (test.test_exceptions.ExceptionTests) ... ok
test_3114 (test.test_exceptions.ExceptionTests) ... ok
test_MemoryError (test.test_exceptions.ExceptionTests) ... ok
test_WindowsError (test.test_exceptions.ExceptionTests) ... ok
test_badisinstance (test.test_exceptions.ExceptionTests) ... ok
test_errno_ENOTDIR (test.test_exceptions.ExceptionTests) ... ok
test_exception_target_in_nested_scope (test.test_exceptions.ExceptionTests) ... 
ok
test_exception_with_doc (test.test_exceptions.ExceptionTests) ... ok
test_generator_close_cleanup_exc_state (test.test_exceptions.ExceptionTests) 
... ok
test_generator_del_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_doesnt_retain_old_exc (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_finalizing_and_exc_info (test.test_exceptions.ExceptionTests) 
... ok
test_generator_leaking (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking2 (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking3 (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking4 (test.test_exceptions.ExceptionTests) ... ok
test_generator_next_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_send_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_throw_cleanup_exc_state (test.test_exceptions.ExceptionTests) 
... ok
test_memory_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
test_recursion_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
test_str (test.test_exceptions.ExceptionTests) ... ok
test_unhandled (test.test_exceptions.ExceptionTests) ... ok
test_unicode_change_attributes (test.test_exceptions.ExceptionTests) ... ok
test_unicode_errors_no_object (test.test_exceptions.ExceptionTests) ... ok
test_unraisable (test.test_exceptions.ExceptionTests) ... ok
test_windows_message (test.test_exceptions.ExceptionTests)
Should fill in unknown error code in Windows error message ... 

[issue28815] test_socket fails if /proc/modules is existent but not readable

2016-12-24 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Wouldn't be more pythonic to catch (FileNotFoundError, IsADirectoryError, 
PermissionError) instead of checking errno?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

I've been looking into test_exceptions, why it fails. The reason seems to be 
that when the tests are executed under coverage, then they get nothing on the 
line that says the following in test_unraisable().

```python
report = stderr.getvalue()
```
So coverage steal strerr in this case, and the test's thunder.

A way to get around this would be to not let the test rely in stderr but 
instead catch the exception and unfold it as a string for testing.

--

___
Python tracker 

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



[issue29048] Coverage influence tests, make some of them fail

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

As an example, the difference for test_exceptions:

$ ./python ../coveragepy run --pylib --source=exceptions Lib/test/regrtest.py 
test_exceptions
Run tests sequentially
0:00:00 [1/1] test_exceptions
Exception ignored in: .BrokenDel.__del__ of 
>
Traceback (most recent call last):
  File "/home/irina/patrik/cpython/Lib/test/test_exceptions.py", line 1024, in 
__del__
raise exc
ValueError: del is broken
Exception ignored in: 
Traceback (most recent call last):
  File "/home/irina/patrik/cpython/Lib/test/test_exceptions.py", line 1024, in 
__del__
raise exc
ValueError: del is broken
Exception ignored in: .BrokenExceptionDel.__del__ of 
>
Traceback (most recent call last):
  File "/home/irina/patrik/cpython/Lib/test/test_exceptions.py", line 1034, in 
__del__
raise exc
test.test_exceptions.BrokenStrException: 
test test_exceptions failed -- multiple errors occurred; run in verbose mode 
for details
test_exceptions failed

1 test failed:
test_exceptions

Total duration: 1 sec
Tests result: FAILURE
Coverage.py warning: Module exceptions was never imported.
Coverage.py warning: No data was collected.



$ ./python -m test -v test_exceptions
== CPython 3.7.0a0 (default:8e311f109b22, Dec 24 2016, 12:26:43) [GCC 5.4.0 
20160609]
==   Linux-4.4.0-53-generic-x86_64-with-debian-stretch-sid little-endian
==   hash algorithm: siphash24 64bit
==  cwd: /home/irina/patrik/cpython/build/test_python_17521
==  encodings: locale=UTF-8, FS=utf-8
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, 
verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
Run tests sequentially
0:00:00 [1/1] test_exceptions
testAttributes (test.test_exceptions.ExceptionTests) ... ok
testChainingAttrs (test.test_exceptions.ExceptionTests) ... ok
testChainingDescriptors (test.test_exceptions.ExceptionTests) ... ok
testExceptionCleanupNames (test.test_exceptions.ExceptionTests) ... ok
testExceptionCleanupState (test.test_exceptions.ExceptionTests) ... ok
testInfiniteRecursion (test.test_exceptions.ExceptionTests) ... ok
testInvalidAttrs (test.test_exceptions.ExceptionTests) ... ok
testInvalidTraceback (test.test_exceptions.ExceptionTests) ... ok
testKeywordArgs (test.test_exceptions.ExceptionTests) ... ok
testNoneClearsTracebackAttr (test.test_exceptions.ExceptionTests) ... ok
testRaising (test.test_exceptions.ExceptionTests) ... ok
testSettingException (test.test_exceptions.ExceptionTests) ... ok
testSyntaxErrorMessage (test.test_exceptions.ExceptionTests) ... ok
testSyntaxErrorOffset (test.test_exceptions.ExceptionTests) ... ok
testWithTraceback (test.test_exceptions.ExceptionTests) ... ok
test_3114 (test.test_exceptions.ExceptionTests) ... ok
test_MemoryError (test.test_exceptions.ExceptionTests) ... ok
test_WindowsError (test.test_exceptions.ExceptionTests) ... ok
test_badisinstance (test.test_exceptions.ExceptionTests) ... ok
test_errno_ENOTDIR (test.test_exceptions.ExceptionTests) ... ok
test_exception_target_in_nested_scope (test.test_exceptions.ExceptionTests) ... 
ok
test_exception_with_doc (test.test_exceptions.ExceptionTests) ... ok
test_generator_close_cleanup_exc_state (test.test_exceptions.ExceptionTests) 
... ok
test_generator_del_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_doesnt_retain_old_exc (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_finalizing_and_exc_info (test.test_exceptions.ExceptionTests) 
... ok
test_generator_leaking (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking2 (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking3 (test.test_exceptions.ExceptionTests) ... ok
test_generator_leaking4 (test.test_exceptions.ExceptionTests) ... ok
test_generator_next_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_send_cleanup_exc_state (test.test_exceptions.ExceptionTests) ... 
ok
test_generator_throw_cleanup_exc_state (test.test_exceptions.ExceptionTests) 
... ok
test_memory_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
test_recursion_error_cleanup (test.test_exceptions.ExceptionTests) ... ok
test_str (test.test_exceptions.ExceptionTests) ... ok
test_unhandled (test.test_exceptions.ExceptionTests) ... ok
test_unicode_change_attributes (test.test_exceptions.ExceptionTests) ... ok
test_unicode_errors_no_object (test.test_exceptions.ExceptionTests) ... ok
test_unraisable (test.test_exceptions.ExceptionTests) ... ok
test_windows_message (test.test_exceptions.ExceptionTests)
Should fill in unknown error code in Windows error message ... skipped 'test 
specific to Windows'
test_attributes (test.test_exceptions.ImportErrorTests) ... ok
test_non_str_argument 

[issue28815] test_socket fails if /proc/modules is existent but not readable

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7889d7a771c7 by Martin Panter in branch '3.5':
Issue #28815: Skip TIPC tests if /proc/modules is not readable
https://hg.python.org/cpython/rev/7889d7a771c7

New changeset 48b9d9cdfe3b by Martin Panter in branch '3.6':
Issue #28815: Merge test_socket fix from 3.5
https://hg.python.org/cpython/rev/48b9d9cdfe3b

New changeset 7ceacac48cd2 by Martin Panter in branch 'default':
Issue #28815: Merge test_socket fix from 3.6
https://hg.python.org/cpython/rev/7ceacac48cd2

New changeset 41a99a2a7198 by Martin Panter in branch '2.7':
Issue #28815: Skip TIPC tests if /proc/modules is not readable
https://hg.python.org/cpython/rev/41a99a2a7198

--
nosy: +python-dev

___
Python tracker 

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



[issue29049] Lazy GC tracking frame

2016-12-24 Thread INADA Naoki

INADA Naoki added the comment:

(Rietveld shows 500 error when replying.)

> Minor style note: Use Py_REFCNT here to simplify?

Fixed when committing.

--

___
Python tracker 

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



[issue29049] Lazy GC tracking frame

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f5eb0c4f5d37 by INADA Naoki in branch 'default':
Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
https://hg.python.org/cpython/rev/f5eb0c4f5d37

--
nosy: +python-dev

___
Python tracker 

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



[issue29049] Lazy GC tracking frame

2016-12-24 Thread INADA Naoki

Changes by INADA Naoki :


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



[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

Cannot figure out how to add the link to the GitHub PR field. Adding link here 
instead.

https://github.com/python/devguide/pull/88

--

___
Python tracker 

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



[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind

Changes by Patrik Iselind :


--
pull_requests:  -7

___
Python tracker 

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



[issue28954] Incorrect EBNF rule of keywords_arguments

2016-12-24 Thread Martin Panter

Martin Panter added the comment:

Thanks for finding this Woo!

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



[issue29047] Where are the test results stored?

2016-12-24 Thread Patrik Iselind

Patrik Iselind added the comment:

Made a pull request for this

--
pull_requests: +7

___
Python tracker 

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



[issue29063] Fixed timemodule compile warnings.

2016-12-24 Thread Decorater

Changes by Decorater :


--
title: Fix timemodule compile warnings. -> Fixed timemodule compile warnings.

___
Python tracker 

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



[issue29063] Fix timemodule compile warnings.

2016-12-24 Thread Decorater

New submission from Decorater:

I fixed some Possible Loss of Data warnings. but only the ones for timemodule. 
There are still some others when building the 64 bit version however.

I added some comments that can be removed in another patch if desired otherwise 
it should look good for now for this module.

--
components: Build, Interpreter Core, Windows
files: timemodule.patch-1.patch
keywords: patch
messages: 283937
nosy: Decorater, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Fix timemodule compile warnings.
versions: Python 3.7
Added file: http://bugs.python.org/file46022/timemodule.patch-1.patch

___
Python tracker 

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



[issue29020] collapse_rfc2231_value has inconsistent unquoting

2016-12-24 Thread bpoaugust

bpoaugust added the comment:

Another case is get_filename.

The second call to unquote will only change the incoming parameter if the 
original value was enclosed in <> or "". This is not a common scenario, and was 
only discovered because a mailer used the form <<>> as a boundary marker 
(yes, this is invalid). So existing tests are unlikely to notice any difference.

Note that it is wrong to unquote more times than the original value has been 
quoted. So the only possible reason for keeping unquote in the function is if 
unquote has not already been called on a quoted value. (It is not possible to 
tell from the parameter whether or not it is currently quoted).

The two sample callers are get_boundary and get_filename.
Both pass the value already unquoted.

This method should be fixed to remove the unquote calls.
If there is a caller (is there one?) that does not unquote the value first, 
then that needs to be fixed as well.

--

___
Python tracker 

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



[issue28954] Incorrect EBNF rule of keywords_arguments

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3f94e3c7dcc5 by Martin Panter in branch '3.5':
Issue #28954: Add missing comma to keyword argument syntax
https://hg.python.org/cpython/rev/3f94e3c7dcc5

New changeset ef53ef8e09e5 by Martin Panter in branch '3.6':
Issue #28954: Merge keyword argument syntax from 3.5
https://hg.python.org/cpython/rev/ef53ef8e09e5

New changeset 8e311f109b22 by Martin Panter in branch 'default':
Issue #28954: Merge keyword argument syntax from 3.6
https://hg.python.org/cpython/rev/8e311f109b22

--
nosy: +python-dev

___
Python tracker 

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



[issue22942] Language Reference - optional comma

2016-12-24 Thread Martin Panter

Martin Panter added the comment:

Issue 28978 covers the parameter list syntax (Bug 1 + plus another problem).

--
dependencies: +a redundant right  parentheses in the EBNF rules of 
parameter_list

___
Python tracker 

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



[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-24 Thread Martin Panter

Changes by Martin Panter :


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



[issue29004] binascii.crc_hqx() implements CRC-CCITT

2016-12-24 Thread Martin Panter

Martin Panter added the comment:

Thanks for the help Serhiy

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



[issue1446619] extended slice behavior inconsistent with docs

2016-12-24 Thread Martin Panter

Changes by Martin Panter :


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



[issue13886] readline-related test_builtin failure

2016-12-24 Thread Martin Panter

Martin Panter added the comment:

Hi Xavier, I was about to push input-readline.v2.patch, but I thought it might 
be good to check with you first if this causes problems with Android, based on 
my experience with Issue 28997. With the patch applied, 
test.test_builtin.PtyTests.test_input_tty_non_ascii() will call the input() 
function twice, with and without Readline enabled. It inputs non-ASCII data in 
into a pseudoterminal, and expects to see it in the function return value. 
Perhaps we may need to skip the Readline half of the test on Android.

--
nosy: +xdegaye

___
Python tracker 

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



[issue29062] hashlib documentation link error

2016-12-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +christian.heimes, georg.brandl, gregory.p.smith
title: Documentation link error -> hashlib documentation link error
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



[issue29061] secrets.randbelow(-1) hangs

2016-12-24 Thread Brendan Donegan

Brendan Donegan added the comment:

Ok, here it is. My first code patch in Python. 

Basically the existing code was depending on bit_length to DTRT and raise a 
ValueError, but negative numbers have a positive bit length. Then when it hits:

234 while r >= n:   
 
235 r = getrandbits(k)  

It just spins on that as r is always going to be greater than a negative number.

I tried not to be too clever so just put a guard early in the function. This 
has the added advantage of giving us a clearer error message.

--
keywords: +patch
Added file: http://bugs.python.org/file46021/issue_29061_randbelow.patch

___
Python tracker 

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



[issue29062] Documentation link error

2016-12-24 Thread Frank Millman

New submission from Frank Millman:

If you call up online documentation for Python3.6, and select 
modules>h>hashlib, it takes you to 15.2. hashlib — BLAKE2 hash functions

It should take you to 15.1. hashlib — Secure hashes and message digests

--
assignee: docs@python
components: Documentation
messages: 283930
nosy: docs@python, frankmillman
priority: normal
severity: normal
status: open
title: Documentation link error
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



[issue29061] secrets.randbelow(-1) hangs

2016-12-24 Thread Brendan Donegan

Brendan Donegan added the comment:

Reproducible on Linux as well, I think I know where the issue is and will try 
to submit a patch soon.

--
nosy: +brendan-donegan

___
Python tracker 

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



[issue28960] Small typo in Thread.join docs

2016-12-24 Thread Martin Panter

Martin Panter added the comment:

I agree the second patch is more correct. This undoes the change as it was 
introduced in revision c4cf1b886d6b and matches the Python 2 text.

--
nosy: +martin.panter
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue1446619] extended slice behavior inconsistent with docs

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b0b17b41edfc by Martin Panter in branch '3.5':
Issue #1446619: Account for negative slice direction in description
https://hg.python.org/cpython/rev/b0b17b41edfc

New changeset 031af2160094 by Martin Panter in branch '3.6':
Issue #1446619: Merge slicing description from 3.5
https://hg.python.org/cpython/rev/031af2160094

New changeset 4383d403aaef by Martin Panter in branch 'default':
Issue #1446619: Merge slicing description from 3.6
https://hg.python.org/cpython/rev/4383d403aaef

New changeset d63a11bd98ce by Martin Panter in branch '2.7':
Issue #1446619: Account for negative slice direction in description
https://hg.python.org/cpython/rev/d63a11bd98ce

--
nosy: +python-dev

___
Python tracker 

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



[issue28960] Small typo in Thread.join docs

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9347d0b2ee08 by Martin Panter in branch '3.5':
Issue #28960: Drop comma attached to dash in Thread.join() description
https://hg.python.org/cpython/rev/9347d0b2ee08

New changeset d70fcf1866ad by Martin Panter in branch '3.6':
Issue #28960: Merge Thread.join() doc from 3.5
https://hg.python.org/cpython/rev/d70fcf1866ad

New changeset cefcfacd87e4 by Martin Panter in branch 'default':
Issue #28960: Merge Thread.join() doc from 3.6
https://hg.python.org/cpython/rev/cefcfacd87e4

--
nosy: +python-dev

___
Python tracker 

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



[issue29004] binascii.crc_hqx() implements CRC-CCITT

2016-12-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a33472f8a2c6 by Martin Panter in branch '3.5':
Issue #29004: Document binascii.crc_hqx() implements CRC-CCITT
https://hg.python.org/cpython/rev/a33472f8a2c6

New changeset 52db2072e88b by Martin Panter in branch '3.6':
Issue #29004: Merge crc_hqx() doc from 3.5
https://hg.python.org/cpython/rev/52db2072e88b

New changeset 3af3702b2f0a by Martin Panter in branch 'default':
Issue #29004: Merge crc_hqx() doc from 3.6
https://hg.python.org/cpython/rev/3af3702b2f0a

New changeset 5ae6102270df by Martin Panter in branch '2.7':
Issue #29004: Document binascii.crc_hqx() implements CRC-CCITT
https://hg.python.org/cpython/rev/5ae6102270df

--
nosy: +python-dev

___
Python tracker 

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