[issue15472] Itertools doc summary table misdocuments some arguments

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: Per Raymond’s feedback, I will close this. The table is useful as a quick reference, seq is a shortcut, “it” or “iter” are worse names, the first doc line says this is all about iterators, and the individual function docs do use “iterable”. -- status: o

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

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: Inclined to reject this, given the general dislike of huge low-value patches. -- keywords: -easy status: open -> pending versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue9842] Document ... used in recursive repr of containers

2017-09-15 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bu

[issue13224] Change str(x) to return only the qualname for some types

2017-09-15 Thread Éric Araujo
Changes by Éric Araujo : -- pull_requests: +3599 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue29916] No explicit documentation for PyGetSetDef and getter and setter C-API

2017-09-15 Thread Michael Seifert
Changes by Michael Seifert : -- pull_requests: +3600 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13224] Change str(x) to return only the qualname for some types

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: I converted my patch to a PR. One use case mentioned on python-ideas was for reprs of PEP 384 types; need to hunt down where typing could benefit from the new str(class). The quote in my first message mentions printing err.__class__ rather than err.__class__.__n

[issue13487] inspect.getmodule fails when module imports change sys.modules

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: Could you give code to reproducer the problem, if possible without third-party dependencies? -- resolution: fixed -> status: closed -> open versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3 ___ Python tracker

[issue13420] newer() function in dep_util.py discard changes in the same second

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: Coming back to this, I think this should be a safe change that fixes the issue without previsible downside. Jacob, you opened a bug duplicate of this one: could you say what was the undesirable behaviour caused by the coarse resolution? (I would change os.stat(s

[issue13420] newer() function in dep_util.py discard changes in the same second

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: Oh well. Re-reading #11933 I see that st_mtime is a float and may not have the required precision (53 bits for Python floats vs 64 bit for timestamps), so the proposed change would not fix this issue and reopen that one. -- _

[issue31271] an assertion failure in io.TextIOWrapper.write

2017-09-15 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3601 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue13420] newer() function in dep_util.py discard changes in the same second

2017-09-15 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: https://bugs.python.org/msg302314 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13420] newer() function in dep_util.py discard changes in the same second

2017-09-15 Thread Éric Araujo
Éric Araujo added the comment: For 3.6 and 3.7, we can avoid the original float resolution issue thanks to stat_result.st_mtime_ns. Not sure if 2.7 should be changed. -- ___ Python tracker __

[issue10496] Python startup should not require passwd entry

2017-09-15 Thread Dmitriy
Changes by Dmitriy : -- pull_requests: +3602 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue13224] Change str(x) to return only the qualname for some types

2017-09-15 Thread Vedran Čačić
Vedran Čačić added the comment: I'm very glad this is moving forward. Yes, types (classes) are most important, functions and modules not so much. The biggest use case for me is easier construction of sane error messages. In many cases, something like f'Got a {type(argument)}' should be enough.

[issue9842] Document ... used in recursive repr of containers

2017-09-15 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +vexoxev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

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

2017-09-15 Thread Vedran Čačić
Vedran Čačić added the comment: So floats (and complexes) cannot be seeds anymore? :-o Or this pertains only to ints? In this case, I think the easiest doc fix is to change If a is an int, it is used directly. to If a is an int, its absolute value is used. -- nosy: +veky ___

[issue31488] IDLE: Update feature classes when options are changed.

2017-09-15 Thread Terry J. Reedy
New submission from Terry J. Reedy: For this issue, a 'feature class' is a non-extension class with options configured on the config dialog. Currently there are 4 such classes, which were extension classes before conversion by #27099. Currently, an extension class option takes effect either w

[issue15472] Itertools doc summary table misdocuments some arguments

2017-09-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___

[issue1230540] sys.excepthook doesn't work in threads

2017-09-15 Thread Matt Groth
Matt Groth added the comment: Thank you Antoine Pitrou, I was able to disable this behavior by commenting out some lines of code in 'traceback' and replacing them with the appropriate call to 'sys.excepthook'. Note you also have to comment out a few lines in "Modules/_threadmodule.c" to corres

[issue31488] IDLE: Update feature classes when options are changed.

2017-09-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch pull_requests: +3603 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

[issue31489] Signal delivered to a subprocess triggers parent's handler

2017-09-15 Thread Ilya Kulakov
New submission from Ilya Kulakov: It looks like a signal delivered to multiprocessing's process implicitly created by ProcessPoolExecutor triggers signal handler in the parent: ``` from concurrent.futures import ProcessPoolExecutor import asyncio import os import signal import sys import time

[issue31016] [Regression] sphinx shows an EOF error when using python2.7 from the trunk

2017-09-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: This seems like a bug, or least poor design, in Sphinx. It tries to read from pipes from processes that it knows are already dead (because it joined them!). -- ___ Python tracker

[issue31489] Signal delivered to a subprocess triggers parent's handler

2017-09-15 Thread Ilya Kulakov
Ilya Kulakov added the comment: I think either loop's signal handler should not be called from a subprocess or at the very least, os.getpid / os.getpgrp should report correctly. -- ___ Python tracker

[issue31488] IDLE: Update feature classes when options are changed.

2017-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5777ecc438790f3d324d52f2ccdad56e667e0cb3 by Terry Jan Reedy in branch 'master': bpo-31488: IDLE - update former extensions when options change. (#3612) https://github.com/python/cpython/commit/5777ecc438790f3d324d52f2ccdad56e667e0cb3 --

[issue31488] IDLE: Update feature classes when options are changed.

2017-09-15 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3604 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2017-09-15 Thread Big Stone
Big Stone added the comment: is there still any hope on this ? -- nosy: +Big Stone ___ Python tracker ___ ___ Python-bugs-list mailin

[issue31488] IDLE: Update feature classes when options are changed.

2017-09-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 77b52e463ab9f8bea7703ff9c03c06b3ec889db7 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31488: IDLE - update former extensions when options change. (GH-3612) (#3613) https://github.com/python/cpython/commit/77b52e463ab9f8bea

[issue13487] inspect.getmodule fails when module imports change sys.modules

2017-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: dict.copy() is not thread-safe still (but it can be made thread-safe). list(dict) is thread-safe. It copies a list of keys only. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue31182] Suggested Enhancements to zipfile & tarfile command line interfaces

2017-09-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The command-line interface of zipfile and tarfile modules was deliberately kept simple. If you need more complex functionality, just write a script. Python is a programming language! > 1. Wildcard filename matching for archiving This is a work for a shell.

<    1   2