[issue27172] Undeprecate inspect.getfullargspec()

2017-04-27 Thread Nick Coghlan

Nick Coghlan added the comment:

No, there are no plans to ever deprecate getfullargspec() again - it isn't hard 
to maintain indefinitely as a wrapper around inspect.Signature(), and it 
doesn't have the significant limitations that affected getargspec().

--
priority: deferred blocker -> normal
stage: needs patch -> backport needed

___
Python tracker 

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



[issue27172] Undeprecate inspect.getfullargspec()

2017-04-27 Thread Nick Coghlan

Nick Coghlan added the comment:

Also, note that the programmatic deprecation warning change in the patch is to 
the warning for `getargspec()`, so that it recommends `getfullargspec()` rather 
than `Signature()`.

There's no runtime deprecation warning for `getfullargspec()` in any version of 
Python 3.x, so projects can use it freely, regardless of target version.

--

___
Python tracker 

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



[issue21071] struct.Struct.format is bytes, but should be str

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

After changing the type of Struct.format to str we perhaps should deprecate 
accepting bytes as format. Currently this can lead to emitting a BytesWarning.

$ ./python -Wa -b
>>> import struct
>>> struct.pack('I', 12345)
b'90\x00\x00'
>>> struct.pack(b'I', 12345)
__main__:1: BytesWarning: Comparison between bytes and string
__main__:1: BytesWarning: Comparison between bytes and string
b'90\x00\x00'

--

___
Python tracker 

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



[issue30179] Update Copyright to 2017

2017-04-27 Thread Berker Peksag

Changes by Berker Peksag :


--
superseder:  -> Update Python Software Foundation Copyright Year

___
Python tracker 

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



[issue21071] struct.Struct.format is bytes, but should be str

2017-04-27 Thread Xiang Zhang

Xiang Zhang added the comment:

The warnings are possible to remove I think... but deprecate bytes arguments 
sounds good.

--

___
Python tracker 

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



[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-27 Thread Mark Dickinson

Mark Dickinson added the comment:

> It seems Python already does some exercising of these dtoa functions in its 
> test suite, but ideally you would want to check against upstream's full 
> tests, if those exist.

They barely do: Python's tests for dtoa.c are much more comprehensive than the 
upstream tests. Or at least they were at the time when I was adapting dtoa.c 
for use in Python and communicating with Gay about issues, and I doubt that 
that situation has changed.

--

___
Python tracker 

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



[issue29606] urllib FTP protocol stream injection

2017-04-27 Thread Martin Panter

Martin Panter added the comment:

Isn’t Issue 30119 a duplicate of this? In that bug Dong-hee you posted a pull 
request that changes the “ftplib” module, which makes more sense to me than 
adding a special case to “urlsplit” that understands FTP. See how this was 
addressed for HTTP in Issue 22928.

--
nosy: +martin.panter
stage:  -> patch review

___
Python tracker 

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



[issue30165] faulthandler acquires lock from signal handler, can deadlock while crashing

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

Since CPython 3 is not affected, I close this issue and move back the 
discussion on the bug tracker of the CPython 2.7 backport:
https://github.com/haypo/faulthandler/issues/29

--
resolution:  -> works for me
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-27 Thread Berker Peksag

Changes by Berker Peksag :


--
stage: patch review -> backport needed
type:  -> behavior

___
Python tracker 

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



[issue30163] argparse mx_group is required, when action value equal default will be ignore

2017-04-27 Thread Berker Peksag

Changes by Berker Peksag :


--
superseder:  -> argparse: default args in mutually exclusive groups

___
Python tracker 

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



[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

Mark Dickinson: "It would also take us even further away from the upstream 
sources, making it harder to integrate bugfixes from upstream."

We have two main options:

* Use -fno-strict-aliasing on clang (solution currently used), maybe restrict 
the option to dtoa.c
* Avoid union to avoid any risk of aliasing issue: option experimented by dim

According to Mark, rewriting the code without union is not only more risky but 
would also be a major shift from upstream. I disagree with it's so risky, there 
is a risk yes, but we can take our timeto review it and test it on many 
platforms with the Python extensive test suite. For example, the aliasing issue 
on clang 4 was catched quicky on our FreeBSD CURRENT buildbot.

But the current blocker point is upstream: Mark doesn't want diverge from 
upstream, so Mark: can you (or someone else?) please contact "Gay (or other 
maintainers)" to take a decision with him/them?

--

___
Python tracker 

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



[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang

Xiang Zhang added the comment:

Looks like perl has already encoded in this way:

[~]$ perl -e 'print pack("u","Ca\x00t")'
$0V$`=```

> Oddly, the uu.decode function does properly decode files encoded using "`", 
> but encode is unable to create them.

The decoder source code explicitly states it could resolve backtick since some 
encoders use '`' instead of space.

To maintain backwards compatibility, I think we can add a keyword-only backtick 
parameter to binascii.b2a_uu and uuencode.

--
nosy: +serhiy.storchaka, xiang.zhang

___
Python tracker 

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



[issue29606] urllib FTP protocol stream injection

2017-04-27 Thread Dong-hee Na

Dong-hee Na added the comment:

Smillar issue but this issue is about FTP protocal using by httplib. Looks 
simillar but different.

--

___
Python tracker 

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



[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-27 Thread Mark Dickinson

Mark Dickinson added the comment:

Victor: I don't think that's necessary. We simply need to add 
-fno-strict-aliasing for this file.

--

___
Python tracker 

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



[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou

New submission from Antoine Pitrou:

The forkserver intermediate process is an implementation detail.  However, if 
you Ctrl-C the main process, the forkserver process will exit with a 
KeyboardInterrupt traceback, even if the main process catches KeyboardInterrupt 
to exit silently.  This produces stderr such as:

$ ./python forkserversignal.py 
^CTraceback (most recent call last):
  File "", line 1, in 
  File "/home/antoine/cpython/default/Lib/multiprocessing/forkserver.py", line 
164, in main
rfds = [key.fileobj for (key, events) in selector.select()]
  File "/home/antoine/cpython/default/Lib/selectors.py", line 445, in select
fd_event_list = self._epoll.poll(timeout, max_ev)
KeyboardInterrupt


For the sake of usability, forkserver should probably silence those tracebacks 
by default, for example by changing the default signal handler in the 
forkserver process (but children forked by the forkserver process should 
probably get the default Python signal handlers...).

Not sure this can be considered a bugfix or an enhancement.

--
components: Library (Lib)
messages: 292420
nosy: davin, pitrou, rhettinger, sbt
priority: normal
severity: normal
stage: needs patch
status: open
title: forkserver process should silence KeyboardInterrupt
type: behavior
versions: 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



[issue29606] urllib FTP protocol stream injection

2017-04-27 Thread Dong-hee Na

Dong-hee Na added the comment:

So if you want not to add this special case for httplib and just solving this 
issue for ftplib. We could close this issue.

--

___
Python tracker 

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



[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Uploading small reproducer script.

--
Added file: http://bugs.python.org/file46832/forkserversignal.py

___
Python tracker 

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



[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

A simpler solution would actually be to catch KeyboardInterrupt inside the 
forkserver loop and exit cleanly...

--

___
Python tracker 

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



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

> HP-UX does not support the CLOCK_MONOTONIC state.

I'm sorry but CPython requires a monotonic clock since CPython 3.5.

According to https://bugreports.qt.io/browse/QTBUG-22301 HP-UX < 11.3 and 
Solaris 9 don't support monotonic clock.

It seems like gethrtime() is the right function to be used on HP-UX.
https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/gethrtime.3C.html

"gethrtime() is measured from an unspecified starting point and is not subject 
to time server and administrator changes"
src: 
http://nadeausoftware.com/articles/2012/04/c_c_tip_how_measure_elapsed_real_time_benchmarking#gethrtimenbsp

--
nosy: +haypo

___
Python tracker 

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



[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1424

___
Python tracker 

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



[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1425

___
Python tracker 

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



[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

> Does this need to be backported?

I checked: Python 3.5 and 3.6 have the bug, but Python 2.7 is not affected (it 
doesn't have the unit test which leaks resources). I created PRs.

--
versions: +Python 3.5, Python 3.6

___
Python tracker 

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



[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

> A simpler solution would actually be to catch KeyboardInterrupt inside the 
> forkserver loop and exit cleanly...

I'm not sure that we always want to exit on CTRL-c. But I agree that the 
forkserver has to handle CTRL-c. Maybe ignore it, but be killed when its master 
gets a CTRL-c?

--
nosy: +haypo

___
Python tracker 

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



[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> I'm not sure that we always want to exit on CTRL-c.

That's what the forkserver does right now, it's just that it does it with a 
traceback that's useless to the user.

> Maybe ignore it, but be killed when its master gets a CTRL-c?

That's a possibility (the forkserver should already exit automatically when its 
parent dies), the problem is what to do for the forkserver's children?  Should 
they restore the default signal handler?

Simply silencing the KeyboardInterrupt traceback at least is a straightforward 
solution with little risk of side effects.

--

___
Python tracker 

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



[issue30181] Incorrect parsing of test case docstring

2017-04-27 Thread R. David Murray

R. David Murray added the comment:

Considering that in the cpython test suite we avoid using docstrings in 
unittests because of this "feature" of unittest, I doubt anyone on the core 
team is going to be motivated to fix this :)  That doesn't mean we won't accept 
a PR, but if we do we would only put it in 3.7 because it is a visible behavior 
change, and there are tools that parse unittest output.

--
nosy: +r.david.murray
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-27 Thread Cheryl Sabella

Cheryl Sabella added the comment:

FYI.

When I tested this change locally, I needed to do a 'make clean' then a 'make 
html' for all the pages to relink to the stdtypes page for :class:`bytes`.  I 
had asked on the IRC channel about that and thought maybe the merge into the 
master would do that automatically, but checking some of the links (like on the 
urllib.parse page), it didn't update them.

--

___
Python tracker 

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



[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-27 Thread Martin Panter

Martin Panter added the comment:

The “Proper adherence” sentence has always bothered me. Why does “wfile” have 
to adhere, but not other other APIs (rfile, send_header, etc)? I wonder if the 
sentence is useful at all. (Of course you have to use HTTP to operate with HTTP 
clients.)

Perhaps it was intended to say that socket-level HTTP is written to wfile, that 
it is up to the caller to ensure the encoding, content length, etc is 
consistent with the HTTP header, and/or the caller has to supply the header 
(either direct through wfile or via send_header etc). A plausable alternative 
would be a higher-level file object like the request body in “http.client”, 
where encoding and content length is handled by the library.

--
nosy: +martin.panter

___
Python tracker 

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread Sebastian Ernst

New submission from Sebastian Ernst:

I am investigating a bug in Wine:
https://bugs.winehq.org/show_bug.cgi?id=42474

The Python 3.6(.1) interpreter fails to start on Wine because of an 
unimplemented function in Wine: 
"api-ms-win-core-path-l1-1-0.dll.PathCchCombineEx". 

While the missing function is clearly a problem in Wine, the fact that 
PathCchCombineEx is called in the first place is somewhat odd. The call was 
added to Python 3.6 on 09 Sep 2016 by Steve Dower of Microsoft:
https://hg.python.org/cpython/rev/03517dd54977
Logically, Python 3.5.x and prior do not require this call and work flawlessly 
under Wine. 

Digging deeper into this, I found that PathCchCombineEx was introduced in 
Windows 8:
https://msdn.microsoft.com/en-us/library/windows/desktop/hh707086(v=vs.85).aspx

However, the following page states, that the current version of Python (3.6) 
should support Windows Vista and 7:
https://docs.python.org/3/using/windows.html

I am seeking clarification on why PathCchCombineEx is called during the Python 
interpreter startup although Wine pretends to be Windows 7 and although Python 
should support Windows Vista & 7. My thinking is that this call might also 
happen on an actual Windows 7 system under some circumstances and break Python 
there as well, which would make it a bug in Python.

--
components: Interpreter Core, Windows
messages: 292430
nosy: paul.moore, smernst, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and 
above only
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



[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
pull_requests: +1426

___
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

2017-04-27 Thread Berker Peksag

Berker Peksag added the comment:


New changeset e65fcde85abf6617508f2d6b77020e24b8ca6f6b by Berker Peksag (Marco 
Buttu) in branch 'master':
bpo-27200: Fix several doctests (GH-604)
https://github.com/python/cpython/commit/e65fcde85abf6617508f2d6b77020e24b8ca6f6b


--

___
Python tracker 

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



[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-27 Thread R. David Murray

R. David Murray added the comment:

My impression is that the sentence is there because you are acting directly on 
the raw byte stream, which you are not in the other cases.  (Well, rfile, but 
that's reading, so what you do there doesn't affect the wire protocol you send).

--

___
Python tracker 

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



[issue30157] csv.Sniffer.sniff() regex error

2017-04-27 Thread Jake Davis

Jake Davis added the comment:

I've added some unittests for Sniffer._guess_quote_and_delimiter(); they should 
prevent regression.

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

RemoteIMAP_SSLTest uses cyrus.andrew.cmu.edu server with the port 993.

Would it be possible to setup an IMAP server on pythontest.net instead of using 
a server of an university? http://www.cmu.edu/

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

https://travis-ci.org/python/cpython/jobs/226357867

Oh, the test started to fail on Travis CI as well:

==

ERROR: test_logincapa_with_client_certfile 
(test.test_imaplib.RemoteIMAP_SSLTest)

--

Traceback (most recent call last):

  File "/home/travis/build/python/cpython/Lib/test/test_imaplib.py", line 973, 
in test_logincapa_with_client_certfile

certfile=CERTFILE)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 1280, in 
__init__

IMAP4.__init__(self, host, port)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 197, in __init__

self.open(host, port)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 1293, in open

IMAP4.open(self, host, port)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 294, in open

self.sock = self._create_socket()

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 1285, in 
_create_socket

server_hostname=self.host)

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 401, in wrap_socket

_context=self, _session=session)

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 808, in __init__

self.do_handshake()

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 1061, in 
do_handshake

self._sslobj.do_handshake()

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 683, in do_handshake

self._sslobj.do_handshake()

ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:749)

==

ERROR: test_logincapa_with_client_ssl_context 
(test.test_imaplib.RemoteIMAP_SSLTest)

--

Traceback (most recent call last):

  File "/home/travis/build/python/cpython/Lib/test/test_imaplib.py", line 979, 
in test_logincapa_with_client_ssl_context

self.host, self.port, ssl_context=self.create_ssl_context())

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 1280, in 
__init__

IMAP4.__init__(self, host, port)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 197, in __init__

self.open(host, port)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 1293, in open

IMAP4.open(self, host, port)

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 294, in open

self.sock = self._create_socket()

  File "/home/travis/build/python/cpython/Lib/imaplib.py", line 1285, in 
_create_socket

server_hostname=self.host)

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 401, in wrap_socket

_context=self, _session=session)

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 808, in __init__

self.do_handshake()

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 1061, in 
do_handshake

self._sslobj.do_handshake()

  File "/home/travis/build/python/cpython/Lib/ssl.py", line 683, in do_handshake

self._sslobj.do_handshake()

ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:749)

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

haypo@selma$ openssl s_client -connect cyrus.andrew.cmu.edu:993
CONNECTED(0003)
depth=3 C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = 
AddTrust External CA Root
verify return:1
depth=2 C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN 
= COMODO RSA Certification Authority
verify return:1
depth=1 C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN 
= COMODO RSA Organization Validation Secure Server CA
verify return:1
depth=0 C = US, postalCode = 15213, ST = PA, L = Pittsburgh, street = 5000 
Forbes, O = Carnegie Mellon University, OU = Carnegie Mellon University, OU = 
Multi-Domain SSL, CN = cyrus.andrew.cmu.edu
verify return:1
---
Certificate chain
 0 s:/C=US/postalCode=15213/ST=PA/L=Pittsburgh/street=5000 Forbes/O=Carnegie 
Mellon University/OU=Carnegie Mellon University/OU=Multi-Domain 
SSL/CN=cyrus.andrew.cmu.edu
   i:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Organization Validation Secure Server CA
 1 s:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Organization Validation Secure Server CA
   i:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Certification Authority
 2 s:/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Certification Authority
   i:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External 
CA Root
 3 s:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External 
CA Root
   i:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External 
CA Root
---
Server certificate
-BEGIN CERTIFICATE-
MIIF2zCCBMOgAwIBAgIQTkDJp5DZKOpt6Vy2UaZ24DANBgkqhkiG9w0BAQsFADCB
ljELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPDA6BgNV
BAMTM0NPTU9ETyBSU0EgT3JnYW5pemF0aW9uIFZhbGlkYXRpb24gU2VjdXJlIFNl
cnZlciBDQTAeFw0xNzA0MjQwMDAwMDBaFw0yMDA0MjMyMzU5NTlaMIHZMQswCQYD
VQQGEwJVUzEOMAwGA1UEERMFMTUyMTMxCzAJBgNVBAgTAlBBMRMwEQYDVQQHEwpQ
aXR0c2J1cmdoMRQwEgYDVQQJEws1MDAwIEZvcmJlczEjMCEGA1UEChMaQ2FybmVn
aWUgTWVsbG9uIFVuaXZlcnNpdHkxIzAhBgNVBAsTGkNhcm5lZ2llIE1lbGxvbiBV
bml2ZXJzaXR5MRkwFwYDVQQLExBNdWx0aS1Eb21haW4gU1NMMR0wGwYDVQQDExRj
eXJ1cy5hbmRyZXcuY211LmVkdTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBAM0VgQbuCBrfWJ0B6YB+TrCD2KDSeOmRyKJkFB+T0fKK658pBNlAxS8i98QC
7tOApMdGXw3OJaiCIoUq6QMyXC1SnnEITi5m1qORLlwu3+FG6548FHonAyMydU/i
JBHs4goA7Cy3QUxMPe+ZZTkWr+lQpElukYqmDao/x4ZERz8mZPI/zPzlNALv3TF1
lcpQUHuI5Kw2G0hymANJY3W0hU8JwOBRAjO4em+XVNKXJD4seYGHp+7YZP40Xua/
YrRSwokUqVy/Y3+ytLH6Amnp3zJKpgFM/XSGy3KcuQCwEa86H/DVj/dN710KOpW5
S1Szza4b+gaCb+BKi2u9bFYB0PcCAwEAAaOCAd4wggHaMB8GA1UdIwQYMBaAFJrz
K9rPrU+2L7sqSEgqErcbQsEkMB0GA1UdDgQWBBR/3PPQ2+NzaAVGAghMELRikx4Q
hTAOBgNVHQ8BAf8EBAMCBaAwDAYDVR0TAQH/BAIwADAdBgNVHSUEFjAUBggrBgEF
BQcDAQYIKwYBBQUHAwIwUAYDVR0gBEkwRzA7BgwrBgEEAbIxAQIBAwQwKzApBggr
BgEFBQcCARYdaHR0cHM6Ly9zZWN1cmUuY29tb2RvLmNvbS9DUFMwCAYGZ4EMAQIC
MFoGA1UdHwRTMFEwT6BNoEuGSWh0dHA6Ly9jcmwuY29tb2RvY2EuY29tL0NPTU9E
T1JTQU9yZ2FuaXphdGlvblZhbGlkYXRpb25TZWN1cmVTZXJ2ZXJDQS5jcmwwgYsG
CCsGAQUFBwEBBH8wfTBVBggrBgEFBQcwAoZJaHR0cDovL2NydC5jb21vZG9jYS5j
b20vQ09NT0RPUlNBT3JnYW5pemF0aW9uVmFsaWRhdGlvblNlY3VyZVNlcnZlckNB
LmNydDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuY29tb2RvY2EuY29tMB8GA1Ud
EQQYMBaCFGN5cnVzLmFuZHJldy5jbXUuZWR1MA0GCSqGSIb3DQEBCwUAA4IBAQCf
1U2esEfk12MXwrYYvWI0QJSnMvYG9qu8nVDHwoSGsivr4GoBf5cFhtF6gGGERD2x
8kvCuXbkCtf3nWNffUhs7OXzMapA8eOJr7VtmwQraYaDpFCTZpj2X8rpdyhjIBCb
V1VXdxS56TKiQKN72JmdB+e06+w49ym0WMzBjPxZGncogNA0mvKaquiFWe0j0ZT9
rqfuIIon2P3cg+jZctytejVoMFOLkTxSslxjNDNjDvJ4zQnuH6zuhP/1vkpNGSp3
+J8xSw1ubLU7pN/Kv8tR9KsJcRafFC0iryipaah2zib27zaRgO25eq5/dKqRUa96
77xcSeTyQ/2hwVFLrJjW
-END CERTIFICATE-
subject=/C=US/postalCode=15213/ST=PA/L=Pittsburgh/street=5000 Forbes/O=Carnegie 
Mellon University/OU=Carnegie Mellon University/OU=Multi-Domain 
SSL/CN=cyrus.andrew.cmu.edu
issuer=/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Organization Validation Secure Server CA
---
Acceptable client certificate CA names
/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA 
Root
/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Certification Authority
/C=GB/ST=Greater Manchester/L=Salford/O=COMODO CA Limited/CN=COMODO RSA 
Organization Validation Secure Server CA
Client Certificate Types: RSA sign, DSA sign, ECDSA sign
Requested Signature Algorithms: 
RSA+SHA512:DSA+SHA512:ECDSA+SHA512:RSA+SHA384:DSA+SHA384:ECDSA+SHA384:RSA+SHA256:DSA+SHA256:ECDSA+SHA256:RSA+SHA224:DSA+SHA224:ECDSA+SHA224:RSA+SHA1:DSA+SHA1:ECDSA+SHA1
Shared Requested Signature Algorithms: 
RSA+SHA512:DSA+SHA512:ECDSA+SHA512:RSA+SHA384:DSA+SHA384:ECDSA+SHA384:RSA+SHA256:DSA+SHA256:ECDSA+SHA256:RSA+SHA224:DSA+SHA224:ECDSA+SHA224:RSA+SHA1:DSA+SHA1:ECDSA+SHA1
Peer signing digest: SHA512
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 6657 bytes and written 339 bytes
---
New, TLSv1/SSLv3, C

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-04-27 Thread David Haney

David Haney added the comment:

> It seems like gethrtime() is the right function to be used on HP-UX.
> https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/gethrtime.3C.html

Thanks, I'll work on getting a patch that leverages gethrtime() tested and 
submitted for review.

--

___
Python tracker 

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



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

I'm quite sure that once I wrote a patch using gethrtime() for Solaris, but 
then I saw that it's the same clock than clock_gettime(CLOCK_MONOTONIC), so I 
removed gethrtime() to simplify the code.

See also my PEP 418, which mentions gethrtime() by the way:
https://www.python.org/dev/peps/pep-0418/#solaris-gethrtime

--

___
Python tracker 

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



[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-27 Thread Nick Coghlan

Nick Coghlan added the comment:

Indeed, checking the dev build at 
https://docs.python.org/dev/library/urllib.parse.html#url-quoting shows it 
still linking to the old location.

Perhaps the `autobuild-dev-html` target in the Makefile should be adding `-E` 
and `-a` so it always regenerates everything, rather than re-using the 
potentially stale cached info from the previous day?

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

"tlsv1 alert unknown ca" means our client certificate isn't accepted by the 
server.  I suggest simply skipping the test, unless we find a remote IMAP 
server that accepts random TLS certs.

https://serverfault.com/questions/793260/what-does-tlsv1-alert-unknown-ca-mean

--
nosy: +christian.heimes, pitrou
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.5, Python 3.6

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

> "tlsv1 alert unknown ca" means our client certificate isn't accepted by the 
> server.  I suggest simply skipping the test, unless we find a remote IMAP 
> server that accepts random TLS certs.

Wait, the test tries to connect to a public IMAP server using a x509 client 
certificate? Wow, I'm surprised that it works sometimes :-)

In RemoteIMAP_SSLTest, I see 3 unit tests which use create_ssl_context(), the 
method which loads the client certificate, but I only see 2 failures, not 3. 
Should I understand that sometimes the TLS connection succeeded, but sometimes 
it fails, on the same server? Strange :-)

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

test_logincapa_with_client_certfile and test_logincapa_with_client_ssl_context 
both fail accordingly.

test_ssl_context_certfile_exclusive and test_ssl_context_keyfile_exclusive 
raise another error (ValueError) and succeed expectedly.

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

>  I suggest simply skipping the test, unless we find a remote IMAP server that 
> accepts random TLS certs.

I tried "imap.gmail.com" server: first, it fails with:

imaplib.IMAP4.error: b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'

And then:

imaplib.IMAP4.error: b'[ALERT] Web login required: 
https://support.google.com/mail/answer/78754 (Failure)'

Well, I don't see why an IMAP server would accept our client cert?

Lib/test/keycert3.pem was added by the commit 
58ddc9d743d09ee93d5cf46a4de62eab30dad79d (made by Antoine Pitrou): the 
certificated was *generated* randomly by Lib/test/make_ssl_certs.py (also added 
by the same commit).

RemoteIMAP_SSLTest was added by commit b1436f185dac249f0f6dc342b2a543ae2d1db63d 
(Antoine Pitrou) in 2010 with the server: cyrus.andrew.cmu.edu.

So since 2010 until a few days ago, cyrus.andrew.cmu.edu accepted random client 
certificate, but now the server started to fail... as expected?

--

___
Python tracker 

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



[issue30187] Regex becomes invalid in python 3.6

2017-04-27 Thread Chris Seto

New submission from Chris Seto:

Expected behavior:
~ ❯❯❯ pyenv shell 3.5.2
~ ❯❯❯ python --version
Python 3.5.2
~ ❯❯❯ python
Python 3.5.2 (default, Oct 24 2016, 00:12:20)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile('[^\B]')
re.compile('[^\\B]')
>>> re.compile(r'[^\B]')
re.compile('[^\\B]')

Actual:
~ ❯❯❯ pyenv shell 3.6.0
~ ❯❯❯ python --version
Python 3.6.0
~ ❯❯❯ python
Python 3.6.0 (default, Apr 26 2017, 17:24:07)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile('[^\B]')
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/re.py", line 233, 
in compile
return _compile(pattern, flags)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/re.py", line 301, 
in _compile
p = sre_compile.compile(pattern, flags)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_compile.py", 
line 562, in compile
p = sre_parse.parse(p, flags)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 856, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, False)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 415, in _parse_sub
itemsappend(_parse(source, state, verbose))
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 526, in _parse
code1 = _class_escape(source, this)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 336, in _class_escape
raise source.error('bad escape %s' % escape, len(escape))
sre_constants.error: bad escape \B at position 2

>>> re.compile(r'[^\B]')
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/re.py", line 233, 
in compile
return _compile(pattern, flags)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/re.py", line 301, 
in _compile
p = sre_compile.compile(pattern, flags)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_compile.py", 
line 562, in compile
p = sre_parse.parse(p, flags)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 856, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, False)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 415, in _parse_sub
itemsappend(_parse(source, state, verbose))
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 526, in _parse
code1 = _class_escape(source, this)
  File "/Users/chrisseto/.pyenv/versions/3.6.0/lib/python3.6/sre_parse.py", 
line 336, in _class_escape
raise source.error('bad escape %s' % escape, len(escape))
sre_constants.error: bad escape \B at position 2

--
components: Regular Expressions
messages: 292445
nosy: Chris Seto2, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Regex becomes invalid in python 3.6
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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1428

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

I proposed a quick fix to repair our development process (CI) and buildbots, 
skip the two failing files:
https://github.com/python/cpython/pull/1320/

I would give our more time to decide what to do:

* contact cyrus.andrew.cmu.edu sysadmin to ask him/her to accept our client 
cert or revert their IMAP config :-)
* setup a new IMAP server accepts this client cert on pythontest.net
* mock a IMAP server in test_imaplib: mock everything (no network), or "real" 
TCP server doing the TLS handshake? Mock everything doens't make sense for a 
unit test designed to use "remote" resources?

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread R. David Murray

R. David Murray added the comment:

Setting up an imap server on pythontest is the "right" answer.  Somebody has to 
do the work, though :)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-04-27 Thread Dong-hee Na

Changes by Dong-hee Na :


--
pull_requests: +1429

___
Python tracker 

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



[issue30187] Regex becomes invalid in python 3.6

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is ambiguous syntax. Unknown escapes consisting of '\' and ASCII letter 
were deprecated in 3.5 (run the interpreter with the option -Wa to see all 
warnings) and are errors since 3.6. Note that the string literal '[^\B]' itself 
produces a DeprecationWarning in 3.6.

--
nosy: +serhiy.storchaka
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



[issue30187] Regex becomes invalid in python 3.6

2017-04-27 Thread Chris Seto

Chris Seto added the comment:

Thank you for pointing that out to me!

--

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

New submission from STINNER Victor:

Example of failure:

==
ERROR: setUpClass (test.test_nntplib.NetworkedNNTPTests)
--
Traceback (most recent call last):
  File "/home/haypo/prog/python/master/Lib/test/test_nntplib.py", line 289, in 
setUpClass
cls.server = cls.NNTP_CLASS(cls.NNTP_HOST, timeout=TIMEOUT, usenetrc=False)
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 1048, in __init__
readermode, timeout)
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 330, in __init__
self.welcome = self._getresp()
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 449, in _getresp
resp = self._getline()
  File "/home/haypo/prog/python/master/Lib/nntplib.py", line 437, in _getline
if not line: raise EOFError
EOFError

--

Attached PR catch this error and skips the test.

See also issue #19613 and #19756.

--
components: Tests
messages: 292450
nosy: haypo
priority: normal
severity: normal
status: open
title: test_nntplib: random EOFError in setUpClass()
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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1430

___
Python tracker 

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



[issue19756] test_nntplib: sporadic failures, network isses? server down?

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

> ERROR: setUpClass (test.test_nntplib.NetworkedNNTP_SSLTests)

I wrote an obvious fix for this one: issue #30188.

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1431

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 5bccca58b9b2b3a925b16750bedbd907695ea8d7 by Victor Stinner in 
branch 'master':
bpo-30175: Skip client cert tests of test_imaplib (#1320)
https://github.com/python/cpython/commit/5bccca58b9b2b3a925b16750bedbd907695ea8d7


--

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 5bccca58b9b2b3a925b16750bedbd907695ea8d7 by Victor Stinner in 
branch 'master':
bpo-30175: Skip client cert tests of test_imaplib (#1320)
https://github.com/python/cpython/commit/5bccca58b9b2b3a925b16750bedbd907695ea8d7


--

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

NetworkedNNTPTests uses the NNTP server news.trigofacile.com (port 119). It's 
possible to connect to this server (IPv4: 91.121.26.68), but recv() returns an 
empty string.

--

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

I see 3 options:

* Contact news.trigofacile.com administrator to ask him to repair the NNTP 
server
* Run a NNTP server on pythontest.net
* Mock the server: see http://bugs.python.org/issue19756#msg268841

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1432

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1434

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

The news.trigofacile.com server was chosen in the commit 
1cb121eceae698b1be0b383de5d42dc9b9accd02 (Antoine Pitrou in 2010) which also 
added the new NetworkedNNTPTests test case.

--
nosy: +pitrou

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1435

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1433

___
Python tracker 

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



[issue30140] Binary arithmetic does not always call subclasses first

2017-04-27 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1436

___
Python tracker 

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



[issue30152] Reduce the number of imports for argparse

2017-04-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I'd like to vote for a lazy import system that would benefit everyone (many 
third-party packages are also affected by startup time issues), but I've seen 
enough handwaving about it along the years that I'm not really hoping any soon. 
 My own limited attempts at writing one have failed miserably.

In other words, I think Serhiy's proposal is a good concrete improvement over 
the statu quo.

--
nosy: +pitrou

___
Python tracker 

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



[issue30174] Duplicate code in pickletools.py

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 5a4e3d8f9c37e700402b23fafbfc413e5ca3113d by Serhiy Storchaka 
(Jelle Zijlstra) in branch 'master':
bpo-30174: Remove duplicate definition from pickletools (#1301)
https://github.com/python/cpython/commit/5a4e3d8f9c37e700402b23fafbfc413e5ca3113d


--

___
Python tracker 

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



[issue30174] Duplicate code in pickletools.py

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for catching this Jelle!

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



[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang

Changes by Xiang Zhang :


--
pull_requests: +1437

___
Python tracker 

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



[issue30140] Binary arithmetic does not always call subclasses first

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

binary_op1() is wrong place for fixing this issue. You need to change 
SLOT1BINFULL in Objects/typeobject.c.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue27593] Deprecate sys._mercurial and create sys._git

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1438

___
Python tracker 

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



[issue27593] Deprecate sys._mercurial and create sys._git

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

Ned Deily: "I'll be doing backports to 2.7 for this and some other things 
shortly."

It seems like Ned was busy or forgot 2.7, so I wrote a change: 
https://github.com/python/cpython/pull/1327

My change doesn't touch platform.py. platform._sys_version() uses 
sys.subversion but not sys._hg. If someone wants to enhance the platform module 
of Python 2.7, I suggest to open a new issue. There is a non-zero risk of 
breaking the backward compatibility, so I skipped my turn for that one :-)

--

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 4dc3b9cf2a868a8378ecbc2221a15e7b59e8e944 by Victor Stinner in 
branch '3.6':
bpo-30175: Skip client cert tests of test_imaplib (#1320) (#1323)
https://github.com/python/cpython/commit/4dc3b9cf2a868a8378ecbc2221a15e7b59e8e944


--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 4dc3b9cf2a868a8378ecbc2221a15e7b59e8e944 by Victor Stinner in 
branch '3.6':
bpo-30175: Skip client cert tests of test_imaplib (#1320) (#1323)
https://github.com/python/cpython/commit/4dc3b9cf2a868a8378ecbc2221a15e7b59e8e944


--

___
Python tracker 

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



[issue30103] uu package uses old encoding

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is there any standard?

>From Wikipedia [1]:

"""
Note that 96 ("`" grave accent) is a character that is seen in uuencoded files 
but is typically only used to signify a 0-length line, usually at the end of a 
file. It will never naturally occur in the actual converted data since it is 
outside the range of 32 to 95. The sole exception to this is that some 
uuencoding programs use the grave accent to signify padding bytes instead of a 
space. However, the character used for the padding byte is not standardized, so 
either is a possibility.
"""

This obviously makes impossible using "`" as zero instead of space.

[1] https://en.wikipedia.org/wiki/Uuencoding#Uuencode_table

--

___
Python tracker 

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



[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang

Xiang Zhang added the comment:

There seems no standard. I also read the wikipedia but for perl and uuencode on 
my Linux, they now all use backticks to represent zero instead of spaces.

[~]$ perl -e 'print pack("u","Ca\x00t")'
$0V$`=```
[~]$ cat /tmp/test
Ca[~]$ uuencode /tmp/test -
begin 664 -
"0V$`
`
end

while Python now:

>>> import uu
>>> uu.encode('/tmp/test', '-')
begin 664 test
"0V$ 
 
end

Except the link Kyle gives, the manpage of FreeBSD describes the new algorithm: 
http://www.unix.com/man-page/freebsd/5/uuencode/

I don't propose to change current behaviour to break backwards compatibility. 
But I think it's reasonable to provide a way to allow users to use backticks.

--

___
Python tracker 

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



[issue30103] uu package uses old encoding

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What about other popular languages? Java, PHP, Ruby, Tcl, C#, JavaScript, 
Swift, Go, Rust? Do any languages provide a way for configuring zero character 
and what are the names of the options? Are there languages that use "`" instead 
of a space only for padding, but not for representing an ordinal zero?

--

___
Python tracker 

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



[issue30146] Difference in behavior between set() and collections.abc.MutableSet() derived objects

2017-04-27 Thread Horacio Hoyos

Horacio Hoyos added the comment:

Although I agree that some design decisions forge a language and sometimes 
these historical developments win over sounder or more "logical" arguments.

That being said, I believe (as the OP of issue 8743) that the ABC collections 
should comply to the API of the Python base collections. In that sense, I would 
expect any custom collection implemented by extending the ABC collections to be 
used in place of an exiting base one, without any "hiccups". Thus, the custom 
collection should pass all the tests in the Lib/tests.

Of course, for the moment, this would just require extra work on my part in 
order to implement all the magic methods and such.

If history is to win again, then at least the documentation of the ABC  
collections should clearly state the subtle, but IMHO important, differences 
between the two.

--

___
Python tracker 

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



[issue30189] SSL match_hostname does not accept IP Address

2017-04-27 Thread Mario Viapiano

New submission from Mario Viapiano:

I need this patch to be available in python 2.7.13
https://bugs.python.org/issue23239

--
components: Extension Modules
messages: 292468
nosy: emeve89
priority: normal
severity: normal
status: open
title: SSL match_hostname does not accept IP Address
type: enhancement
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



[issue30189] SSL match_hostname does not accept IP Address

2017-04-27 Thread Christian Heimes

Christian Heimes added the comment:

In general we don't backport features. 
https://www.python.org/dev/peps/pep-0466/ allows backports of network security 
enhancements. However IP address validation is not a security enhancement. You 
can either update to a new version of Python or role your own verification code.

--
nosy: +christian.heimes
resolution:  -> wont fix
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



[issue27869] test failures under Bash on Windows / WSL

2017-04-27 Thread Brett Cannon

Brett Cannon added the comment:

Under Creators Update with a clean Ubuntu 16.04 image and only installing clang 
and make, I built with `CC=clang ./configure; make -s -j` and ran with 
`./python -m test -j0 -x test_socket` (test_socket hung in a previous run; I 
let it run for 10 minutes previously):

348 tests OK.

19 tests failed:
test_asyncio test_asyncore test_epoll test_fcntl test_ftplib
test_httpservers test_import test_mmap test_multiprocessing_fork
test_multiprocessing_forkserver test_multiprocessing_spawn test_os
test_posix test_resource test_selectors test_signal
test_subprocess test_time test_unicode_file

36 tests skipped:
test_bz2 test_crypt test_ctypes test_curses test_dbm_gnu
test_dbm_ndbm test_devpoll test_gdb test_gzip test_idle
test_kqueue test_lzma test_msilib test_nis test_ossaudiodev
test_readline test_smtpnet test_socketserver test_sqlite test_ssl
test_startfile test_tcl test_timeout test_tix test_tk
test_ttk_guionly test_ttk_textonly test_turtle test_urllib2net
test_urllibnet test_winconsoleio test_winreg test_winsound
test_xmlrpc_net test_zipfile64 test_zlib

Total duration: 3 min 56 sec
Tests result: FAILURE

--

___
Python tracker 

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread Eryk Sun

Eryk Sun added the comment:

PathCchCombineEx isn't an import dependency. It's used dynamically via 
LoadLibraryW and GetProcAddress, with a fallback to PathCombineW. Does Wine 
maybe have a stub for this function that returns E_NOTIMPL (not implemented)?

--
nosy: +eryksun

___
Python tracker 

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



[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 0eda2d43a7d5b262c979b944592999015a822395 by Victor Stinner in 
branch '3.5':
bpo-30175: Skip client cert tests of test_imaplib (#1320) (#1324)
https://github.com/python/cpython/commit/0eda2d43a7d5b262c979b944592999015a822395


--

___
Python tracker 

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread Sebastian Ernst

Sebastian Ernst added the comment:

Relaying this on behalf of Gijs Vermeulen from Wine: "In my patch I tried 
returning E_NOTIMPL and I got the error: Fatal Python error: buffer overflow in 
getpathp.c's join()"

--

___
Python tracker 

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



[issue30175] Random test_imaplib.test_logincapa_with_client_certfile failure on x86 Gentoo Installed with X 3.x

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset 0eda2d43a7d5b262c979b944592999015a822395 by Victor Stinner in 
branch '3.5':
bpo-30175: Skip client cert tests of test_imaplib (#1320) (#1324)
https://github.com/python/cpython/commit/0eda2d43a7d5b262c979b944592999015a822395


--

___
Python tracker 

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



[issue30146] Difference in behavior between set() and collections.abc.MutableSet() derived objects

2017-04-27 Thread R. David Murray

R. David Murray added the comment:

For backward compatibility reasons, history will win.  

I'm not sure if documenting the additional restrictions of the concrete stdlib 
types in the ABC docs makes sense, either, since the ABCs are intentionally the 
minimal requirements for a concrete type to conform to the ABC.  The concrete 
ABC methods are really examples, even though they are also widely useful (and 
widely used).

--

___
Python tracker 

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



[issue30146] Difference in behavior between set() and collections.abc.MutableSet() derived objects

2017-04-27 Thread R. David Murray

R. David Murray added the comment:

I suppose someone could propose a set of tests that an implementation of an ABC 
type should pass, to complement the stdlib type tests.  There would probably be 
a lot of bikeshedding involved in such tests though, so I don't hold out great 
hope anything would ever get accepted for merge :)

--

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual should show the difference

2017-04-27 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola':

When comparing 2 numbers as "self.assertAlmostEqual(a, b, delta=1000)" the 
error message looks like this:

AssertionError: 27332885 != 27391120 within 1000 delta

Especially when a and b are big numbers or differ a lot, it would be useful to 
see the absolute difference between the 2 numbers as in:

AssertionError: 27332885 != 27391120 within 1000 delta (58235 difference)

--
messages: 292477
nosy: giampaolo.rodola
priority: normal
severity: normal
stage: needs patch
status: open
title: unittest's assertAlmostEqual should show the difference
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



[issue30190] unittest's assertAlmostEqual should show the difference

2017-04-27 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +ezio.melotti, michael.foord, rbcollins

___
Python tracker 

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread Eryk Sun

Eryk Sun added the comment:

I didn't mean that there's support to fall back on PathCombineW if 
PathCchCombineEx returns E_NOTIMPL. I was just guessing at what the stub in 
Wine might be doing. I took a look at the source. It seems the Wine stub 
function for unimplemented functions is __wine_spec_unimplemented_stub in 
dlls/winecrt0/stub.c, which calls RaiseException. 

I think this issue should be closed as 3rd party since I don't see anything 
wrong with Steve's code, but I'll leave it open for Steve to make that decision.

--

___
Python tracker 

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



[issue30191] >

2017-04-27 Thread Sogand Ka

New submission from Sogand Ka:

I am using COM in python 2.7 (win32com) and here is my problem:

>>> Vissim

>>> Vissim.Net
>

why is it unknown? 
Also, I have to type everything in shell, since it does not show me the 
keywords. Would be great to see any helpful suggestion.

--
components: Interpreter Core
messages: 292479
nosy: Sogand Ka
priority: normal
severity: normal
status: open
title: >
type: performance
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



[issue30191] >

2017-04-27 Thread Eryk Sun

Eryk Sun added the comment:

This issue tracker is only for CPython. win32com is part of PyWin32, which is 
an independent project that's hosted at the following SourceForge site:

https://sourceforge.net/projects/pywin32

I suggest that you ask for help on the python-win32 list:

https://mail.python.org/mailman/listinfo/python-win32

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread R. David Murray

R. David Murray added the comment:

Indeed, it sounds like wine is claiming to be Windows 7 but then implementing 
(as not implemented) later-than-windows-7 apis.  That definitely sounds like a 
bug in wine.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual should show the difference

2017-04-27 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
pull_requests: +1439

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual should show the difference

2017-04-27 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

PR: https://github.com/python/cpython/pull/1331/

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue30190] unittest's assertAlmostEqual improved error message

2017-04-27 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
title: unittest's assertAlmostEqual should show the difference -> unittest's 
assertAlmostEqual improved error message

___
Python tracker 

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread Steve Dower

Steve Dower added the comment:

The approach I used is the correct way to use the function if it's available. 
If Wine is not supporting this function, it should return NULL from 
GetProcAddress, not a stub. If the function exists, any error it returns is 
fatal.

We need the better function for Win10 in order to support paths longer than 260 
characters. PathcombineW fails on long paths.

--

___
Python tracker 

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



[issue30186] Python interpreter calling "PathCchCombineEx" on startup, Windows 8 and above only

2017-04-27 Thread Steve Dower

Changes by Steve Dower :


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



[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-27 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I don't think it would add a lot of time or processing to rebuild it daily, 
would it?  Seems safer than not doing it.

--

___
Python tracker 

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



[issue30192] hashlib module breaks with 64-bit kernel and 32-bit user space

2017-04-27 Thread Neil Schemenauer

New submission from Neil Schemenauer:

The test in setup.py to check for SSE2 support is incorrect.  Checking that 
arch == x86_64 is not sufficient.  If the kernel is 64-bit but Python is 
compiled with a 32-bit compiler, the _blake2 module will fail to build.

The attached patch fixes this issue. I did a quick search of the x86_64 string, 
I don't see this mistake being made elsewhere but I imagine it could be done 
elsewhere.  Obviously a machine with a 64-bit kernel and 32-bit userspace is a 
rare as hen's teeth these days.  Still, I think it is worth fixing this bug.

Python 3.6.1 (default, Apr 27 2017, 20:09:03) 
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
ERROR:root:code for hash blake2b was not found.
Traceback (most recent call last):
  File "/home/nas/PPython-3.6.1/Lib/hashlib.py", line 243, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/nas/PPython-3.6.1/Lib/hashlib.py", line 119, in 
__get_openssl_constructor
return __get_builtin_constructor(name)
  File "/home/nas/PPython-3.6.1/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type blake2b
ERROR:root:code for hash blake2s was not found.
Traceback (most recent call last):
  File "/home/nas/PPython-3.6.1/Lib/hashlib.py", line 243, in 
globals()[__func_name] = __get_hash(__func_name)
  File "/home/nas/PPython-3.6.1/Lib/hashlib.py", line 119, in 
__get_openssl_constructor
return __get_builtin_constructor(name)
  File "/home/nas/PPython-3.6.1/Lib/hashlib.py", line 113, in 
__get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type blake2s

--
components: Build
messages: 292485
nosy: nascheme
priority: normal
severity: normal
stage: patch review
status: open
title: hashlib module breaks with 64-bit kernel and 32-bit user space
type: compile error
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



[issue30192] hashlib module breaks with 64-bit kernel and 32-bit user space

2017-04-27 Thread Neil Schemenauer

Changes by Neil Schemenauer :


--
pull_requests: +1440

___
Python tracker 

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



[issue27377] Add smarter socket.fromfd()

2017-04-27 Thread Neil Schemenauer

Changes by Neil Schemenauer :


--
pull_requests: +1441

___
Python tracker 

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



  1   2   >