[issue23591] enum: Add Flags and IntFlags

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 39661e2ff030 by Ethan Furman in branch 'default': issue23591: add Flags, IntFlags, and tests https://hg.python.org/cpython/rev/39661e2ff030 -- nosy: +python-dev ___ Python tracker

[issue27904] Let logging format more messages on demand

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1340e298aa7e by Vinay Sajip in branch 'default': Closes #27904: Improved logging statements to defer formatting until needed. https://hg.python.org/cpython/rev/1340e298aa7e -- nosy: +python-dev resolution: -> fixed stage: patch review -> re

[issue27908] del _limbo[self] KeyError

2016-08-31 Thread Dima Tisnek
New submission from Dima Tisnek: To reproduce: ``` import threading import time class U(threading.Thread): def run(self): time.sleep(1) if not x.ident: x.start() x = U() for u in [U() for i in range(1)]: u.start() time.sleep(10) ``` Chance to reproduce ~

[issue27908] del _limbo[self] KeyError

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- components: +Extension Modules nosy: +brett.cannon type: -> behavior ___ Python tracker ___ ___ Python-bu

[issue27907] Misspelled variable in test_asyncio/test_events

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- components: +Library (Lib) nosy: +giampaolo.rodola, gvanrossum, haypo, yselivanov stage: -> patch review versions: +Python 3.6 ___ Python tracker ___

[issue27900] ctypes fails to find ncurses via ncursesw on Arch Linux

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue27908] del _limbo[self] KeyError

2016-08-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27904] Let logging format more messages on demand

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: Vinay, this patch introduces regressions. You can either revert this part: --- a/Lib/distutils/cmd.py +++ b/Lib/distutils/cmd.py @@ -329,8 +329,7 @@ class Command: # -- External world manipulation --- def warn(self, msg):

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Xiang Zhang
New submission from Xiang Zhang: Just as the patch shows, when PyErr_Occurred() returns true mod is NULL, then Py_INCREF(mod) will crash. Replace it with Py_XINCREF. -- components: Interpreter Core files: create_builtin.patch keywords: patch messages: 274007 nosy: brett.cannon, eric.sno

[issue27904] Let logging format more messages on demand

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- resolution: fixed -> stage: resolved -> patch review status: closed -> open type: performance -> behavior ___ Python tracker ___

[issue24139] Use sqlite3 extended error codes

2016-08-31 Thread Dima Tisnek
Dima Tisnek added the comment: Aviv the patch makes in itself. Are the changes in the other ticket needed to implement new tests? Or is it possible to include tests here? -- ___ Python tracker

[issue24139] Use sqlite3 extended error codes

2016-08-31 Thread Dima Tisnek
Dima Tisnek added the comment: I meant "the patch makes sense in itself". -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread Tomas Orsava
New submission from Tomas Orsava: In the documentation for the `traceback` module, the definitions of functions `extract_tb` [0], `format_list` [1] and classmethod `from_list` [2] mention the old style (4-)tuples that these functions used to return or accept. Since Python 3.5, however, they re

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread SilentGhost
SilentGhost added the comment: LGTM. -- nosy: +SilentGhost stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread Berker Peksag
Berker Peksag added the comment: I think we need to decide whether this is a documentation bug or a regression in traceback module. See also issue 25573 for a similar report. -- nosy: +berker.peksag, r.david.murray, rbcollins stage: commit review -> patch review __

[issue22233] http.client splits headers on non-\r\n characters

2016-08-31 Thread R. David Murray
R. David Murray added the comment: I'm hoping to take a look at all of these at the core sprint next week. -- ___ Python tracker ___ _

[issue27895] Spelling fixes

2016-08-31 Thread R. David Murray
R. David Murray added the comment: Good point, Martin, but I'd actually be OK with backporting that particular one. It is relatively new, and I doubt anyone is using it. Sorry for dropping the ball on the other issue. -- nosy: +r.david.murray ___

[issue27911] Unnecessary error checks in exec_builtin_or_dynamic

2016-08-31 Thread Xiang Zhang
New submission from Xiang Zhang: The two PyErr_Occurred check in exec_builtin_or_dynamic are unnecessary. The PyModule_Check at the beginning of exec_builtin_or_dynamic has eliminated the possibility for PyModule_GetDef/State to fail. -- components: Interpreter Core files: exec_built_o

[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-08-31 Thread Tomas Orsava
Tomas Orsava added the comment: Hi Berker: It's a bit complicated—this specific issue I opened isn't a regression, because it's exactly the change that was intended: Use FrameSummary instead of a 4-tuple to pass the frame data. If you see the last comment for the issue 25573 you linked to, tha

[issue27904] Let logging format more messages on demand

2016-08-31 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue27912] Distutils should use warehouse for index

2016-08-31 Thread Jason R. Coombs
New submission from Jason R. Coombs: As pypi.python.org is quickly becoming deprecated and pypi.org is the new best recommendation for packages, I recommend that for Python 3.6, the default index should be pypi.org. -- components: Distutils messages: 274017 nosy: dstufft, eric.araujo,

[issue27912] Distutils should use warehouse for index

2016-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: Oh, I see this was done in 539b4e7a655 (Python 2.7) and 54bfff5503d3 (Python 3.3+). -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker

[issue27912] Distutils should use warehouse for index

2016-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: 539b4e7a655e -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue27912] Distutils should use warehouse for index

2016-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm afraid this (slightly) backward-incompatible change may come as something of a surprise. The release notes should probably indicate the user actions that this change may require: - upload_docs (setuptools) will no longer work unless the old repository (h

[issue27744] Add AF_ALG (Linux Kernel crypto) to socket module

2016-08-31 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file44295/AF_ALG-kernel-crypto-support-for-socket-module-4.patch ___ Python tracker ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-31 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file44296/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0-4.patch ___ Python tracker ___ _

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-31 Thread Christian Heimes
Changes by Christian Heimes : Added file: http://bugs.python.org/file44297/Port-Python-s-SSL-module-to-OpenSSL-1.1.0-4.patch ___ Python tracker ___ _

[issue27904] Let logging format more messages on demand

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: Here's a patch that fixes the tests. -- Added file: http://bugs.python.org/file44298/logging-regressions.patch ___ Python tracker ___

[issue26513] platform.win32_ver() broken in 2.7.11

2016-08-31 Thread James Domingo
James Domingo added the comment: Per SilentGhost's request, reposting my message from issue 27890 here -- The platform.release() function in Python 3.5.1 returns the correct value on Windows 2008 Server R2: C:\Users\jdoe\Documents\Python>python-3.5.1-embed-amd64\python.exe Python 3.5.1 (v3

[issue27913] Difflib.ndiff (Problem on identification of changes as Diff Style)

2016-08-31 Thread vincenzo gisondi
New submission from vincenzo gisondi: I found an anomaly on identification of changes as Diff Style (^). There are the tests that i done: 1) First Test (only one character is different) >>> a = "Hello Vincenzo\n".splitlines(1) >>> b = "Hello Vincenza\n".splitlines(1) >>> a ['Hello Vincenzo\n']

[issue27914] Incorrect comment in PyModule_ExcDef

2016-08-31 Thread Xiang Zhang
New submission from Xiang Zhang: There is a comment in PyModule_ExcDef: /* handled in PyModule_CreateFromSlots */ But there seems never exists PyModule_CreateFromSlots, I think PyModule_CreateFromSlots should be PyModule_FromDefAndSpec2. -- files: PyModule_ExcDef_comment.patch key

[issue27913] Difflib.ndiff (Problem on identification of changes as Diff Style)

2016-08-31 Thread SilentGhost
SilentGhost added the comment: Since there are more than a quarter of all characters changed between two sequences, they are considered sufficiently different and no by-character comparison is shown. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> cl

[issue16535] json encoder unable to handle decimal

2016-08-31 Thread Mads Jensen
Mads Jensen added the comment: Hi @cvrebert and team - do you know if this was ever implemented. It seems that it is still an issue for financial applications, and that the solution proposed would be relevant and helpful. -- nosy: +mjensen ___ Pytho

[issue27913] Difflib.ndiff (Problem on identification of changes as Diff Style)

2016-08-31 Thread vincenzo gisondi
vincenzo gisondi added the comment: Ok now it is all clear. Thank you very much, for your rapid and clear answer. -- ___ Python tracker ___ __

[issue27915] Use 'ascii' instead of 'us-ascii' to bypass lookup machinery

2016-08-31 Thread Ville Skyttä
New submission from Ville Skyttä: https://docs.python.org/3/library/codecs.html#standard-encodings There are a bunch of other us-ascii occurrences in the tree; this patch covers the ones that are not user visible in a way that could cause problems or changes in behavior. -- files: asc

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-31 Thread Erik Bray
Erik Bray added the comment: Hi, First of all, I should be clear this is not just about CloudABI. In fact I don't even know what CloudABI is. I'm personally working toward getting a working/stable buildbot for Cygwin, so that I can move Python toward supporting it again. Cygwin has not bee

[issue27904] Let logging format more messages on demand

2016-08-31 Thread R. David Murray
R. David Murray added the comment: Thanks, Ville. -- nosy: +r.david.murray resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset caf547c9e589 by Raymond Hettinger in branch '3.5': Issue #27909: Fix INCREF for possible NULL value https://hg.python.org/cpython/rev/caf547c9e589 -- nosy: +python-dev ___ Python tracker

[issue27904] Let logging format more messages on demand

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f6dac170b9b by R David Murray in branch 'default': #27904: fix distutils tests. https://hg.python.org/cpython/rev/5f6dac170b9b -- ___ Python tracker _

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-31 Thread Ed Schouten
Ed Schouten added the comment: I think that PEP 11 also doesn't rule out changes in this area. For example, consider the paragraph starting with the sentence "This policy does not disqualify supporting other platforms indirectly. [...]" Attached is a patch that accomplishes the same with a con

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Ville Skyttä
New submission from Ville Skyttä: For better immunity against system clock changes. -- files: monotonic.patch keywords: patch messages: 274036 nosy: scop priority: normal severity: normal status: open title: Use time.monotonic instead of time.time where appropriate type: enhancement Adde

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

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

[issue27904] Let logging format more messages on demand

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue27907] Misspelled variable in test_asyncio/test_events

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a748320616b by Guido van Rossum in branch '3.5': Issue #27907: variable rename. (Ville Skyttä) https://hg.python.org/cpython/rev/2a748320616b New changeset c9592e878dfa by Guido van Rossum in branch 'default': Issue #27907: variable rename. (Ville

[issue27907] Misspelled variable in test_asyncio/test_events

2016-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Your attention to detail is appreciated. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker

[issue26307] no PGO for built-in modules with `make profile-opt`

2016-08-31 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Pinging here. Christos could you test the patch? -- nosy: +cstratak ___ Python tracker ___ __

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-08-31 Thread Erik Bray
Erik Bray added the comment: Ah, I wasn't thinking clearly toward the bottom of my last message. I see now that after a fork, _PyGILState_Reinit calls PyThread_delete_key followed by a new PyThread_create_key--in the current version of my patch that would result in putting the autoTLSkey at t

[issue27917] Choose platform triplets for android builds

2016-08-31 Thread Matthias Klose
New submission from Matthias Klose: Following up to http://bugs.python.org/issue23968, I think we should choose different platform triplets for the android builds than we do for the linux builds. Not sure which ones. I saw the following gnu triplets used: - i686-linux-android - arm-linux-a

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-31 Thread Matthias Klose
Matthias Klose added the comment: I don't see how the suggested android fix is related, and what it is supposed to fix. It adds the env command before setting the environment variables, which should be a no-op. However I think we should introduce different platform triplets for android. Plea

[issue27911] Unnecessary error checks in exec_builtin_or_dynamic

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: It's okay. Glad that you spare some time to reply. :) -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue27911] Unnecessary error checks in exec_builtin_or_dynamic

2016-08-31 Thread Brett Cannon
Brett Cannon added the comment: Patch LGTM. Thanks for catching that, Xiang! I'll commit your fix when I can (might not be until after 3.6b1 since feature improvements are taking priority on my time to make the feature freeze deadline). -- assignee: -> brett.cannon __

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

2016-08-31 Thread Xiang Zhang
New submission from Xiang Zhang: When I run test suites I find something interesting. Even if I don't enable gui resource there are still windows flashing. The two tests are test_idle and test_tk. I think the root cause is that they both use test.support.import_module with no reason and then r

[issue27917] Choose platform triplets for android builds

2016-08-31 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27917] Choose platform triplets for android builds

2016-08-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: In changeset 46567fda0b29, Xavier defined an autotools variable $ANDROID_API_LEVEL. This can be used to determine whether a specific compiler targets Android or not. -- nosy: +xdegaye ___ Python tracker

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Some of these look gratuitous to me, possibly a wholesale search and replace without detailed consideration of each change. For example, the quick informational timing in random.py does not have any downside for using the regular time.time(). The changes

[issue23591] enum: Add Flags and IntFlags

2016-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Still needs docs. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

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

2016-08-31 Thread Ned Deily
Changes by Ned Deily : -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27917] Choose platform triplets for android builds

2016-08-31 Thread Matthias Klose
Matthias Klose added the comment: hmm, should the android api level be part of the platform triplet? or are these not relevant for modules? -- ___ Python tracker ___ ___

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: asyncio already uses monotonic. The only place patched is a test utility and I don't care either way. But I do think this is not a good patch to do in general. -- ___ Python tracker

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

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: For your reference, the root.update is introduced in issue22770. -- ___ Python tracker ___ ___ Python-b

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

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: I tried that, no help to this thread, but I think that is better. root.update itself draws something on the screen. -- ___ Python tracker ___

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

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: Ahh, sorry. I misunderstand your message. Just ignore my last one. Really sorry for making noise. Your suggestion makes sense I think. -- ___ Python tracker

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

2016-08-31 Thread Zachary Ware
Zachary Ware added the comment: The order of the checks in support.requires{,_resource} should be reversed: check if the resource is enabled, then check for gui availability if the resource in question is 'gui'. -- nosy: +zach.ware ___ Python tracke

[issue27917] Choose platform triplets for android builds

2016-08-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: In Android NDK, each API level comes with a different set of header files ($ANDROID_NDK/platforms/android-$ANDROID_API_LEVEL/arch-$ARCH/usr/include). In a strict sense, the API level should be included in platform triplet. At least the plat-* directory has diff

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Well changes in this issue are not the root cause of my problem - it just exposes a broken implementation done long time ago. I'll examine more and open a new bug. -- ___ Python tracker

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: It is not a wholesale search and replace, I have checked each change. There are a lot of places in the tree where monotonic is not appropriate, and those should not be included in the patch. But there is always the possibility that I've missed something, and it'

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Guido van Rossum
Guido van Rossum added the comment: I mostly adhere to the rule of thumb "if it ain't broke, don't fix it". So I would only endorse such changes if they address actual pain, rather than possible pain. Note that that rule of thumb was born out of worry about another possible pain: the observation

[issue27916] Use time.monotonic instead of time.time where appropriate

2016-08-31 Thread Ville Skyttä
Ville Skyttä added the comment: Thanks for the explanation, understood. However, I don't think it would be terribly difficult to demonstrate that these changes do address actual pains(*) in the situations they're supposed to address them. And the pains in question might in real world occur qui

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-08-31 Thread Jason R. Coombs
New submission from Jason R. Coombs: extra_path is implicated in [this failure](https://github.com/jaraco/rwt/issues/7) and in general in any attempt to install to a path in PYTHONPATH that's not in site-packages. For example: $ python -m pip install -t foo newrelic Collecting newrelic Install

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: Nick, what's your instinct regarding this issue? -- nosy: +ncoghlan ___ Python tracker ___ ___ Pyth

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27920] Embedding python in a shared library fails to import the Python module

2016-08-31 Thread Divyansh Khattak
New submission from Divyansh Khattak: I am having the same error as described by https://bugs.python.org/issue19153 and http://bugs.python.org/issue4434. My shared library is unable to import the Python module I created. I am attaching my C file which calls the python function Rough.py, whose

[issue27920] Embedding python in a shared library fails to import the Python module

2016-08-31 Thread Divyansh Khattak
Divyansh Khattak added the comment: I am having the same error as described by https://bugs.python.org/issue19153 and http://bugs.python.org/issue4434. My shared library is unable to import the Python module I created. I am attaching my C file which calls the python function Rough.py, whose co

[issue16379] SQLite error code not exposed to python

2016-08-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: Attached is a new patch with the encoding problem fixed. -- Added file: http://bugs.python.org/file44306/16379-2.patch ___ Python tracker ___ ___

[issue27866] ssl: get list of enabled ciphers

2016-08-31 Thread Christian Heimes
Changes by Christian Heimes : -- dependencies: +Make OpenSSL module compatible with OpenSSL 1.1.0 keywords: +patch Added file: http://bugs.python.org/file44307/Add-SSLContext.get_ciphers.patch ___ Python tracker __

[issue27866] ssl: get list of enabled ciphers

2016-08-31 Thread Christian Heimes
Changes by Christian Heimes : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue24139] Use sqlite3 extended error codes

2016-08-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: > Are the changes in the other ticket needed to implement new tests? > Or is it possible to include tests here? It is not possible to add any tests to this issue before exposing the error code. I will implement new tests when issue 16379 will be resolved. > Avi

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread Nofar Schnider
Nofar Schnider added the comment: Adding the patch with seed fix for version=1 and tests (test_random). -- components: +Tests keywords: +patch versions: +Python 3.5 -Python 2.7 Added file: http://bugs.python.org/file44308/issue27706.patch ___ Python t

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread STINNER Victor
STINNER Victor added the comment: Nofar Schnider: "versions: + Python 3.5, - Python 2.7" I don't get it. This issue is specific to Python 2.7, no? > issue27706.patch If you want to backport this feature from Python 3, I suggest to reuse the same code (so SHA 512). You might get the same rand

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

2016-08-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: Xiang what do you think about changing the isolation_levels list to begin_statements list: static const char * const begin_statements[] = {"BEGIN", "BEGIN DEFERRED", "BEGIN IMMEDIATE", "BEGIN EXCLUSIVE", NULL}; This change will allow you to remove all the strin

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: For 2.7, we're going to add a note to the docs. For 3.5 and 3.6, we're adjusting the version==1 logic to meet the documented guarantee. -- versions: +Python 2.7, Python 3.6 ___ Python tracker

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

2016-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: To my surprise, "python -m test test_idle" gives a single flash in Windows. #22770 modified /Lib/test/support/__init__.py and added the creation and packing of a Label. Those two lines are gone in repository 3.6 but the flash is still there, I added root.wit

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-31 Thread Steve Dower
Steve Dower added the comment: How can I test that the ciphers are available? Our Windows build of OpenSSL (managed by us) does not necessarily include everything and I honestly don't know an easy way to ensure that ChaCha20 has actually been built in. It doesn't look like there are any link-t

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-31 Thread Christian Heimes
Christian Heimes added the comment: My time machine strikes again: #27866 introduces a new method to get all enabled ciphers. ChaCha20 needs either LibreSSL, OpenSSL 1.1.0 or OpenSSL 1.0.2 with an extra patch. -- ___ Python tracker

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-31 Thread Steve Dower
Steve Dower added the comment: Just found and added that :) Guessing one of the 'name' fields will show it? If so, looks like all the Windows builds will be missing it. I'm assuming that doesn't block this change. We should have a separate task to change the Windows build to use 1.1.0 I guess

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread Nofar Schnider
Nofar Schnider added the comment: fixed indentation -- versions: -Python 2.7 Added file: http://bugs.python.org/file44309/issue27706.patch ___ Python tracker ___ ___

[issue26051] Non-data descriptors in pydoc

2016-08-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-08-31 Thread Johannes S.
Johannes S. added the comment: Sorry that I haven't answered for a long time. I would like to get an email notification but I don't know whether/how I can enable it. On "my instance of Linux SuSE", the lines are locking like this: CONFIG_ARGS=' '\''--prefix=/some/dir'\''' libdir='${exec_prefix

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f37903e6040 by Raymond Hettinger in branch '2.7': Issue #27706: Document that random.seed() is non-deterministic when PYTHONHASHSEED is enabled https://hg.python.org/cpython/rev/1f37903e6040 -- nosy: +python-dev _

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ae941fef3be by Raymond Hettinger in branch '3.5': Issue #27706: Fix regression in random.seed(somestr, version=1) https://hg.python.org/cpython/rev/5ae941fef3be -- ___ Python tracker

[issue27706] Random.seed, whose purpose is purportedly determinism, behaves non-deterministically with strings due to hash randomization

2016-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue27891] Consistently group and sort imports within idlelib modules.

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28ce37a2d888 by Terry Jan Reedy in branch 'default': Issue #27891: Tweak new idlelib README entry. https://hg.python.org/cpython/rev/28ce37a2d888 -- ___ Python tracker

[issue27921] f-strings: do not allow backslashes

2016-08-31 Thread Eric V. Smith
New submission from Eric V. Smith: See https://mail.python.org/pipermail/python-dev/2016-August/145979.html for details. PEP 498 is going to be changed to disallow backslashes inside braces (the expression portions of an f-string). However, I can't get that change done in time for 3.6 beta 1.

[issue26051] Non-data descriptors in pydoc

2016-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger priority: normal -> low type: -> enhancement versions: -Python 3.5 ___ Python tracker ___ __

[issue27922] Make IDLE tests less flashy

2016-08-31 Thread Terry J. Reedy
New submission from Terry J. Reedy: This issue follows-up on #27732, which suppressed beeps during IDLE tests, I want to also suppress the flashing of tk widget boxes, which has become visually obnoxious with the increasing number of tests. Adding root.withdraw() after root = Tk() solves the p

[issue27921] f-strings: do not allow backslashes

2016-08-31 Thread Eric V. Smith
Changes by Eric V. Smith : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27921] f-strings: do not allow backslashes

2016-08-31 Thread Eric V. Smith
Changes by Eric V. Smith : -- keywords: +patch Added file: http://bugs.python.org/file44311/27921.patch ___ Python tracker ___ ___ Pyt

[issue27922] Make IDLE tests less flashy

2016-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is also a follow-up to #27918. Importing test.support causes a flash in the process of testing whether tkinter/tk work. So I was never able to get IDLE tests to completely stop flashing. Adding 'root.withdraw' to test.support.__init__ solves the import

  1   2   >