[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2016-09-01 Thread Stefan Behnel
Stefan Behnel added the comment: Looks like I forgot about this. My final fix still hasn't been applied, so the code in Py3.4+ is incorrect now. No, this cannot be tested from the Python level. -- ___ Python tracker

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2016-09-01 Thread Stefan Behnel
Stefan Behnel added the comment: I haven't seen any crashes in the wild here, but this is still the case in the latest code base. The change doesn't seem invasive, so I don't see why it shouldn't get implemented. -- nosy: +pitrou, scoder, serhiy.storchaka versions: +Python 3.5, Python

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
Robert Jordens added the comment: https://github.com/python/cpython/blob/master/Lib/asyncio/selector_events.py#L394 https://github.com/python/asyncio/blob/master/asyncio/selector_events.py#L394 AF_UNIX is special-cased. Maybe AF_BLUETOOTH and others should use that same special treatment. Or

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-01 Thread Lisa Roach
Lisa Roach added the comment: I will start working on the patch for this! Thanks for pointing me this way, Raymond. -- nosy: +lisroach ___ Python tracker

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- versions: -Python 3.4 ___ Python tracker ___ ___

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e82b995d1a5c by Jason R. Coombs in branch '3.4': Issue #12885: Revert commits in 3.4 branch which is security-only fixes. https://hg.python.org/cpython/rev/e82b995d1a5c New changeset a7ce98a4e9e4 by Jason R. Coombs in branch '3.5': Issue #12885:

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2016-09-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: Yep. Sorry for the misfile. -- nosy: +jason.coombs ___ Python tracker ___

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 590d0de4ff48 by Jason R. Coombs in branch '3.4': Issue #12885: Correct issue reference in NEWS https://hg.python.org/cpython/rev/590d0de4ff48 New changeset 74ccec0bd442 by Jason R. Coombs in branch '3.5': Issue #12885: Merge 3.4

[issue27761] Private _nth_root function loses accuracy

2016-09-01 Thread Tim Peters
Tim Peters added the comment: BTW, add this other way of writing a native-precision Newton step to see that it's much worse (numerically) than writing it in the "guess + small_correction" form used in roots.py. Mathematically they're identical, but numerically they behave differently: def

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Martin Panter
Martin Panter added the comment: I think you mixed up the bug number. You should probably fix Misc/NEWS. New changeset 941346104718 by Jason R. Coombs in branch '3.4': Issue #12285: Add test capturing failure. https://hg.python.org/cpython/rev/941346104718 New changeset 56c60b3d06fb by Jason

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2016-09-01 Thread Martin Panter
Martin Panter added the comment: Looks like that last lot was meant to reference Issue 12885 -- nosy: +martin.panter ___ Python tracker ___

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: This code has been stable in Setuptools for some time, so I've pushed the code into the base. -- resolution: -> fixed status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 941346104718 by Jason R. Coombs in branch '3.4': Issue #12285: Add test capturing failure. https://hg.python.org/cpython/rev/941346104718 New changeset 56c60b3d06fb by Jason R. Coombs in branch '3.4': Issue #12285: Replace implementation of findall

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79422fab2ef4 by Jason R. Coombs in branch 'default': Issue #12885: Merge with 3.5 https://hg.python.org/cpython/rev/79422fab2ef4 -- nosy: +python-dev ___ Python tracker

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2016-09-01 Thread Caleb Hattingh
Changes by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker ___ ___

[issue27761] Private _nth_root function loses accuracy

2016-09-01 Thread Tim Peters
Tim Peters added the comment: Attched file "roots.py" you can run to get a guess as to how bad pow(x, 1/n) typically is on your box. Note that it's usually "pretty darned good" the larger `n` is. There's a reason for that. For example, when n=1000, all x satisfying 1 <= x < 2**1000 have a

[issue27898] regexp performance degradation between 2.7.6 and 2.7.12

2016-09-01 Thread Steve Newcomb
Steve Newcomb added the comment: On 09/01/2016 05:01 PM, Steve Newcomb wrote: > >> The outputs show that 2.7.12's re.sub() takes 1.2 times as long as >> 2.7.6's. It's a significant difference, but... >> >> ...it was not the dramatic degradation I expected to find in this >> exercise. On

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-09-01 Thread Doug Coleman
Doug Coleman added the comment: Six years later and I'm still running into this exact bug with ``subprocess.CalledProcessError`` on python 2.7.12 when doing a ``multiprocessing.Pool.map`` and trying to catch errors from ``subprocess.check_output``. What's the reason it was never fixed and

[issue22458] Add fractions benchmark

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: @Stefan Krah: Please review the pull request. https://github.com/python/performance/pull/10 I suggested to only run the benchmark with the fractions module. I don't see the point of running the benchmark with the decimal module. --

[issue27888] Hide pip install/uninstall windows in setup

2016-09-01 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22458] Add fractions benchmark

2016-09-01 Thread Stefan Krah
Stefan Krah added the comment: I'm also not opposed to adding it (-0.000) as long as we rename it to bm_fractions.py and change the docstring to "based on the telco benchmark". -- ___ Python tracker

[issue22458] Add fractions benchmark

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: > I think string conversion should be part of this benchmark, or it should be > renamed to fraction-arith or something. The "telco" benchmark seems to be standard and well defined. I agree that we should use a different name. > That said, is the purpose of

[issue22458] Add fractions benchmark

2016-09-01 Thread Stefan Krah
Stefan Krah added the comment: I think string conversion should be part of this benchmark, or it should be renamed to fraction-arith or something. The formatting function can be a significant bottleneck, and if you use Fractions for financial calculations the result will still need to be

[issue27898] regexp performance degradation between 2.7.6 and 2.7.12

2016-09-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo type: -> performance ___ Python tracker ___

[issue27898] regexp performance degradation between 2.7.6 and 2.7.12

2016-09-01 Thread Steve Newcomb
Steve Newcomb added the comment: Oops. The correct url is sftp://coolheads.com/files/py-re-perform-276v2712/ On 09/01/2016 04:52 PM, Steve Newcomb wrote: > On 08/30/2016 12:46 PM, Raymond Hettinger wrote: >> Raymond Hettinger added the comment: >> >> It would be helpful if you ... make a small

[issue27928] Add hashlib.scrypt

2016-09-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: If clinic doesn't support required keyword only args then don't worry about it for now. :) -- ___ Python tracker ___

[issue27928] Add hashlib.scrypt

2016-09-01 Thread Christian Heimes
Christian Heimes added the comment: Argument is easy. Your second request is a very good idea but also harder to implement. Neither PyArg_Parse nor clinic have a way to declare arguments that required and keyword only but have no default value. I have a workaround but it ain't beautiful.

[issue27934] json float encoding incorrect for dbus.Double

2016-09-01 Thread Eddie James
Changes by Eddie James : Added file: http://bugs.python.org/file44334/json-float-str-2.7.patch ___ Python tracker ___

[issue27934] json float encoding incorrect for dbus.Double

2016-09-01 Thread Eddie James
New submission from Eddie James: JSON does not correctly encode dbus.Double types, even though all other dbus types are handled fine. I end up with output like this (0.25 is the floating point value): dbus.Double(0.25, variant_level=1) Found that the encoding uses repr() for float objects but

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Matthias Klose
Matthias Klose added the comment: checked in. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a931fdc4c4c4 by doko in branch 'default': - Issue #27917: Set platform triplets for Android builds. https://hg.python.org/cpython/rev/a931fdc4c4c4 -- nosy: +python-dev ___ Python tracker

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Matthias Klose
Matthias Klose added the comment: I think that's good for now. The compiler checks maybe can be later adjusted. -- ___ Python tracker ___

[issue27928] Add hashlib.scrypt

2016-09-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Rather than PyArg_ParseTupleAndKeywords can you have it use argument clinic? Also, how about making all arguments other than password be keyword only so that code calling the function is more clear. Otherwise it's a bit of positional argument soup with a lot

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: OK found some wrong usages in my build script. Now MIPS64 builds fine, and PLATFORM_TRIPLET is detected as intended. I didn't test the build on actual devices, as I don't have a MIPS or MIPS64 device. -- ___ Python

[issue27925] Nicer interface to convert hashlib digests to int

2016-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is another way: int.from_bytes(x.digest(), 'big') Note that converting to int you lose the length of the digest. md5 digest d41d8cd98f00b204e9800998ecf8427e and sha1 digest d41d8cd98f00b204e9800998ecf8427e are converted to the same int.

[issue27921] f-strings: do not allow backslashes

2016-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > -result.append(f' [Previous line repeated {count-3} more > times]\n') > +result.append(f' [Previous line repeated {count-3} more > times]''\n') This looks a little ugly. -- nosy: +serhiy.storchaka

[issue22881] show median in benchmark results

2016-09-01 Thread Stefan Behnel
Changes by Stefan Behnel : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: CPython builds fine for MIPS with this patch. For MIPS64, apparently Android NDK is broken - it can't even compile a simple C file. -- ___ Python tracker

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2016-09-01 Thread Elias Zamaria
Elias Zamaria added the comment: Here is a patch with all of my latest changes, including the changes that Martin suggested for the tests. -- Added file: http://bugs.python.org/file44332/pep467_attempt2.patch ___ Python tracker

[issue27881] Fix possible bugs when setting sqlite3.Connection.isolation_level

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 546b1f70cbed by Serhiy Storchaka in branch '3.5': Issue #27881: Fixed possible bugs when setting sqlite3.Connection.isolation_level. https://hg.python.org/cpython/rev/546b1f70cbed New changeset 96e05f1af2c8 by Serhiy Storchaka in branch 'default':

[issue16379] SQLite error code not exposed to python

2016-09-01 Thread Aviv Palivoda
Changes by Aviv Palivoda : Added file: http://bugs.python.org/file44331/16379-3.patch ___ Python tracker ___

[issue27881] Fix possible bugs when setting sqlite3.Connection.isolation_level

2016-09-01 Thread Aviv Palivoda
Aviv Palivoda added the comment: The only change I see that can happen is that we return upper case isolation level when the user used a lower case. I think that it is worth to slow down the getter for the code simplification. -- ___ Python tracker

[issue27933] functools.lru_cache seems to not work when renaming decorated functions

2016-09-01 Thread Федор Лянгузов
Федор Лянгузов added the comment: Ok, thank you very much, i've got a little smarter today. Now i understand, that user_function (in this case factorial) is not modified by decorator, it is my job to change factorial to wrapper by assignment. Enlightning. -- resolution: -> not a bug

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Matthias Klose
Changes by Matthias Klose : Removed file: http://bugs.python.org/file44327/android.diff ___ Python tracker ___

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Matthias Klose
Matthias Klose added the comment: yes, it should follow the gnu triplets. I updated these, and added some for mips. However I can't check if the mips ones will do what they are supposed to do. Please could you check these if you have cross compilers available? -- Added file:

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2016-09-01 Thread Ethan Furman
Ethan Furman added the comment: Two things to note: - there is no need to change the stdlib to use anything besides the default constructor -- it's not going away, and it already works (my apologies if I misunderstood) - PEP 467 has not yet been accepted (unless I missed that?) However,

[issue27888] Hide pip install/uninstall windows in setup

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e065aec0e6fa by Steve Dower in branch '2.7': Issue #27888: Prevent Windows installer from displaying console windows and failing when pip cannot be installed/uninstalled. https://hg.python.org/cpython/rev/e065aec0e6fa -- nosy: +python-dev

[issue27881] Fix possible bugs when setting sqlite3.Connection.isolation_level

2016-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I thought about this. This changes the behavior (for now isolation_level returns exactly the same object that was assigned to it) and slows down the getter. This can be added only on the default branch. --

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-09-01 Thread Bernard Spil
Bernard Spil added the comment: Hi Christian, Great stuff! Please can you replace the HAVE_RAND_EGD ifdefs into OPENSSL_NO_EGD checks? Then the RAND_egd checks in configure.ac can also be removed. This was introduced by OpenSSL in

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2016-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not convinced that the zeros() method is needed. Zero-initialized sequences can be created via sequence repetition. Sorry, but arguments against this sound like "we made bad design decision in the past, let repeat it with new name" to me. In any case

[issue901727] extra_path kwarg to setup() undocumented

2016-09-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: Given the progression in issue27919, I suggest this documentation effort can be dropped, but feel free to revive the conversation if you disagree. -- nosy: +jason.coombs resolution: -> wont fix status: open -> closed

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-09-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks, Nick. I've also observed that the package that was mentioned in the comments was "Numeric Python" and I confirmed that numpy is not currently using this option, so that's a positive indication that it's unneeded. I've also reached out to New Relic

[issue27881] Fix possible bugs when setting sqlite3.Connection.isolation_level

2016-09-01 Thread Aviv Palivoda
Aviv Palivoda added the comment: What do you think about removing the isolation_level member from the pysqlite_Connection. It is only there to be for the pysqlite_connection_get_isolation_level and that could be easily calculated from the begin_statement. -- Added file:

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94710cbcac47 by Jason R. Coombs in branch 'default': Issue #27919: Deprecate extra_path option in distutils. https://hg.python.org/cpython/rev/94710cbcac47 -- nosy: +python-dev ___ Python tracker

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Well, here's a list of cross compilers in Android NDK: $ ls $ANDROID_NDK/toolchains/*/prebuilt/*/bin/*-gcc | xargs -i basename '{}' aarch64-linux-android-gcc arm-linux-androideabi-gcc mips64el-linux-android-gcc mipsel-linux-android-gcc

[issue27917] Choose platform triplets for android builds

2016-09-01 Thread Matthias Klose
Matthias Klose added the comment: here's a patch, not yet including the ABI levels. I think we didn't need them for Linux, and maybe start for Android without using them. You can later introduce these if you have to. -- keywords: +patch Added file:

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2016-09-01 Thread Elias Zamaria
Elias Zamaria added the comment: I tried running `hg import --no-commit "$(xclip -o)"` and got the following result: bash: xclip: command not found abort: need at least one patch to import I am using OS X 10.11.6 and Mercurial 3.8.2. I did a bit of quick research on xclip, but it looks like

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Israel Fruchter
Israel Fruchter added the comment: Some real use cases is needed, like testing a code that behave differently on case of package availability. I think something like patch for modules can be useful here, so you could have some control on what would be returned. -- nosy: +fruch

[issue27933] functools.lru_cache seems to not work when renaming decorated functions

2016-09-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: In case it isn't obvious, my example is meant to be pseudo-code, not the exact implementation used. -- ___ Python tracker

[issue27933] functools.lru_cache seems to not work when renaming decorated functions

2016-09-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: This behaviour is expected. The factorial function calls itself, it doesn't call "f", but it is "f" which has the cache. So the call to f() goes through the cache, misses, and then calls factorial(), which has no cache. In effect, what you have written is

[issue27268] Incorrect error message on float('')

2016-09-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Setting this aside for Nofar to review. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue27933] functools.lru_cache seems to not work when renaming decorated functions

2016-09-01 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ncoghlan, rhettinger ___ Python tracker ___ ___

[issue27928] Add hashlib.scrypt

2016-09-01 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch Added file: http://bugs.python.org/file44326/Add-hashlib.scrypt.patch ___ Python tracker

[issue27933] functools.lru_cache seems to not work when renaming decorated functions

2016-09-01 Thread Федор Лянгузов
New submission from Федор Лянгузов: Greetings, I've encountered strange behavior when using functools.lru_cache as a function (not as a decorator): it is at least miscounting misses, but probably not work at all, when the result of functools.lru_cache()(func) is saved in variable other than

[issue27926] ctypes is too slow to convert a Python list to a C array

2016-09-01 Thread Tom Cornebize
Tom Cornebize added the comment: Thank you for these explanations. I understand that we get a generic function to the cost of performances. However, I think we should at least tell in the documentation that the constructor (ctypes.c_uint32 * len(t))(*t) is slow and that we can do much faster

[issue27925] Nicer interface to convert hashlib digests to int

2016-09-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: "int(x)" looks nice to me as well. -- nosy: +rhettinger ___ Python tracker ___

[issue27925] Nicer interface to convert hashlib digests to int

2016-09-01 Thread R. David Murray
R. David Murray added the comment: +1 I just wanted this recently. Also note that going through hexdigest/int isn't particularly efficient, so an object-supported fast way to do this would be nice. -- nosy: +r.david.murray stage: -> needs patch

[issue27931] Email parse IndexError <""@wiarcom.com>

2016-09-01 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch versions: +Python 3.6 ___ Python tracker ___

[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-01 Thread Okko Willeboordse
Okko Willeboordse added the comment: I did a gc.get_objects() before and after platform.win32_ver() and printed objects that were not present before calling platform.win32_ver(). If I run platform.win32_ver() in a loop I see the memory increasing. On 1 September 2016 at 17:35, STINNER Victor

[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: Hum, can you please elaborate the issue? What is leaked_objects.txt? -- nosy: +haypo ___ Python tracker ___

[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-01 Thread Okko Willeboordse
New submission from Okko Willeboordse: Running; Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32 platform.win32_ver() returns; ('10', '10.0.10586', '', u'Multiprocessor Free') -- components: Windows files: leaked_objects.txt messages:

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-01 Thread Guido van Rossum
Guido van Rossum added the comment: I'll try to get to this during the core dev sprint next week. -- ___ Python tracker ___

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-01 Thread Guido van Rossum
Guido van Rossum added the comment: Looks related (possibly a duplicate) of issue #27136. Also related is a fix for the latter in https://github.com/python/asyncio/pull/357. That fix is already in the CPython repo, but I guess it didn't make it into 3.5.2. --

[issue27931] Email parse IndexError <""@wiarcom.com>

2016-09-01 Thread Константин Волков
New submission from Константин Волков: Email lib fails to parse some emails: from email._header_value_parser import get_angle_addr get_angle_addr('<""@wiarcom.com> SIZE=28113').addr_spec IndexError: list index out of range Seems that email address can be parsed. -- components:

[issue27930] logging's QueueListener drops log messages

2016-09-01 Thread Petr Viktorin
New submission from Petr Viktorin: There are two "barrier" like abstractions on Lib/logging/handlers.py in the _monitor method. First _monitor has two loops, what is already kind of a hint something is not right. Second, it has two ways to exit the loop, that also exit the thread: 1) The

[issue27926] ctypes is too slow to convert a Python list to a C array

2016-09-01 Thread Eryk Sun
Changes by Eryk Sun : -- versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue27926] ctypes is too slow to convert a Python list to a C array

2016-09-01 Thread Eryk Sun
Eryk Sun added the comment: This is a consequence of several factors. It starts with the __init__ method of ctypes.Array, Array_init. This function doesn't hard-code calling the base sq_ass_item slot function, Array_ass_item. If it did, it wouldn't be nearly as slow. Instead it calls the

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Uh... ok, I thought you wanted some feedback on the patches posted, since I didn't know you had committed a new version of them. I haven't tried to use the new API (for various reasons it's a bit cumbersome to use a self-compiled Python for Numba), but I'm

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: > Which patch are we talking about? I'm talking about this change which was already merged into the default branch of Python in March 2016: New changeset 60655e543d8a by Victor Stinner in branch 'default': Add C functions _PyTraceMalloc_Track()

[issue22458] Add fractions benchmark

2016-09-01 Thread Stefan Behnel
Stefan Behnel added the comment: Done: https://github.com/python/performance/pull/10 Note that I didn't replace the existing telco benchmark as it is more specific to Decimal. The new benchmark makes it possible to compare the decimal and fractions modules for similar operations, though.

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-01 Thread Emanuel Barry
Emanuel Barry added the comment: Thanks for the report! I'm unable to reproduce, as `socket.AF_BLUETOOTH` doesn't exist on my system, but surely someone else can. -- keywords: +3.5regression nosy: +ebarry, ned.deily priority: normal -> high stage: -> needs patch title:

[issue27929] asyncio.AbstractEventLoop.sock_connect brooken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
Changes by Robert Jordens : -- components: +asyncio -Argument Clinic nosy: +gvanrossum, haypo, yselivanov ___ Python tracker ___

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which patch are we talking about? In tracemalloc_track-3.patch, I see: + If memory block is already tracked, update the existing trace. */ +PyAPI_FUNC(int) _PyTraceMalloc_Track(void *ptr, size_t size); + +/* Untrack an allocated memory block in the

[issue27929] asyncio.AbstractEventLoop.sock_connect brooken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
Robert Jordens added the comment: The error for inet_pton() is: >>> import socket >>> socket.inet_pton(socket.AF_BLUETOOTH, "00:12:34:56:78:99") Traceback (most recent call last): File "", line 1, in socket.error: [Errno 97] Address family not supported by protocol And the traceback in

[issue27929] asyncio.AbstractEventLoop.sock_connect brooken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
New submission from Robert Jordens: Since 3.5.2 sock_connect() tries to be smart and resolves addresses for you if they fail a socket.inet_pton() check. But inet_pton() only supports AF_INET(6) and does not work for other address families that socket otherwise supports just fine (e.g.

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: > I may be a bit confused, but the "domain" integer you added in issue 26588 > doesn't seem to be part of this API... Is it deliberate? They are part of this API. msg262180: """Ok, I added the following C functions: int

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I may be a bit confused, but the "domain" integer you added in issue 26588 doesn't seem to be part of this API... Is it deliberate? -- ___ Python tracker

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: > Is the timeout part of the API? :-) I don't want to make the API public before you validated that it is usable for your use case or to track numpy memory usage. I guess that the first beta release of Python 3.6 is the deadline for this issue. Otherwise, we

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is the timeout part of the API? :-) -- ___ Python tracker ___ ___

[issue27364] Deprecate invalid unicode escape sequences

2016-09-01 Thread Emanuel Barry
Emanuel Barry added the comment: Thanks Serhiy; it does look better to me too! -- Added file: http://bugs.python.org/file44322/deprecate_invalid_escapes_both_3.patch ___ Python tracker

[issue26814] [WIP] Add a new _PyObject_FastCall() function which avoids the creation of a tuple or dict for arguments

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: I splitted the giant patch into smaller patches easier to review. The first part (_PyObject_FastCall, _PyObject_FastCallDict) is already merged. Other issues were opened to implement the full feature. I now close this issue. -- resolution: -> fixed

[issue27128] Add _PyObject_FastCall()

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: The main features (_PyFunction_FastCall()) has been merged. Supporting keyword arguments is now handled by other issue (see issue #27830). I close this issue. -- resolution: -> fixed status: open -> closed ___

[issue27809] Add _PyFunction_FastCallDict(): fast call with keyword arguments as a dict

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: The main feature has been merged, so I close the issue. -- resolution: -> fixed status: open -> closed title: _PyObject_FastCall(): add support for keyword arguments -> Add _PyFunction_FastCallDict(): fast call with keyword arguments as a dict

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: @Nathaniel, Antoine: last ping before timeout :-p -- ___ Python tracker ___

[issue27906] Socket accept exhaustion during high TCP traffic

2016-09-01 Thread kevinconway
kevinconway added the comment: Added a comment to the .accept() loop with a reference to the issue. -- Added file: http://bugs.python.org/file44321/multi-accept-3.patch ___ Python tracker

[issue27364] Deprecate invalid unicode escape sequences

2016-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think "invalid escape sequence '\?'" would look cleaner than "invalid escape sequence '?'". -- ___ Python tracker

[issue27364] Deprecate invalid unicode escape sequences

2016-09-01 Thread Emanuel Barry
Emanuel Barry added the comment: Ping. I'd like to get this merged in time for 3.6. Is there anything I can do to speed up the review? Since the change itself is very straightforward, I think this would make sense to merge it now and then fix the invalid escapes that are found during the beta

[issue27928] Add hashlib.scrypt

2016-09-01 Thread Christian Heimes
New submission from Christian Heimes: OpenSSL 1.1 has EVP_PBE_scrypt(). hashlib.scrypt() is a low-hanging fruit for Python 3.6. I have a working patch with some tests. I need to write more tests and documentation: https://github.com/tiran/cpython/commits/feature/openssl110_scrypt --

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-09-01 Thread Nick Coghlan
Nick Coghlan added the comment: I think there are two time frames to look at here: 1. How do we make it easier for folks to work with existing packages like the newrelic one? For that, it may make sense for at least setuptools to override extra_path when using installation targets other then

[issue27921] f-strings: do not allow backslashes

2016-09-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

  1   2   >