[issue29282] Fused multiply-add: proposal to add math.fma()

2017-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5a5f13500b9 by Mark Dickinson in branch 'default': Issue #29282: Backed out changeset b33012ef1417 https://hg.python.org/cpython/rev/b5a5f13500b9 -- ___ Python tracker

[issue29273] test___all__ alters utf8 locale setting

2017-01-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: The rationale supporting this change is sound and the patch LGTM. -- nosy: +xdegaye ___ Python tracker ___

[issue29338] Output the text signature in the help of a class

2017-01-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pydoc outputs the text signature for C functions. It defines parameters and default values and is a part of function description. Help on built-in function format in module builtins: format(value, format_spec='', /) Return

[issue29328] struct module should support variable-length strings

2017-01-21 Thread Mark Dickinson
Mark Dickinson added the comment: A couple of questions that haven't been brought up yet: 1. Do you have any thoughts on how alignment should behave for '@'-style structs containing variable-length strings? I suspect the easiest solution may be simply to disallow that combination, and only

[issue29282] Fused multiply-add: proposal to add math.fma()

2017-01-21 Thread Mark Dickinson
Mark Dickinson added the comment: Also failures on Gentoo: here b is positive (possibly +inf), and c is finite, so we expect an infinite result. Instead, we're apparently getting a NaN. I don't have a good guess about what's causing this: the rest of the tests are passing, so it's unlikely

[issue29326] Blank lines in ._pth file are not ignored

2017-01-21 Thread Steve Dower
Steve Dower added the comment: The fix for this issue is needed in PC/getpathp.c as this is a special feature in path generation on Windows. I'm not aware of any such issue with .pth files - the underscore in ._pth is deliberate. -- ___ Python

[issue29336] merge tuples in module

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch uses _PyCode_ConstantKey() as a key. This allows supporting integers, floats, bytes, etc. But I think we can go further and merge constants recursively. See also issue28813. -- nosy: +rhettinger Added file:

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-01-21 Thread Martin Panter
Martin Panter added the comment: Here is a port of the documentation to Python 2. Main differences: * Default rules for order comparisons are different * Not all kinds of objects inherit from object() * str(), unicode() compatibility * xrange() only seems to have default comparability * NAN,

[issue28489] Fix comment in tokenizer.c

2017-01-21 Thread Eric V. Smith
Eric V. Smith added the comment: Right, that's basically what _all_string_prefixes() does: it starts with the 6 unique prefixes that are case- and order- independent ('b', 'r', 'u', 'f', 'br', 'fr'), and adds the cased and ordered versions. If you're saying that we should list those 8, and

[issue29282] Fused multiply-add: proposal to add math.fma()

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Cross fingers... -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29282] Fused multiply-add: proposal to add math.fma()

2017-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b33012ef1417 by Mark Dickinson in branch 'default': Issue #29282: add fused multiply-add function, math.fma. https://hg.python.org/cpython/rev/b33012ef1417 -- nosy: +python-dev ___ Python tracker

[issue28489] Fix comment in tokenizer.c

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are just 8 legal combinations if ignore case: >>> import tokenize >>> sorted({x.lower() for x in tokenize._all_string_prefixes() if x}) ['b', 'br', 'f', 'fr', 'r', 'rb', 'rf', 'u'] -- nosy: +serhiy.storchaka

[issue29104] Left bracket remains in format string result when '\' preceeds it

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28735] Mock is equal to ANY but MagicMock is not

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Berker. Maybe _Call.__eq__ also should return NotImplemented in some cases, but I don't have a demonstrating example. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___

[issue29199] test_regrtest fails if PCBuild directory doesn't exist

2017-01-21 Thread ppperry
Changes by ppperry : -- nosy: +ezio.melotti, michael.foord ___ Python tracker ___ ___

[issue16899] Add support for C99 complex type (_Complex) as ctypes.c_complex

2017-01-21 Thread Tom Krauss
Tom Krauss added the comment: I'm trying to add support for this in cffi, which uses ctypes... apparently this is now supported in libffi (https://github.com/libffi/libffi, v3.2 Nov 2014). It would be nice if this issue could be re-opened, or another one created for the same purpose.

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Martin, you are the one who looked at these patches for last three years. Do you want to take this issue to you and update Vajrasky's patches? Now there is good performance argument for converting builtins to Argument Clinic. --

[issue29331] Simplify argument parsing in sorted() and list.sort()

2017-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69bd5c497a82 by Serhiy Storchaka in branch 'default': Issue #29331: Simplified argument parsing in sorted() and list.sort(). https://hg.python.org/cpython/rev/69bd5c497a82 -- nosy: +python-dev ___ Python

[issue28735] Mock is equal to ANY but MagicMock is not

2017-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 442eb26b1ca4 by Serhiy Storchaka in branch '3.5': Issue #28735: Fixed the comparison of mock.MagickMock with mock.ANY. https://hg.python.org/cpython/rev/442eb26b1ca4 New changeset 4a38781538f7 by Serhiy Storchaka in branch '3.6': Issue #28735:

[issue29338] Output the text signature in the help of a class

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch adds a text signature at the start of class description. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file46373/pydoc-class-signature.patch ___ Python tracker

[issue29331] Simplify argument parsing in sorted() and list.sort()

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Victor. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29340] SSL destructor segfaults in python3.6 threads when an unverified-cert connection is closed

2017-01-21 Thread Nick Sweeting
New submission from Nick Sweeting: I mistakenly thought this bug was a pyOpenSSL bug, so I reported it there (https://github.com/pyca/pyopenssl/issues/588), but it looks like this is actually a bug in CPython. See the link for a nicer formatted bug report with more details. Code to

[issue29340] SSL destructor segfaults in python3.6 threads when an unverified-cert connection is closed

2017-01-21 Thread Christian Heimes
Christian Heimes added the comment: I can reproduce the crash under Linux with OpenSSL 1.0.2j and Python 2.7, 3.5 and 3.6. Python 2.7 doesn't crash every time, 1 out of 5 times maybe. #0 ssl_buf_freelist_free (list=0x7fffe8003b50) at ssl_lib.c:2094 #1 0x7fffef3d68d7 in SSL_CTX_free

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2017-01-21 Thread Martin Panter
Martin Panter added the comment: Patch looks good to me. BTW in Issue 27409 I proposed a patch listing more of these. -- nosy: +martin.panter ___ Python tracker

[issue1732367] Document the constants in the socket module

2017-01-21 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Document socket.SOL_SOCKET ___ Python tracker ___

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-21 Thread STINNER Victor
STINNER Victor added the comment: Can't we just update the cache when the function changes the encoding? -- ___ Python tracker ___

[issue29340] SSL destructor segfaults in python3.6 threads when an unverified-cert connection is closed

2017-01-21 Thread Nick Sweeting
Nick Sweeting added the comment: Actually I suspected it was OpenSSL first, I filed the report on their github issues, then went on a fun little wild goose chase that ended in the CPython issue tracker. :) https://github.com/openssl/openssl/issues/2260 Thanks for helping debug this so

[issue29311] Argument Clinic: convert dict methods

2017-01-21 Thread Martin Panter
Martin Panter added the comment: Patch looks good, apart from one little thing (see review) -- ___ Python tracker ___

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-21 Thread Steve Dower
Steve Dower added the comment: Thanks for checking that. I don't think it's worth retaining the cache on Windows in the face of the broken behaviour. Any real-world case where a lot of paths are being encoded or decoded is also likely to involve file-system access which will dwarf the

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-21 Thread 12345 67890
New submission from 12345 67890: Not sure if anyone has ever thought about this, but it would be nice if the interactive interpreter set the same indentation level as the previous line. Of course this isn't urgent, but what do others think? -- messages: 285970 nosy: 12345 67890

[issue28134] socket.socket(fileno=fd) does not work as documented

2017-01-21 Thread Christian Heimes
Christian Heimes added the comment: Here is another example of how broken and dangerous fileno argument is. getpeername() is neither a valid IPv4 tuple nor a valid IPv6 tuple. It's all messed up: >>> import socket >>> s = socket.create_connection(('www.python.org', 443)) >>> s >>>

[issue29340] SSL destructor segfaults in python3.6 threads when an unverified-cert connection is closed

2017-01-21 Thread Christian Heimes
Christian Heimes added the comment: SSL_CTX_free: if (a->rbuf_freelist) ssl_buf_freelist_free(a->rbuf_freelist); (gdb) p list $1 = (SSL3_BUF_FREELIST *) 0x7fffe8003b50 (gdb) p *list $2 = {chunklen = 33096, len = 1, head = 0x7fffe8031c00} (gdb) p *list->head $3 = {next =

[issue29340] SSL destructor segfaults in python3.6 threads when an unverified-cert connection is closed

2017-01-21 Thread Christian Heimes
Christian Heimes added the comment: I can't reproduce the crash with OpenSSL 1.1.0 and LibreSSL 2.5.0. You might have found a bug in OpenSSL. -- ___ Python tracker

[issue29182] Remove the warning in urllib docs that it doesn't do certificate validate by default.

2017-01-21 Thread Martin Panter
Martin Panter added the comment: The warning for urllib2.urlopen() was removed in revision 1882157b298a. However, a couple other warnings were converted to “Changed in version 2.7.9” in revision fb83916c3ea1, which seems safer to me. Removing documentation almost seems like a step backwards.

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-21 Thread Steve Dower
Steve Dower added the comment: How? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-21 Thread Martin Panter
Martin Panter added the comment: Will keep this in mind, but my time is rather limited, so I may not get to it (and I wouldn’t want to discourage other people from working on it) -- ___ Python tracker

[issue29311] Argument Clinic: convert dict methods

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes/improves docstrings of dict and OrderedDict methods. -- nosy: +eric.snow, rhettinger stage: -> resolved Added file: http://bugs.python.org/file46374/dict-docstrings.patch ___ Python tracker

[issue15997] NotImplemented needs to be documented

2017-01-21 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Clarify the behavior of __eq__() returning NotImplemented ___ Python tracker ___

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-21 Thread Xiang Zhang
Xiang Zhang added the comment: > I'm even worse at that. :-( LoL. Okay I'll do that. :-) -- ___ Python tracker ___

[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-01-21 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Serhiy. BTW, #16623 is about 2.7 and the cause is wrap doesn't handle unicode non-breaking spaces right. So it's not the same thing as here. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed

[issue29341] Missing accepting path-like object in docstrings of os module functions

2017-01-21 Thread Xiang Zhang
New submission from Xiang Zhang: PathLike objects are added in 3.6 and they are mentioned in the documentation. But in some os module functions' docstrings, acceptable types of path parameter are mentioned and they are not altered to mention path-like object. For example: chown(path, uid,

[issue29341] Missing accepting path-like object in docstrings of os module functions

2017-01-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> needs patch ___ Python tracker ___ ___

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm even worse at that. :-( -- ___ Python tracker ___ ___

[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98cde683b9c6 by Xiang Zhang in branch '3.5': Issue #29290: argparse help messages won't wrap at non-breaking spaces. https://hg.python.org/cpython/rev/98cde683b9c6 New changeset 1754722ec296 by Xiang Zhang in branch '3.6': Issue #29290: Merge 3.5.

[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-01-21 Thread Xiang Zhang
Xiang Zhang added the comment: v2 addresses the comments. I didn't receive the review notification mail so just saw them today. :-( -- stage: -> patch review Added file: http://bugs.python.org/file46376/argparse-help-non-breaking-spaces-2.patch

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-21 Thread Xiang Zhang
Xiang Zhang added the comment: Ping for review for timestamptz-3.patch. -- ___ Python tracker ___ ___

[issue28663] Higher virtual memory usage on recent Linux versions

2017-01-21 Thread INADA Naoki
INADA Naoki added the comment: @ProgVal, could you try following? I doubt that this difference just shows rlimit behavior, not memory usage. --- $ cat rlimit_difference_linux_versions.py import sys import queue import multiprocessing from urllib.request import Request, urlopen import resource

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added few minor comments on Rietveld. Technically the patch LGTM. But the behavior change of the timestamp converter for input without timezone offset perhaps needs wider discussion. We have several options: 0. Current behavior. Silently drop the timezone

[issue29341] Missing accepting path-like object in docstrings of os module functions

2017-01-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python ___ Python tracker

[issue29182] Remove the warning in urllib docs that it doesn't do certificate validate by default.

2017-01-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: @Martin, that's a sound advice. I agree to it. I'll change it to a note (instead of warning) which mentions about certificate verification since 2.7.9. -- ___ Python tracker

[issue28785] Clarify the behavior of __eq__() returning NotImplemented

2017-01-21 Thread Martin Panter
Changes by Martin Panter : -- title: Clarify the behavior of NotImplemented -> Clarify the behavior of __eq__() returning NotImplemented ___ Python tracker

[issue29092] Sync os.stat's doc and doc string

2017-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f30e114cbc8 by Xiang Zhang in branch '3.5': Issue #29092: Sync os.stat's doc and docstring on path type. https://hg.python.org/cpython/rev/1f30e114cbc8 New changeset 409ffea5cccf by Xiang Zhang in branch '3.6': Issue #29092: Sync os.stat's doc and

[issue29092] Sync os.stat's doc and doc string

2017-01-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29099] sqlite3 timestamp converter cannot handle timezone

2017-01-21 Thread Xiang Zhang
Xiang Zhang added the comment: > Maybe discuss this on Python-Dev? It's fine. Could you compose a mail instead of me? I am not good at that. :-( -- ___ Python tracker

[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. You perhaps need to change your email provider Xiang. It fails too often. -- assignee: -> xiang.zhang stage: patch review -> commit review ___ Python tracker

[issue29335] Python 2.7 subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-21 Thread Zach Riggle
Zach Riggle added the comment: To further clarify the report: When the attached proof-of-concept is executed, a RuntimeException is raised, which has a comment "Should never happen". The issue isn't due to SIGCHLD, but rather following a waitpid() call. The code attempts to suss the exit

[issue29337] BytesWarning at compile time

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes the issue. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file46370/constant-key-bytes-warning.patch ___ Python tracker

[issue28489] Fix comment in tokenizer.c

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, I'm just saying that the list of combinations is not so large. Ryan's patch LGTM. -- ___ Python tracker ___

[issue29267] Cannot override some flags in CFLAGS from the command-line

2017-01-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Please try: make CFLAGS_NODIST=-std=gnu99 -- nosy: +xdegaye ___ Python tracker ___

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-01-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +r.david.murray ___ Python tracker ___

[issue29328] struct module should support variable-length strings

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you want to add the support variable-size fields, this is incompatible with the struct module design. If you want to add the support of variable-length strings inside fixed-size fields (as with the 'p' format unit), I think this case is not enough

[issue29282] Fused multiply-add: proposal to add math.fma()

2017-01-21 Thread Mark Dickinson
Mark Dickinson added the comment: Failures on the Windows buildbot (http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Non-Debug%203.x/builds/238/steps/test/logs/stdio) shown below. It looks as though Windows is emulating the FMA operation on this machine (and not doing a