[issue29071] IDLE doesn't highlight f-strings properly

2016-12-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed versions: +Python 3.7 ___ Python tracker ___

[issue29049] Lazy GC tracking frame

2016-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. It seems to me, that the part with Py_DECREF should be pushed to older branches. -- ___ Python tracker ___

[issue29049] Lazy GC tracking frame

2016-12-25 Thread Xiang Zhang
Xiang Zhang added the comment: I don't have time study the patches. But 29049-fix-generator-refleak.patch fixes the two test failures on my PC. :-) -- ___ Python tracker

[issue29049] Lazy GC tracking frame

2016-12-25 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file46038/29049-fix-generator-refleak.patch ___ Python tracker ___

[issue29049] Lazy GC tracking frame

2016-12-25 Thread Xiang Zhang
Xiang Zhang added the comment: On my PC, this patch also introduces two tests failure: FAIL: test_log_destroyed_pending_task (test.test_asyncio.test_tasks.CTask_CFuture_SubclassTests) -- Traceback (most recent call last):

[issue1116520] Prefix search is filesystem-centric

2016-12-25 Thread Nick Coghlan
Nick Coghlan added the comment: Note that Steve Dower made some significant changes to sys.path initialisation on Windows in Python 3.6 that could potentially be generalised to other platforms: https://docs.python.org/3/using/windows.html#finding-modules (There's nothing inherently Windows

[issue29071] IDLE doesn't highlight f-strings properly

2016-12-25 Thread Kenzie Togami
New submission from Kenzie Togami: IDLE doesn't highlight f-strings like r-strings or u-strings. See the attached screenshot. -- assignee: terry.reedy components: IDLE files: python_idle_3.6_bug.png messages: 284010 nosy: Kenzie Togami, terry.reedy priority: normal severity: normal

[issue29058] Mark new limited C API

2016-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually PyODict_Check, PyODict_CheckExact, and PyODict_SIZE should be excluded from limited API. These macros are expanded to the code that don't work with limited API (needed PyODict_Type and PyDictObject). PyODict_HasKey is expanded to syntactically

[issue29058] Mark new limited C API

2016-12-25 Thread Steve Dower
Steve Dower added the comment: Those changes all look good to me, though it's a shame we can't leave some of those functions out altogether. -- nosy: +steve.dower ___ Python tracker

[issue29049] Lazy GC tracking frame

2016-12-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: closed -> open ___ Python tracker ___

[issue29049] Lazy GC tracking frame

2016-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps this change caused reference leaks: test_exceptions leaked [1227, 1227, 1227] references, sum=3681 test_exceptions leaked [342, 344, 344] memory blocks, sum=1030 test_capi leaked [6043, 6043, 6043] references, sum=18129 test_capi leaked [1715, 1717,

[issue1116520] Prefix search is filesystem-centric

2016-12-25 Thread Steve Holden
Steve Holden added the comment: Don't forget that the built-in modules may need to be available before the zipimporter is. A long time ago (when sys.metapath was introduced) I experimented with imports from non-filesystem sources and that hit me until I realised what was going on. S Steve

[issue1116520] Prefix search is filesystem-centric

2016-12-25 Thread Patrik Iselind
Patrik Iselind added the comment: Is it enough to include everything in the Lib folder, excluding __pycache__, site-packages and the test folder in Lib? Would that be representative enough? Patrik Iselind Den 2016-12-25 kl. 17:31, skrev Brett Cannon: > Brett Cannon added the comment: > >

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-25 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file46032/IMG-20161224-WA0004.jpg ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-25 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file46030/IMG-20161224-WA0004.jpg ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-25 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file46031/IMG-20161224-WA0004.jpg ___ Python tracker ___

[issue27659] Prohibit implicit C function declarations

2016-12-25 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Would it be possible to not add this option for third party extensions? Good suggestion. Just use $CFLAGS_NODIST instead of $BASECFLAGS. -- Added file: http://bugs.python.org/file46036/prohibit-implicit-function-declarations.patch

[issue27659] Prohibit implicit C function declarations

2016-12-25 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to not add this option for third party extensions? -- ___ Python tracker ___

[issue29070] Integration tests for pty.spawn on Linux and all other platforms

2016-12-25 Thread Cornelius Diekmann
New submission from Cornelius Diekmann: As Martin Panter noted, "it doesn’t look like pty.spawn() is tested at all" [issue26228]. So I wrote some very basic integration tests for pty.spawn. They work perfectly on my Linux machine. Line 4 of the library module under test (pty.py) states: "Only

[issue1116520] Prefix search is filesystem-centric

2016-12-25 Thread Brett Cannon
Brett Cannon added the comment: Originally zip file importing was faster than standard importing from disk because of the fewer stat calls, but importlib caches such things so I don't know if it's still beneficial. As for space savings, I have no idea; you can try zipping the files yourself

[issue29066] PIP doesn't honor --trusted-host or --cert options

2016-12-25 Thread Donald Stufft
Donald Stufft added the comment: Yea, this is from ``setup_requires`` keyword argument in ``setup.py``. I suspect we're going to see a lot of errors like this from people with 3.6 on the OSX Installers. -- nosy: +dstufft ___ Python tracker

[issue29059] Windows: Python not using ANSI compatible console

2016-12-25 Thread Steve Dower
Steve Dower added the comment: Oh, and it should go in the WinConsoleIO class, needs to be written in C, and probably needs a short PEP explaining why it has to be on by default and can't be turned on by programs that need it. I'm sure the discussion will lead to other ideas as well (perhaps

[issue29059] Windows: Python not using ANSI compatible console

2016-12-25 Thread Steve Dower
Steve Dower added the comment: Great suggestion. If someone is willing to contribute the work then we can consider it for 3.7. If you need this functionality sooner, either ctypes or colorama should allow you to use it on existing releases. -- type: behavior -> enhancement versions:

[issue29069] Default PyPI URL in docs is not what is really in code

2016-12-25 Thread paka
New submission from paka: Currently https://docs.python.org/3.7/distutils/packageindex.html#the-pypirc-file says that URL of the PyPI server defaults to https://www.python.org/pypi. That URL does not work. Lib/distutils/config.py defines DEFAULT_REPOSITORY as

[issue27659] Prohibit implicit C function declarations

2016-12-25 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: (Re-use the existing issue) Here's a patch that tries to add -Werror=implicit-function-declaration to $BASECFLAGS. This is useful for cross-compiling. When a function is missing, the error jumps out during the build time rather than runtime. Tested

[issue29068] Fix example code for PyErr_Fetch

2016-12-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue29068] Fix example code for PyErr_Fetch

2016-12-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34e7b9879e60 by Serhiy Storchaka in branch '3.5': Issue #29068: Fixed a typo in PyErr_Fetch example. https://hg.python.org/cpython/rev/34e7b9879e60 -- nosy: +python-dev ___ Python tracker

[issue29068] Fix example code for PyErr_Fetch

2016-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Thank you for your contribution Chi Hsuan Yen. -- assignee: docs@python -> serhiy.storchaka stage: -> commit review ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-25 Thread Dany Jalil
Changes by Dany Jalil : Added file: http://bugs.python.org/file46032/IMG-20161224-WA0004.jpg ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-25 Thread Dany Jalil
Changes by Dany Jalil : Added file: http://bugs.python.org/file46031/IMG-20161224-WA0004.jpg ___ Python tracker ___

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-25 Thread Dany Jalil
Changes by Dany Jalil : Added file: http://bugs.python.org/file46030/IMG-20161224-WA0004.jpg ___ Python tracker ___

[issue29068] Fix example code for PyErr_Fetch

2016-12-25 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Remove an extra * The typo is there in 3.5~3.7 branches. 2.7 branch does not have this example. Nosy the two major commiters to Python/errors.c -- assignee: docs@python components: Documentation files: PyErr_Fetch-fix.patch keywords: patch messages:

[issue29066] PIP doesn't honor --trusted-host or --cert options

2016-12-25 Thread Ned Deily
Ned Deily added the comment: The issue here seems to be the way Twisted installs its dependencies. It looks like Twisted is calling setuptools directly and thus probably "losing" the certificate-related arguments from the original pip call. (It all works correctly if do you the default root

[issue29067] Source archive: wrong directory attributes

2016-12-25 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ned.deily nosy: +ned.deily ___ Python tracker ___

[issue28998] Unifying Long Integers and Integers in 2.7

2016-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added checks for errors in C code (they are needed even without supporting Python longs, PyInt_AsLong() can fail with Python ints) and a fast path for Python longs in PyInt_AsLong() (avoid creating temporary Python int). -- assignee: ->

[issue29052] Detect Windows platform 32bit/64bit automatically

2016-12-25 Thread Karsten Tinnefeld
Karsten Tinnefeld added the comment: Thanks. Opened at https://github.com/python/pythondotorg/issues/1044 Karsten -- Karsten Tinnefeld Dortmund, Germany -- ___ Python tracker

[issue29067] Source archive: wrong directory attributes

2016-12-25 Thread amig
New submission from amig: In Python-3.6.0.tgz and Python-3.6.0.tar.xz the folders inside have attributes drwxr--r-- instaed of drwxrwxr-x. This leads to setting the user #501 as an owner while unpacking the archives in a folder owned by root with sudo and therefore access denial. --