[issue28630] setup.py bdist_egg --without-source-files does not allow console_script to run as expected

2016-11-07 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: I'm trying to prepare an egg file "without source code". I works mostly, while console_script does not. Here's a sample project for it, in which the function "greeting.greeting.greeting()" prints "Greeting!". https://github.com/dmiyakawa/python_greeting F

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-07 Thread Carl Ekerot
Carl Ekerot added the comment: Judging by the code, this seems to be a much more rigid implementation. I've only run the unit tests and some variations of my initial examples, and everything seems to work as intended. Will look at it more closely this afternoon. One thing that caught my atten

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

2016-11-07 Thread Michael Felt
Michael Felt added the comment: I am not compiler specialist, but as I do not use GCC (it adds extra run-time environment (support) requirements when not in a GNU environment such as Linux - I am just wondering what effect this has (e.g., no deprecated message) when not using GCC. Or, is this

[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: To take a decision, I would suggest to implement the warning, run the Python test suite, and run the test suite of a few applications like Twisted and Django, to see how much code needs to be modified. Well, let's say that my code consumes a generator but emits

[issue26934] android: test_faulthandler fails

2016-11-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the suggestion Victor. The decorator may be used in other tests as well, and referring to the concern raised by Chi Hsuan in msg280147 and my answer, it makes it more clear that the build time _android_api_level should not be used in the standard li

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

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: > Proposed patch marks most deprecated functions. Code is rewritten for using > non-deprecated functions if possible. Unfortunately some deprecated function > still are used in the code and can't be easier replaced. They are left not > marked. Hum, I suggest

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-07 Thread Xiang Zhang
Xiang Zhang added the comment: > Perhaps it should give a DeprectationWarning and delegate to _Plural? I hold a conservative opinion about this. c2py in my mind should be a inner help method. It's not documented so if there are users using it, they are risking changes. And as reported here, it

[issue26934] android: test_faulthandler fails

2016-11-07 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch following Victor code review. -- Added file: http://bugs.python.org/file45380/buggy_raise_3.patch ___ Python tracker ___ _

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

2016-11-07 Thread Michael Foord
Michael Foord added the comment: attach_mock should use function.mock when it is passed a function created by autospec. It should also *probably* fail if given a non-mock object (although that would prevent people duck-typing and attaching a mock-like object so I'm open to discussion on that).

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

2016-11-07 Thread Syed Suhail Ahmed
Syed Suhail Ahmed added the comment: I would like to work on this issue. -- nosy: +Syed Suhail Ahmed ___ Python tracker ___ ___ Python

[issue27860] Improvements to ipaddress module

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?

2016-11-07 Thread Nick Coghlan
Nick Coghlan added the comment: As Victor suggests, the reason I ended the issue title with a question mark is because I'm worried that doing this by default is likely to be too noisy to be useful. It's worth trying out though, even if it ends up being something we have to hide behind a -X fla

[issue28574] Update bundled pip

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: It looks like this is now done in 0e69d97a408e (3.6) and be8b133d5d3e (default). Please reopen if I'm missing something here. -- nosy: +berker.peksag resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue28585] Restore docstring of os._isdir

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-07 Thread Matthias Klose
New submission from Matthias Klose: the following example started to segfault with the 2.7 branch 20161103, last working one 20160901, on 3.5 branch 20161103, last working one 20160922. from __future__ import print_function import ctypes import ctypes.util lib_location = ctypes.util.find_libra

[issue28459] _pyio module broken on Cygwin / setmode not usable

2016-11-07 Thread Erik Bray
Erik Bray added the comment: Hi Masayuki, thanks for the response (I thought I replied to this earlier but maybe I only imagined it--I've been on vacation). I agree with just about everything you write here. I'm aware of the FreeBSD setmode(), but I figured os.setmode() could do different thi

[issue28441] Change sys.executable to include executable suffix

2016-11-07 Thread Erik Bray
Erik Bray added the comment: Thanks! Setting EXE_SUFFIX from the Makefile is much better. -- ___ Python tracker ___ ___ Python-bugs-li

[issue28441] Change sys.executable to include executable suffix

2016-11-07 Thread Erik Bray
Changes by Erik Bray : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28615] Document clarification: Section 5.4 Complex Number

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- status: closed -> open type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread Michael Layzell
Michael Layzell added the comment: Is there something I should be doing to push this patch forward? I am not familiar with the contribution process for cpython unfortunately. -- ___ Python tracker

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: FWIW, I don't think the patch fixes the actual problem. With the patch applied, the caret still placed at the wrong place. I'd prefer avoid pushing a patch that fixes a bug by introducing another bug. -- ___ Python t

[issue28624] Make the `cwd` argument to `subprocess.Popen` accept a `PathLike`

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread Michael Layzell
Michael Layzell added the comment: This patch fixes a problem, which is that the caret was not placed where the source location information for the node is, but instead in a random position based on the indentation level. The problem that the caret is not placed under the `=` sign, but instead

[issue6519] Reorder 'with' statement for files in Python Tutorial

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: The patch looks good to me. I think we can tweak the content a bit. I left some comments on Rietveld. Thanks! -- nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.7, Python 3.2, Python 3.3,

[issue6519] Reorder 'with' statement for files in Python Tutorial

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue28632] configparser does not close files in read

2016-11-07 Thread Petr
New submission from Petr: When using configparser read method, the file(s) remains opened and cannot be closed, causing ResourceWarning: unclosed file. For example in the following code: config = configparser.ConfigParser() config.read(cfg_fn) ... the file cfg_fn remains opened and is only cl

[issue8840] truncate() semantics changed in 3.1.2

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: The patch looks good to me, but perhaps we should make these docstrings shorter and refer people to the actual documentation for details? We recently did this in subprocess and venv modules. -- nosy: +berker.peksag, martin.panter stage: needs patch -> p

[issue28563] Arbitrary code execution in gettext.c2py

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry Xiang, but your patch looks overcomplicated to me. Too much methods, decorators, classes, too much strange names. Here is simpler implementation with using only one recursive function. -- Added file: http://bugs.python.org/file45381/gettext-par

[issue28623] Let `shlex.quote` accept a `PathLike` object

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: Agreed with David. Closing this as 'rejected'. Thanks for the report. -- nosy: +berker.peksag resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch implements shutil.rmtree using os.scandir. Needed file descriptors support in os.scandir (issue25996). I did not test how this affects the performance of shutil.rmtree. -- keywords: +patch stage: -> patch review Added file: http://bug

[issue28630] setup.py bdist_egg --without-source-files does not allow console_script to run as expected

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: console_script is a feature of setuptools. I'd suggest reporting this to https://github.com/pypa/setuptools We can reopen this if the problem is really in distutils. Thanks! -- nosy: +berker.peksag resolution: -> third party stage: -> resolved status:

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch fixes one bug, and I'm going to push it. There is other bug here. If add "1;" before the original example (so the line becomes "1;1 + 1 = 2"), the caret will be under ";". In some SyntaxErrors the caret points one position left before the start of

[issue28631] [2.7/3.5/3.6 Regression] crash using ctypes

2016-11-07 Thread Eryk Sun
Eryk Sun added the comment: po_message_create() returns a po_message_t pointer: /* A po_message_t represents a message in a PO file. */ typedef struct po_message *po_message_t; /* Return a freshly constructed message. To finish initializing the message, you must set the msgi

[issue28585] Restore docstring of os._isdir

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is Windows specific issue. I'm unable to test the patch myself. Could anybody with access to Windows computer please test it? -- ___ Python tracker

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue28633] eval() Function - Segmentation Fault

2016-11-07 Thread Honor
New submission from Honor: Hello, Python version : 3.7.0a0 OS : Ubunt - Linux x 3.13.0-24-generic Test Script: >>> a="B\'\'F\'\'" >>> eval(a) Program received signal SIGSEGV, Segmentation fault. 0x00531c5a in parsestrplus (n=0x77ee0b20, c=0x7fffd730) at Python/ast.c:5150 5150

[issue28585] Restore docstring of os._isdir

2016-11-07 Thread Zachary Ware
Zachary Ware added the comment: LGTM. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: With patch applied: File "x.py", line 2 1 + 1 = 2 ^ SyntaxError: can't assign to operator Without patch: File "x.py", line 2 1 + 1 = 2 ^ SyntaxError: can't assign to operator The caret is located at the wrong place in both examples (whic

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

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Or, is this a "statement of direction" that only GCC (syntax) compilers are > (going to be) supported? This is only the first step. Since this feature is compiler specific, we should add the support for every compiler separately. Arfrever suggested the syn

[issue28633] eval() Function - Segmentation Fault

2016-11-07 Thread Zachary Ware
Zachary Ware added the comment: Reproduced on macOS: $ ./python.exe Python 3.6.0b4+ (3.6:b26c8104e54f, Nov 7 2016, 12:01:37) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin Type help, copyright, credits or license for more information. >>> B''F'' Segmentation fault: 11 Looks

[issue25677] Syntax error caret confused by indentation

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This may be just bad example that it looks contradictorily to you. Is the example "None = 0" looks good to you? Without patch the caret is located at the middle of None (depending on the size of the indentation of this line). With patch applied it is located

[issue28633] eval() Function - Segmentation Fault

2016-11-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue28633] eval() Function - Segmentation Fault

2016-11-07 Thread Honor
Honor added the comment: Why not? I have tested it. Different payload : '%%-'%B'4--'F'' Again crashed. Can you try? On Mon, Nov 7, 2016 at 9:14 PM, Serhiy Storchaka wrote: > > Changes by Serhiy Storchaka : > > > -- > nosy: +serhiy.storchaka > > ___

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: eval() Function - Segmentation Fault -> Concatenating bytes literal and f-string causes segmentation fault ___ Python tracker ___ ___

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: Works: >>> f'' b'' File "", line 1 SyntaxError: cannot mix bytes and nonbytes literals Fails: >>> b'' f'' Segmentation fault $ Regular strings work: >>> '' b'' File "", line 1 SyntaxError: cannot mix bytes and nonbytes literals >>> b'' '' File "", line

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

2016-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Irv, could you check on any 2.7.11/12 installations you have access to? -- nosy: +IrvKalb ___ Python tracker ___ ___

[issue23218] Modernize the IDLE Find/Replace/Find in Files dialogs

2016-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Al, thanks for the honest comparison. For 3.6, we can just import and use ttk with no fuss. When I get to this, I will review tests and responses to and (see #27621). -- ___ Python tracker

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Honor
Honor added the comment: Another: >>> 9,'''Ðؚ%''(r'''%b"r' File "", line 1 SyntaxError: cannot mix bytes and nonbytes literals >>> 9,'B''Ðؚ%''(r'''%b"r''' Traceback (most recent call last): File "", line 1, in ValueError: incomplete format key >>> 9,'B''Ðؚ%''(r'''%b"r'''F

[issue28632] configparser does not close files in read

2016-11-07 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28628] Failure to add signal handlers for any signal but SIGINT

2016-11-07 Thread Yury Selivanov
Yury Selivanov added the comment: I think I have a patch for this here: https://github.com/python/asyncio/pull/456 -- ___ Python tracker ___ _

[issue28609] argparse claims '*' positional argument is required in error output

2016-11-07 Thread Reuben Thomas
Reuben Thomas added the comment: Thanks, that's a simple, robust workaround. I'll duck out now and leave the Python experts to sort out the underlying problem, if they can; I think it's still well worth sorting out, though documenting the problem and workaround would be much better than nothin

[issue28088] Document Transport.set_protocol and get_protocol

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4e86b1b051e by Berker Peksag in branch '3.5': Issue #28088: Don't include self in method signature https://hg.python.org/cpython/rev/f4e86b1b051e New changeset f2858945c058 by Berker Peksag in branch '3.6': Issue #28088: Merge from 3.5 https://hg.p

[issue28088] Document Transport.set_protocol and get_protocol

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: I just removed self from method signatures (we don't usually include it) and updated the versionadded directives to 3.5.3 since it was also backported to 3.5 in f12a59311885. Please let me know if got the 3.5 version wrong, thanks! -- nosy: +berker.peks

[issue28088] Document Transport.set_protocol and get_protocol

2016-11-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: -larry priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue28603] traceback module can't format/print unhashable exceptions

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch. Out of curiosity, how did you get an unhashable exception? Is there a way to reproduce this without creating a custom exception and set __hash__ to None? In other words, what's your use case? -- nosy: +berker.peksag stage: -> patc

[issue28632] configparser does not close files in read

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce the issue. Looking at the code it seems to me that the file is always closed. Could you please provide more information Petr? -- nosy: +serhiy.storchaka ___ Python tracker

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: The ones in msg280228 give correct error messages. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue27392] Add a server_side keyword parameter to create_connection

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e6570231c80 by Yury Selivanov in branch '3.5': Issue #27392: Document loop.connect_accepted_socket() https://hg.python.org/cpython/rev/3e6570231c80 New changeset 6811df9e9797 by Yury Selivanov in branch '3.6': Merge 3.5 (issue #27392) https://hg.py

[issue27392] Add loop.connect_accepted_socket

2016-11-07 Thread Yury Selivanov
Changes by Yury Selivanov : -- title: Add a server_side keyword parameter to create_connection -> Add loop.connect_accepted_socket ___ Python tracker ___ ___

[issue28603] traceback module can't format/print unhashable exceptions

2016-11-07 Thread Andreas Stührk
Andreas Stührk added the comment: It was reported as bug to a project that uses the traceback module (https://github.com/bpython/bpython/issues/651). Parsley (https://pypi.python.org/pypi/Parsley) is at least one library that uses unhashable exceptions, although I guess it's by accident: it de

[issue28559] Unclear error message when raising wrong type of exceptions

2016-11-07 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, but I find your proposed message less clearer (including NoneType adds unnecessary confusion and people may ask "where did NoneType come from?") Python 2 is different because of historical reasons (pre-BaseException era) so I don't think

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: It's a decref of a NULL pointer. Patch with test is attached. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file45383/28633-0.diff ___ Python tracker

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

2016-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: LGTM, too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28634] asyncio.isfuture() should support Mocks

2016-11-07 Thread Yury Selivanov
New submission from Yury Selivanov: In short: isfuture(unittest.mock.Mock()) should be False isfuture(unittest.mock.Mock(Future)) should be True This issue is a proxy for https://github.com/python/asyncio/pull/455 -- assignee: yselivanov components: asyncio messages: 280241 nosy: gvanr

[issue28634] asyncio.isfuture() should support Mocks

2016-11-07 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28634] asyncio.isfuture() should support Mocks

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0669dcf1eb36 by Yury Selivanov in branch '3.5': Issue #28634: Fix asyncio.isfuture() to support mocks https://hg.python.org/cpython/rev/0669dcf1eb36 New changeset a02915e4c165 by Yury Selivanov in branch '3.6': Merge 3.5 (issue #28634) https://hg.py

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. I added comments about other asserts. Not related, but would be nice to fix them too while we are here. -- ___ Python tracker ___ _

[issue28635] Update What's New for 3.6

2016-11-07 Thread Elvis Pranskevichus
New submission from Elvis Pranskevichus: Issue to track edits to "What's New in Python 3.6" -- assignee: docs@python components: Documentation files: 0001-Inital-pass-on-What-s-New-in-Python-3.6.patch keywords: patch messages: 280244 nosy: Elvis.Pranskevichus, docs@python, yselivanov pri

[issue28635] Update What's New for 3.6

2016-11-07 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: docs@python -> yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, Serhiy. I updated the patch. -- Added file: http://bugs.python.org/file45385/28633-1.diff ___ Python tracker ___

[issue28088] Document Transport.set_protocol and get_protocol

2016-11-07 Thread Guido van Rossum
Guido van Rossum added the comment: Good point. Thanks Berker! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

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

2016-11-07 Thread Big Stone
New submission from Big Stone: hi, we detect a strange issue on Pandas-0.19.1/Python-3.6.0b3/Windows that may or may not be a Python-3.6 bug. As it was for the glory of Python-3.6.0b3 testing, we signal the incident here. https://github.com/pandas-dev/pandas/issues/14561 -- messages: 2

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

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: Extract of the bug report: > ... > pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject > (pandas/tslib.c:26851)() > pandas/src/datetime.pxd in datetime._string_to_dts (pandas/tslib.c:87106)() > SystemError: returned a result with an error set It looks li

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

2016-11-07 Thread Big Stone
Big Stone added the comment: the curiosity is the error message, different (and uncaught) under Python 3.6 "SystemError", while with python < 3.6, you get a "ValueError" -- ___ Python tracker __

[issue28635] Update What's New for 3.6

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 38c806f0943b by Yury Selivanov in branch 'default': Merge 3.6 (issue #28635) https://hg.python.org/cpython/rev/38c806f0943b -- nosy: +python-dev ___ Python tracker ___

[issue28572] IDLE: add tests for config dialog.

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6440718eb30 by Terry Jan Reedy in branch '3.6': Issue #28572: Add 10% to coverage of IDLE's test_configdialog. https://hg.python.org/cpython/rev/d6440718eb30 -- nosy: +python-dev ___ Python tracker

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

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: > while with python < 3.6, you get a "ValueError" It's because Python 3.6 is more strict. Python 3.5 doesn't catch the bug. -- ___ Python tracker _

[issue28632] configparser does not close files in read

2016-11-07 Thread Łukasz Langa
Łukasz Langa added the comment: Cannot repro: ``` $ python3 Python 3.5.2 (default, Jul 28 2016, 21:28:00) >>> with open('/tmp/someconfig.py', 'w') as w: ... w.write("""[section] ... option=value ... """) ... 23 >>> import configparser >>> cp = configparser.ConfigParser() >>> cp.read('/tmp/somec

[issue21590] Systemtap and DTrace support

2016-11-07 Thread Łukasz Langa
Łukasz Langa added the comment: Yes, let's close this. @Charalampos, the error in your build comes from the /usr/bin/dtrace wrapper: Traceback (most recent call last): File "/usr/bin/dtrace", line 440, in sys.exit(main()) File "/usr/bin/dtrace", line 385, in main providers.probe_wri

[issue21590] Systemtap and DTrace support

2016-11-07 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue28635] Update What's New for 3.6

2016-11-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31543f7cbdf4 by Eric V. Smith in branch '3.6': Fixed issue #28633: segfault when concatenating bytes literal and f-string. https://hg.python.org/cpython/rev/31543f7cbdf4 -- nosy: +python-dev ___ Python tr

[issue28633] Concatenating bytes literal and f-string causes segmentation fault

2016-11-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28637] Python startup performance regression

2016-11-07 Thread STINNER Victor
New submission from STINNER Victor: The changeset 223731925d06 of the issue issue #28082 "use IntFlag for re constants" made Python startup 34% slower: - rev 5637c9b4dd4c: Median +- std dev: 19.5 ms +- 0.0 ms - rev 223731925d06: Median +- std dev: 26.2 ms +- 0.0 ms The change adds "import enum

[issue28637] Python startup performance regression

2016-11-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailin

[issue28082] re: convert re flags to (much friendlier) IntFlag constants

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: The changeset 223731925d06 caused a performance regression: see issue #28637. -- nosy: +haypo ___ Python tracker ___ ___

[issue28637] Python startup performance regression

2016-11-07 Thread Guido van Rossum
Guido van Rossum added the comment: Reverting is reasonable, though it may break some code that started using this in 3.6b1. Such is the life of beta testers. The benefit of using Enum for re constants doesn't seem worth such a big increase in startup time. -- nosy: +gvanrossum __

[issue28637] Python startup performance regression

2016-11-07 Thread Ethan Furman
Ethan Furman added the comment: Ouch, that's a lot slower! Victor, can you add the commands you are using for timing so I can work on making enum imports faster? -- ___ Python tracker

[issue28637] Python startup performance regression

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: Ethan Furman added the comment: > Victor, can you add the commands you are using for timing so I can work on > making enum imports faster? Results of the python_startup benchmark: https://speed.python.org/timeline/#/?exe=4&ben=python_startup&env=1&revs=50&equid

[issue28637] Python startup performance regression

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, I understood why I had issues to reproduce the startup performance slowdown. When Python is run from the source code using ./python, the re module is not imported. When Python is installed, the re is not imported by default neither: haypo@speed-python$ pr

[issue28637] Python startup performance regression

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d903a243c281 by Victor Stinner in branch '3.6': Issue #28637: Revert issue #28082, don't import enum in re https://hg.python.org/cpython/rev/d903a243c281 -- nosy: +python-dev ___ Python tracker

[issue28082] re: convert re flags to (much friendlier) IntFlag constants

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d903a243c281 by Victor Stinner in branch '3.6': Issue #28637: Revert issue #28082, don't import enum in re https://hg.python.org/cpython/rev/d903a243c281 -- ___ Python tracker

[issue28613] Make get_event_loop() return the current loop if called from coroutines

2016-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset abad0b9a35b3 by Yury Selivanov in branch '3.5': Issue #28613: Expose asyncio._get_running_loop() and _set_running_loop() https://hg.python.org/cpython/rev/abad0b9a35b3 New changeset 61a237f3bb07 by Yury Selivanov in branch '3.6': Merge 3.5 (issue #2

[issue28572] IDLE: add tests for config dialog.

2016-11-07 Thread Ned Deily
Ned Deily added the comment: test_idle now fails (macOS 10.12, Tcl/Tk 8.6): test test_idle failed -- Traceback (most recent call last): File "./lib/python3.7/idlelib/idle_test/test_configdialog.py", line 62, in test_font self.assertEqual(changes, expected) AssertionError: Lists differ: [(

[issue28637] Python startup performance regression

2016-11-07 Thread Ned Deily
Ned Deily added the comment: With being this close to release and with two weeks to go until the final beta, it seems a bit premature to immediately revert this without exploring all the alternatives especially since it seems the effects are limited to venvs. In any case, we do need to have a

[issue28637] Python startup performance regression

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: I remove the release blocker flag since the change was reverted. -- priority: release blocker -> ___ Python tracker ___ ___

[issue28637] Python startup performance regression

2016-11-07 Thread STINNER Victor
STINNER Victor added the comment: Possible options: > 3. avoid the use of re in site.py venv That would be a tiny but nice enhancement. re is a commonly used module. I would prefer to not make its import time slower. Python 3 startup is already something like 3x slower than Python 2. Please d

[issue28637] Python startup performance regression

2016-11-07 Thread Ned Deily
Ned Deily added the comment: Please leave this as a "release blocker" until we have had a chance to explore all the options for 3.6.0b4. We may still very well decide that reverting is the least bad option but I don't want to rule out other options without some further investigation. We have

  1   2   >