[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang

Xiang Zhang added the comment:

Uuencode has no official standards and it all depends on the implementation. 
For other languages, I could only find PHP, java, activetcl? have official 
implementation. PHP and activetcl defaults to backticks and no options. Java 
defaults to spaces and no options.

--

___
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 Serhiy Storchaka

Serhiy Storchaka added the comment:

I just realized that is is not so easy to avoid gettext import. gettext is used 
in the ArgumentParser constructor for localizing names of default groups and 
the default help (besides they are used only for formatting help). This adds 
importing the locale module.

--

___
Python tracker 

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



[issue30004] in regex-howto, improve example on grouping

2017-04-27 Thread Mandeep Bhutani

Mandeep Bhutani added the comment:

Looks like both examples need a closing \b. Is this being worked on or should I 
submit a PR?

--
nosy: +mandeepb

___
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 Serhiy Storchaka

Serhiy Storchaka added the comment:

Is it worth to output a difference when the delta argument is not passed?

Is it worth to output a signed difference rather than an absolute value?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue30193] Support the buffer protocol in json.loads()

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Withdraw my note about slowing down str.

--

___
Python tracker 

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



[issue30193] Support the buffer protocol in json.loads()

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This isn't so easy. Supporting the buffer protocol can slowdown the common case 
-- str.

Do you have concrete use case for this feature or add it just as an extension 
of bytes and bytearray support?

--
components: +Library (Lib)
nosy: +bob.ippolito, ezio.melotti, rhettinger
stage:  -> patch review
title: Accept memoryview in json.loads() -> Support the buffer protocol in 
json.loads()
type:  -> enhancement
versions:  -Python 3.6

___
Python tracker 

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



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

2017-04-27 Thread Raymond Hettinger

Raymond Hettinger added the comment:

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

Sorry Horacio, but your beliefs don't trump Guido's intentional design 
decisions.   He was the one who decided that the collections.abc.Set should 
have a __and__ that accepts an iterable and that it should not have the named 
methods (union, intersection, difference, etc).  Once released, that decision 
is not changeable without breaking existing code that relies on any iterable 
being accepted (which is a useful behavior given the absence of an union() 
method).   Guido also decided long ago that no class other that list would 
repeat its list.__iadd__ design mistake.   You can search the python-dev 
archives to find the discussion where it was decided that this applies to the 
concrete set type (i.e. that s |= 'abc' would raise a TypeError).  I happen to 
agree with that decision.  Though it seems to offend your sense of consistency, 
it does have the advantage of precluding what would likely be a common source 
of errors.

I'm marking this as closed.  The time to litigate API design decisions is prior 
to their being released.  This particular ship sailed a decade ago and has 
mostly worked out fine for all of our users.

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



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

I think Benjamin is the only one who has done any work on it so far.  I think 
you'd ask the infrastructure team for access if you want to do so.

--

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


New changeset d855e53eabca0e8b2b39d25670c37bbdb4ab2e4c by Victor Stinner in 
branch '3.5':
bpo-30131: test_logging now joins queue threads (#1298) (#1318)
https://github.com/python/cpython/commit/d855e53eabca0e8b2b39d25670c37bbdb4ab2e4c


--

___
Python tracker 

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



[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset caa59c156d1e6ff3d005e0112bb27c5bed4afb71 by Victor Stinner in 
branch '3.6':
[3.6] bpo-30106: Fix test_asyncore.test_quick_connect() (#1336)
https://github.com/python/cpython/commit/caa59c156d1e6ff3d005e0112bb27c5bed4afb71


--

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


New changeset cb21f5f3d2005b891df0b76e3fc4d4676e285f21 by Victor Stinner in 
branch '3.6':
bpo-30131: test_logging now joins queue threads (#1298) (#1317)
https://github.com/python/cpython/commit/cb21f5f3d2005b891df0b76e3fc4d4676e285f21


--

___
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



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

2017-04-27 Thread Dong-hee Na

Dong-hee Na added the comment:

Thanks for the response. I agree with you. :)

--

___
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 R. David Murray

R. David Murray added the comment:

We generally don't do this kind of type checking in the standard library.  The 
message may not be clear, but it is accurate and decipherable, especially given 
the fact that the write parameter name is 'buffer'.  I don't think anything 
should be done here.  If you want type checking use the types module :)

Thanks for the PR, @corona10, but I think we should just close this issue.  
Other devs may disagree, though, so I'm not closing it myself.

On the other hand, enhancing telnetlib to also work with strings might be a 
nice project for someone.  It would require some design discussion, though, so 
I don't think anyone should hop on it without discussing it somewhere first 
(python-ideas, maybe?).

--
nosy: +jackdied, 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

Dong-hee Na added the comment:

I submitted PR to handle this issue like this way.

tn.write([b'data sample without IAC'])
File "/Users/corona10/cpython/Lib/telnetlib.py", line 288, in write
raise TypeError('%s must be a bytes-like type.' % buffer)
TypeError: [b'data sample without IAC'] must be a bytes-like type.

--
nosy: +corona10

___
Python tracker 

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



[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

> Yeah, there were a few transient build errors while I was getting the 
> buildbot back online

Oh ok, I understand that the issue is already fixed. Thanks :-)

--

___
Python tracker 

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



[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread David Bolen

David Bolen added the comment:

Yeah, there were a few transient build errors while I was getting the buildbot 
back online.  My initial attempt to fix this ticket involved using the VS 2015 
installer which turned out very badly, so I had to fall back to an older VM 
image and start over.  But the older image had an older buildbot version which 
didn't work with the git workflow, which hit a few pending builds before I got 
it fixed.

I'm not yet sure if there may be some other fallback (e.g., the link error in 
the recent 3.x build seems familiar but I can't recall why offhand)

--

___
Python tracker 

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



[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

@David: Oh, a build on x86 Windows7 3.5 just failed on the git step with a 
strange erorr:

http://buildbot.python.org/all/builders/x86%20Windows7%203.5/builds/209/steps/git/logs/err.text

twisted.spread.pb.RemoteError: unrecognized SlaveCommand 'stat'

--

___
Python tracker 

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



[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:


New changeset c9ca57eeea4d9da748d84281506c5803512b79ac by Victor Stinner in 
branch '3.6':
bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) (#1335)
https://github.com/python/cpython/commit/c9ca57eeea4d9da748d84281506c5803512b79ac


--

___
Python tracker 

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



[issue27726] ctags -t does not exists in Makefile.pre.in

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1448

___
Python tracker 

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



[issue30106] test_asyncore: test_handle_write() fails in tearDown()

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1447

___
Python tracker 

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



[issue30194] AttributeError on opening ZipFile

2017-04-27 Thread STINNER Victor

STINNER Victor added the comment:

urlretrieve() returns (filename, file-like object). It's a bug in your code, 
not in Python itself ;-)

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



[issue30194] AttributeError on opening ZipFile

2017-04-27 Thread Jacob B

New submission from Jacob B:

The error occurs when I attempt to run the following code:

from urllib.request import urlretrieve
from os import path
from zipfile import ZipFile

download_url = 
"https://www.dropbox.com/s/obiqvrt4m53pmoz/tesseract-4.0.0-alpha.zip?dl=1;


def setup_program():
zip_name = urlretrieve(download_url)

zip_file = ZipFile(zip_name, "r")
zip_file.extractall(path.abspath("__tesseract/"))
zip_file.close()

setup_program()  # REMOVE after test


I get the following traceback:

$ python downloader.py
Traceback (most recent call last):
  File "downloader.py", line 15, in 
setup_program()
  File "downloader.py", line 11, in setup_program
zip_file = ZipFile(zip_name, "r")
  File "C:\Python36\lib\zipfile.py", line 1100, in __init__
self._RealGetContents()
  File "C:\Python36\lib\zipfile.py", line 1163, in _RealGetContents
endrec = _EndRecData(fp)
  File "C:\Python36\lib\zipfile.py", line 241, in _EndRecData
fpin.seek(0, 2)
AttributeError: 'tuple' object has no attribute 'seek'

--
messages: 292494
nosy: Jacob B2
priority: normal
severity: normal
status: open
title: AttributeError on opening ZipFile
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



[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
pull_requests: +1446

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

Ok, the test is now skipped on 3.5, 3.6 and master to fix CI and buildbots.

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

Who work on pytohntest? Where should I ask that?

--

___
Python tracker 

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



[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


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



[issue19417] Bdb: add docstrings and a unittest file (test.test_bdb)

2017-04-27 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I'll work on the bdb docstrings.

--
nosy: +csabella

___
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 Martin Panter

Martin Panter added the comment:

FWIW I am using NXP LPC microcontrollers at the moment, whose bootloader uses 
the grave/backtick instead of spaces. (NXP application note AN11229.)  Although 
in practice it does seem to accept Python's spaces instead of graves.

I wouldn't put too much weight to Wikipedia, especially where it says graves 
are not used for encoded data (vs length and padding). Earlier versions of 
Wikipedia did mention graves in regular data.

I understand the reason for avoiding spaces is to due to spaces being stripped 
(e.g. by email, copy and paste, etc). You have to avoid spaces in data, not 
just padding, because a data space may still appear at the end of a line.

--
nosy: +martin.panter

___
Python tracker 

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



[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-27 Thread David Bolen

David Bolen added the comment:

Ok, I believe I've got the latest ucrtbased now on the Win7 buildbot 
(validate_ucrtbase.py reports it as 10.0.15063.137).

It appears as if my Win8 and Win10 buildbots also have the older dll, so I'm 
guessing they're just fast enough or lucky enough not to run into the issue.  
I'll plan on addressing them in the near future as well.

--

___
Python tracker 

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



[issue19417] Bdb: add docstrings and a unittest file (test.test_bdb)

2017-04-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

IDLE's debugger needs multiple patches.  It is based on bdb.  So I want to be 
able to understand the bdb code and know that it is sound.  The file is nearly 
devoid of docstrings, so I would like to add those first, probably in a 
separate patch.  A first draft can be derived from the bdb doc.  Docstrings 
will help in reviewing the patch.

--
assignee:  -> terry.reedy
title: Add tests for bdb (previously not tested) -> Bdb: add docstrings and a 
unittest file (test.test_bdb)
versions: +Python 3.7 -Python 3.4

___
Python tracker 

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



[issue30193] Accept memoryview in json.loads()

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue30193] Accept memoryview in json.loads()

2017-04-27 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Allow to load buffer objects with json.loads() -> Accept memoryview in 
json.loads()

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

> Contact news.trigofacile.com administrator to ask him to repair the NNTP 
> server

I did that and I got a reply: the server is now fixed! :-D

The test is now skipped on server failure (in 3.5, 3.6 and master), and the 
server is repaired. So I close the issue.

Note: Python 2.7 doesn't have the unit test and so is not impacted.

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



[issue30193] Allow to load buffer objects with json.loads()

2017-04-27 Thread Nikolay Kim

Changes by Nikolay Kim :


--
pull_requests: +1443

___
Python tracker 

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



[issue30193] Allow to load buffer objects with json.loads()

2017-04-27 Thread Nikolay Kim

New submission from Nikolay Kim:

It is not possible to use buffer objects in json.loads()

--
messages: 292487
nosy: fafhrd91
priority: normal
severity: normal
status: open
title: Allow to load buffer objects with json.loads()
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



[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



[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



[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



[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



[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



[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



[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



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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



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



[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



[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



[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



[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



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

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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



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


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



[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



[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



[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



[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



[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



[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



[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



[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



[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



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



[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

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



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

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

"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



[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



[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



[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



  1   2   >