[issue27918] Running test suites without gui but still having windows flash

2016-09-01 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file44314/issue27918.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2016-09-01 Thread Martin Panter
Martin Panter added the comment: Here is what I did. (You could probably do this yourself, but never mind :) hg pull -r{default,2.7,3.5} hg update default # Update to the latest public revision hg import --no-commit "$(xclip -o)" # Apply your patch on top hg diff -p > pep467.patch # Make a ne

[issue27918] Running test suites without gui but still having windows flash

2016-09-01 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file44315/issue27918.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2016-09-01 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file44317/pep467_doc_changes.patch ___ Python tracker ___ ___ Python-bugs-list m

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

2016-09-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Xiang what do you think about changing the isolation_levels list to > begin_statements list This is interesting suggestion. Indeed, this simplifies the code. Thanks Aviv. -- Added file: http://bugs.python.org/file44318/issue27881_v4.patch

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

2016-09-01 Thread Xiang Zhang
Xiang Zhang added the comment: Hmm, you do this "It's going to be freed in the dealloc method unless your alter that part too". If this is done I admit this is more clean. Patch LGTM. -- ___ Python tracker ___

[issue27925] Nicer interface to convert hashlib digests to int

2016-09-01 Thread Steven D'Aprano
New submission from Steven D'Aprano: hashlib digests should have a nicer interface to allow conversion to ints. Currently we write int(x.hexdigest(), 16) which is less than obvious and easy to get wrong. It would be nice to be able to just say int(x) (that's my strong preference) or x.as_int()

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Michael Foord
Changes by Michael Foord : -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Michael Foord
Michael Foord added the comment: Is this for mocking out runtime dependencies that aren't available at test time? It seems like a good way of masking bugs! I'd be happier with a (or at least an option) to specify the imports that should be mocked. The use case should be mentioned in the docs.

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Eyal Posener
Eyal Posener added the comment: Thanks for the review, Michael. About the use case: I use it for a process with loads code and inspect it's classes and methods. When I run this process, not always I have all the dependencies of the inspected code, so I found myself mocking all those packages

[issue23591] enum: Add Flags and IntFlags

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: As noticed by veky on the review, _high_bit() is slow and can be optimized using int.bit_length(). Attached bit_length.patch implements this. _high_bit(0) returns -1. Maybe an exception must be raised if the argument is < 1? (also fail for negative number) --

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Michael Foord
Michael Foord added the comment: It's not a use case I've specifically had but I can see its use. I'm uncertain of whether that means it belongs in the module or not. Let me see if I can get some more eyes on this bug. -- ___ Python tracker

[issue23591] enum: Add Flags and IntFlags

2016-09-01 Thread Vedran Čačić
Vedran Čačić added the comment: Sure, errors should never pass silently. This function shouldn't be called with nonpositive arguments. And there is no highbit of 0 (and there are infinitely many of negative numbers;). ValueError is probably best - though IndexError can also be argued for, sinc

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Michael Foord
Michael Foord added the comment: Before you spend any more time on this, my current thinking is that this is a bit too specialised to belong in the standard library. I'll wait and see if a preponderance of core devs and other users disagree with me before I close this though. --

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

2016-09-01 Thread Martin Panter
Martin Panter added the comment: Thanks for the patches. I left you some comments in the code review. I expect there would be more bits of the docs that need fixing. Doc/library/functions.rst definitely; the tutorial is worth checking too. There may also be example code floating around using t

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Christian, thanks a lot for doing this! Do you plan to change the SSLContext constructor and make the protocol argument optional? It sounds like that would be a logical followup to the OpenSSL API changes. -- ___ P

[issue27691] X509 cert with GEN_RID subject alt name causes SytemError

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't comment on this, as I don't even know what a "registered id" is, sorry :-/ -- ___ Python tracker ___ __

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

2016-09-01 Thread Tom Cornebize
New submission from Tom Cornebize: It is much faster to construct a Python array from the list and then cast this array, rather than using the "standard" constructor. See attached file to compare the performances. This issue was previously asked on Stackoverflow: http://stackoverflow.com/ques

[issue27866] ssl: get list of enabled ciphers

2016-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: What does "kea" mean? Key exchange? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mai

[issue27927] argparse: default propagation of formatter_class from ArgumentParser() to SubParsers

2016-09-01 Thread Benjamin Giesers
New submission from Benjamin Giesers: It would be nice to propagate the formatter_class defined in argparse.ArgumentParser() to added SubParsers by default. Currently one has to define the formatter_class for each subparser again and again. Example: parser = argparse.ArgumentParser(descrip

[issue27866] ssl: get list of enabled ciphers

2016-09-01 Thread Christian Heimes
Christian Heimes added the comment: KEA stands for key exchange algorithm. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27691] X509 cert with GEN_RID subject alt name causes SytemError

2016-09-01 Thread Christian Heimes
Christian Heimes added the comment: A GEN_RID is an OID plus some opaque data. It's up to an application to understand an OID and interpret its data. The value of a GEN_RID can be as simple as an int or UTF-8 strings or as complex as a nested ASN.1 struct for Kerberos principals. I have modif

[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 mailing list Unsubscribe: https://mail.pytho

[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

[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 -- m

[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

[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 ___ _

[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 __

[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 ___ ___ Python-bugs-list mai

[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 ___

[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 ___ Pytho

[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 st

[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

[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 ___ ___ Python-bugs-list mailing list Unsu

[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: 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: > 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 _PyTraceMalloc_Track(_PyTraceMalloc_d

[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. AF_BLUET

[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 async

[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 tracemalloc

[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 ___ ___ P

[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: asyncio.Abstract

[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.

[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() https://hg.pyth

[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 sur

[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 abstr

[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 ___ ___ Python-bugs-list mailing list Unsubs

[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 _sto

[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: ema

[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. -- _

[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 ___ ___ Python

[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: 274

[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
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 w

[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 ___ ___ Python-bugs-list mailing list

[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 _

[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 ___ ___ Python-bugs-li

[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

[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 '

[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 Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ncoghlan, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[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 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 som

[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 ___

[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 __

[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 y

[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: http://bugs.python.org/file44327/andr

[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 i686-linux-android-gc

[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

[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: http://bugs.py

[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 and

[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 _

[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 if

[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 https://github.com/openssl/openssl/commit/0423f812dc61f70c6ae

[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. -- __

[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

[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, th

[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: http://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 ___ ___ Python-bugs-list mailing li

[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 s

[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

[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 ___ ___ Python-bugs-list mailing list

[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':

[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

[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 __

[issue22881] show median in benchmark results

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

[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 ___

[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. Th

[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 t

[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 Matthias Klose
Matthias Klose added the comment: I think that's good for now. The compiler checks maybe can be later adjusted. -- ___ 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: checked in. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[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

[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 ___ ___ Python-bugs-list mai

[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. ---

[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 ___

[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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe

[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 print

  1   2   >