[issue32162] typing.Generic breaks __init_subclass__

2017-11-28 Thread Ilya Kulakov
Ilya Kulakov added the comment: Current workaround is class X(typing.Generic[T] if typing.TYPE_CHECKING else object): -- ___ Python tracker ___ ___

[issue32137] Stack overflow in repr of deeply nested dicts

2017-11-28 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4534 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31279] Squash new gcc warning (-Wstringop-overflow)

2017-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4535 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32161] Python 2.7.14 installation on Ubuntu 16.04/GCC 5.4 throws "internal compiler error" in "PyFloat_GetMax" function

2017-11-28 Thread Rahul
Rahul added the comment: Thanks for your response. I'll follow up with GCC. On Nov 28, 2017 14:48, "STINNER Victor" wrote: > > STINNER Victor added the comment: > > "internal compiler error" is a bug in GCC, not in Python. Please follow > instructions in the error message: > > Please submit

[issue32162] typing.Generic breaks __init_subclass__

2017-11-28 Thread Ilya Kulakov
Ilya Kulakov added the comment: Nah, that's a bad one: you cannot use Generic classes as intended by specifying types. It looks like it happens because cls._grog is not yet set properly by the time __init_subclass__ is called. -- ___ Python tracke

[issue32124] Document functions safe to be called before Py_Initialize()

2017-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4536 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Change by Evan Driscoll : -- nosy: +evaned ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue32122] Improve -x option documentation

2017-11-28 Thread STINNER Victor
STINNER Victor added the comment: I don't know if "@path\to\python -x %0 %* & exit /b" and "@py -3 -x %0 %* & exit /b" are correct and well supported on all recent Windows versions. Apart of that, I like your new documentation :-) -- nosy: +vstinner __

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 219c2de5ad0fdac825298bed1bb251f16956c04a by Serhiy Storchaka in branch 'master': bpo-32110: codecs.StreamReader.read(n) now returns not more than n (#4499) https://github.com/python/cpython/commit/219c2de5ad0fdac825298bed1bb251f16956c04a

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4537 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4538 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32162] typing.Generic breaks __init_subclass__

2017-11-28 Thread Ilya Kulakov
Ilya Kulakov added the comment: That's a better workaround: class X(typing.Generic[T]): def __init_subclass__(cls, **kwargs): super(typing.GenericMeta, cls).__setattr__('_gorg', cls) super().__init_subclass__(**kwargs) -- ___

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 230ffeae0a3961b1769806bd722c26227c84e8da by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622) https://github.com/python/cpython/commit/230ffeae0a3961b1

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Evan Driscoll added the comment: I ran into this issue today. (Or rather a couple weeks ago, and I just diagnosed it today.) Reading through the thread and from the bug's age it looks like a fix is probably not to promising, but Cherniavsky Beni's 2016-04-11 22:03 comment > Can I additional

[issue32101] Add PYTHONDEVMODE=1 to enable the developer mode

2017-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4539 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32101] Add PYTHONDEVMODE=1 to enable the developer mode

2017-11-28 Thread STINNER Victor
STINNER Victor added the comment: While implementing a new PYTHONDEVMODE environment variable, I found that it would help to also add a new sys.flags.dev_mode flag. So I added it. So for example, asyncio uses sys.flags.dev_mode rather than checking for 'dev' in sys._xoptions *and* check if th

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fc73c54dae46e6c47dcd4a535f7bc68a46b8e398 by Serhiy Storchaka (Miss Islington (bot)) in branch '2.7': bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4623) https://github.com/python/cpython/commit/fc73c54dae46e6c4

[issue32110] Make codecs.StreamReader.read() more compatible with read() of other files

2017-11-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4540 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32163] getattr() returns None even when default is given

2017-11-28 Thread darkdragon-001
New submission from darkdragon-001 : # fail.py def main(): patch = './a' f = open(patch, 'r') a = getattr(f,'encoding','ascii') print(str(a)) if __name__ == "__main__": main() --- $ touch a $ python fail.py It still prints out 'None' instead of 'ascii'. This issue is fixed

[issue32100] IDLE: PathBrowser isn't working

2017-11-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +4541 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32163] getattr() returns None even when default is given

2017-11-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: That's not a bug. That's because the file object does have an encoding attribute, which is set to None. getattr only returns the default when the attribute doesn't exist, not if it exists but is None. -- nosy: +steven.daprano resolution: -> not a b

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-11-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +4542 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32164] IDLE: delete tabbedpages.py

2017-11-28 Thread Terry J. Reedy
New submission from Terry J. Reedy : idlelib.tabbedpages.TabbedPageSet is a custom widget only used for the tabbed config dialog. #30781 converted to using tkinter.ttk.Notebook. The latter has proven to be an improvement and the former has no other use, nor would I recommend its use. Time t

[issue32164] IDLE: delete tabbedpages.py

2017-11-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +4543 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue32100] IDLE: PathBrowser isn't working

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset fd6f8c56b9a757210e8ceaea9edc50e502dc2085 by Terry Jan Reedy in branch 'master': bpo-32100: Delete unneeded import in idlelib.pathbrowser. (#4626) https://github.com/python/cpython/commit/fd6f8c56b9a757210e8ceaea9edc50e502dc2085 --

[issue32100] IDLE: PathBrowser isn't working

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4544 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4545 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset e8f7c78a868834bb53fa0ac903fc87785112f49e by Terry Jan Reedy in branch 'master': bpo-30781: Remove unused imports in idlelib.configdialog. (#4627) https://github.com/python/cpython/commit/e8f7c78a868834bb53fa0ac903fc87785112f49e --

[issue32165] PyEval_InitThreads is called before Py_Initialize in LoadPython in Modules/_ctypes/callbacks.c

2017-11-28 Thread Kenta Murata
New submission from Kenta Murata : As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called before Py_Initialize() function. But in Modules/_ctypes/callbacks.c, PyEval_InitThreds() is called before Py_Initialize() in LoadPython function. -- components: ctypes messages:

[issue32122] Improve -x option documentation

2017-11-28 Thread Steve Dower
Steve Dower added the comment: Those examples look fine to me -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32100] IDLE: PathBrowser isn't working

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 38ecf57306ef25874ef7c44a9875771e90faee97 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-32100: Delete unneeded import in idlelib.pathbrowser. (GH-4626) (#4629) https://github.com/python/cpython/commit/38ecf57306ef25874ef7c44a98757

[issue32156] Fix flake8 warning F401: ... imported but unused

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idlelib deletions done. pathbrowser, #32100, PR-4626 configdialog, #30781, PR-4627 -- nosy: +terry.reedy ___ Python tracker ___ __

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Review of overview: PR-2706 and PR-2613 fixed one line in test_configdialog for this issue. PR-2046, #30617 and PR-3238, #30781 are merged cross-references. PR-3222 was closed in favor of PR-3220, #31287, merged. PR-3592 completes highlights and keys coverage a

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a8de6964ec46cdadb12cf2d45ebf1473659c by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630) https://github.com/python/cpython/commit/a8de6964ec46cdadb12cf2d45

[issue32164] IDLE: delete tabbedpages.py

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 041efd292ebff46060fc1680b0608b1d4c876a48 by Terry Jan Reedy in branch 'master': bpo-32164: Delete unused file idlelib/tabbedpages.py (#4628) https://github.com/python/cpython/commit/041efd292ebff46060fc1680b0608b1d4c876a48 -- _

[issue32164] IDLE: delete tabbedpages.py

2017-11-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4547 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Evan Driscoll added the comment: > I also think that nargs=## could maybe be special-cased to just ignore > the A/O designation completely and only check there are enough, but I > haven't tried this out. Does this seem like a viable approach? Would a > patch that does that, subject to some fl

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Evan Driscoll added the comment: One last comment for the time being. I actually think *both* changes are valuable. Fixing the bug, well, fixes the bug if you can set the appropriate flag. The improved error message still helps for existing code and new code that *doesn't* set the flag.

[issue32164] IDLE: delete tabbedpages.py

2017-11-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32164] IDLE: delete tabbedpages.py

2017-11-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 957aef7c41ccae8a60d3dbbe8863401bd270dc86 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': bpo-32164: Delete unused file idlelib/tabbedpages.py (GH-4628) (#4631) https://github.com/python/cpython/commit/957aef7c41ccae8a60d3dbbe8863401bd2

<    1   2