[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: Ok, this should be resolved. I opted to be a bit more conservative and only upgraded to sqlite3 3.8.3.1, which is the oldest version still in use for the dmg installer packages (for 2.7). I restarted the most recent 3.x build and while it's not completely done

[issue30129] functools.partialmethod should look more like what it's impersonating.

2017-04-21 Thread Skip Montanaro
Skip Montanaro added the comment: Again, my apologies for the crappy initial bug report. Hopefully this comment and the two files I just attached demonstrate what I am getting at. I just uploaded a stupid little example, partial3.py. Stupid, but still, it demonstrates part of how I think docst

[issue29867] Add asserts in PyXXX_GET_SIZE macros

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: I merged your PR. We are at the begining of the 3.7 cycle. Applications can be fixed before 3.7. In the worst case, we can revert the change. I like this enhancement, it should help to catch bugs ;-) -- resolution: -> fixed stage: patch review -> res

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: I concur with Antoine and suggest to reject this issue. -- ___ Python tracker ___ ___ Python-bugs-li

[issue29442] Replace optparse with argparse in setup.py

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: Did someone test the patch? Does Python still bootstrap after a distclean or not? If not, I suggest to close the issue, except if Chi Hsuan Yen finf an elegant way to fix them :-) -- ___ Python tracker

[issue23404] 'make touch' does not work with git clones of the source repository

2017-04-21 Thread Martin Panter
Martin Panter added the comment: Last time I proposed removing the automatic rebuilding of checked-in generated files, it seemed getting a consensus would not be trivial. Nick seemed strongly against changing the status quo:

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Matthew Barnett
Matthew Barnett added the comment: Yes, the second argument is a replacement template, not a literal. This issue does point out a different problem, though: re.escape will add backslashes that will then be treated as literals in the template, for example: >>> re.sub(r'a', re.escape('(A)'), 'a'

[issue23404] 'make touch' does not work with git clones of the source repository

2017-04-21 Thread Kubilay Kocak
Changes by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1363 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread R. David Murray
R. David Murray added the comment: Good point, re.escape is for literal text you want to insert into a matching pattern, but the replacement template isn't a matching pattern. Do we need a different escape function? I guess the function solution is enough? -- ___

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Matthew Barnett
Matthew Barnett added the comment: The function solution does have a larger overhead than a literal. Could the template be made more accepting of backslashes without breaking anything? (There's also issue29995 "re.escape() escapes too much", which might help.) --

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 503d74a60aa9290cf8d174eab95fdfdea1f2b284 by Mariatta in branch '3.5': bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) (#1246) https://github.com/python/cpython/commit/503d74a60aa9290cf8d174eab95fdfdea1f2b284

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset a3d8dda7d899bf41ab7eb2c6148459ad276fe295 by Mariatta in branch '3.6': bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) (#1247) https://github.com/python/cpython/commit/a3d8dda7d899bf41ab7eb2c6148459ad276fe295

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR has been merged and backported to 3.5 and 3.6. Thanks everyone :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue29952] "keys and values" preferred to "keys and elements" for dict constituent

2017-04-21 Thread KINEBUCHI Tomohiko
Changes by KINEBUCHI Tomohiko : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue30134] BytesWarning is missing from the documents

2017-04-21 Thread KINEBUCHI Tomohiko
New submission from KINEBUCHI Tomohiko: In Python 2.6, BytesWarning was added, but a description of that warning is missing from the document, library/exceptions.rst. -- assignee: docs@python components: Documentation messages: 292099 nosy: cocoatomo, docs@python priority: normal severi

[issue30134] BytesWarning is missing from the documents

2017-04-21 Thread KINEBUCHI Tomohiko
Changes by KINEBUCHI Tomohiko : -- pull_requests: +1365 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30135] default value of argument seems to be overwritten

2017-04-21 Thread Klaus Wolf
New submission from Klaus Wolf: Two function results differ if the parameter is given explictly instead of using the given default. (Enclosed example: A small simple interpreter of Forth language, both scripts should give the same result, but the first one (variant1) fails because the value f

[issue30134] BytesWarning is missing from the documents

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: BytesWarning should be added in the table in warnings.rst (and check that all other built-in warning categories are in this table). It is worth to mention the -b option. And I think the docstring of BytesWarning should be corrected. "Unicode" should be used

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: re.escape() shouldn't be used for a replacement template. You need just double backslashes when escape a literal string for a replacement template: s.replace('\\', ''). This should be documented if still is not documented. -- nosy: +serhiy.storch

[issue30136] Add test.support.script_helper to documentation

2017-04-21 Thread Louie Lu
New submission from Louie Lu: `test.support.script_helper` didn't document at `test` document. It should be add on. -- assignee: docs@python components: Documentation messages: 292103 nosy: docs@python, louielu priority: normal severity: normal status: open title: Add test.support.scrip

[issue30136] Add test.support.script_helper to documentation

2017-04-21 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 18576. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Document test.support.script_helper ___ Python tracker

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In some microbenchmarks this can give up to 15%. $ ./python.patched -m perf timeit -q --compare-to=./python.default -s "a = list(map(float, range(1)))" "12345 in a" Mean +- std dev: [python.default] 1.28 ms +- 0.11 ms -> [python.patched] 1.12 ms +- 0.07

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But even 15% speed up in particular microbenchmarks looks too small to me for such complex change. -- ___ Python tracker ___

[issue30113] Allow helper functions to wrap sys.setprofile

2017-04-21 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Louie. I've adjusted the issue title, as I think the core RFE is that we'd like the following helper function to work exactly the same way as calling sys.setprofile directly: def setprofile_helper(f): sys.setprofile(f) The following utility

[issue29802] A possible null-pointer dereference in struct.s_unpack_internal()

2017-04-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1366 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29960] _random.Random state corrupted on exception

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9616a82e7802241a4b74cf7ae38d43c37bf66e48 by Serhiy Storchaka (bladebryan) in branch 'master': bpo-29960 _random.Random corrupted on exception in setstate(). (#1019) https://github.com/python/cpython/commit/9616a82e7802241a4b74cf7ae38d43c37bf66e4

[issue29960] _random.Random state corrupted on exception

2017-04-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka stage: needs patch -> backport needed versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue18576] Document test.support.script_helper

2017-04-21 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1367 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29802] A possible null-pointer dereference in struct.s_unpack_internal()

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7bfd740e3d484e6fdf3f5c2d4640450957f9d89c by Serhiy Storchaka in branch 'master': Remove unneeded Misc/NEWS entry for bpo-29802. (#1251) https://github.com/python/cpython/commit/7bfd740e3d484e6fdf3f5c2d4640450957f9d89c -- _

[issue29802] A possible null-pointer dereference in struct.s_unpack_internal()

2017-04-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30135] default value of argument seems to be overwritten

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See "Why are default values shared between objects?" in Python FAQ (https://docs.python.org/3/faq/programming.html#id13). -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

<    1   2