[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-04-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1423 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-04-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds tests that check that PyArg_ParseTupleAndKeywords() correctly detects errors in the format string and keywords list and raises SystemError. It also allows the format argument in _testcapi.parse_tuple_and_keywords() be string.

[issue30181] Incorrect parsing of test case docstring

2017-04-26 Thread Ben Finney
Ben Finney added the comment: > This is because unittest.TestCase method `shortDescription()` will only > return the first line of docstring Yes, that is the “docstring synopsis” I referred to. PEP 257 has a section specifically about how tools should parse a docstring: https://www.python.org

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

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: Oh sorry, you reported the bug on my 2.7 backport but I ask you to report the bug here, and now the bug is specific to 2.7 :-) Yes, faulthandler implementation is different on Python 2.7. If you look in depth, it is even very different especially "dump later" (2

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I had the same wrong idea, I dug further into the site. The explanation is at https://www.iso.org/about-us.html ''' It's all in the name Because 'International Organization for Standardization' would have different acronyms in different languages (IOS in

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks :) -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 24404b4c92fc4195422c38563d0c6204fa7b16b1 by Mariatta in branch '2.7': [2.7] bpo-30182: Use the correct name for ISO in Unicode HOWTO. (GH-1312). (#1315) https://github.com/python/cpython/commit/24404b4c92fc4195422c38563d0c6204fa7b16b1

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset c4dfe2537fee970dc1bf3eb4fc2a3e007b36531c by Mariatta in branch '3.5': [3.5] bpo-30182: Use the correct name for ISO in Unicode HOWTO. (GH-1312) (GH-1314) https://github.com/python/cpython/commit/c4dfe2537fee970dc1bf3eb4fc2a3e007b36531c ---

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 33a5568f69301562d536852d12b9e03cd8dfc3a4 by Mariatta in branch '3.6': [3.6] bpo-30182: Use the correct name for ISO in Unicode HOWTO. (GH-1312) (GH-1313) https://github.com/python/cpython/commit/33a5568f69301562d536852d12b9e03cd8dfc3a4 ---

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1420 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1422 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1421 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Jesse Gonzalez
Jesse Gonzalez added the comment: PR created. CLA signed, but indicates otherwise in my account details. -- ___ Python tracker ___ ___

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Jesse Gonzalez
Changes by Jesse Gonzalez : -- pull_requests: +1419 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: +1 for change bytes to str. But struct.Struct() accepts both bytes and str, maybe in future buffer objects. When it gets a bytes object, converting it to a str looks unnecessary to me, and as OP said, comparison (a theoretical use case) could still fail. Could we

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

2017-04-26 Thread David Haney
New submission from David Haney: When compiling on HP-UX with the native cc compiler, the following compilation error occurs in pytime.c cc -Ae -c -O -O -I. -I./Include-DPy_BUILD_CORE -o Python/pytime.o Python/pytime.c "Python/pytime.c", line 723: error #2020: identifier "CLO

[issue30181] Incorrect parsing of test case docstring

2017-04-26 Thread Louie Lu
Louie Lu added the comment: This is because unittest.TestCase method `shortDescription()` will only return the first line of docstring, writing at here*: """ The default implementation of this method returns the first line of the test method’s docstring, if available, or None. """ Not sure if

[issue30131] test_logging leaks a "dangling" thread

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: Does this need to be backported? -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mail

[issue30115] test_logging report reference leak

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: Seems in #30131 Victor has solved this. :-) -- nosy: +haypo resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

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

2017-04-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: So... it looks like this could and does happen only on the 2.7 backport of faulthandler. 2.7 is missing the following commit to use pthreads native TLS instead of our lock filled non-async signal safe implementation: https://github.com/python/cpython/commi

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- keywords: +easy stage: -> needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Py

[issue30181] Incorrect parsing of test case docstring

2017-04-26 Thread Brian May
Changes by Brian May : -- nosy: +brian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-04-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 88c38b32b761cb566759b8ad96704bff590a1de9 by Xiang Zhang (Louie Lu) in branch 'master': bpo-28415: Note 0 conversion different between Python and C (#885) https://github.com/python/cpython/commit/88c38b32b761cb566759b8ad96704bff590a1de9 --

[issue13349] Non-informative error message in index() and remove() functions

2017-04-26 Thread Zahari Dim
Changes by Zahari Dim : -- pull_requests: +1418 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

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

2017-04-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: This report is based on manual code inspection in CPython head after we encountered a deadlock using pytracemalloc on Python 2.7.12 where it _appeared_ to be the scenario I've described. I see now that I missed noticing the "#ifndef Py_HAVE_NATIVE_TLS" withi

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Louie Lu
Louie Lu added the comment: Add the link: Python 3: https://docs.python.org/3/howto/unicode.html Python 2: https://docs.python.org/2/howto/unicode.html Both of 2 and 3 howto unicode use "International Standards Organization" Jesse, would you like to create a PR for this? -- nosy: +l

[issue30182] Incorrect in referring to ISO as "International Standards Organization"

2017-04-26 Thread Jesse Gonzalez
New submission from Jesse Gonzalez: When reviewing the Unicode HOWTO, I found a reference to ISO as "International Standards Organization", which should instead read "International Organization for Standardization". https://www.iso.org/home.html -- assignee: docs@python components: Do

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: I can't find any official, portable doc about the details so I don't prefer to have them. I support bit-masks are different. Previously I don't what's the better way to organize them, now I have a try. Please check the update. :-) --

[issue30181] Incorrect parsing of test case docstring

2017-04-26 Thread Ben Finney
New submission from Ben Finney: The docstring of a test case is not correctly parsed for display. The attached ‘test_foo.py’ module contains two test case functions. Both docstrings conform to PEP 257 : they have a single-line synopsis and some extra

[issue27172] Undeprecate inspect.getfullargspec()

2017-04-26 Thread Tim Graham
Tim Graham added the comment: Does it seems likely that getfullargspec() will be deprecated after Python 2 is EOL? Django is currently reimplementing getargspec(): https://github.com/django/django/blob/8ab7ce8558792f41637d6f87f2a8a117e169dd18/django/utils/inspect.py#L4-L24 A pull request propos

[issue30180] PyArg_ParseTupleAndKeywords supports required keyword only arguments

2017-04-26 Thread Joe Jevnik
New submission from Joe Jevnik: I opened a pr to remove a line in the docs about $ needing to follow | in PyArg_ParseTupleAndKeywords. In practice, you can just use a $ to create required keyword arguments which intuitively makes sense. I was told this should raise a SystemError; however, you

[issue30180] PyArg_ParseTupleAndKeywords supports required keyword only arguments

2017-04-26 Thread Joe Jevnik
Changes by Joe Jevnik : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Python-b

[issue30179] Update Copyright to 2017

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Duplicate of http://bugs.python.org/issue29555. -- nosy: +Mariatta resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue30179] Update Copyright to 2017

2017-04-26 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1416 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30179] Update Copyright to 2017

2017-04-26 Thread Cheryl Sabella
New submission from Cheryl Sabella: The copyright page is only through 2016. -- assignee: docs@python components: Documentation messages: 292383 nosy: csabella, docs@python priority: normal severity: normal status: open title: Update Copyright to 2017 type: enhancement versions: Python 3

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-04-26 Thread John Beck
John Beck added the comment: Solaris has this problem also, and Chris' patch fixes it for us. -- nosy: +jbeck ___ Python tracker ___ _

[issue28964] AST literal_eval exceptions provide no information about line number

2017-04-26 Thread Steve Merritt
Steve Merritt added the comment: I'll try to get to it this weekend. A bit swamped on another project right now. Thanks for the interest and the reminder! -- ___ Python tracker

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-04-26 Thread Dong-hee Na
Dong-hee Na added the comment: I submitted the PR for this issue. -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list maili

[issue30149] inspect.signature() doesn't support partialmethod without explicit self parameter

2017-04-26 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1415 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I still think that the difference between the groups should be documented in more details. Not all functions that support A_BOLD support also A_ITALIC and A_HORIZONTAL (even if they are defined). Bit masks are used in totally different way than other constan

[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

2017-04-26 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30172] test_tools takes longer than 5 minutes on some buildbots

2017-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is expected. test_tools just runs a large number of subprocesses. Some subtests proceeds a large number of Python source files as test_tokenize and test_lib2to3. Maybe it would be better to run and report tests for different tools as separate tests (te

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Xiang Zhang
Xiang Zhang added the comment: +1 for group. I added "The exact constants available are system dependent" to note some may be absent. -- ___ Python tracker ___ _

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-04-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Dong-hee Na and Mariatta. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Initially constants was enumerated in alphabetical order (except A_ITALIC). Maybe continue supporting this order? On other hand, it may be worth to group highlighting attributes separately. A_ATTRIBUTES, A_CHARTEXT and A_COLOR are not specific attributes,

[issue30178] Indent methods and attributes of MimeTypes class

2017-04-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1413 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue30178] Indent methods and attributes of MimeTypes class

2017-04-26 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Similar to #30168 opened earlier. The MimeTypes class's methods and attributes aren't indented and the resulting documentation is not indented and duplicates the class name. Didn't find anything that might indicate this was intentional when trying t

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2017-04-26 Thread André Anjos
Changes by André Anjos : -- title: site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP is set -> site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set ___ Python tracker

[issue30167] site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP is set

2017-04-26 Thread André Anjos
Changes by André Anjos : -- title: site.main() does not work on Python 3.6 and superior -> site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP is set ___ Python tracker

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 2fc3c543fc93d6211de8dcfaeac3a0fd10a356e0 by Mariatta (Dong-hee Na) in branch '3.6': [3.6] bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1303) https://github.com/python/cpython/commit/2fc3c543fc93d6211de8dcfaeac3a0fd10a356e0

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 19b3a4885cc685adb42db6f8f7b625768f6d1baf by Mariatta (Dong-hee Na) in branch '2.7': [2.7] bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1305) https://github.com/python/cpython/commit/19b3a4885cc685adb42db6f8f7b625768f6d1baf

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 9a626ec4e58c0bca1b4f71154e9e1da7e6d7e4a7 by Mariatta (Dong-hee Na) in branch '3.5': [3.5] bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1304) https://github.com/python/cpython/commit/9a626ec4e58c0bca1b4f71154e9e1da7e6d7e4a7

[issue30174] Duplicate code in pickletools.py

2017-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The variant without " in the string" is more correct and consistent with bytes4 and bytes8. The first bytes1 was added in issue16550. The duplicate was mistakenly added in issue17810. This change can be backported, but it is not worth since the duplication

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1412 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-04-26 Thread Michael Shuffett
New submission from Michael Shuffett: According to the documentation https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve If strict is False, the path is resolved as far as possible and any remainder is appended without checking whether it exists. The current behavior is not con

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset a90b990480f45b6a0ad02d43455cf8b620bac9c5 by Mariatta (Dong-hee Na) in branch 'master': bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1296) https://github.com/python/cpython/commit/a90b990480f45b6a0ad02d43455cf8b620bac9c5 --

[issue30174] Duplicate code in pickletools.py

2017-04-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Does this need to be backported? -- nosy: +Mariatta stage: -> patch review versions: +Python 3.7 ___ Python tracker ___ __

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1409 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30176] curses attribute constants list is incomplete

2017-04-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- assignee: docs@python components: Documentation nosy: berker.peksag, docs@python, haypo, xiang.zhang priority: normal severity: normal stage: patch review status: open title: curses attribute constants list is incomplete versions: Python 2.7, Python 3.5, Pytho

[issue30174] Duplicate code in pickletools.py

2017-04-26 Thread Tim Peters
Tim Peters added the comment: I already commented on github - +1 for this change. -- nosy: +tim.peters ___ Python tracker ___ ___ Pyth

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

2017-04-26 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Gentoo%20Installed%20with%20X%203.x/builds/593/steps/test/logs/stdio == ERROR: test_logincapa_with_client_certfile (test.test_imaplib.RemoteIMAP

[issue30174] Duplicate code in pickletools.py

2017-04-26 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: The bytes1 ArgumentDescriptor is duplicated in pickletools.py. -- messages: 292364 nosy: Jelle Zijlstra, alexandre.vassalotti priority: normal pull_requests: 1408 severity: normal status: open title: Duplicate code in pickletools.py __

[issue30101] Add support for ncurses A_ITALIC

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: Thanks Bastien Orivel for your first contribution to Python! -- nosy: +haypo ___ Python tracker ___

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > Sorry for making a typo in your last name No problem! This actually happened maaany times with me :-) -- ___ Python tracker ___

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Mathias Rav
Mathias Rav added the comment: Sorry for making a typo in your last name, Ivan Levkivskyi! I should know better and use copy-and-paste. -- ___ Python tracker ___ ___

[issue30101] Add support for ncurses A_ITALIC

2017-04-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue30101] Add support for ncurses A_ITALIC

2017-04-26 Thread Xiang Zhang
New submission from Xiang Zhang: New changeset ab7886b78574d9224b26dc3a5b08e5c105fbbf11 by Xiang Zhang (Eijebong) in branch 'master': bpo-30101: Add support for curses.A_ITALIC. (#1015) https://github.com/python/cpython/commit/ab7886b78574d9224b26dc3a5b08e5c105fbbf11 -- nosy: +xiang.z

[issue30171] Emit ResourceWarning in multiprocessing Queue destructor

2017-04-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue30169] test_multiprocessing_spawn crashed on AMD64 Windows8.1 Non-Debug 3.x buildbot

2017-04-26 Thread Thomas Wouters
Thomas Wouters added the comment: Eh, commit a00c3fd12d421e41b769debd7df717d17b0deed5 wasn't supposed to affect any behaviour in release builds, just in non-debug builds *with asserts enabled*, and only in making them build. (There is a bug in that commit that was fixed right after, commit

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-26 Thread Michael Seifert
Michael Seifert added the comment: > zip.__length_hint__() must return NotImplemented or raise TypeError if any of > iterators don't implement __length_hint__ or its __length_hint__() returns > NotImplemented or raises TypeError. > And what should return zip(range(3), range(2**1000)).__length_

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2017-04-26 Thread Michael Seifert
Michael Seifert added the comment: > I would like to mark this tracker item as closed. IMO it is a dead-end. Yes, even some (not very uncommon cases) give incorrect results: it = iter([1,2,3]) zip(it, it, it) has length_hint 3 but will only yield one item. -- __

[issue30173] x86 Windows7 3.x buildbot has the issue #26624 bug

2017-04-26 Thread STINNER Victor
New submission from STINNER Victor: It looks like the x86 Windows7 3.x buildbot has the issue #26624 bug: test__locale hangs. This buildbot slave is managed by David Bolen. @David: please see: * https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk * https://bugs.python.org/is

[issue30172] test_tools takes longer than 5 minutes on some buildbots

2017-04-26 Thread STINNER Victor
New submission from STINNER Victor: On x86-64 El Capitan 3.x buildbot, test_tools takes longer than 5 minutes, whereas the overall test suite took 31 min. Is someone wrong in test_tools? http://buildbot.python.org/all/builders/x86-64%20El%20Capitan%203.x/builds/92/steps/test/logs/stdio Run tes

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Berker Peksag
Berker Peksag added the comment: Now all backport PRs have been merged. Thanks for the PR, Mathias. > Thanks for making backport PRs! (and sorry for closing prematurely) No problem, thanks for the reviews! By the way, sorry I missed the typo in your last name while doing the initial merge. --

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Berker Peksag
Berker Peksag added the comment: New changeset 04f389b8b357c8507b6c9642adcb8b956489e034 by Berker Peksag in branch '3.6': bpo-29974: Improve typing.TYPE_CHECKING example (GH-982) https://github.com/python/cpython/commit/04f389b8b357c8507b6c9642adcb8b956489e034 --

[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2017-04-26 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Berker Peksag
Berker Peksag added the comment: New changeset 271a289a03ad10c91c5326bde3020f1cdf6a1fff by Berker Peksag in branch '3.5': bpo-29974: Improve typing.TYPE_CHECKING example (GH-982) https://github.com/python/cpython/commit/271a289a03ad10c91c5326bde3020f1cdf6a1fff --

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-26 Thread Mike
Changes by Mike : -- pull_requests: +1407 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > 87c07fe9d908d0a2143fcc8369255c6ff3241503 should still be backported to 3.5 > and 3.6 branches so please don't close it yet. Thanks for making backport PRs! (and sorry for closing prematurely) -- ___ Python tracke

[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2017-04-26 Thread Berker Peksag
Berker Peksag added the comment: I think this is a documentation issue. curses.chgat() documentation tries to describe different signatures in one place and some of these signatures change the behavior of the function. For example, curses.chgat() calls mvwchgat() when users pass y and x to it

[issue30131] test_logging leaks a "dangling" thread

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf by Victor Stinner in branch 'master': bpo-30131: test_logging now joins queue threads (#1298) https://github.com/python/cpython/commit/8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf --

[issue30171] Emit ResourceWarning in multiprocessing Queue destructor

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot that I hitted this issue while analyzing issue #30131: test_logging leaks a "dangling" thread. It took me a while to find multiprocessing queues in the big test_logging file! -- ___ Python tracker

[issue30171] Emit ResourceWarning in multiprocessing Queue destructor

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: Example: haypo@selma$ ./python queue_leak.py number of thread diff: +1 dangling threads! before: [<_MainThread(MainThread, started 139814961067072)>] after: [<_MainThread(MainThread, started 139814961067072)>] Note: queue_leak.py resource check is based on tes

[issue30171] Emit ResourceWarning in multiprocessing Queue destructor

2017-04-26 Thread STINNER Victor
New submission from STINNER Victor: A multiprocessing Queue object managers multiple resources: * a multiprocessing Pipe * a thread * (a lock and a semaphore) If a Queue is not cleaned up properly, your application may leak many resources. Try attached queue_leak.py to see an example "leaking

[issue30170] "tests may fail, unable to create temporary directory" warning on buildbot: add a cleanup step to buildbots

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: I also see this warning on AppVeyor: 0:01:42 [170/404] test_fcntl skipped -- running: test_concurrent_futures (76 sec) C:\projects\cpython\lib\test\support\__init__.py:1012: RuntimeWarning: tests may fail, unable to create temporary directory 'C:\\projects\\c

[issue29941] Confusion between asserts and Py_DEBUG

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: > since the commit a00c3fd12d421e41b769debd7df717d17b0deed5 *or later* (who > knows?)... Hum, my sentence is unclear: I mean that I am not sure that this commit is related to issue #30169 crash. -- ___ Python tracke

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30131] test_logging leaks a "dangling" thread

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: After stressing test_logging during 2 days on my FreeBSD VM, it seems like I found the root bug: see https://github.com/python/cpython/pull/1298 -- ___ Python tracker

[issue30131] test_logging leaks a "dangling" thread

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

[issue29974] Change typing.TYPE_CHECKING doc example

2017-04-26 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: +1404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29941] Confusion between asserts and Py_DEBUG

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: Please see the issue #30169 "test_multiprocessing_spawn crashed on AMD64 Windows8.1 Non-Debug 3.x buildbot", a mysterious and random bug on Windows which started to occur since the commit a00c3fd12d421e41b769debd7df717d17b0deed5 *or later* (who knows?)... ---

[issue30169] test_multiprocessing_spawn crashed on AMD64 Windows8.1 Non-Debug 3.x buildbot

2017-04-26 Thread STINNER Victor
STINNER Victor added the comment: I also checked the last 250 builds of AMD64 Windows8 3.x: test_multiprocessing_spawn never crashed. http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x We got 8 crashed on "AMD64 Windows8.1 Non-Debug 3.x", but 0 crash on "AMD64 Windows8 3.x" (simil

[issue30142] The "callable" fixer doesn't exist

2017-04-26 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +1403 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

  1   2   >