[issue27172] Undeprecate inspect.getfullargspec()

2017-04-27 Thread Nick Coghlan
Nick Coghlan added the comment: No, there are no plans to ever deprecate getfullargspec() again - it isn't hard to maintain indefinitely as a wrapper around inspect.Signature(), and it doesn't have the significant limitations that affected getargspec(). -- priority: deferred blocker ->

[issue27172] Undeprecate inspect.getfullargspec()

2017-04-27 Thread Nick Coghlan
Nick Coghlan added the comment: Also, note that the programmatic deprecation warning change in the patch is to the warning for `getargspec()`, so that it recommends `getfullargspec()` rather than `Signature()`. There's no runtime deprecation warning for `getfullargspec()` in any version of Py

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

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After changing the type of Struct.format to str we perhaps should deprecate accepting bytes as format. Currently this can lead to emitting a BytesWarning. $ ./python -Wa -b >>> import struct >>> struct.pack('I', 12345) b'90\x00\x00' >>> struct.pack(b'I', 1234

[issue30179] Update Copyright to 2017

2017-04-27 Thread Berker Peksag
Changes by Berker Peksag : -- superseder: -> Update Python Software Foundation Copyright Year ___ Python tracker ___ ___ Python-bugs-

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

2017-04-27 Thread Xiang Zhang
Xiang Zhang added the comment: The warnings are possible to remove I think... but deprecate bytes arguments sounds good. -- ___ Python tracker ___ __

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

2017-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: > It seems Python already does some exercising of these dtoa functions in its > test suite, but ideally you would want to check against upstream's full > tests, if those exist. They barely do: Python's tests for dtoa.c are much more comprehensive than the ups

[issue29606] urllib FTP protocol stream injection

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

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

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: Since CPython 3 is not affected, I close this issue and move back the discussion on the bug tracker of the CPython 2.7 backport: https://github.com/haypo/faulthandler/issues/29 -- resolution: -> works for me stage: needs patch -> resolved status: open

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

2017-04-27 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> backport needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list ma

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

2017-04-27 Thread Berker Peksag
Changes by Berker Peksag : -- superseder: -> argparse: default args in mutually exclusive groups ___ Python tracker ___ ___ Python-bu

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

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: Mark Dickinson: "It would also take us even further away from the upstream sources, making it harder to integrate bugfixes from upstream." We have two main options: * Use -fno-strict-aliasing on clang (solution currently used), maybe restrict the option to dt

[issue30103] uu package uses old encoding

2017-04-27 Thread Xiang Zhang
Xiang Zhang added the comment: Looks like perl has already encoded in this way: [~]$ perl -e 'print pack("u","Ca\x00t")' $0V$`=``` > Oddly, the uu.decode function does properly decode files encoded using "`", > but encode is unable to create them. The decoder source code explicitly states it

[issue29606] urllib FTP protocol stream injection

2017-04-27 Thread Dong-hee Na
Dong-hee Na added the comment: Smillar issue but this issue is about FTP protocal using by httplib. Looks simillar but different. -- ___ Python tracker ___ _

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

2017-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: Victor: I don't think that's necessary. We simply need to add -fno-strict-aliasing for this file. -- ___ Python tracker ___ ___

[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou
New submission from Antoine Pitrou: The forkserver intermediate process is an implementation detail. However, if you Ctrl-C the main process, the forkserver process will exit with a KeyboardInterrupt traceback, even if the main process catches KeyboardInterrupt to exit silently. This produce

[issue29606] urllib FTP protocol stream injection

2017-04-27 Thread Dong-hee Na
Dong-hee Na added the comment: So if you want not to add this special case for httplib and just solving this issue for ftplib. We could close this issue. -- ___ Python tracker _

[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uploading small reproducer script. -- Added file: http://bugs.python.org/file46832/forkserversignal.py ___ Python tracker ___ __

[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: A simpler solution would actually be to catch KeyboardInterrupt inside the forkserver loop and exit cleanly... -- ___ Python tracker ___ __

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

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: > HP-UX does not support the CLOCK_MONOTONIC state. I'm sorry but CPython requires a monotonic clock since CPython 3.5. According to https://bugreports.qt.io/browse/QTBUG-22301 HP-UX < 11.3 and Solaris 9 don't support monotonic clock. It seems like gethrtime(

[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1424 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1425 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30131] test_logging leaks a "dangling" thread

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: > Does this need to be backported? I checked: Python 3.5 and 3.6 have the bug, but Python 2.7 is not affected (it doesn't have the unit test which leaks resources). I created PRs. -- versions: +Python 3.5, Python 3.6 __

[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: > A simpler solution would actually be to catch KeyboardInterrupt inside the > forkserver loop and exit cleanly... I'm not sure that we always want to exit on CTRL-c. But I agree that the forkserver has to handle CTRL-c. Maybe ignore it, but be killed when its

[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not sure that we always want to exit on CTRL-c. That's what the forkserver does right now, it's just that it does it with a traceback that's useless to the user. > Maybe ignore it, but be killed when its master gets a CTRL-c? That's a possibility (the f

[issue30181] Incorrect parsing of test case docstring

2017-04-27 Thread R. David Murray
R. David Murray added the comment: Considering that in the cpython test suite we avoid using docstrings in unittests because of this "feature" of unittest, I doubt anyone on the core team is going to be motivated to fix this :) That doesn't mean we won't accept a PR, but if we do we would onl

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

2017-04-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: FYI. When I tested this change locally, I needed to do a 'make clean' then a 'make html' for all the pages to relink to the stdtypes page for :class:`bytes`. I had asked on the IRC channel about that and thought maybe the merge into the master would do that

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-27 Thread Martin Panter
Martin Panter added the comment: The “Proper adherence” sentence has always bothered me. Why does “wfile” have to adhere, but not other other APIs (rfile, send_header, etc)? I wonder if the sentence is useful at all. (Of course you have to use HTTP to operate with HTTP clients.) Perhaps it wa

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

2017-04-27 Thread Sebastian Ernst
New submission from Sebastian Ernst: I am investigating a bug in Wine: https://bugs.winehq.org/show_bug.cgi?id=42474 The Python 3.6(.1) interpreter fails to start on Wine because of an unimplemented function in Wine: "api-ms-win-core-path-l1-1-0.dll.PathCchCombineEx". While the missing funct

[issue30185] forkserver process should silence KeyboardInterrupt

2017-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +1426 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27200] make doctest in CPython has failures

2017-04-27 Thread Berker Peksag
Berker Peksag added the comment: New changeset e65fcde85abf6617508f2d6b77020e24b8ca6f6b by Berker Peksag (Marco Buttu) in branch 'master': bpo-27200: Fix several doctests (GH-604) https://github.com/python/cpython/commit/e65fcde85abf6617508f2d6b77020e24b8ca6f6b -- ___

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-27 Thread R. David Murray
R. David Murray added the comment: My impression is that the sentence is there because you are acting directly on the raw byte stream, which you are not in the other cases. (Well, rfile, but that's reading, so what you do there doesn't affect the wire protocol you send). -- _

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

2017-04-27 Thread Jake Davis
Jake Davis added the comment: I've added some unittests for Sniffer._guess_quote_and_delimiter(); they should prevent regression. -- ___ Python tracker ___ _

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

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: RemoteIMAP_SSLTest uses cyrus.andrew.cmu.edu server with the port 993. Would it be possible to setup an IMAP server on pythontest.net instead of using a server of an university? http://www.cmu.edu/ -- ___ Python tra

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

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: https://travis-ci.org/python/cpython/jobs/226357867 Oh, the test started to fail on Travis CI as well: == ERROR: test_logincapa_with_client_certfile (test.test_imaplib.RemoteIMAP_SSLTest) --

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

2017-04-27 Thread STINNER Victor
STINNER Victor added the comment: haypo@selma$ openssl s_client -connect cyrus.andrew.cmu.edu:993 CONNECTED(0003) depth=3 C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = AddTrust External CA Root verify return:1 depth=2 C = GB, ST = Greater Manchester, L = Salford, O = COMO

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

[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

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

[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

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

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

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

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

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

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

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

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

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

[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

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

[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

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

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

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

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

[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

[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

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

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

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

[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

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

[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

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

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

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

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

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

[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

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

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

  1   2   >