[issue1346238] A constant folding optimization pass for the AST

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Have been implemented in issue29469. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> AST-level Constant folding ___

[issue32307] Bad assumption on thread stack size makes python crash with musl libc

2017-12-14 Thread Natanael Copa
Natanael Copa added the comment: I ran a test of pthread_attr_getstacksize() on various systems. Here is what they return: Linux/glibc: 8388608 MacOS: 524288 FreeBSD 11.1: 0 (ulimit -s gives 524288) NetBSD 7.1: 4194304 OpenBSD 6.2: 524288 I could

[issue32307] Bad assumption on thread stack size makes python crash with musl libc

2017-12-14 Thread Natanael Copa
Natanael Copa added the comment: With "bad assumption" I mean that currently the code assumes that all unknown systems has big enough default thread stack size. This would not be a "bad assumption" if POSIX (or any other standard) would specify a requirement on the

[issue32143] os.statvfs lacks f_fsid

2017-12-14 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I think Giuseppe's patch is good, but there's a Windows failure on AppVeyor, so I'm a little wary. It doesn't look related, but I haven't looked at Python on Windows since... 2001, maybe? --

[issue32226] Implement PEP 560: Core support for typing module and generic types

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This adds an overhead to every indexing. $ ./python -m perf timeit --compare-to=./python0 -s 'a = [1]' --duplicate=1 'a[0]' python0: . 15.3 ns +- 0.5 ns python: . 16.1 ns +- 0.3 ns

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4754 ___ Python tracker ___ ___

[issue32225] Implement PEP 562: module __getattr__ and __dir__

2017-12-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Travis build on master successful, so I am closing this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29469] AST-level Constant folding

2017-12-14 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +4753 ___ Python tracker ___ ___

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4752 ___ Python tracker ___ ___

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue32302] test_distutils: test_get_exe_bytes() failure on AppVeyor

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: It seems like AppVeyor is fixed, thanks Steve for the help! Later, it would be nice to write a more generic fix than hardcoding two minor versions. -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 374c6e178a7599aae46c857b17c6c8bc19dfe4c2 by Victor Stinner in branch 'master': bpo-32030: Add _PyMainInterpreterConfig.warnoptions (#4855)

[issue32297] Few misspellings found in Python source code comments.

2017-12-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 53f7a7c2814fbfd8a29200926601a32fa48bacb3 by Andrew Svetlov (Mike) in branch 'master': bpo-32297: Few misspellings found in Python source code comments. (#4803)

[issue32302] test_distutils: test_get_exe_bytes() failure on AppVeyor

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 645fa19f15cddeec8d882a9e1420173e7516f0e4 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32302: Fix distutils bdist_wininst for CRT v142 (GH-4851) (#4861)

[issue32225] Implement PEP 562: module __getattr__ and __dir__

2017-12-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 5364b5cd7571f2dfa75acd37b388c14ac33fef73 by Ivan Levkivskyi in branch 'master': bpo-32225: Implementation of PEP 562 (#4731) https://github.com/python/cpython/commit/5364b5cd7571f2dfa75acd37b388c14ac33fef73 --

[issue32302] test_distutils: test_get_exe_bytes() failure on AppVeyor

2017-12-14 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4751 ___ Python tracker ___

[issue32302] test_distutils: test_get_exe_bytes() failure on AppVeyor

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e7c136ad8bc8e8eec50c2a8ae5ff02752f695a2 by Victor Stinner in branch 'master': bpo-32302: Fix distutils bdist_wininst for CRT v142 (#4851)

[issue21074] Too aggressive constant folding

2017-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4750 stage: needs patch -> patch review ___ Python tracker

[issue30416] constant folding opens compiler to quadratic time hashing

2017-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4749 ___ Python tracker ___ ___

[issue29469] AST-level Constant folding

2017-12-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM, the constant-tracking macros for peephole.c can also be removed, essentially reverting back to the simpler cumlc-style code in Py2.5. -- nosy: +rhettinger ___ Python tracker

[issue32320] Add default value support to collections.namedtuple()

2017-12-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +4748 ___ Python tracker ___

[issue32320] Add default value support to collections.namedtuple()

2017-12-14 Thread Raymond Hettinger
New submission from Raymond Hettinger : Add default argument support and _fields_defaults attribute modeled after typing.NamedTuple. -- components: Library (Lib) messages: 308282 nosy: rhettinger priority: normal severity: normal stage: patch review status:

[issue26549] co_stacksize is calculated from unoptimized code

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems moving constant folding to the AST level (issue29469) have solved this issue. >>> def foo(): ... a = (1,2,3,4,5,6,7,8,9,10) ... >>> foo.__code__.co_stacksize 1 -- resolution: -> out of date stage: ->

[issue28813] Remove unneeded folded consts after peephole

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Moving constant folding to the AST level (issue29469) have made this patch outdated. In any case thank you for your patch Adrian. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed

[issue32319] re fullmatch error with non greedy modifier

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, this is not how fullmatch() works. Otherwise there wouldn't be need to add it into the stdlib. You could just check end() of the result. fullmatch() acts like match() with added \Z. But if the pattern contains multiple

<    1   2