[issue27968] test_coroutines generates some warnings

2016-09-06 Thread Xiang Zhang
New submission from Xiang Zhang: ./python -m test test_coroutines Run tests sequentially 0:00:00 [1/1] test_coroutines /home/angwer/cpython/Lib/test/test_coroutines.py:891: RuntimeWarning: coroutine 'CoroutineTest.test_await_12..coro' was never awaited return await Awaitable()

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread George Slavin
George Slavin added the comment: Thanks for the reply! I've managed to reproduce the issue without using ctypes, so we can exclude ctypes as the cause of the problem :) The bug only occurs for me after hundreds of iterations of the script, so it is very intermittent. >From my results, it

[issue27969] Suppress unnecessary message when running test_gdb

2016-09-06 Thread Xiang Zhang
New submission from Xiang Zhang: Right now, when running test_gdb generates following message: ./python -m test test_gdb Run tests sequentially 0:00:00 [1/1] test_gdb *Python Exception No module named gdb: *gdb: warning: *Could not load the Python gdb module from

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread Andre Merzky
Andre Merzky added the comment: Hi George, > From these results, it appears there is no guarentee that the signal handler > will run before the main thread continues execution at the time.sleep(500) > line. This would explain why we advance to the else clause before the > exception is

[issue27965] Automatic .py extension when saving with IDLE on OSX

2016-09-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: automatic .py extension -> Automatic .py extension when saving with IDLE on OSX type: -> behavior ___ Python tracker

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread George Slavin
George Slavin added the comment: The docs say the sleep call will end if a signal is caught, so once the main thread wakes, it won't go back to sleep. On Sep 6, 2016 12:35 AM, "Andre Merzky" wrote: > > Andre Merzky added the comment: > > Hi George, > > > From these

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread Andre Merzky
Andre Merzky added the comment: Also thanks for the reply! :) Interesting that our results differ: as said, my code stumbles over it rather frequently, and I can't reproduce w/o ctypes activities. But indeed, the latter might just reinforce a race condition which is present either way...

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread George Slavin
George Slavin added the comment: In case anyone else sees this thread, here's my trimmed down script to repro the issue: #!/usr/bin/env python2 import threading as mt import signal import time import os def sigusr2_handler(signum, frame): raise RuntimeError('caught sigusr2')

[issue27965] automatic .py extension

2016-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is essentially a duplicate of $4832, in which Ned Deily added 'defaultextension' in the code below. Saving works fine on Windows, The added default extension is not shown in the input box of the SaveAs dialog but it is visible in file listing or

[issue27106] configparser.__all__ is incomplete

2016-09-06 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: That's completely fine for me. I'm attaching the patch that just adds test for __all__, then. :) -- Added file: http://bugs.python.org/file44393/configparser_all.v2.patch ___ Python tracker

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

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3b83bfa02c5 by Christian Heimes in branch 'default': Issue 27744: skip test if AF_ALG socket bind fails https://hg.python.org/cpython/rev/e3b83bfa02c5 -- ___ Python tracker

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread Christian Heimes
Christian Heimes added the comment: Yes, that is to be expected. Python does not use AIA to fetch missing certs. The server must return all intermediate certs. Browsers have workarounds and local caches, Python doesn't. Other tools like curl behave the same. -- nosy: +christian.heimes

[issue27866] ssl: get list of enabled ciphers

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset dad4c42869f6 by Christian Heimes in branch 'default': Issue 27866: relax get_cipher() test even more. Gentoo buildbot has no ECDHE https://hg.python.org/cpython/rev/dad4c42869f6 -- ___ Python tracker

[issue27967] Remove unused variables causing compile warnings in sqlite3 module

2016-09-06 Thread Xiang Zhang
New submission from Xiang Zhang: Compile py2.7 will generate two unused variable warnings in sqlite3 module. The variables have already not existed in py3. /home/angwer/py2.7/Modules/_sqlite/cursor.c: In function ‘pysqlite_cursor_dealloc’: /home/angwer/py2.7/Modules/_sqlite/cursor.c:121:9:

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thank you all for your advice. The buildbots seem to have survived the removal of conditional includes of . I've also replaced most of the Python compatibility aliases with the standard ones. Closing this issue. -- resolution: -> fixed status:

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2016-09-06 Thread Davin Potts
Davin Potts added the comment: Attaching patch for default (3.6) branch which implements what was previously described and discussed, updates the documentation to explain this updated behavior, and includes new tests. @yselivanov: Can you think of any edge cases that should be handled but

[issue27976] Deprecate building with bundled copy of libffi on non-Darwin POSIX platforms

2016-09-06 Thread Berker Peksag
Berker Peksag added the comment: +1, thanks for working on this! Two questions: 1. Should we check the system version of libffi and warn users (and probably use the bundled version for now) if it was older than 3.1? 2. I know this isn't directly a user-facing feature, but should we add a

[issue27731] Opt-out of MAX_PATH on Windows 10

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Just confirmed that the manifest not being required is a bug, so I'll add it, document it and complete this. -- ___ Python tracker

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > No, readline is borrowed reference. My question is one the function call result. What if it is not NULL: I don't see any DECREF. -- ___ Python tracker

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

2016-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- stage: test needed -> commit review ___ Python tracker ___

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, you are right, there is a leak. -- ___ Python tracker ___ ___

[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: I dislike the idea of changing the behaviour in a minor release :-/ -- ___ Python tracker ___

[issue25761] Improve unpickling errors handling

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 231f578dfd3d by Serhiy Storchaka in branch 'default': Issue #25761: Improved error reporting about truncated pickle data in https://hg.python.org/cpython/rev/231f578dfd3d -- ___ Python tracker

[issue27980] Add better pythonw support to py launcher

2016-09-06 Thread Eryk Sun
Eryk Sun added the comment: > Naturally pyw -h produces no output It needs help: `pyw -h 2>&1 | more`. This sets the StandardOutput and StandardError as the write end of a pipe. more.com reads from the pipe and pages the help text to the console. Maybe this needs a new issue to have `pyw

[issue27976] Deprecate building with bundled copy of libffi on non-Darwin POSIX platforms

2016-09-06 Thread Zachary Ware
Zachary Ware added the comment: I don't think it's worthwhile to do a version check and warning, especially since we'll be removing the bundled version in 3.7. A docs note is worthwhile, though, I'll attach a new patch shortly. -- ___ Python

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

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9bbf0b31da48 by Christian Heimes in branch '3.5': Issue #27691: Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs. https://hg.python.org/cpython/rev/9bbf0b31da48 New changeset 2b9af57af3e4 by Christian Heimes in

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

2016-09-06 Thread Davin Potts
Davin Potts added the comment: For clarity: * Confirmed, can repro on 2.7.12 on OSX. * Also confirmed that this can not be reproduced on the 3.5 or 3.6 branches. -- versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue27982] Allow keyword arguments in winsound

2016-09-06 Thread Roundup Robot
New submission from Roundup Robot: New changeset bd4771d3e88d by Zachary Ware in branch 'default': Closes #27982: Allow keyword arguments to winsound functions https://hg.python.org/cpython/rev/bd4771d3e88d -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open ->

[issue26798] add BLAKE2 to hashlib

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1e032dbcf86 by Christian Heimes in branch 'default': Issue #26798: for loop initial declarations, take 3 https://hg.python.org/cpython/rev/a1e032dbcf86 -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: 6135_4.patch: Hum, what if you only set errors? I suggest to use TextIOWrapper but use the locale encoding: if (universal_newlines or errors) and not encoding: encoding = getpreferredencoding(False) -- ___ Python

[issue27959] Add 'oem' encoding

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Rebased patch to get a review button. -- Added file: http://bugs.python.org/file44405/27959_3.patch ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Sure, that's easy enough. Any other concerns once I've made that change? -- ___ Python tracker ___

[issue26359] CPython build options for out-of-the box performance

2016-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Minor edit to avoid printing the message about --with-optimizations when doing a --with-pydebug build. otherwise this patch works well on Ubuntu xenial 16.04 amd64. >From discussions in the CPython Core Sprint room today - we've agreed that we >should

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Steve Dower added the comment: > Sure, that's easy enough. Any other concerns once I've made that change? If errors enables Unicode and the doc is updated, the patch will LTGM :-) -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Eryk Sun
Eryk Sun added the comment: Why do you need to call getpreferredencoding()? Isn't that already the default if you call TextIOWrapper with encoding as None? For example: text_mode = encoding or errors or universal_newlines self.stdin = io.open(p2cwrite, 'wb', bufsize) if text_mode:

[issue26027] Support Path objects in the posix module

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0d9d7f55cb5 by Brett Cannon in branch 'default': Issue #26027: Support path-like objects in PyUnicode-FSConverter(). https://hg.python.org/cpython/rev/d0d9d7f55cb5 -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: > Steve: please use this simpler flag to avoid TextIOWrapper details in > subprocess.py The TextIOWrapper details are already specified in multiple places in the documentation. Should we remove all of those and write it more like: "if *encoding*, *errors* or

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-06 Thread Gregory P. Smith
New submission from Gregory P. Smith: patch in issue26307 (which should be in soon) and do the following: $ CC=clang ../3.6/configure --with-optimizations $ make profile-opt Error: Cannot perform PGO build because llvm-profdata was not found in PATH Please add it to PATH and run ./configure

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91d3022b3f03 by Berker Peksag in branch '3.5': Issue #21250: Add tests for SQLite's ON CONFLICT clause https://hg.python.org/cpython/rev/91d3022b3f03 New changeset db2bedd5c34a by Berker Peksag in branch 'default': Issue #21250: Merge from 3.5

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- dependencies: +CPython build options for out-of-the box performance ___ Python tracker ___

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2016-09-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Alex! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: i meant issue26359 above, not 26307. -- ___ Python tracker ___ ___

[issue27984] singledispatch is wonky with enums

2016-09-06 Thread Anselm Kiefner
New submission from Anselm Kiefner: from functools import singledispatch from enum import Enum IS = Enum("IS", "a, b") @singledispatch def foo(x): print(foo.dispatch(x)) print("foo") @foo.register(IS.a) def bar(x): print(foo.dispatch(x)) print("bar") @foo.register(int)

[issue27974] Remove dead code in importlib._bootstrap

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3db6e954f58 by Brett Cannon in branch 'default': Issue #27974: Remove importlib._bootstrap._ManageReload. https://hg.python.org/cpython/rev/a3db6e954f58 -- nosy: +python-dev ___ Python tracker

[issue27974] Remove dead code in importlib._bootstrap

2016-09-06 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2016-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: > Why do you need to call getpreferredencoding()? I proposed to do that, but I prefer your simple flag: > text_mode = encoding or errors or universal_newlines Steve: please use this simpler flag to avoid TextIOWrapper details in subprocess.py ;-) --

[issue18844] allow weights in random.choice

2016-09-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file44407/weighted_choice2.diff ___ Python tracker ___

[issue17884] Try to reuse stdint.h types like int32_t

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d29d3a1e0c6 by Victor Stinner in branch 'default': Run Argument Clinic on posixmodule.c https://hg.python.org/cpython/rev/1d29d3a1e0c6 -- ___ Python tracker

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

2016-09-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> Nofar Schnider nosy: +Nofar Schnider ___ Python tracker ___

[issue27872] Update os/os.path docs to mention path-like object support

2016-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27872] Update os/os.path docs to mention path-like object support

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset abe3db90d8ad by Brett Cannon in branch 'default': Merge for #27872 doc changes https://hg.python.org/cpython/rev/abe3db90d8ad -- nosy: +python-dev ___ Python tracker

[issue27524] Update os.path for PEP 519/__fspath__()

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9be0286772bf by Brett Cannon in branch 'default': Issue #26027, #27524: Document the support for path-like objects in os and os.path. https://hg.python.org/cpython/rev/9be0286772bf -- ___ Python tracker

[issue26027] Support Path objects in the posix module

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9be0286772bf by Brett Cannon in branch 'default': Issue #26027, #27524: Document the support for path-like objects in os and os.path. https://hg.python.org/cpython/rev/9be0286772bf -- ___ Python tracker

[issue27778] PEP 524: Add os.getrandom()

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27267d2fb091 by Victor Stinner in branch 'default': Add os.getrandom() https://hg.python.org/cpython/rev/27267d2fb091 -- nosy: +python-dev ___ Python tracker

[issue27984] singledispatch is wonky with enums

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

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2016-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: More doc updates - shouldn't be a difficult review this time, but I always like getting multiple opinions on doc changes. -- Added file: http://bugs.python.org/file44408/6135_5.patch ___ Python tracker

[issue18844] allow weights in random.choice

2016-09-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Latest draft patch attached (w/o tests or docs). Incorporates consultation from Alan Downey and Jake Vanderplas. * Population and weights are separate arguments (like numpy.random.choice() and sample() in R). Matches the way data would arrive in Pandas.

[issue27866] ssl: get list of enabled ciphers

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9377ed49746b by Christian Heimes in branch 'default': Issue 27866: relax test case for set_cipher() and allow more cipher suites https://hg.python.org/cpython/rev/9377ed49746b -- ___ Python tracker

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread Andre Merzky
Andre Merzky added the comment: I think we are on the same page then, thanks. AFAIU, the C-level signal handler results in a flag being set, which is evaluated at some later point in time[1], after a certain number of opcodes have been executed. Could it be that those opcodes blindly

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread lilydjwg
New submission from lilydjwg: This fails: Python 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> import socket >>> s = socket.socket() >>> c = >>>

[issue27350] Compact and ordered dict

2016-09-06 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file44395/compact-dict.patch ___ Python tracker ___

[issue1067702] urllib fails with multiple ftp transfers

2016-09-06 Thread Sohaib Ahmad
Sohaib Ahmad added the comment: The problem is reproducible on latest python 2.7 package (2.7.12). I tried the same scenario on 2.7.10 and it worked fine. I am not sure if this issue can be reopened or should I create a new one? In my case first transfer succeeds but second ftp transfer fails

[issue27570] Avoid memcpy(. . ., NULL, 0) etc calls

2016-09-06 Thread Martin Panter
Martin Panter added the comment: Looks like revisions 5f3f6f1fb73a and ec537f9f468f may have fixed the listobject cases. Also 66feda02f2a5 looks relevant. Benjamin, maybe you are interested in other bits of my patches :) -- nosy: +benjamin.peterson

[issue27989] incomplete signature with help function using typing

2016-09-06 Thread David E. Franco G.
New submission from David E. Franco G.: the issue is that when calling help on a function annotated with typing, all the relevant information is lost, for example from typing import List, Any, Iterator, Tuple def foo(data:List[Any]) -> Iterator[ Tuple[int,Any] ]: ... when calling help

[issue27350] Compact and ordered dict

2016-09-06 Thread INADA Naoki
INADA Naoki added the comment: Update the patch to use standard int types instead of adding PY_INT16_T ref: https://bugs.python.org/issue17884 -- Added file: http://bugs.python.org/file44418/compact-dict.patch ___ Python tracker

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-06 Thread Eric Snow
Eric Snow added the comment: I have verified that this is still a problem (basically 3.6b1). Fatal Python error: Py_Initialize: Unable to get the locale encoding Traceback (most recent call last): File "/opt/python3.6/lib/python3.6/encodings/__init__.py", line 99, in search_function File

[issue27984] singledispatch register should typecheck its argument

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: Catching the erroneous registration rather than silently ignoring it sounds like the right thing to do here to me as well. I'm actually surprised that code isn't already throwing an exception later on, as "isinstance" itself does fail with non-types: >>> from

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

2016-09-06 Thread Larry Hastings
Larry Hastings added the comment: > The difference between a security feature and a security fix > is incredibly hard to differentiate. I'm not buying this argument. > For instance, with 3DES being de-recommended (and removed in future > OpenSSLs) that leaves basically only AES-GCM and

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: If /dev/urandom isn't available, Python refusing to start is likely to be one of the least of the system's problems, so Py_FatalError sounds reasonable to me - my +1 for a fallback above was a matter of "sounds good if you can find a way to make it work".

[issue27570] Avoid memcpy(. . ., NULL, 0) etc calls

2016-09-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: Sorry I missed this. The changes which I didn't already make look good. :) -- ___ Python tracker ___

[issue27288] secrets should use getrandom() on Linux

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 524 has been implemented for 3.6b1 in #27776, so os.urandom() itself will now do the right thing for cryptographic use cases on Linux. -- nosy: +ncoghlan resolution: -> out of date status: open -> closed ___

[issue27292] Warn users that os.urandom() prior to 3.6 can return insecure values

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 524 has been implemented for 3.6b1 in #27776, so os.urandom() itself will now do the right thing for cryptographic use cases on Linux. Accordingly, I've removed Python 3.6 from the affected versions for this issue. I've also flagged this as purely a

[issue27279] Add random.cryptorandom() and random.pseudorandom, deprecate os.urandom()

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 524 has been implemented for 3.6b1 in #27776, so os.urandom() itself will now do the right thing for cryptographic use cases on Linux. -- resolution: -> rejected stage: -> resolved status: open -> closed type: -> enhancement

[issue26667] Update importlib to accept pathlib.Path objects

2016-09-06 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___

[issue27293] Summarize issues related to urandom, getrandom etc in secrets documentation

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 524 has been implemented for 3.6b1 in #27776, so os.urandom() itself will now do the right thing for cryptographic use cases on Linux. Accordingly, marking this as out of date - with os.urandom() and the secrets module both implicitly doing the right thing,

[issue27182] PEP 519 support in the stdlib

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3417d324cbf9 by Brett Cannon in branch 'default': Issue #27182: Add support for path-like objects to PyUnicode_FSDecoder(). https://hg.python.org/cpython/rev/3417d324cbf9 -- ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c499690f606c by Steve Dower in branch 'default': Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec lookup https://hg.python.org/cpython/rev/c499690f606c -- nosy: +python-dev

[issue27959] Add 'oem' encoding

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd0e62300fb7 by Steve Dower in branch 'default': Issue #27959: Documents new encoding and alias. https://hg.python.org/cpython/rev/fd0e62300fb7 -- ___ Python tracker

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-06 Thread Nick Coghlan
New submission from Nick Coghlan: The configure script determines the setting for HAVE_GETRANDOM_SYSCALL at build time, which means the dynamic check for getrandom() support in the Linux kernel gets disabled when building against an older kernel. This impacts the implicit use of getrandom()

[issue27959] Add 'oem' encoding

2016-09-06 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue27778] PEP 524: Add os.getrandom()

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, I thought I'd already filed an issue for that, but it looks like it was only a security-sig thread: https://mail.python.org/pipermail/security-sig/2016-June/60.html I've now remedied that omission and filed http://bugs.python.org/issue27990 to cover

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

2016-09-06 Thread Donald Stufft
Donald Stufft added the comment: > > The difference between a security feature and a security fix > > is incredibly hard to differentiate. > > I'm not buying this argument. This touches on it http://web.mit.edu/tabbott/www/papers/hotos.pdf but I'm not sure how you don't see it... In the

[issue27959] Add 'oem' encoding

2016-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 786c34bdc27a by Steve Dower in branch 'default': Issue #27959: Updates NEWS and whatsnew https://hg.python.org/cpython/rev/786c34bdc27a -- ___ Python tracker

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-06 Thread Martin Panter
Martin Panter added the comment: Koobs if you can, it would be good to understand where the failure is. My guess is that Python doesn’t like running a non-ASCII filename. The following is hopefully a simplified version of the test_cmd_line_script test case: import os, subprocess, sys

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

2016-09-06 Thread Larry Hastings
Larry Hastings added the comment: Here at the core dev sprint we had a discussion about whether adding ChaCha20 into 3.5 was the right call. Strictly speaking, of course, it's neither a bug fix or a security fix, so that suggests it shouldn't be permitted. However ultimately we concluded it

[issue27292] Warn users that os.urandom() prior to 3.6 can return insecure values

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: I dislike urandom-doc.v2.patch. There is no need to worry all users. Just be explicit and explain that the issue is specific to Linux and explain when it occurs: before the entropy pool is filled *and* if the system was not able yet to write enough entropy on

[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-06 Thread Xiang Zhang
Xiang Zhang added the comment: With the latest build, even encode will fail: Python 3.6.0a4+ (default:dad4c42869f6, Sep 6 2016, 21:41:38) [GCC 5.2.1 20151010] on linux Type "help", "copyright", "credits" or "license" for more information. >>> u"\ud83d".encode("utf-16-le") Traceback (most

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread lilydjwg
lilydjwg added the comment: Please read my code. I've provided the CA certificate; this should work because I've downloaded the certificate manually and feed it to Python. openssl command line tool works. gnutls-cli works too. wget (with openssl) works too. curl (with openssl) fails like

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread Christian Heimes
Christian Heimes added the comment: >From https://www.ssllabs.com/ssltest/analyze.html?d=miaosss.top Chain issuesIncomplete Extra download COMODO RSA Domain Validation Secure Server CA Python does not support extra downloads of incomplete chains. The server must return the EE cert and

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread lilydjwg
lilydjwg added the comment: I understand now, thank you! It's much easier to work around such issues than fix other people's sites. -- ___ Python tracker

[issue27866] ssl: get list of enabled ciphers

2016-09-06 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___

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

2016-09-06 Thread Christian Heimes
Christian Heimes added the comment: Some distributions mess with the Kernel or disable user-space crypto. I have added some tweaks and fixed a couple of buildbots. I don't know what is going on with x86-64 Ubuntu 15.10 Skylake CPU. It's a Kernel 4.2 machine and should support AES-CBC.

[issue27866] ssl: get list of enabled ciphers

2016-09-06 Thread Christian Heimes
Christian Heimes added the comment: I have relaxed the tests and stabilized the buildbots. Some Gentoo machines don't have ECDHE cipher suites enabled. -- dependencies: -Make OpenSSL module compatible with OpenSSL 1.1.0 resolution: -> fixed stage: patch review -> resolved

[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-06 Thread Christoph Reiter
Christoph Reiter added the comment: On Tue, Sep 6, 2016 at 3:43 PM, Xiang Zhang wrote: > > Xiang Zhang added the comment: > > With the latest build, even encode will fail: With Python 3 you have to use the "surrogatepass" error handler. I assumed this was the default in

[issue6135] subprocess seems to use local encoding and give no choice

2016-09-06 Thread Steve Dower
Steve Dower added the comment: Given specifying an encoding will do the same thing as universal_newlines would have, should I just "hide" references to universal_newlines in the doc? (i.e. only mention it under a versionchanged banner, rather than front-and-centre) --

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

2016-09-06 Thread Xiang Zhang
Xiang Zhang added the comment: My PC is Ubuntu15.10, kernel 4.2, though CPU not Skylake. Everything works fine. test_aead_aes_gcm (test.test_socket.LinuxKernelCryptoAPI) ... skipped "('[Errno 2] No such file or directory', 'aead', 'gcm(aes)')" test_aes_cbc

[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-06 Thread Eryk Sun
Eryk Sun added the comment: Probably Python 2's UTF-16 decoder should be as broken as the encoder, which will match the broken behavior of the UTF-8 and UTF-32 codecs: >>> u'\ud83d\uda12'.encode('utf-8').decode('utf-8') u'\ud83d\uda12' >>>

[issue27973] urllib.urlretrieve() fails on second ftp transfer

2016-09-06 Thread Sohaib Ahmad
New submission from Sohaib Ahmad: urllib.urlretrieve() fails on ftp: - start and complete a transfer - immediately start another transfer The second transfer will fail with the following error: [Errno ftp error] 200 Type set to I I am using urllib.urlretrieve(url, filename) to retrieve two

  1   2   3   >