[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

[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

[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

[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

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

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

[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

[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

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

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

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

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

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

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

[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

[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

[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

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

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

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

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

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1447 ___ Python tracker ___ ___

[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

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

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

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

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

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

[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

[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

[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

[issue30193] Accept memoryview in json.loads()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[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

[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

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

2017-04-27 Thread Nikolay Kim
Changes by Nikolay Kim : -- pull_requests: +1443 ___ Python tracker ___ ___

[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

[issue27377] Add smarter socket.fromfd()

2017-04-27 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- pull_requests: +1441 ___ Python tracker ___ ___

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

[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

[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

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

[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

[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

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

[issue30190] unittest's assertAlmostEqual should show the difference

2017-04-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- pull_requests: +1439 ___ Python tracker ___ ___

[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

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

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

[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

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

[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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

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

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

[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

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

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1438 ___ Python tracker ___ ___

[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

[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1437 ___ Python tracker ___ ___

[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

[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

[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

[issue30140] Binary arithmetic does not always call subclasses first

2017-04-27 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1436 ___ Python tracker ___

[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1433 ___ Python tracker ___ ___

[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

[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1435 ___ Python tracker ___ ___

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

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

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

[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

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

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

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

[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

[issue30188] test_nntplib: random EOFError in setUpClass()

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1430 ___ Python tracker ___ ___

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

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

[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

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

[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

[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

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

[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

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

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

[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

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

[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

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

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

  1   2   >