[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Short of any bug in the patch, yes, it's stricly an improvement. -- ___ Python tracker ___ ___ Py

[issue26979] The danger of PyType_FromSpec()

2018-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python

[issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path

2018-06-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've just tried, "..." doesn't seem to mean anything on the Windows CLI. But I agree with the reservation that having "..." mean something different than ".." is a recipe for confusion. -- nosy: +steve.dower ___ P

[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2018-06-02 Thread Robert Collins
Robert Collins added the comment: So, I think we're in a local minima here. As I said earlier, neither the old nor new names really grab me, and I think everyone has aknowledged that the new name is -at best- confusing. We don't need *any more discussion* about that. The question is how to f

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-06-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6967 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue26979] The danger of PyType_FromSpec()

2018-06-02 Thread Christian Tismer
Christian Tismer added the comment: There is another catch that belongs in the same category. There is line 2841 in typeobject.c if (type->tp_dealloc == NULL) { /* It's a heap type, so needs the heap types' dealloc. subtype_dealloc will call the base type's tp_dealloc,

[issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x

2018-06-02 Thread STINNER Victor
STINNER Victor added the comment: You may use PRId64 instead of %lld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path

2018-06-02 Thread Timo Furrer
Timo Furrer added the comment: > I've just tried, "..." doesn't seem to mean anything on the Windows CLI. It's not only about Windows / Linux here - it's about the shell and command which is being used. If we talk about "cd" for example - it's a builtin in most common shells on Linux, which

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-02 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's a bugfix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue33660] pathlib.Path.resolve() returns path with double slash when resolving a relative path in root directory

2018-06-02 Thread Timo Furrer
Change by Timo Furrer : -- nosy: +tuxtimo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for the test itself, the original test was added in dc78cc6f7cea2040114a350aa9db835cc433ae05. It tested that the stack overflow is not happen when unmarshal a fake code object with a deeply nested dict instead of co_code. It was renamed to test_loads_re

[issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x

2018-06-02 Thread STINNER Victor
STINNER Victor added the comment: The bug is not fixed yet. The test crashed again on x86 Gentoo Refleaks 3.x: http://buildbot.python.org/all/#/builders/1/builds/242 commit 8425de4147eb8d83befbb8ea77516fc764bb4309 test_ids_global (test.test__xxsubinterpreters.ChannelTests) ... ok test_recv_em

[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-06-02 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30974] Update os.samefile docstring to match documentation

2018-06-02 Thread Timo Furrer
Change by Timo Furrer : -- keywords: +patch pull_requests: +6968 stage: needs patch -> patch review ___ Python tracker ___ ___ Pytho

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset a801cf164be7c62b6a6dba47ff91d6c3edb67729 by Mariatta (Zackery Spytz) in branch 'master': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/a801cf164be7c62b6a6dba47ff91

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6969 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6970 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6971 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33663] Web.py wsgiserver3.py raises TypeError when CSS file is not found

2018-06-02 Thread Jean-Marc Le Peuvedic
Jean-Marc Le Peuvedic added the comment: The exception is raised in the start_response function provided by web.py's WSGIGateway class in wsgiserver3.py:1997. # According to PEP , when using Python 3, the response status # and headers must be bytes masquerading as unicode; that is, they #

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread miss-islington
miss-islington added the comment: New changeset db3039085845af5d68ab863f03e9684681b1516d by Miss Islington (bot) in branch '3.6': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/db3039085845af5d68ab863f03e9684681b1

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread miss-islington
miss-islington added the comment: New changeset 949da9e44b4e0d5b32745b91f9582158442b68d1 by Miss Islington (bot) in branch '3.7': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/949da9e44b4e0d5b32745b91f9582158442b

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread miss-islington
miss-islington added the comment: New changeset af3685963652721269ca0196f9f7fc08d3e830b7 by Miss Islington (bot) in branch '2.7': bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316) https://github.com/python/cpython/commit/af3685963652721269ca0196f9f7fc08d3e8

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-06-02 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
Jonathan G. Underwood added the comment: Seeing a very similar problem - very high memory useage during byte compilation. Consider the very simple code in a file: ``` def test_huge(): try: huge = b'\0' * 0x1 # this allocates 4GB of memory! except MemoryError:

[issue25237] Add doc for tkinter commondialog.Dialog and subclasses

2018-06-02 Thread Nikhil Patel
Nikhil Patel added the comment: PR to add documentation still up-to-date and all checks successful just pending review -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker

[issue33696] Install python-docs-theme even if SPHINXBUILD is defined

2018-06-02 Thread Andrés Delfino
Change by Andrés Delfino : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread R. David Murray
R. David Murray added the comment: That's presumably due to the compile-time constant-expression optimization. Have you tried bytes(0x100)? I don't think that gets treated as a constant by the optimizer (but I could be wrong since a bunch of things ahve been added to it lately). -

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Jonathan, this is a different problem, and it is fixed in 3.6+ (see issue21074). -- ___ Python tracker ___

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
Jonathan G. Underwood added the comment: Thanks to both Serhiy Storchaka and David Murray - indeed you're both correct, and that is the issue in 21074, and the workaround from there of declaring a variable for that size fixes the problem. -- ___ P

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2018-06-02 Thread Mayank Singhal
Change by Mayank Singhal <17mayanksing...@gmail.com>: -- keywords: +patch pull_requests: +6972 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue2506] Add mechanism to disable optimizations

2018-06-02 Thread Ned Batchelder
Ned Batchelder added the comment: Serhiy: thanks for the fuller story about the optimizations in place now. I'll repeat my earlier plea: providing a way to disable optimization is beneficial for tooling like coverage.py, and also for helping us to ensure that the optimizer is working correc

[issue30416] constant folding opens compiler to quadratic time hashing

2018-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Reverting issue27942 (67edf73183b8bf0127456454747f596428cc28f6) doesn't solve this issue in 2.7. The previous revision has this issue, as well as 2.7.12 and 2.7.11. Even 2.6.9 and 2.5.6 have this issue. We have either merge PR 4896 or decide that this issu

[issue30416] constant folding opens compiler to quadratic time hashing

2018-06-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I vote for "won't fix". 2.7 has lived long enough with this issue, AFAIU. And it won't be triggered by regular code. -- ___ Python tracker ___

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reopening for the 2.7 backport discussion. -- status: closed -> open ___ Python tracker ___ ___ P

[issue30654] signal module always overwrites SIGINT on interpreter shutdown

2018-06-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +6973 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path

2018-06-02 Thread Brett Cannon
Brett Cannon added the comment: I'm personally not loving the idea either by re-purposing Ellipsis for this since my brain keeps thinking you're trying to go two levels up instead of just one with that extra dot. It should also be mentioned that paths ending in an ellipsis has actual meaning

[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2018-06-02 Thread Egor Dranischnikow
New submission from Egor Dranischnikow : The C-API for Python2.7 https://docs.python.org/2/c-api/bytearray.html#c.PyByteArray_AsString lacks the sentence: "The returned array always has an extra null byte appended." which clarifies, that the returned C-string is null-terminated. This sentenc

[issue33738] PyIndex_Check conflicts with PEP 384

2018-06-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > related personal note - does someone know what happened to Martin? I don't think anything bad happened. He still seems to be teaching: http://www.beuth-hochschule.de/people/detail/1398/ -- nosy: +pitrou ___ Pyth

[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

2018-06-02 Thread Lars Pötter
New submission from Lars Pötter : if the password contains non ascii characters then the login fails: >>> smtObj.login(MAIL_USER, MAIL_PASSWORD) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.5/smtplib.py", line 720, in login initial_response_ok=initial_re

[issue29539] [smtplib] collect response data for all recipients

2018-06-02 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: 3.7 release candidates are in the queue, any thoughts on this simple enhancement? -- ___ Python tracker ___ __

[issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path

2018-06-02 Thread Yury Selivanov
Yury Selivanov added the comment: Since nobody likes the idea I'm withdrawing the proposal. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue27643] test_ctypes fails on AIX with xlc

2018-06-02 Thread Michael Felt
Michael Felt added the comment: I know it is not earth shattering - but it will permit one more test to pass. Please review the PR. Thx. -- versions: +Python 3.8 ___ Python tracker _

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-06-02 Thread Michael Felt
Michael Felt added the comment: Please review PR. at least for "master" -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-

[issue11191] test_search_cpp error on AIX (with xlc)

2018-06-02 Thread Michael Felt
Michael Felt added the comment: I hope this can be reviewed and eventually closed - not because it is X years old and unresolved - but because it is resolved for the latest branches! Thx -- versions: +Python 3.8 ___ Python tracker

[issue33742] Unsafe memory access in PyStructSequence_InitType

2018-06-02 Thread Pasha Stetsenko
New submission from Pasha Stetsenko : The documentation (https://docs.python.org/3/c-api/tuple.html) for `PyStructSequence_InitType` describes the function as follows: > void PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc > *desc) > Initializes a struct sequence type `typ