[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-06-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I just disabled viewvc on svn.python.org because of a security problem. -- ___ Python tracker ___

[issue29077] build failure when enabling dtrace on FreeBSD

2017-06-05 Thread Kubilay Kocak
Kubilay Kocak added the comment: For what it's worth, the koobs-freebsd-current buildbot worker has DTrace enabled and can be used to build/test Python/dtrace bits Zach and I spoke recently about getting custom builds hooked up to GitHub, which I believe is now already possible, so all that's

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-06-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: My understanding is that the major difference between a real traceback object and a TracebackException object is that the latter is specialized for printing, so it can be lighter weight (no pinning of frame objects in memory), but loses some utility (can't

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-06-05 Thread Nick Coghlan
Nick Coghlan added the comment: Rather than allowing this on tracebacks directly, I'd prefer to build on the "TracebackException" work and allow traceback summaries in all the places where we currently require real tracebacks (including exception __traceback__ attributes):

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-06-05 Thread Nathaniel Smith
Nathaniel Smith added the comment: Uh, please ignore the random second paste of the jinja2 URL in the middle of the second to last paragraph. -- ___ Python tracker

[issue30579] Allow traceback objects to be instantiated/mutated/annotated

2017-06-05 Thread Nathaniel Smith
New submission from Nathaniel Smith: Currently, traceback objects don't expose any public constructor, are immutable, and don't have a __dict__ or allow subclassing, which makes it impossible to add extra annotations them. It would be nice if these limitations were lifted, because there are

[issue30303] IDLE: Add _utest to textview and add textview tests

2017-06-05 Thread Louie Lu
Louie Lu added the comment: Mariatta: yes, louisom is my GitHub account. but I migrate to mlouielu this new account. Should I add louisom to b.p.o GitHub account list? -- ___ Python tracker

[issue30303] IDLE: Add _utest to textview and add textview tests

2017-06-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Louie Lu, are you louisom on GitHub? Here in the b.p.o it shows that you have signed CLA, indicated with an asterisk next to your username. Somehow on GitHub the bot could not verify that you've signed it. Please clarify. Thanks. -- nosy: +Mariatta

[issue30557] faulthandler does not correctly filter fatal exceptions on Windows

2017-06-05 Thread Steve Dower
Steve Dower added the comment: Thanks. Apparently that "filter out bit 4" thing didn't exist in Win7. Guess I need to track down the actual docs and confirm exactly where that happens. Doesn't break the important functionality though, just the test. I don't know that the exit code is stable

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-06-05 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue30578] Misleading example in sys.set_coroutine_wrapper docs

2017-06-05 Thread Nick Coghlan
New submission from Nick Coghlan: In issue 24342, the invocation of coroutine wrappers specified via sys.set_coroutine_wrapper was fixed to catch and report the case of infinite recursion, where the wrapper attempts to instantiate a nested coroutine (which would call the wrapper, which would

[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-06-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Backport PR looks good so I went ahead and merged it :) Thanks. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-06-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 798cfb212383a6f5a31b610825d1af1d376804b2 by Mariatta (Nick Coghlan) in branch '3.6': bpo-30052: Always regenerate cross-references (GH-1339) (GH-1921) https://github.com/python/cpython/commit/798cfb212383a6f5a31b610825d1af1d376804b2 --

[issue29929] Eliminate implicit __main__ relative imports

2017-06-05 Thread Nick Coghlan
Nick Coghlan added the comment: Ronald: that depends somewhat on how the installation is handled. For example, for entrypoints-style scripts, the entirety of __main__ is auto-generated anyway, and anyone using "./setup.py develop" or "pip install -e ." to add a suitable sys.path entry during

[issue23019] pyexpat.errors wrongly bound to message strings instead of message codes

2017-06-05 Thread Martin Panter
Martin Panter added the comment: Also, even in the Py 3 docs, the ErrorCode parser attribute is said to be numeric, but there is a suggestion to compare it with “constants” defined in the “errors” (module) object. I guess it should be clarified that you can’t compare it directly; perhaps

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Zachary Ware added the comment: New changeset ddf8f141f0181f9cac05c87383ea60887acffaec by Zachary Ware in branch '2.7': [2.7] bpo-30417: Disable 'cpu' resource on Travis (GH-1928) https://github.com/python/cpython/commit/ddf8f141f0181f9cac05c87383ea60887acffaec --

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Zachary Ware added the comment: New changeset 58e5dd1a03b3ce421f07085f8cd6e8566a1ed197 by Zachary Ware in branch '3.5': [3.5] bpo-30417: Disable 'cpu' resource on Travis (GH-1928) https://github.com/python/cpython/commit/58e5dd1a03b3ce421f07085f8cd6e8566a1ed197 --

[issue30577] Multidimensional comprehensions cannot access class variables except in the first for

2017-06-05 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved status: open -> closed superseder: -> Comprehensions in a class definition mostly cannot access class variable ___ Python tracker

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Zachary Ware added the comment: New changeset d125738e93a35125d0edbe8070dd47160bcda829 by Zachary Ware in branch '3.6': [3.6] bpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928) https://github.com/python/cpython/commit/d125738e93a35125d0edbe8070dd47160bcda829 --

[issue30577] Multidimensional comprehensions cannot access class variables except in the first for

2017-06-05 Thread Fengyang Wang
Fengyang Wang added the comment: It looks like this is a duplicate of http://bugs.python.org/issue11796 Sorry for the noise. -- resolution: -> duplicate ___ Python tracker

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +2034 ___ Python tracker ___ ___

[issue12067] Doc: remove errors about mixed-type comparisons.

2017-06-05 Thread Martin Panter
Martin Panter added the comment: Yes I think I committed all the documentation. Someone needs to decide whether to use Andy’s tests as they are, or perhaps modify or drop some or all of them. -- ___ Python tracker

[issue30577] Multidimensional comprehensions cannot access class variables except in the first for

2017-06-05 Thread Fengyang Wang
Fengyang Wang added the comment: By the way, in Python 2.7 at least, this was working. -- ___ Python tracker ___

[issue30577] Multidimensional comprehensions cannot access class variables except in the first for

2017-06-05 Thread Fengyang Wang
New submission from Fengyang Wang: Reduced reproduction: class X: r = [1, 2, 3] z = [(i, j) for i in [4, 5] for j in r] fails with "NameError: name 'r' is not defined". The expected behavior would be for r to be resolved as the r in the class namespace. Note in contrast that class Y:

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +2033 ___ Python tracker ___ ___

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +2032 ___ Python tracker ___ ___

[issue30417] [buildbot] Disable the cpu resources on slow buildbots

2017-06-05 Thread Zachary Ware
Zachary Ware added the comment: New changeset c53b13b270767948fddb58b287149c499f9a03c4 by Zachary Ware in branch 'master': bpo-30417: Disable 'cpu' and 'tzdata' resources on Travis (GH-1928) https://github.com/python/cpython/commit/c53b13b270767948fddb58b287149c499f9a03c4 --

[issue30576] http.server should support HTTP compression (gzip)

2017-06-05 Thread Martin Panter
Martin Panter added the comment: Why do you want to this? Encoding files on the fly seems out of scope of the SimpleHTTPRequestHandler class to me, but perhaps a more flexible API that could be plugged in by the user could be beneficial. See

[issue30557] faulthandler does not correctly filter fatal exceptions on Windows

2017-06-05 Thread Ned Deily
Ned Deily added the comment: Buildbot failure? http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/521 -- nosy: +ned.deily ___ Python tracker

[issue30557] faulthandler does not correctly filter fatal exceptions on Windows

2017-06-05 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +2031 ___ Python tracker ___ ___

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2017-06-05 Thread Aaron Hall
Changes by Aaron Hall : -- pull_requests: +2030 ___ Python tracker ___ ___

[issue30557] faulthandler does not correctly filter fatal exceptions on Windows

2017-06-05 Thread Steve Dower
Steve Dower added the comment: New changeset e6a23c8f9a3ce05b759599696cc131c2d9d147ac by Steve Dower in branch 'master': bpo-30557: faulthandler now correctly filters and displays exception codes on Windows (#1924)

[issue30388] ndbm can't iterate through values on OS X

2017-06-05 Thread Ned Deily
Ned Deily added the comment: It would be helpful if you could provide the output of this command: otool -L $(python3.6 -c 'import _dbm;print(_dbm.__file__)') if necessary, substituting whatever command name(s) you are using to invoke python when failing. --

[issue11874] argparse assertion failure with brackets in metavars

2017-06-05 Thread wim glenn
wim glenn added the comment: May I ask, how to assign reviewers for CPython pull requests? https://github.com/python/cpython/pull/1826 has been sitting there for 10 days and the only comment was from a bot. -- ___ Python tracker

[issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

2017-06-05 Thread Jiri Hnidek
Jiri Hnidek added the comment: Hi Xiang, * I added entry to Misc/NEWS * I added my name to Misc/ACKS (without diacritics) * I added/updated several unit tests * I updated PR (two commits squashed into one commit) Cheers, Jiri -- ___ Python tracker

[issue30545] Enum equality across modules: comparing objects instead of values

2017-06-05 Thread Adrian Wan
Changes by Adrian Wan : -- nosy: +adrianwan2 status: pending -> open ___ Python tracker ___

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2017-06-05 Thread Aaron Hall
Aaron Hall added the comment: Bumping this - I intend to work on this next, if no objections. -- ___ Python tracker ___

[issue30521] IDLE: Add navigate bar and replace current goto dialog

2017-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: What problem are you trying to solve with this idea and patch? A popup go to line box is standard enough for editors that beginners have no problem with it. That asked, I read the sublime-text doc on the go-anywhere bar. While it is a cute idea, I think

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-06-05 Thread R. David Murray
R. David Murray added the comment: Ping the issue again next week if I don't get to it this weekend. -- ___ Python tracker ___

[issue30532] email.policy.SMTP.fold() mangles long headers

2017-06-05 Thread Joel Hillacre
Joel Hillacre added the comment: Rebased the github PR on latest master to get the windows build passing CI. Is there anything I need to do to keep the PR moving? -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Changes by Paul Moore : -- nosy: -paul.moore ___ Python tracker ___ ___

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2017-06-05 Thread Shaun Walbridge
Shaun Walbridge added the comment: For reference if anyone else still runs into this issue: the affected DLL is ucrtbase.dll, and the faulty version is 10.0.10240.0, which shipped with the 1507 release of Windows 10, the Windows 10 SDK, and Visual Studio 2015 RTM. This issue was resolved at

[issue30576] http.server should support HTTP compression (gzip)

2017-06-05 Thread Pierre Quentel
Changes by Pierre Quentel : -- type: -> enhancement ___ Python tracker ___ ___

[issue30576] http.server should support HTTP compression (gzip)

2017-06-05 Thread Pierre Quentel
New submission from Pierre Quentel: The server in http.server currently doesn't support HTTP compression. I propose to implement it in the method send_head() of SimpleHTTPRequestHandler this way : for each GET request, if the request header "Accept-Encoding" is present and includes "gzip"

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___

[issue30567] Leak in sys.getwindowsversion

2017-06-05 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___

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

2017-06-05 Thread Antoine Pietri
Antoine Pietri added the comment: I updated the PR to fix the Windows part of the issue thanks to Zachary who gave me access to a Windows machine. -- ___ Python tracker

[issue30575] Python interpreter crashes on macOS

2017-06-05 Thread Ned Deily
Ned Deily added the comment: Sorry but, without more information, no one is likely to want to try to pursue this issue. There are too many components, Python and non-Python, here that could cause a crash and trying to interface to other libraries using extensions like cffi (and ctypes) is

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: turns out it was crashing because I forgot to add in Py_Initialize. -- ___ Python tracker ___

[issue30575] Python interpreter crashes on macOS

2017-06-05 Thread Yibo Wang
New submission from Yibo Wang: I am writing python wrapper for rust library, everything goes fine until execution finishes. "Python quit unexpectedly" [1]25805 segmentation fault python3 To reproduce, download code from GitHub repo provided by this

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: I found where the crash was at. It was at my call to PyRun_SimpleString. Something in the string caused it to crash. -- ___ Python tracker

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-06-05 Thread Wonsup Yoon
Changes by Wonsup Yoon : -- pull_requests: +2029 ___ Python tracker ___ ___ Python-bugs-list

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-06-05 Thread Wonsup Yoon
Changes by Wonsup Yoon : -- title: bug in unicodedata.normalize: u1176, u11a7 and u11c3 -> bugs in unicodedata.normalize: u1176, u11a7 and u11c3 ___ Python tracker

[issue25910] Fixing links in documentation

2017-06-05 Thread Jim Fulton
Jim Fulton added the comment: +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25910] Fixing links in documentation

2017-06-05 Thread Guido van Rossum
Guido van Rossum added the comment: I suggest the following replacement for that paragraph in Doc/license.txt, as well as in LICENSE: In May 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. In October of the same year, the PythonLabs

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: docs@python -> nosy: -docs@python, zach.ware ___ Python tracker ___

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: E:\Users\Elsword\Documents\GitHub\TinyURL\app>call "E:\Program Files (x86)\Micro soft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" E:\Users\Elsword\Documents\GitHub\TinyURL\app>cd "E:\Users\Elsword\Documents\Git Hub\TinyURL\app\"

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: Wait a minute, I think it is because the 32 and 64 bit python36.lib files are in the path environment variable so that might be the reason for the crash. -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: I am compiling and linking to 32 bit python based on the folder I entered for the lib file. Unless the lib file in the lib folder is somehow for the 64 bit one. -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread R. David Murray
R. David Murray added the comment: Agreed, there's nothing for us to do here. It sounds like you may need to go to a help forum to work through your crash. If you learn things that you think it would be valuable to add to the docs, please do submit a doc enhancement issue/PR. --

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: My bet is still on something like you compiling your code 32-bit and linking to 64-bit Python, or something like that. -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: Well looks like with cl.exe it is still crashing. -- ___ Python tracker ___ ___

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: hmm, maybe it was because I was compiling it inside of the VS2015 IDE in an project file and not with cl.exe directly. -- ___ Python tracker

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My note was not directly related to your patch. It was a warning about general replacement of PyLong_AsSsize_t with PyNumber_AsSsize_t. There is a code for which this is dangerous. -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: Worked fine for me: >cl .\pyc.c /I $env:LOCALAPPDATA\Programs\Python\Python36\include >$env:LOCALAPPDATA\Programs\Python\Python36\libs\python36.lib Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64 Copyright (C) Microsoft Corporation. All

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: Well the example I linked if I compile it and try to run it it instantly crashes with no explainable reason. I am using the same compiler used to build the core too and the normal interpreter works just fine with the code I am trying to embed. So it seems to

[issue30388] ndbm can't iterate through values on OS X

2017-06-05 Thread Forest Gregg
Forest Gregg added the comment: I have been trying to make a small reproducible example, but haven't been able to isolate it. Running this script [1] csv_example on mac os x under either py27 or py3 does seem *often* cause this problem [2], [3]: [1]

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: I'm a bit confused what you're asking for here. Certainly if you embed Python, you can get crashes, just as with any other C program. Pass an invalid pointer to a Python API, build your application and the Python DLL with incompatible C runtimes, free memory you

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
New submission from Decorater: According to this example at https://docs.python.org/3/extending/embedding.html#very-high-level-embedding you can use something similar on embedding the interpreter. However for some reason it can crash on Windows and probably some other platforms no matter

[issue30520] loggers can't be pickled

2017-06-05 Thread Vinay Sajip
Changes by Vinay Sajip : -- pull_requests: +2027 ___ Python tracker ___ ___

[issue30573] How to install cmake?

2017-06-05 Thread R. David Murray
R. David Murray added the comment: The pip issue tracker is at https://github.com/pypa/pip/issues if you want to suggest this, but I doubt it will be accepted. The action *is* something optional. -- nosy: +r.david.murray resolution: fixed -> third party type: compile error ->

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-05 Thread Will Roberts
Will Roberts added the comment: Thanks for feedback, Serhiy and Raymond! Github PR now has reverted changes except to the calls in islice_new; I am happy to squash if you would like. Serhiy, this is my first time poking around in CPython code. What are the potential consequences of making

[issue30572] pip is broken

2017-06-05 Thread R. David Murray
Changes by R. David Murray : -- resolution: fixed -> third party ___ Python tracker ___

[issue30572] pip is broken

2017-06-05 Thread Dingo64
Dingo64 added the comment: python -m pip install --upgrade pip fixed the pip so now C:\Python35>pip3 install dlib-19.4.0-cp35-cp35m-win_amd64.whl Processing c:\python35\dlib-19.4.0-cp35-cp35m-win_amd64.whl Installing collected packages: dlib Successfully installed dlib-19.4.0 worked.

[issue30573] How to install cmake?

2017-06-05 Thread Dingo64
Dingo64 added the comment: I did: python -m pip install --upgrade pip and then pip3 install cmake went OK. So I would suggest to change notices like "You are using pip version 7.1.2, however version 9.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade

[issue30573] How to install cmake?

2017-06-05 Thread Dingo64
New submission from Dingo64: When I try to use pip to install something it says it cannot because it doesn't make cmake. When I try to install cmake: C:\Python35>pip3 install cmake Collecting cmake Downloading cmake-0.7.0.tar.gz (29.2MB) 100% || 29.2MB

[issue30570] issubclass segfaults on objects with weird __getattr__

2017-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as yet one example of issues similar of issue14010. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue30572] pip is broken

2017-06-05 Thread Dingo64
New submission from Dingo64: C:\Python35>pip install dlib-19.4.0-cp35-cp35m-win_amd64.whl dlib-19.4.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform. How can it be not supported when I have Python 3.5 on AMD64 Windows machine? C:\Python35>wmic os get osarchitecture

[issue30570] issubclass segfaults on objects with weird __getattr__

2017-06-05 Thread R. David Murray
R. David Murray added the comment: Yes, but we try to make it not possible to segfault the interpreter with pure python code that isn't intentionally mucking with C-level stuff, so this is a bug we would like to fix. -- nosy: +r.david.murray ___

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Stefan Krah
Stefan Krah added the comment: For third party projects who want to use FASTCALL the functions are not generated by AC. I didn't understand the reasoning why the consistency argument is weak. -- ___ Python tracker

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually these arguments are pretty weak. The sole argument of consistency is weak itself. _PyArg_NoStackKeywords() is pretty cheap since implementing it as a macro. This change just moves the check from the implementation of functions to the calling place.

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, could you please rerun benchmarks and check whether this change cause performance degradation? -- ___ Python tracker

[issue29929] Eliminate implicit __main__ relative imports

2017-06-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: A disadvantage of requiring "from . import ..." to import modules next to the script is that this requires a different mechanism before and after installation of a script. That is, before installation the additional modules are next to the script ("from .

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Stefan Krah
Stefan Krah added the comment: > I'd like to use METH_FASTCALL in Cython in a future-proof way. Also +1. Can we consider the API frozen after this issue or do we have to wait for #29465 (or others)? -- ___ Python tracker

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2026 ___ Python tracker ___ ___

[issue30537] Using PyNumber_AsSsize_t in itertools.islice

2017-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Michael Seifert] > I'm not sure if there are many use-cases where numpy scalars > make sense as inputs for `islice` Likewise, I'm not sure there is any evidence of a use-case. The incompatible relationship between numpy ints and PyLong_AsSsize_t() has

[issue29456] bug in unicodedata.normalize: u1176, u11a7 and u11c3

2017-06-05 Thread Wonsup Yoon
Wonsup Yoon added the comment: Ok, I'll do it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29456] bug in unicodedata.normalize: u1176, u11a7 and u11c3

2017-06-05 Thread Xiang Zhang
Xiang Zhang added the comment: We have moved our code hosting to GitHub, would you mind turn your patch into a GitHub PR first Wonsup? -- ___ Python tracker

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Proposed patch renames METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS > and makes bare METH_FASTCALL be used for functions with > positional-only parameters. This eliminates small cost that > these functions pay for handling empty keywords: calling >

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-05 Thread Stefan Behnel
Stefan Behnel added the comment: I looked up this change again and was surprised that it still wasn't applied. It feels to me that it makes sense already for reasons of consistency. Any time frame for changing it? I'd like to use METH_FASTCALL in Cython in a future-proof way. --