[issue31425] Expose AF_QIPCRTR in socket module

2017-09-22 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3691 stage: -> patch review ___ Python tracker ___

[issue31423] Error while building PDF documentation

2017-09-22 Thread Ned Deily
Ned Deily added the comment: Good news! It appears that the changes supplied by @linkid have indeed fixed the daily downloadable doc build failures, 3.7, 3.6, and 2.7 docs were built successfully and the 404s are gone. Thanks everyone for helping with this! -- stage: commit review ->

[issue31553] Extend json.tool to handle jsonlines (with a flag)

2017-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Jsonlines is an external to JSON format. You should split the data on lines and pass every line to the JSON parser separately. The same you should do with json.tool. $ echo -e '{"ingredients":["frog", "water", "chocolate",

[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-09-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't see reasons why it should obey overriding the __abs__() method. I concur. -- ___ Python tracker ___

[issue31553] Extend json.tool to handle jsonlines (with a flag)

2017-09-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems like a reasonable enhancement. -- nosy: +rhettinger ___ Python tracker ___

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- components: +Interpreter Core ___ Python tracker ___ ___

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-22 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3690 ___ Python tracker ___

[issue31459] IDLE: Rename Class Browser as Module Browser

2017-09-22 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- keywords: +patch pull_requests: +3689 stage: test needed -> patch review ___ Python tracker ___

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2017-09-22 Thread Łukasz Langa
New submission from Łukasz Langa: When you're forking many worker processes off of a parent process, the resulting children are initially very cheap in memory. They share memory pages with the base process until a write happens [1]_. Sadly, the garbage collector in Python touches every

[issue31461] IDLE: Enhance module browser

2017-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: IDLE: Enhance class browser -> IDLE: Enhance module browser ___ Python tracker ___

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Viktor Kovtun
Viktor Kovtun added the comment: Actually provided example without patch will print 1, which is not expected -- ___ Python tracker ___

[issue31557] tarfile: incorrectly treats regular file as directory

2017-09-22 Thread Joe Tsai
New submission from Joe Tsai: The original V7 header only allocates 100B to store the file path. If a path exceeds this length, then either the PAX format or GNU formats must be used, which can represent arbitrarily long file paths. When doing so, most tar writers just store the first 100B of

[issue1612262] Class Browser doesn't show internal classes

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I settled on 'transform_children' for the new function. #31461 is the master issue for improving the browsers. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue1612262] Class Browser doesn't show internal classes

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset fa1cae5832cbcfafedc4b1879c2abc85452f4edd by Terry Jan Reedy in branch '3.6': [3.6] bpo-1612262: IDLE: Class Browser shows nested functions, classes (GH-2573) (#3702)

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Yury Selivanov
Yury Selivanov added the comment: You're right! Let's work on the PR then, I've left a review comment. -- ___ Python tracker ___

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Viktor Kovtun
Viktor Kovtun added the comment: asyncio.wait_for is coroutine itself, to start executing code, no matter with this PR or not it needs to be awaited/yield from import asyncio @asyncio.coroutine def foo(): print(1) loop = asyncio.get_event_loop() fut = asyncio.wait_for(foo(), 0)

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Yury Selivanov
Yury Selivanov added the comment: I think this is a backwards incompatible change and thus will be rejected. Currently there's a guarantee that "wait_for" can throw a TimeoutError *only* when when you await it. fut = wait_for(something, 0) # some important code try: await

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Viktor Kovtun
Viktor Kovtun added the comment: If coroutine function has some blocking calls before first await/yield from statement maybe makes sense do no let them be executed, if timeout equals 0 -- ___ Python tracker

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Yury Selivanov
Yury Selivanov added the comment: Do you have a use case where this optimization is important? -- ___ Python tracker ___

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Viktor Kovtun
Changes by Viktor Kovtun : -- keywords: +patch pull_requests: +3687 stage: -> patch review ___ Python tracker ___

[issue1612262] Class Browser doesn't show internal classes

2017-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3686 ___ Python tracker ___ ___

[issue31556] asyncio.wait_for can cancel futures faster with timeout==0

2017-09-22 Thread Viktor Kovtun
New submission from Viktor Kovtun: There is no need to create extra future and use loop.call_later to cancel base future from asyncio.wait_for when timeout==0. If loop is heavy loaded it can be cancelled simnifically later then 0 seconds later. -- components: asyncio messages: 302770

[issue12301] Use :role:`sys.thing` instead of ``sys.thing`` throughout

2017-09-22 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> rejected stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue31534] python 3.6.2 installation failed 0x80070002 error

2017-09-22 Thread Steve Dower
Steve Dower added the comment: If you look in your %TEMP% directory, there should be more log files near the one you attached (most of the filename will be the same). Could you zip them up and attach all of them here? I think there's some information in one of the others that I'll need to

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-22 Thread S Safihre
New submission from S Safihre: I have a Python 2.7 C-extension that was made for performance, however, I noticed something strange on Windows: When I run locally python setup.py install and it installs it the "egg" way, the performance of calling the function in the module 500x in a loop is:

[issue1612262] Class Browser doesn't show internal classes

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 058de11360ea6816a6e978c7be0bcbea99a3f7da by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-1612262: IDLE: Class Browser shows nested functions, classes (#2573)

[issue19907] gettext - Non ascii chars in header

2017-09-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue31423] Error while building PDF documentation

2017-09-22 Thread Ned Deily
Ned Deily added the comment: Thanks for looking into this. See also https://github.com/python/psf-salt/issues/118 where the question arose whether the version of Tex Live on docs is new enough. I'm no expert at anything Tex but the odd thing is that I had been able to build dist docs on my

[issue31423] Error while building PDF documentation

2017-09-22 Thread Zachary Ware
Zachary Ware added the comment: Pending results of actual builds on docs.p.o, this should be fixed. -- resolution: -> fixed stage: patch review -> commit review status: open -> pending ___ Python tracker

[issue31554] Warn when __loader__ != __spec__.loader

2017-09-22 Thread Brett Cannon
New submission from Brett Cannon: There a couple of places where __loader__ is directly used (the biggest one probably being importlib.reload()). It would probably be good to warn when module.__loader__ != module.__spec__.loader like we do for __package__ to start transitioning people over to

[issue31423] Error while building PDF documentation

2017-09-22 Thread Zachary Ware
Zachary Ware added the comment: New changeset da86874a3d8f882d6aedd882b2e27f59b59d6798 by Zachary Ware in branch '2.7': [2.7] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3700) https://github.com/python/cpython/commit/da86874a3d8f882d6aedd882b2e27f59b59d6798 --

[issue21937] IDLE interactive window doesn't display unsaved-indicator

2017-09-22 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- keywords: +patch pull_requests: +3685 stage: needs patch -> patch review ___ Python tracker ___

[issue31423] Error while building PDF documentation

2017-09-22 Thread Zachary Ware
Zachary Ware added the comment: New changeset 6de35849cb7a18bfaad828eb57a2e6caa7978690 by Zachary Ware in branch '3.6': [3.6] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3699) https://github.com/python/cpython/commit/6de35849cb7a18bfaad828eb57a2e6caa7978690 --

[issue31423] Error while building PDF documentation

2017-09-22 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +3684 ___ Python tracker ___ ___

[issue31423] Error while building PDF documentation

2017-09-22 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +3683 ___ Python tracker ___ ___

[issue31494] Valgrind suppression file

2017-09-22 Thread Stefan Krah
Stefan Krah added the comment: Also, I don't think --with-pydebug works well with valgrind. It's either: 1) --with-pydebug 2) CFLAGS="-O0 -g" --with-valgrind 3) CFLAGS="-O0 -g" --without-pymalloc Combining 2) and 3) probably does not hurt, but is not necessary. -- resolution:

[issue31534] python 3.6.2 installation failed 0x80070002 error

2017-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Windows -Installation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue31494] Valgrind suppression file

2017-09-22 Thread Stefan Krah
Stefan Krah added the comment: The suppressions are mainly for "invalid access" due to a gc trick. The primary goal is to be definitely-lost-clean. I would say it works as expected. -- nosy: +skrah ___ Python tracker

[issue31502] IDLE: Config dialog again deletes custom themes and keysets.

2017-09-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31494] Valgrind suppression file

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 only gets security fixes, and this does not seem to be a security issue. Please retest with 3.6 or 3.7. -- nosy: +terry.reedy ___ Python tracker

[issue31443] Possibly out of date C extension documentation

2017-09-22 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-09-22 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 0a1ff24acfc15d8c7f2dc41000a6f3d9a31e7480 by Neil Schemenauer in branch 'master': bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#3372)

[issue31423] Error while building PDF documentation

2017-09-22 Thread Zachary Ware
Zachary Ware added the comment: New changeset da9b4cfb488119f2493a762fcb1d85c58494f51d by Zachary Ware (François Magimel) in branch 'master': bpo-31423: Fix building the PDF documentation (GH-3693) https://github.com/python/cpython/commit/da9b4cfb488119f2493a762fcb1d85c58494f51d --

[issue31550] Inconsistent error message for TypeError with subscripting

2017-09-22 Thread Anthony Sottile
Anthony Sottile added the comment: All I'm really looking for is consistency -- should the change to 2.7 be reverted instead? -- ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2017-09-22 Thread jan matejek
Changes by jan matejek : -- pull_requests: +3682 stage: -> patch review ___ Python tracker ___

[issue31553] Extend json.tool to handle jsonlines (with a flag)

2017-09-22 Thread Eric Moyer
New submission from Eric Moyer: json.tool should have the ability to format jsonlines data. It is a very commonly used format in many industries. Right now when given jsonlines (for example): echo -e '{"ingredients":["frog", "water", "chocolate", "glucose"]} | python -m json.tool Works.

[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31389] Give pdb.set_trace() an optional `header` keyword argument

2017-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 35425d638c0eeb8377620e016f47df3ae08d7061 by Barry Warsaw in branch 'master': bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438) https://github.com/python/cpython/commit/35425d638c0eeb8377620e016f47df3ae08d7061 --

[issue31443] Possibly out of date C extension documentation

2017-09-22 Thread Stefan Krah
Stefan Krah added the comment: New changeset b1558a0368949714f5765702a8d83a2d163eaacf by Stefan Krah in branch 'master': bpo-31443: Update included code. (#3697) https://github.com/python/cpython/commit/b1558a0368949714f5765702a8d83a2d163eaacf --

[issue31443] Possibly out of date C extension documentation

2017-09-22 Thread Stefan Krah
Changes by Stefan Krah : -- pull_requests: +3681 ___ Python tracker ___ ___

[issue31443] Possibly out of date C extension documentation

2017-09-22 Thread Stefan Krah
Stefan Krah added the comment: New changeset ca72589bfabe2fd0e12eebfeb770b6c7a499b3e6 by Stefan Krah in branch 'master': bpo-31443: Formulate the type slot initialization rules in terms of C99. (#3688) https://github.com/python/cpython/commit/ca72589bfabe2fd0e12eebfeb770b6c7a499b3e6

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-22 Thread Guido van Rossum
Guido van Rossum added the comment: > if you change run_forever with run_until_complete, then behavior changes: > success_coro(5) will not be executed Oh, that's a red herring. The reason is that the event loop stops when you use run_complete(), but the execution of success_coro(5) is still

[issue31443] Possibly out of date C extension documentation

2017-09-22 Thread Stefan Krah
Stefan Krah added the comment: Okay, thanks. I found that bz2module.c has also used direct initialization for ages. I'm going to commit the change. -- ___ Python tracker

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From #31461: Browsers currently use idlelib.tree.TreeWidget. Treeview is not >a drop-in replacement because TreeWidget has some of the higher-level >app-specific functions that users are expected to add to Treeview. But could >Treeview replace the

[issue31461] IDLE: Enhance class browser

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #31552 ttk.Treeview -- dependencies: +IDLE: Convert browswers to use ttk.Treeview ___ Python tracker ___

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2017-09-22 Thread Terry J. Reedy
New submission from Terry J. Reedy: ttk.Treeview should look as good as idlelib.tree, but will check. It is more flexible. Note that Treeview is low-level, need to add higher level functions or classes. See if can more or less duplicate API of tree Items. -- assignee: terry.reedy

[issue31443] Possibly out of date C extension documentation

2017-09-22 Thread Christoph Reiter
Christoph Reiter added the comment: Building the following with gcc from msys2 (cygwin) worked fine here: https://bpaste.net/show/0cafd5fa8211 -- nosy: +lazka ___ Python tracker

[issue31351] ensurepip discards pip's return code which leads to broken venvs

2017-09-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: This has been backported to 3.6. Is backport to 2.7 needed? -- ___ Python tracker ___

[issue31351] ensurepip discards pip's return code which leads to broken venvs

2017-09-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset eef49f5dd021d15396551880cf451042a79a1107 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31351: Set return code in ensurepip when pip fails (GH-3626) (GH-3683)

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-22 Thread Andrew Lytvyn
Andrew Lytvyn added the comment: Guido, look. The point is that if you change run_forever with run_until_complete, then behavior changes: success_coro(5) will not be executed. I think that it's strange that behavior differs depending on entrypoint: run_forever or run_untill_complete

[issue31149] Add Japanese to the language switcher

2017-09-22 Thread Julien Palard
Changes by Julien Palard : -- status: open -> closed ___ Python tracker ___ ___

[issue31092] multiprocessing.Manager() race condition

2017-09-22 Thread Lang
Lang added the comment: # code reproduce bug # KeyError in lib\multiprocessing\managers.py in incref import multiprocessing as mp from time import sleep def func(queue): pass if __name__ == '__main__': manager = mp.Manager() pool = mp.Pool(1) queue = manager.Queue() r =

[issue31551] test_distutils fails if current directory contains spaces

2017-09-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Running tests from the directory containing a space: '/home/serhiy/py/cpy thon'. $ ./python -m test -vuall test_distutils == CPython 3.7.0a1+ (heads/master:5e02c7826f, Sep 22 2017, 13:23:33) [GCC 6.3.0 20170406] ==

[issue31423] Error while building PDF documentation

2017-09-22 Thread linkid
Changes by linkid : -- keywords: +patch pull_requests: +3680 stage: -> patch review ___ Python tracker ___

[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The more I think about this the more I like the idea of using int.__abs__() directly (PyLong_Type.tp_as_number->nb_absolute() in C). The C code doesn't call potentially overridable methods bit_length() and to_bytes(), it uses concrete implementations

[issue31423] Error while building PDF documentation

2017-09-22 Thread linkid
Changes by linkid : -- nosy: +linkid ___ Python tracker ___ ___

[issue30844] selectors: Add urgent data to read event

2017-09-22 Thread Pim Klanke
Pim Klanke added the comment: In the selectors module, the winsock select method is wrapped. The second parameter (writefds) is passed to both writefds and exceptfds and the returned number of fds for write and except are summed and returned in the second element of the tuple. Can anyone

[issue31550] Inconsistent error message for TypeError with subscripting

2017-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure that this is an enhancement. It makes an error message inconsistent with other error messages. >>> class I(int): pass ... >>> I()[0] Traceback (most recent call last): File "", line 1, in TypeError: 'I' object does not support indexing >>>