[issue10544] yield expression inside generator expression does nothing

2017-11-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4506 ___ Python tracker ___ ___

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently PR 4576 combines a bug fix and a new feature. 1. Removes wrong check and adds a verbose clarifying comment. This part should be backported to maintained versions. 2. Adds multiple explicit "return None". This is a

[issue32144] email.policy.SMTP and SMTPUTF8 doesn't honor linesep's value

2017-11-26 Thread Mark Sapiro
Change by Mark Sapiro : -- nosy: +msapiro ___ Python tracker ___ ___ Python-bugs-list

[issue10544] yield expression inside generator expression does nothing

2017-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: Great. It should be a DeprecationWarning, since we're planning to disallow it completely, right? IIRC SyntaxWarning is for syntax that we can't deprecate. -- ___ Python tracker

[issue32142] heapq.heappop - documentation misleading or doesn't work

2017-11-26 Thread Scott Queen
Scott Queen added the comment: Fair statement. "Properly sorted" was a poor choice. Seems that "if the invariant is true as a precondition, it will be true as a postcondition" is accurate and descriptive - maybe with a caution that modifying the list (heap) values by means

[issue10544] yield expression inside generator expression does nothing

2017-11-26 Thread Nick Coghlan
Nick Coghlan added the comment: Cool, if you're OK with that behaviour, it actually makes this a lot easier, since it means: 1. Serhiy's patch is already sufficient for the final hard compatibility break 2. It can be readily adapted to emit either DeprecationWarning or

[issue32051] Possible issue in multiprocessing doc

2017-11-26 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32051] Possible issue in multiprocessing doc

2017-11-26 Thread Berker Peksag
Berker Peksag added the comment: New changeset 8a957534f5182022ee8ac2dbaac4b4900dc98159 by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)

[issue32051] Possible issue in multiprocessing doc

2017-11-26 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4505 ___ Python tracker ___

[issue32051] Possible issue in multiprocessing doc

2017-11-26 Thread Berker Peksag
Berker Peksag added the comment: New changeset c172fc5031a4035986bef0b2fcef906706d7abf3 by Berker Peksag (Jason Yang) in branch 'master': bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469)

[issue32144] email.policy.SMTP and SMTPUTF8 doesn't honor linesep's value

2017-11-26 Thread Abhilash Raj
New submission from Abhilash Raj : According to the documentation, email.policy.SMTP and .SMTPUTF8 should have CRLF (`\r\n`) as line endings for text/plain parts. However, a new message parsed using message_from_binary_file with policy.SMTPUTF8 has `\n` as line

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: PR #4576 includes all related changes. -- ___ Python tracker ___

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- pull_requests: +4504 ___ Python tracker ___ ___

[issue31650] implement PEP 552

2017-11-26 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +4503 stage: needs patch -> patch review ___ Python tracker ___

[issue32140] IDLE debugger fails with non-trivial __new__ super call

2017-11-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a crash because IDLE does not crash. It does not even exit with a traceback. Some crash and freeze bugs have been fixed since 3.4.2. I verified with 3.7.0a2 on Win10. The failing example can be simplified to the first two

[issue23033] Disallow support for a*.example.net, *a.example.net, and a*b.example.net in certificate wildcard handling.

2017-11-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I merged the PR, this is now in 3.7. Thanks all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23033] Disallow support for a*.example.net, *a.example.net, and a*b.example.net in certificate wildcard handling.

2017-11-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ede2ac913eba47131ee1bbc37a9aea344d678576 by Mariatta (Mandeep Singh) in branch 'master': bpo-23033: Improve SSL Certificate handling (GH-937)

[issue29879] typing.Text not available in python 3.5.1

2017-11-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: This has been fixed in the 3.7 and 3.6 branches. Thanks all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 ___ Python

[issue29879] typing.Text not available in python 3.5.1

2017-11-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset cceb0f8d7b3451fb8de03651c979f5ac639b68c0 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-29879: Update typing documentation. (GH-4573) (GH-4574)

[issue29879] typing.Text not available in python 3.5.1

2017-11-26 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4502 ___ Python tracker ___

[issue29879] typing.Text not available in python 3.5.1

2017-11-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 0cd2e81bea639828d7c9a7afc61fb1da9699492c by Mariatta (Ivan Levkivskyi) in branch 'master': bpo-29879: Update typing documentation. (GH-4573)

[issue32143] os.statvfs lacks f_fsid

2017-11-26 Thread Martin Panter
Martin Panter added the comment: The doc string for the result object, and the main Python 2 documentation, both say that the result is a 10-tuple. So perhaps any new field should only be an attribute, and the tuple should stay the same size, to maintain compatibility.

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-26 Thread STINNER Victor
STINNER Victor added the comment: Cool, thanks Zach! -- ___ Python tracker ___

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4500 ___ Python tracker ___ ___

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 4572 removes the wrong check. -- type: -> behavior versions: +Python 2.7, Python 3.6 ___ Python tracker

[issue29879] typing.Text not available in python 3.5.1

2017-11-26 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +4501 stage: -> patch review ___ Python tracker ___

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-26 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28046] Remove the concept of platform-specific directories

2017-11-26 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> fixed stage: commit review -> resolved status: pending -> closed ___ Python tracker

[issue32142] heapq.heappop - documentation misleading or doesn't work

2017-11-26 Thread Eric V. Smith
Eric V. Smith added the comment: By "sorted" I meant "sorted by the heap functions so as to maintain their invariants". I don't have any suggestion for the actual specific language to use. -- ___ Python tracker

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-11-26 Thread Zachary Ware
Zachary Ware added the comment: New changeset d8d6b9122134f040cd5a4f15f40f6c9e3386db4d by Zachary Ware (Caleb Hattingh) in branch 'master': bpo-30487: automatically create a venv and install Sphinx when running make (GH-4346)

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a different issue. -- ___ Python tracker ___

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 26, 2017, at 14:07, Serhiy Storchaka wrote: > > Universally/locally administered MAC addresses doesn't have relation to this > issue. My assumption was about the multicast bit (1<<40). AFAICT, the multicast

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Universally/locally administered MAC addresses doesn't have relation to this issue. My assumption was about the multicast bit (1<<40). If my assumption was correct, the test is correct, and only the comment should be fixed. If

[issue10544] yield expression inside generator expression does nothing

2017-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: To clarify, the outermost iterator is marked here: [func(x, y) for x in for y in ] and it is evaluated before the comprehension proper is started. This is just part of how the language works (it's a similar rule as "in an assignment

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-26 Thread Zachary Ware
Zachary Ware added the comment: New changeset be1faabeef0821f188a28dd7cc6b744b89e85e94 by Zachary Ware in branch '2.7': bpo-30855: Bump Tcl/Tk to 8.5.19 on Windows (GH-4550) https://github.com/python/cpython/commit/be1faabeef0821f188a28dd7cc6b744b89e85e94 --

[issue32142] heapq.heappop - documentation misleading or doesn't work

2017-11-26 Thread abcdef
abcdef added the comment: > Perhaps heappop could say that the heap invariant is maintained if the heap > is properly sorted before the heappop invocation. Honestly I like this wording less. "Properly sorted" would suggest sorted in the sense of heap.sort() [as the docs

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 26, 2017, at 12:40, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > If I understand correctly, the original problem was that tests failed in some >

[issue32107] test_uuid uses the incorrect bitmask

2017-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If I understand correctly, the original problem was that tests failed in some environments, right? In that case we should either change the environment or just remove this check. I had added it in assumption that it is never

[issue32142] heapq.heappop - documentation misleading or doesn't work

2017-11-26 Thread Eric V. Smith
Eric V. Smith added the comment: The heap invariant is also required in order to even meet the documented behavior of returning the smallest item. >>> import heapq >>> li = [5, 7, 9, 1, 4, 3] >>> heapq.heapify(li) >>> li [1, 4, 3, 7, 5, 9] >>> li[2] = 0 >>>

[issue32143] os.statvfs lacks f_fsid

2017-11-26 Thread Giuseppe Scrivano
Change by Giuseppe Scrivano : -- keywords: +patch pull_requests: +4499 stage: -> patch review ___ Python tracker ___

[issue32143] os.statvfs lacks f_fsid

2017-11-26 Thread Giuseppe Scrivano
New submission from Giuseppe Scrivano : the os.statvfs() function doesn't return f_fsid. The POSIX definition of statvfs() has f_fsid: http://pubs.opengroup.org/onlinepubs/009604599/basedefs/sys/statvfs.h.html -- components: Library (Lib) messages: 307007 nosy:

[issue32142] heapq.heappop - documentation misleading or doesn't work

2017-11-26 Thread Scott Queen
New submission from Scott Queen : The documentation for heapq.heappop(heap) says: "Pop and return the smallest item from the heap, maintaining the heap invariant. If the heap is empty, IndexError is raised. To access the smallest item without popping it, use heap[0]."

[issue10231] SimpleHTTPRequestHandler directory bugs

2017-11-26 Thread Berker Peksag
Berker Peksag added the comment: Note that the macpath module has been deprecated in Python 3.7 in issue 9850 and it's going to be removed in Python 3.8 (and Python 3.6 is the only Python 3 release that accepts bug fixes at the moment) Perhaps it's not worth to fix

[issue32137] Stack overflow in repr of deeply nested dicts

2017-11-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4498 stage: -> patch review ___ Python tracker ___

[issue32141] configure with Spaces in Directory Name on macOS

2017-11-26 Thread Phil Thompson
New submission from Phil Thompson : When configure searches for a C compiler on macOS it fails to handle spaces in directory name on PATH. The fix is to enclose $as_dir in quotes. -- components: Build messages: 307004 nosy: philthompson10 priority: normal

[issue32136] Move embedding tests to their own test module

2017-11-26 Thread Nick Coghlan
Nick Coghlan added the comment: I guess the shorted name would also better match the naming scheme used for the C API test module: Modules/_testcapi.c -> Lib/test/test_capi.py Progams/_testembed.c -> Lib/test/test_embed.py --

[issue29670] argparse: does not respect required args pre-populated into namespace

2017-11-26 Thread Antonio Valentino
Change by Antonio Valentino : -- nosy: +avalentino ___ Python tracker ___ ___

[issue31937] Add the term "dunder" to the glossary

2017-11-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The term "dunder" is used in PEPs: PEP 8, PEP 408, PEP 435, PEP 505, PEP 520, PEP 526, and in the enum module documentation. -- ___ Python tracker

[issue32140] Probable bug in all python3 / idle3 debugger

2017-11-26 Thread Camion
New submission from Camion : Hello all, I have been investigating a bug with a generator, which crashed, reporting that "TypeError: 'Fraction' object is not iterable". Then I have tried to find it with the debugger and/or to reproduce it with a simpler program,

[issue32139] android: locale is modified by test_strftime

2017-11-26 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4497 stage: needs patch -> patch review ___ Python tracker ___

[issue32139] android: locale is modified by test_strftime

2017-11-26 Thread Xavier de Gaye
New submission from Xavier de Gaye : Test results: 1 test altered the execution environment: test_strftime Warning -- locale was modified by test_strftime Before: [(6, 'C.UTF-8'), (3, 'C.UTF-8'), (0, 'C.UTF-8'), (5, 'C.UTF-8'), (4, 'C.UTF-8'), (1,

[issue32138] android: test_faulthandler fails also on API 24

2017-11-26 Thread Xavier de Gaye
New submission from Xavier de Gaye : Issue 26934 skipped some tests of test_faulthandler on Android API < 24 to fix the problem that python does not crash upon _sigsegv(). But the same problem occurs on API 24 except randomly, you need to run test_faulthandler many times

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-26 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32126] [asyncio] test failure when the platform lacks a functional sem_open()

2017-11-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset a6fba9b827e395fc9583c07bc2d15cd11f684439 by xdegaye in branch 'master': bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559) https://github.com/python/cpython/commit/a6fba9b827e395fc9583c07bc2d15cd11f684439

[issue32137] Stack overflow in repr of deeply nested dicts

2017-11-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : repr() of deeply nested dicts and dictviews can cause a stack overflow. >>> x = {} >>> for i in range(10): ... x = {1: x} ... >>> repr(x) Segmentation fault >>> x = {} >>> for i in range(10): ... x = {1: x}

[issue32136] Move embedding tests to their own test module

2017-11-26 Thread STINNER Victor
STINNER Victor added the comment: What about a shorter name like test_embed? -- ___ Python tracker ___