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

2016-08-31 Thread Elias Zamaria
Elias Zamaria added the comment: @martin.panter, I am familiar with Mercurial, and with the concept of rebasing, but I don't understand what you are trying to tell me. I made these changes in several local branches, and then merged them all together in one branch. How can I rebase it onto a

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, this is a known problem with pip where if you run it with sudo, it will happily uninstall system managed files from the system Python. To fix your system (if you haven't already): $ sudo dnf reinstall python2-pip (Anyone that accidentally uninstalls

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Donald Stufft
Donald Stufft added the comment: rewheel is definitely some Fedora patches. -- ___ Python tracker ___ ___

[issue27630] Generator._encoded_EMTPY misspelling in email package

2016-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> r.david.murray ___ Python tracker ___

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: As a test case for handling non-ASCII characters in the name of the zipfile itself, I believe it should be sufficient to add 'Ł' to TEMP_DIR and TEMP_ZIP in https://hg.python.org/cpython/file/default/Lib/test/test_zipimport.py --

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

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: It's my pleasure. > My point was that even when I request gui, I still don't want to see the > flash. I also mean that in my last message, in this sentence " Even gui is enabled a single support.requires may seem somewhat confusing to flash a window". But it

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Well, it wasnt my intention to remove the vendor package. There were two versions, and I assume it would remove the older package which wasnt supplied by the vendor, but it removed both. Anyways, I see that most of the code path is in

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

2016-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I completely agree that we should not check that gui works unless and until it is requested. Can you write a patch to do the switch? My point was that even when I request gui, I still don't want to see the flash. I do TDD for test files as well as app

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Ned Deily
Ned Deily added the comment: Sorry, 2.7.12 built from source. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Ned Deily
Changes by Ned Deily : -- nosy: +dstufft, ncoghlan ___ Python tracker ___ ___

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Ned Deily
Ned Deily added the comment: You used "pip uninstall" to uninstall the Fedora-supplied pip (/usr/bin/pip)? That would be a really *bad* thing to do. And does Fedora supply a modified ensurepip / pip? What happens if you try this with a vanilla Python 3.5.x built from source? My initial

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: After uninstalling pip on Fedora 24, ensurepip get_records_to_pack returns None, causing rewheel.rewheel_from_record to raise TypeError: 'NoneType' object is not iterable. While this is probably not a scenario that CPython supports directly, it would

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

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: I thought about this method but didn't find it's simpler. You cannot avoid malloc/free since the isolation level has to be on heap. It's going to be freed in the dealloc method unless your alter that part too. Then it's about one memcpy or two, which doesn't

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

2016-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: > they both use test.support.import_module with no reason Sorry, this is a typo. I meant to say "they both use test.support.requires". There should be *no* "no reason" and it's "requires" not "import_module". Sorry to confuse you. Staying late in night fools my

[issue22888] ensurepip and distutils' build_scripts fails on Windows when path to Python contains accented characters

2016-08-31 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +jayvdb ___ Python tracker ___ ___

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-08-31 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +jayvdb ___ Python tracker ___ ___

[issue27922] Make IDLE tests less flashy

2016-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

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

2016-08-31 Thread Martin Panter
Martin Panter added the comment: FYI if you rebase your patches onto public Mercurial revisions, they should get a review link -- nosy: +martin.panter stage: -> patch review ___ 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: Some time ago I tried adding 'root.withdraw' to idle_test files that used tkinter to stop the widget flashing. This never worked completely. Now I know why -- it was the test.support import. Knowing this now, I opened #27922 to add 'root.withdraw' where

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

2016-08-31 Thread Elias Zamaria
Elias Zamaria added the comment: Here is a patch with some changes to the docs. I don't know if the descriptions are good enough, but it should hopefully identify what parts of the docs need to be changed. -- Added file: http://bugs.python.org/file44313/pep467_doc_changes.patch

[issue27922] Make IDLE tests less flashy

2016-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf0cb86c6219 by Terry Jan Reedy in branch '2.7': Issue #27922: IDLE tests no longer flash tk widgets. https://hg.python.org/cpython/rev/bf0cb86c6219 New changeset ff3a6303c5b1 by Terry Jan Reedy in branch '3.5': Issue #27922: IDLE tests no longer

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

2016-08-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

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

2016-08-31 Thread Elias Zamaria
New submission from Elias Zamaria: This is my attempt at implementing PEP 467. I am not an expert in the details of the Python interpreter, and this is my first time working on a big project in C, so I am not sure if I am doing things in the most elegant or efficient way, but it seems to work

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

[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

[issue27921] f-strings: do not allow backslashes

2016-08-31 Thread Eric V. Smith
Changes by Eric V. Smith : -- stage: -> patch review ___ 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

[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

[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

[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

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

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

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

[issue26051] Non-data descriptors in pydoc

2016-08-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[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

[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

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

[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

[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

[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

[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

[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

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

[issue27866] ssl: get list of enabled ciphers

2016-08-31 Thread Christian Heimes
Changes by Christian Heimes : -- stage: -> patch review ___ 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

[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

[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

[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

[issue27919] Deprecate and remove extra_path distribution kwarg

2016-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +brett.cannon ___ Python tracker ___ ___

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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

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

[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

[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

[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

[issue27917] Choose platform triplets for android builds

2016-08-31 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[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

[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

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

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

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

[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

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

[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

[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

[issue27904] Let logging format more messages on demand

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- stage: patch review -> resolved ___ Python tracker ___ ___

[issue27909] Py_INCREF(NULL) in _imp.create_builtin

2016-08-31 Thread SilentGhost
Changes by SilentGhost : -- stage: -> resolved ___ Python tracker ___ ___

[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

[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

[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

[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

[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 R. David Murray
R. David Murray added the comment: Thanks, Ville. -- nosy: +r.david.murray resolution: -> fixed status: open -> closed ___ 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: 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

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

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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

  1   2   >