[issue28637] Python startup performance regression

2016-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: re: Ethan's question - I think the enum use should be restored in re. I realize issue28082 (yay palindrome number) is not an urgent change but we created IntEnum for the purpose of more identifiable integer constants. So a microbenchmark of "import re" slows

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2016-11-08 Thread Xiang Zhang
Xiang Zhang added the comment: The bug is fixed in #23319. More recent Py2.7 and Py3.4+ should get rid of it. -- nosy: +xiang.zhang resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue28645] Drop __aiter__ compatibility layer from 3.7

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I'll inc importlib's magic before committing. Please left good gap for possible bugfixes between current number and 3.7 number. Set it to 3390. I'm not experienced with async protocols, but at first glance the patch looks technically correct. Please updat

[issue28642] csv reader losing rows with big files and tab delimiter

2016-11-08 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28646] Using a read-only buffer.

2016-11-08 Thread Michael Rolle
New submission from Michael Rolle: Suggest that the _CData.from_buffer (source) method allow a read-only source as an argument, in which case any assignments to the object would raise some type of exception. If the source is shared with some writable object, then changes to said object would be r

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2016-11-08 Thread Michael Rolle
Michael Rolle added the comment: As a separate issue, I'd like to find an appropriate package, other than ctypes, for interpreting data bytes in a consistently defined manner, independent of the platform I'm running on. The struct package is perfect where there are no bitfields involved, i.e., wh

[issue28644] Document recen changes in typing.py

2016-11-08 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hi Ivan, I noticed you used two space indentation in your docs patch. Can you use 3 spaces instead? More guidelines here: https://docs.python.org/devguide/documenting.html?#use-of-whitespace Thanks :) -- nosy: +Mariatta __

[issue27854] Installed 2.7: IDLE Help disabled because help.html is missing

2016-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Irv: Windows specific it appears to be. Benjamin, Martin, Steve: the 2.7 Windows .msi installer should be fixed to include idlelib/help.html before its next release. Does it use an explicit list of file glob patterns to include? -- nosy: +loew

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2016-11-08 Thread Michael Rolle
Michael Rolle added the comment: Similar problem with 2.7.8 with cygwin. My example is: Python 2.7.8 (default, Jul 25 2014, 14:04:36) [GCC 4.8.3] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> from ctypes import * >>> class C (BigEndianStructure): _fields_

[issue28637] Python startup performance regression

2016-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: OK. I believe we also found that the extra slowdown is only in a virtualenv so that may explain that I saw something different. -- title: Python startup performance regression due to enum in re -> Python startup performance regression ___

[issue28645] Drop __aiter__ compatibility layer from 3.7

2016-11-08 Thread Yury Selivanov
New submission from Yury Selivanov: As discussed in issue #27243, we want to drop __aiter__ compatibility layer in Python 3.7. Please take a look at the attached patch (I'll inc importlib's magic before committing). -- keywords: +patch Added file: http://bugs.python.org/file45403/aite

[issue28645] Drop __aiter__ compatibility layer from 3.7

2016-11-08 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: yselivanov components: Interpreter Core nosy: haypo, serhiy.storchaka, yselivanov priority: normal severity: normal stage: patch review status: open title: Drop __aiter__ compatibility layer from 3.7 type: behavior versions: Python 3.7 __

[issue28639] inspect.isawaitable(native_coro) returns int

2016-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: Merged! Thank you, Justin. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker ___

[issue28639] inspect.isawaitable(native_coro) returns int

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb6ad816a43c by Yury Selivanov in branch '3.5': Issue #28639: Fix inspect.isawaitable to always return bool https://hg.python.org/cpython/rev/bb6ad816a43c New changeset 6540adb8722a by Yury Selivanov in branch '3.6': Merge 3.5 (issue #28639) https:/

[issue28644] Document recen changes in typing.py

2016-11-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Sorry, here is the patch with corrected formatting and base classes for Coroutine. -- Added file: http://bugs.python.org/file45402/recent-typing-docs-v2.diff ___ Python tracker _

[issue28003] PEP 525 asynchronous generators implementation

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f32ef6b210b by Yury Selivanov in branch '3.6': Issue #28003: Make WrappedVal, ASend and AThrow GC types https://hg.python.org/cpython/rev/9f32ef6b210b New changeset 6f51b495656c by Yury Selivanov in branch 'default': Merge 3.6 (issue #28003) https:

[issue28644] Document recen changes in typing.py

2016-11-08 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: Here is the patch with recent additions/changes in typing.py Summary: Tuple and Callable are now classes, generic type aliases, added Coroutine, extended docs for get_type_hints. -- assignee: docs@python components: Documentation files: recent-typin

[issue26081] Implement asyncio Future in C to improve performance

2016-11-08 Thread Yury Selivanov
Changes by Yury Selivanov : -- priority: release blocker -> normal resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue26081] Implement asyncio Future in C to improve performance

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 345904bd0456 by Yury Selivanov in branch '3.6': Issue #26081: Fix refleak in _asyncio.Future.__iter__().throw. https://hg.python.org/cpython/rev/345904bd0456 New changeset b95aa07d by Yury Selivanov in branch 'default': Merge 3.6 (issue #26081)

[issue28637] Python startup performance regression due to enum in re

2016-11-08 Thread Ethan Furman
Ethan Furman added the comment: Does this mean we can put enum back in re? -- title: Python startup performance regression -> Python startup performance regression due to enum in re ___ Python tracker

[issue28555] provid also sha-1 and sha-256 also on download links

2016-11-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: If python.org can be MITMed, it doesn't matter how secure the hash is. On Tue, Nov 8, 2016, at 11:17, Big Stone wrote: > > Big Stone added the comment: > > I fear GPG is not easy stuff for Windows users. > > I fear a bunch of people on this network can circom

[issue28607] C implementation of parts of copy.deepcopy

2016-11-08 Thread Rasmus Villemoes
Rasmus Villemoes added the comment: New version, addressing (hopefully) all review comments. -- Added file: http://bugs.python.org/file45400/deepcopy.patch ___ Python tracker ___

[issue26081] Implement asyncio Future in C to improve performance

2016-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: This patch introduced multiple refleaks in test_asyncgen. -- priority: normal -> release blocker resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: Ah, never mind, the commit message has a wrong issue number: Issue #26801: Added C implementation of asyncio.Future. Closing this one, will re-open #26081. -- priority: release blocker -> normal resolution: -> fixed status: open -> closed ___

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-11-08 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +larry, ned.deily priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-11-08 Thread Yury Selivanov
Yury Selivanov added the comment: This patch introduced multiple refleaks in test_asyncgen. -- nosy: +yselivanov resolution: fixed -> status: closed -> open ___ Python tracker _

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread Eric V. Smith
Eric V. Smith added the comment: This file is derived from my namedlist project on PyPI. I've stripped out the namedlist stuff, and just left namedtuple. I've also removed the Python 2 support, and I've removed support for default parameters. After that surgery, I have not tested it very well.

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a996e826f83 by Yury Selivanov in branch '3.6': Issue #26182: Fix ia refleak in code that raises DeprecationWarning. https://hg.python.org/cpython/rev/7a996e826f83 New changeset 7b0e79e7f567 by Yury Selivanov in branch 'default': Merge 3.6 (issue #2

[issue28643] Broken makefile depends for profile-opt target

2016-11-08 Thread Neil Schemenauer
Neil Schemenauer added the comment: Okay, my initial idea was wrong (I blame years of not having to look at Makefiles). I think the attached patch works. It uses a "stamp" file to record the fact that the profiled build is complete. The fix is sub-optimal because changing some source code an

[issue28637] Python startup performance regression

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: Guido: "So what does that benchmark measure? For me, python 3.6 startup is 44 ms and python 2.7 startup is 78 ms (real time; user time is proportionally less)." It measures something like "time python -c pass". The performance module creates a virtual environ

[issue28642] csv reader losing rows with big files and tab delimiter

2016-11-08 Thread Marc Garcia
Marc Garcia added the comment: Sorry, my fault. It looks like having quotes in the file was the problem. As mentioned, adding the quoting parameter fixes the problem. I'd assume that if quotes are not paired, csv should raise an exception. And I don't think that all the different chunks of the

[issue28642] csv reader loosing rows with big files and tab delimiter

2016-11-08 Thread SilentGhost
SilentGhost added the comment: so using quoting=csv.QUOTE_NONE should solve the immediate problem of "losing" lines then, I'm not sure csv module ever supported dealing with corrupted files. -- ___ Python tracker

[issue28618] Decorate hot functions using __attribute__((hot)) to optimize Python

2016-11-08 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file45397/patch.json.gz ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28618] Decorate hot functions using __attribute__((hot)) to optimize Python

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: >> Do you mean comparison between current Python with PGO and patched >> Python without PGO? > > Yes. Ok, here you have. As expected, PGO compilation is faster than default compilation with my patch. PGO implements more optimization than just __attribute__((ho

[issue28642] csv reader loosing rows with big files and tab delimiter

2016-11-08 Thread Matthew Barnett
Matthew Barnett added the comment: I split the file into sections, each containing no more 1000 lines, and tried reading each section. Attached is a zip file of those that didn't return the expected number of rows. The problem appears to be due to unclosed quotes, which cause following lines

[issue18233] SSLSocket.getpeercertchain()

2016-11-08 Thread Mariusz Masztalerczuk
Mariusz Masztalerczuk added the comment: ping! :) Could someone look at my changes? :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue26934] android: test_faulthandler fails

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: buggy_raise_3.patch LGTM but I don't think that it's worth it to add @requires_raise to support directly. I suggest to only add it to test_faulthandler.py. -- ___ Python tracker

[issue28637] Python startup performance regression

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: Cool, thanks Serhiy for the site enhancement :-) -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue28635] Update What's New for 3.6

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: Elvis Pranskevichus added the comment: > I'm actually working on a tool that parses Misc/NEWS, cpython and peps repos, > and roundup to gather and organize the changes to make the news editor's job > easier. I don't understand why developers don't do it during

[issue28610] Provide PDB hook to customize how to find source files

2016-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a simple code object compiled from a source (the string), a module is quite different and more complex. The patch uses a fake module Loader to use linecache, there is no gain in going any further and pulling from the importlib machinery, I think.

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0d50aad7b02 by Yury Selivanov in branch '3.6': Issue #27243: Change PendingDeprecationWarning -> DeprecationWarning. https://hg.python.org/cpython/rev/a0d50aad7b02 New changeset 9550f0d22d27 by Yury Selivanov in branch 'default': Merge 3.6 (issue #

[issue28643] Broken makefile depends for profile-opt target

2016-11-08 Thread Neil Schemenauer
New submission from Neil Schemenauer: I notice that after running "make" then running "make install", the build will go through the whole compile/profile/compile process again. This is really infuriating behaviour, given the extremely long make time for the profiled optimized build. The prob

[issue28494] is_zipfile false positives

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that the zipfile module supports even not well-formed archives, with a data appended past a comment, and with truncated comment. There are special tests for this, and the proposed patch breaks these tests: test_comments, test_ignores_newline_a

[issue28538] _socket module cross-compilation error on android-24

2016-11-08 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch attached. -- components: +Cross-Build keywords: +patch nosy: +Alex.Willmer, doko stage: needs patch -> patch review Added file: http://bugs.python.org/file45394/if_nameindex.patch ___ Python tracker

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that's all with this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue18317] gettext: DoS via crafted Plural-Forms

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The DoS as well as other flaws is fixed in issue28563 by implementing a complete parser for GNU gettext plural form expressions. -- nosy: +serhiy.storchaka resolution: -> fixed stage: test needed -> resolved status: open -> closed superseder: -> Arb

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset e0cc3fadd7b3 by Serhiy Storchaka in branch '2.7': Issue #28563: Fixed possible DoS and arbitrary code execution when handle https://hg.python.org/cpython/rev/e0cc3fadd7b3 New changeset 7e66c5dc4218 by Serhiy Storchaka in branch '3.3': Issue #28563:

[issue28555] provid also sha-1 and sha-256 also on download links

2016-11-08 Thread Big Stone
Big Stone added the comment: I fear GPG is not easy stuff for Windows users. I fear a bunch of people on this network can circomvent DNS and make python.org points to the wrong place. sha-1 instead of md5 would have been an improvement. -- ___ Pyth

[issue28610] Provide PDB hook to customize how to find source files

2016-11-08 Thread Pinku Surana
Pinku Surana added the comment: Thanks. This is clever. I've tried it out and it works. Would it be more appropriate to use "importlib" and "importlib.abc" to implement a custom loader for a string script? It looks like importlib.abc.InspectLoader does the right thing. -- ___

[issue28636] strange issue with Pandas-0.19.1 on Python-3.6.0b3

2016-11-08 Thread Big Stone
Big Stone added the comment: Thank you, Victor. So I guess I should close the issue. -- status: open -> closed ___ Python tracker ___

[issue28621] Refactor duplicate code calculating digit's bit length

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Adrian for your contribution. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker __

[issue28585] Restore docstring of os._isdir

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Zachary. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue28621] Refactor duplicate code calculating digit's bit length

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1940b72b0a02 by Serhiy Storchaka in branch 'default': Issue #28621: Sped up converting int to float by reusing faster bits counting https://hg.python.org/cpython/rev/1940b72b0a02 -- nosy: +python-dev ___

[issue28585] Restore docstring of os._isdir

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b4fa92dac43 by Serhiy Storchaka in branch '3.5': Issue #28585: Restored docstring of os._isdir(). https://hg.python.org/cpython/rev/5b4fa92dac43 New changeset 3da89b1678da by Serhiy Storchaka in branch '3.6': Issue #28585: Restored docstring of os.

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2016-11-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: About MSVC compiler: https://msdn.microsoft.com/en-us/library/044swk7y.aspx https://msdn.microsoft.com/en-us/library/2c8f766e.aspx https://msdn.microsoft.com/en-us/library/d9x1s805.aspx So both: #pragma warning(push) #pragma warning(disabl

[issue28637] Python startup performance regression

2016-11-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a822818ec74e by Serhiy Storchaka in branch '3.6': Issue #28637: No longer use re in site.py. https://hg.python.org/cpython/rev/a822818ec74e New changeset a4ea837a7f84 by Serhiy Storchaka in branch 'default': Issue #28637: No longer use re in site.py

[issue27854] Installed 2.7: IDLE Help disabled because help.html is missing

2016-11-08 Thread Irv Kalb
Irv Kalb added the comment: On my Mac (with version 2.7.12), selecting Help -> IDLE Help brings up a window titled "IDLE Help", it has a pop down with "TOC" selected and many pages of text documentation. On my Windows system (also with version 2.7.12), selecting help -> IDLE help does nothing

[issue28642] csv reader loosing rows with big files and tab delimiter

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the average number of columns on the file? -- ___ Python tracker ___ ___ Python-bugs-list

[issue28642] csv reader loosing rows with big files and tab delimiter

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If I create a new file with all the skipped files, and I read it again in the > same way, around 30% of the rows are skipped. Could you please provide this smaller file? Or better make yet few iterations of keeping only skipped lines until the file will de

[issue28642] csv reader loosing rows with big files and tab delimiter

2016-11-08 Thread SilentGhost
SilentGhost added the comment: Could you perhaps make the smaller file make available somewhere? -- nosy: +SilentGhost ___ Python tracker ___

[issue28642] csv reader loosing rows with big files and tab delimiter

2016-11-08 Thread Marc Garcia
New submission from Marc Garcia: I'm using the csv module from Python standard library, to read a 1.4Gb file with 11,157,064 of rows. The file is the Geonames dataset for all countries, which can be freely downloaded [1]. I'm using this code to read it: import csv with open('allCount

[issue28640] UnicodeDecodeError: 'cp949'

2016-11-08 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue28640] UnicodeDecodeError: 'cp949'

2016-11-08 Thread Steve Dower
Steve Dower added the comment: Firstly, welcome to the tracker, and thanks for helping test the early releases of Python 3.6. For future reference, it's much preferred if you can copy-paste error messages into the text of the message. Attaching large log files is okay, but screenshots should

[issue28641] Describe PEP 495 features in "What's New in Python 3.6" document

2016-11-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Paul (p-ganssle), based on your recent experience implementing PEP 495, what are the main points that we should cover in What's New? Also, any comments/criticism on the recent changes to the datetime module documentation are welcome. -- __

[issue28641] Describe PEP 495 features in "What's New in Python 3.6" document

2016-11-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: See also #27595. -- assignee: belopolsky components: Documentation messages: 280320 nosy: belopolsky, p-ganssle, tim.peters priority: normal severity: normal stage: needs patch status: open title: Describe PEP 495 features in "What's New in Pytho

[issue28569] mock.attach_mock should work with any return value of patch()

2016-11-08 Thread Michael Foord
Michael Foord added the comment: Sure, go ahead Syed. Feel free to ask any questions you may have. -- ___ Python tracker ___ ___ Pytho

[issue21590] Systemtap and DTrace support

2016-11-08 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: @Ɓukasz Dug a bit more to it. Yes it is RPM specific for that case, in the sense that we create different subfolders for the debug and the normal(optimized) builds under the build/ dir, where the Include directory does not exist. the dtrace wrapper ass

[issue28640] UnicodeDecodeError: 'cp949'

2016-11-08 Thread Hojung An
New submission from Hojung An: I have Python3.6 and when I try to install pyinstaller using (pip install pyinstaller) I receive error messages for: 1) UnicodeDecodeError: 'cp949' 2) Command 'python setup.py egg_info' failed with error code 1 When I inquired about this to webmas...@python.org th

[issue27589] asyncio doc: issue in as_completed() doc

2016-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: Well, in that case the idiom will be even simpler: wrap each one in a coroutine that awaits it and prints the result and then gather() all the coroutine wrappers. -- ___ Python tracker

[issue27589] asyncio doc: issue in as_completed() doc

2016-11-08 Thread Hynek Schlawack
Hynek Schlawack added the comment: Such an idiom is IMHO not the main usefulness of this function tho. As an (untested) example, something like async def f(n): await asyncio.sleep(n) return n for f in asyncio.as_completed([f(3), f(2), f(1)]): print(await f) will print: 1 2 3 That

[issue27589] asyncio doc: issue in as_completed() doc

2016-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: However, in general you should use a different pattern. Wrap each future in a coroutine that does whatever you want to do to the first one ready and maybe cancel the others. Then gather() all coroutines with the flag that keeps errors. --Guido (mobile) --

[issue19717] resolve() fails when the path doesn't exist

2016-11-08 Thread Guido van Rossum
Guido van Rossum added the comment: Please make sure this lands in beta 4! --Guido (mobile) -- ___ Python tracker ___ ___ Python-bugs

[issue28637] Python startup performance regression

2016-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The effect is limited to venv only in a narrow sense. The startup time for running programs from an IDLE editor is also affected. Many other programs also import re either directly or indirectly on startup. For instance, importing argparse imports re. Runnin

[issue28635] Update What's New for 3.6

2016-11-08 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: I'm actually working on a tool that parses Misc/NEWS, cpython and peps repos, and roundup to gather and organize the changes to make the news editor's job easier. -- ___ Python tracker

[issue28635] Update What's New for 3.6

2016-11-08 Thread Mark Dickinson
Mark Dickinson added the comment: What no mention of math.tau? It's a PEP-level change! -- nosy: +mark.dickinson ___ Python tracker ___ __

[issue28635] Update What's New for 3.6

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: Holy cow, I missed the PEP 628. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28635] Update What's New for 3.6

2016-11-08 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: The page is a work-in-progress. We'll surely capture all notable changes. -- ___ Python tracker ___ __

[issue28637] Python startup performance regression

2016-11-08 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-08 Thread Xiang Zhang
Xiang Zhang added the comment: > What a comment you need Xiang? Isn't existing comment enough? Serhiy, I mean the case a number starting with 0, e.g. 0123. The plural form is a C expression and in C 0123 is an octal number. c2py now interprets it as a decimal number. -- _

[issue28637] Python startup performance regression

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It seems to me that current regular expression is not correct. It can keep trailing whitespaces it a value. I'm not experienced with venv and don't know what tests are needed. -- ___ Python tracker

[issue28637] Python startup performance regression

2016-11-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file45391/site-not-use-re.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue28637] Python startup performance regression

2016-11-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: @serhiy.storchaka you've beaten me by a few minutes (still waiting for the test suite to finish). Your patch is "contaminated" by an additional change in collections/__init__.py though so I'm still uploading my version (which also tries to stick as close as po

[issue28637] Python startup performance regression

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, please ignore it. This is a sample code from other issue (issue28638). -- ___ Python tracker ___ _

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One of problems with this patch is that it make instantiating a namedtuple much slower (due to parsing arguments by Python code). This can be solved by using eval() for creating only the __new__ method (see commented out line "result.__new__ = eval(...)"). T

[issue28637] Python startup performance regression

2016-11-08 Thread STINNER Victor
STINNER Victor added the comment: site-not-use-re.patch: The change on site.py LGTM. I don't see why re was used in the first place for such simple text format ;-) I suggest to push the fix into Python 3.6 and 3.7. But what is the change in Lib/collections/__init__.py? -- ___

[issue28637] Python startup performance regression

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch removes the use of re from site.py. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file45389/site-not-use-re.patch ___ Python tracker

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread INADA Naoki
INADA Naoki added the comment: (tip) $ ~/local/py37/bin/python3 -m perf timeit -s 'import importlib, functools' -- 'importlib.reload(functools)' . Median +- std dev: 1.21 ms +- 0.01 ms (namedtuple-no-compile.patch) $ ~/local/py37/bin/python3 -m perf timeit -s 'import importl

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a sample patch that make namedtuple() not using dynamic compilation. It has rough the same performance effect as inlining the named tuple source, but affects all named tuples. -- Added file: http://bugs.python.org/file45388/namedtuple-no-comp

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-08 Thread Carl Ekerot
Carl Ekerot added the comment: Looks good to me. It behaves as intended on every input I can think of. -- ___ Python tracker ___ ___ P

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread INADA Naoki
INADA Naoki added the comment: > What is the main culprit, importing the collections module or compiling a > named tuple? In this time, later. But collections module takes 1+ ms to import too. I'll try to optimize it. > Using namedtuple is not new in 3.6, thus this is not a regression that can

[issue28637] Python startup performance regression

2016-11-08 Thread Wolfgang Maier
Wolfgang Maier added the comment: STINNER Victor added the comment: >BUT when Python is started from a virtual environment (created by the >"venv" module), the re module is important by default. > >haypo@speed-python$ venv/bin/python3 -c 'import sys; print("re" in >sys.modules)' >True Exciting,

[issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag

2016-11-08 Thread Matthieu S
Matthieu S added the comment: Sorry for the very late reply... Using _LINUX_SOURCE_COMPAT is sometimes preferable, as it greatly improves compatibility with code intended for Linux and improves XPG specs compliance. But I am not sure it should always be enabled. In our case, we use it as ther

[issue19717] resolve() fails when the path doesn't exist

2016-11-08 Thread Martin Wagner
Martin Wagner added the comment: i have a use-case that requires a behavior that is referenced above as --canonicalize-missing. essentially i need to get rid of relative parts in a path representation regardless the actual filesystem. my conclusion was that PurePath could provide that with a '

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What a comment you need Xiang? Isn't existing comment enough? -- ___ Python tracker ___ ___ Python

[issue28632] configparser does not close files in read

2016-11-08 Thread Petr
Petr added the comment: I am sorry, I can only reproduce it in the production environment so far, it does only occur on Ubuntu Linux (Python 3.5.1) and I am developing on Windows. So right now I cannot narrow it down (it does not occur with simple code, unfortunately). This is what I get after

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using namedtuple is not new in 3.6, thus this is not a regression that can be fixed at beta stage. Inlining the source of a named tuple class looks ugly solution. It would be better to write the source in separate file and import it. Makefile can have a rul

[issue27589] asyncio doc: issue in as_completed() doc

2016-11-08 Thread Armin Ronacher
Armin Ronacher added the comment: I am not even sure what the function is supposed to tell me. The documentation is very unclear and the example code does not help. What is "fs" for instance? And why would it return things that are not from fs? -- nosy: +aronacher _

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-08 Thread Xiang Zhang
Xiang Zhang added the comment: LGTM. And I expect there could be a comment about the special decimal number. -- ___ Python tracker ___ ___

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the main culprit, importing the collections module or compiling a named tuple? -- nosy: +serhiy.storchaka ___ Python tracker ___

  1   2   >