[issue32612] pathlib.(Pure)WindowsPaths can compare equal but refer to different files

2018-01-22 Thread benrg
benrg added the comment: This bug is about paths that compare *equal*, but refer to *different* files. I agree that the opposite is not much of a problem (and I said so in the original comment). The reason I classified this as a security bug is that Python scripts using

[issue32633] Warnings from test_asyncio.test_tasks.SetMethodsTest

2018-01-22 Thread Nathaniel Smith
Change by Nathaniel Smith : -- keywords: +patch pull_requests: +5124 stage: -> patch review ___ Python tracker ___

[issue32633] Warnings from test_asyncio.test_tasks.SetMethodsTest

2018-01-22 Thread Nathaniel Smith
New submission from Nathaniel Smith : The test_asyncio tests are generating some warnings: 0:00:00 load avg: 2.14 [1/1] test_asyncio.test_tasks /home/njs/src/cpython/Lib/test/test_asyncio/test_tasks.py:100: RuntimeWarning: coroutine

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-22 Thread Nathaniel Smith
Change by Nathaniel Smith : -- keywords: +patch pull_requests: +5123 stage: -> patch review ___ Python tracker ___

[issue32612] pathlib.(Pure)WindowsPaths can compare equal but refer to different files

2018-01-22 Thread Steve Dower
Steve Dower added the comment: Arguably, a WindowsPath instance only represents the *path* and not the file located by the path. So the programmer has to take just as much responsibility as if they were using plain strings, except there are some conveniences added to

[issue32632] Mock does not create deepcopy of mutable args

2018-01-22 Thread Sergey
New submission from Sergey : MagicMock allows to check parameters of calls by using "assert_has_calls". However it fails if argument has a mutable type and was changed in-place before the second call. The example is provided in attached file. In "func1" value in "data"

[issue27099] IDLE: turn built-in extensions into regular modules

2018-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: These patches were first released with the 3.6.3 release candidate. Nothing was changed for 3.6.4. Rechecking the changes to autocomplete.py in PR 2494, the only expected effect, after the followup in #31488, PR 3612, is that changes to

[issue32436] Implement PEP 567

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 83c8675edb4fe278c5d930f7865977a5d3c7168a by Yury Selivanov in branch 'master': bpo-32436: Remove a redundant assert (#5275) https://github.com/python/cpython/commit/83c8675edb4fe278c5d930f7865977a5d3c7168a --

[issue32630] Migrate decimal to use PEP 567 context variables

2018-01-22 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +5122 ___ Python tracker ___

[issue32631] IDLE: revise zzdummy.py

2018-01-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : zzdummy.py is needed for properly testing the extension mechanism. It is intended to provide an example extension for users to follow. When completed, enabled, and invoked, it will prefix every line of a window with some text, or remove

[issue32630] Migrate decimal to use PEP 567 context variables

2018-01-22 Thread Yury Selivanov
New submission from Yury Selivanov : PEP 567 allows decimal to be safely used in async/await code. I couldn't observe any performance impact by the proposed PR. The PR doesn't modify decimal context behaviour: instead of using a thread-local storage it now uses a

[issue32629] PyImport_ImportModule occasionally cause access violation

2018-01-22 Thread Jack Branson
New submission from Jack Branson : I found that calling PyImport_ImportModule frequently may cause access violation error. here is call stack: 00 0354f610 67d01605 0001 0020 007f python36!_PyObject_Alloc+0x5e [c:\build\cpython36\objects\obmalloc.c @ 1258] 01

[issue28716] Fractions instantiation revisited

2018-01-22 Thread Stefan Behnel
Stefan Behnel added the comment: Not sure if it's relevant for this specific change, but here's a benchmark that you could use for Fractions: issue22458 -- nosy: +scoder ___ Python tracker

[issue32296] Implement asyncio._get_running_loop() and get_event_loop() in C

2018-01-22 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +5121 ___ Python tracker ___ ___

[issue31860] IDLE: Make font sample editable

2018-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Postscript: I read a week or so ago that a new Windows 10 font chooser will have this feature. There was not much detail and I believe it is currently only part of the Preview package. -- ___

[issue32628] Add configurable DirectoryIndex to http.server

2018-01-22 Thread Erik Paulson
New submission from Erik Paulson : In http.server and SimpleHTTPRequestHandler - the send_head function is hard-coded to treat index.html and index.htm as files to return in a directory - if neither of those files are present, it lists the directory. It would be very

[issue27099] IDLE: turn built-in extensions into regular modules

2018-01-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Leaving this as closed. Just wanted to note that it was a rough upgrade to 3.6.4 because of this backport. -- status: open -> closed ___ Python tracker

[issue27099] IDLE: turn built-in extensions into regular modules

2018-01-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this should have been backported to 3.6. This week, I'm teaching a class in Python3.6 and tab completion seems to be broken for everyone from a fresh install of 3.6.4 directly from www.python.org. Also, the

[issue32436] Implement PEP 567

2018-01-22 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +5120 ___ Python tracker ___ ___

[issue32627] Header dependent _uuid build failure on Fedora 27

2018-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: (Reducing priority since "sudo dnf remove uuid-devel" is a straightforward workaround) -- priority: normal -> low ___ Python tracker

[issue32102] Add "capture_output=True" option to subprocess.run

2018-01-22 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-01-22 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32304] Upload failed (400): Digests do not match on .tar.gz ending with x0d binary code

2018-01-22 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: I'd be fine with that recommendation (since `@dataclass(order=False)` and `@total_ordering` will compose without any problems), but in that case I'd suggest having "order=True" + any of the ordering methods result in an exception (as you've

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-22 Thread Eric V. Smith
Eric V. Smith added the comment: Rather than re-implementing (and maintaining) functools.total_ordering semantics, I'd rather advise them to specify order=False and just use functools.total_ordering. It's an odd use case for dataclasses, anyway. --

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: For the ordering operators, my only question would be whether or not I can rely on them to act like functools.total_ordering: if I supply __eq__ and one of the ordering operators (e.g. __lt__), will dataclasses make sure the other three

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-01-22 Thread Nick Coghlan
Change by Nick Coghlan : -- keywords: +patch pull_requests: +5118 stage: -> patch review ___ Python tracker ___

[issue31568] Configure thinks it finds python3.5 but doesn't

2018-01-22 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +5119 ___ Python tracker ___ ___

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: I removed the snippet entirely from https://github.com/python/cpython/pull/5201, and while Travis didn't pass, it failed due to test suite failures, not anything environmental. -- nosy: +ncoghlan

[issue32627] Header dependent _uuid build failure on Fedora 27

2018-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: Reverting my previous commit doesn't fix the problem: if both uuid-devel and libuuid-devel are installed, then it reports that the necessary bits to build _uuid weren't found, without even attempting to compile it at all. --

[issue32627] Header dependent _uuid build failure on Fedora 27

2018-01-22 Thread Nick Coghlan
New submission from Nick Coghlan : I'm hitting a build failure relating to the new _uuid module on Fedora 27: == building '_uuid' extension gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra

[issue32436] Implement PEP 567

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: This one: https://github.com/python/cpython/pull/5273? I've left a comment with some questions there. Are there any other urgent PRs? The main PEP 567 PR has been merged already, btw. -- ___

[issue32436] Implement PEP 567

2018-01-22 Thread Guido van Rossum
Guido van Rossum added the comment: While you're waiting for code review maybe you can review some other PR? (Lukasz mentioned that Serhiy seems very busy.) -- ___ Python tracker

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-22 Thread Tim Smith
Change by Tim Smith : -- nosy: +tdsmith ___ Python tracker ___ ___ Python-bugs-list

[issue32436] Implement PEP 567

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: I'll try to find some time after beta-1. Right now have a few other issues that I have to finish (and also create a PR to make decimal use PEP 567). -- ___ Python tracker

[issue32436] Implement PEP 567

2018-01-22 Thread Guido van Rossum
Guido van Rossum added the comment: Hopefully sooner? -- ___ Python tracker ___ ___

[issue31368] Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK)

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: Explanation for myself. https://kernelnewbies.org/Linux_4.14#Asynchronous_buffered_I.2FO_support "In this release, the preadv2(2) syscall with RWF_NONBLOCK will let userspace applications bypass enqueuing operation in the threadpool

[issue31333] Implement ABCMeta in C

2018-01-22 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +5117 stage: -> patch review ___ Python tracker ___

[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation

2018-01-22 Thread Nick Coghlan
Nick Coghlan added the comment: I agreed that this idea isn't really baked enough for an RFE yet, so I'm marking this as "postponed" for now. The main requirement for getting it back out of "postponed" state would be having someone that's sufficiently interested to write

[issue32607] After Python Installation Error

2018-01-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue32436] Implement PEP 567

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: I'll keep the issue open -- a documentation for the new APIs will be merged in a separate PR in a couple of months. -- ___ Python tracker

[issue32436] Implement PEP 567

2018-01-22 Thread Yury Selivanov
New submission from Yury Selivanov : New changeset f23746a934177c48eff754411aba54c31d6be2f0 by Yury Selivanov in branch 'master': bpo-32436: Implement PEP 567 (#5027) https://github.com/python/cpython/commit/f23746a934177c48eff754411aba54c31d6be2f0 --

[issue28980] ResourceWarning when imorting antigravity in 3.6

2018-01-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I have not seen this for quite some time so I'm closing this as fixed. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue32493] UUID Module - FreeBSD build failure

2018-01-22 Thread Michael Felt
Michael Felt added the comment: On 1/17/2018 11:16 AM, David CARLIER wrote: > David CARLIER added the comment: > > Might comes from uuid1 function itself ... e.g. line 704 not setting version > "field". IMHO: for uuid1 - the version number should be

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-01-22 Thread Ned Deily
Ned Deily added the comment: @Eric, given the breadth of change introduced in the PR (including adding a new extension), I think it would be best if at all possible to get it in for beta 1 if we can resolve the review comments in time. If necessary and if there are no

[issue32626] Subscript unpacking raises SyntaxError

2018-01-22 Thread Ben Burrill
New submission from Ben Burrill : PEP 448 defines unpacking generalizations for tuples. However, this does not currently work for subscripted tuples that are not delimited by parentheses. Current behavior (Tested on 3.6/3.7a4): >>> class Subscriptable: ... def

[issue22872] multiprocessing.Queue raises AssertionError

2018-01-22 Thread Jason Qian
Change by Jason Qian : -- components: +ctypes -Library (Lib) versions: -Python 3.4, Python 3.5 ___ Python tracker ___

[issue32615] Inconsistent behavior if globals is a dict subclass

2018-01-22 Thread ppperry
Change by ppperry : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue22499] [SSL: BAD_WRITE_RETRY] bad write retry in _ssl.c:1636

2018-01-22 Thread Xavier G. Domingo
Change by Xavier G. Domingo : -- nosy: +xgdomingo ___ Python tracker ___ ___

[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2018-01-22 Thread Xavier G. Domingo
Change by Xavier G. Domingo : -- nosy: +xgdomingo ___ Python tracker ___ ___

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-01-22 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- nosy: +vstinner ___ Python tracker ___

[issue20767] Some python extensions can't be compiled with clang 3.4

2018-01-22 Thread Stefan Krah
Stefan Krah added the comment: Well, they had ample time to articulate themselves. :) -- ___ Python tracker ___

[issue32597] Bad detection of clang

2018-01-22 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list

[issue29344] sock_recv not detected a coroutine

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: They have been documented as coroutines and were returning futures since Python 3.4. I believe we can keep the status quo especially if only one user complained about it during the last 5 years. --

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: I partially reverted the commit 7ed7aead9503102d2ed316175f198104e0cd674c: on Android, UTF-8 is now always used, again. Paul Peny (aka pmpp) confirmed me that my commit broke Python on Android, at least with API 19 (locales don't

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9089a265918754d95e105a7c4c409ac9352c87bb by Victor Stinner in branch 'master': bpo-29240: PyUnicode_DecodeLocale() uses UTF-8 on Android (#5272)

[issue29344] sock_recv not detected a coroutine

2018-01-22 Thread Berker Peksag
Berker Peksag added the comment: Well, the current status quo has already confused a user (see msg286011) > (so that people don't write code that expects them to be not coroutines in > 3.6) Even if people expect these methods to be coroutines, two functions of the

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-01-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is an uncommitted update for the EXTENDED_ARG opcode documentation attached to issue 27095 as mkfu4.patch by Demur Rumed. -- nosy: +Demur Rumed ___ Python tracker

[issue32625] Update the dis module documentation to reflect switch to wordcode

2018-01-22 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : A switch to wordcode is implemented in Python 3.6, but the documentation in the dis module was mostly left unchanged. See issue 26647, msg266388 and issue 27095, msg268389. -- assignee: docs@python components:

[issue32624] Implement WriteTransport.is_protocol_paused()

2018-01-22 Thread Andrew Svetlov
New submission from Andrew Svetlov : The method should return True is write is suspended -- components: asyncio messages: 310439 nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Implement WriteTransport.is_protocol_paused()

[issue26647] ceval: use Wordcode, 16-bit bytecode

2018-01-22 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- components: +Interpreter Core -Documentation stage: needs patch -> resolved ___ Python tracker

[issue20767] Some python extensions can't be compiled with clang 3.4

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: > I guess the FreeBSD people are happy with the solution. According to the discussion on https://github.com/python/cpython/pull/5233 : some FreeBSD people are unhappy :-) -- resolution: fixed -> status: closed -> open

[issue32593] Drop support of FreeBSD 9 and older in Python 3.7

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: For the PR 5233 : I suggest to continue the discussion on bpo-20767. This PR is unrelated to this issue (drop support for old FreeBSDs). -- ___ Python tracker

[issue32593] Drop support of FreeBSD 9 and older in Python 3.7

2018-01-22 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32593] Drop support of FreeBSD 9 and older in Python 3.7

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 13ff24582c99dfb439b1af7295b401415e7eb05b by Victor Stinner in branch 'master': bpo-32593: Drop FreeBSD 9 and older support (#5232) https://github.com/python/cpython/commit/13ff24582c99dfb439b1af7295b401415e7eb05b

[issue29344] sock_recv not detected a coroutine

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: Since we made them coroutines in 3.7, I'd prefer to keep the 3.6 documentation as is (so that people don't write code that expects them to be not coroutines in 3.6). Please let's keep the current status quo. --

[issue29344] sock_recv not detected a coroutine

2018-01-22 Thread Berker Peksag
Berker Peksag added the comment: > We only fixed it in 3.7 and the doc was updated. 3.6 stays as is. I'm not talking about fixing code in 3.6. In 3.6, sock_* methods still documented as coroutines but they are normal functions: *

[issue32623] Resize dict on del/pop

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: Note: It was recently discussed if "del dict[key]" should keep the insertion order. If I understood correctly: yes, the order must be preserved on deletion. https://mail.python.org/pipermail/python-dev/2017-November/150142.html

[issue31179] Speed-up dict.copy() up to 5.5 times.

2018-01-22 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31179] Speed-up dict.copy() up to 5.5 times.

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset b0a7a037b8fde56b62f886d5188bced7776777b4 by Yury Selivanov in branch 'master': bpo-31179: Make dict.copy() up to 5.5 times faster. (#3067) https://github.com/python/cpython/commit/b0a7a037b8fde56b62f886d5188bced7776777b4

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5116 ___ Python tracker ___ ___

[issue29344] sock_recv not detected a coroutine

2018-01-22 Thread Berker Peksag
Berker Peksag added the comment: Andrew, shouldn't we fix 3.6 documentation? sock_* methods still documented as coroutines. -- ___ Python tracker

[issue29344] sock_recv not detected a coroutine

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: > Andrew, shouldn't we fix 3.6 documentation? sock_* methods still documented > as coroutines. We only fixed it in 3.7 and the doc was updated. 3.6 stays as is. -- ___ Python tracker

[issue32607] After Python Installation Error

2018-01-22 Thread Shrivatsa Hosabettu
Shrivatsa Hosabettu added the comment: Hi, Thanks for the information. I re-installed Python and Django again and the problem is resolved. Now when I run the command py -E -S I got the below message and python is running fine. 3.6.4 (v3.6.4:d48eceb, Dec 19 2017,

[issue31179] Speed-up dict.copy() up to 5.5 times.

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: Victor: done; https://bugs.python.org/issue32623 -- ___ Python tracker ___

[issue32623] Resize dict on del/pop

2018-01-22 Thread Yury Selivanov
New submission from Yury Selivanov : We should investigate whether we want dicts to compact themselves on del/pop operations. Currently we have to rely on workarounds to have compactable dict.copy (see issue 31179) etc. -- components: Interpreter Core messages:

[issue31179] Speed-up dict.copy() up to 5.5 times.

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: Yury: Would you mind to open an issue to investigate why dict are not compatected automatically? -- ___ Python tracker

[issue31801] vars() manipulation encounters problems with Enum

2018-01-22 Thread Ethan Furman
Ethan Furman added the comment: New changeset a4b1bb4801f7a941ff9e86b96da539be1c288833 by Ethan Furman in branch 'master': bpo-31801: Enum: add _ignore_ as class option (#5237) https://github.com/python/cpython/commit/a4b1bb4801f7a941ff9e86b96da539be1c288833 --

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-22 Thread Zhiming Wang
Zhiming Wang added the comment: My benchmarks above do contain py37 (master) stats. -- ___ Python tracker ___

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Has anyone done the same analysis with Python 3.6 or 3.7? -- nosy: +barry ___ Python tracker ___

[issue32622] Implement loop.sendfile

2018-01-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +5115 stage: -> patch review ___ Python tracker ___

[issue32622] Implement loop.sendfile

2018-01-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Implement loop.sendfile versions: Python 3.7 ___ Python tracker

[issue32621] Problem of consistence in collection.abc documentation

2018-01-22 Thread Yahya Abou Imran
New submission from Yahya Abou Imran : Opened after https://github.com/python/cpython/pull/5270 was closed. Here: https://docs.python.org/3/library/collections.abc.html Some abstract methods are inherited from a superclass. Most of the time the name of the

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-01-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: +Interpreter Core type: -> performance ___ Python tracker ___

[issue32472] Mention of __await__ missing in Coroutine Abstract Methods

2018-01-22 Thread Yury Selivanov
Yury Selivanov added the comment: +1 to what Andres said. -- nosy: +yselivanov resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32472] Mention of __await__ missing in Coroutine Abstract Methods

2018-01-22 Thread Yahya Abou Imran
Change by Yahya Abou Imran : -- keywords: +patch pull_requests: +5114 stage: -> patch review ___ Python tracker ___

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread Christian Heimes
Christian Heimes added the comment: For example an invalid host name should invalidate the session until #31399 is resolved. Any TLS protocol violation should also invalidate the session. If somebody messes with the connection or the TLS protocol encounters a problem during

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread Nathaniel Smith
Nathaniel Smith added the comment: Why would an exception inside 'with ssl_sock' have anything to do with the validity of the session shared secret? I mean, maybe it does, but I *really* don't think we should be waving our hands and guessing about this stuff. --

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread Christian Heimes
Christian Heimes added the comment: Perhaps a hard close is the right thing when SSLSocket.__exit__ encounters an exception? -- ___ Python tracker

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-01-22 Thread Eric V. Smith
Eric V. Smith added the comment: The discussion on python-dev was that your ??? box would be "no": if the user supplied __repr__, they obviously meant for dataclass() to not provide one. I can't see why the user would say repr=True ("I want dataclass() to add __repr__"),

[issue32620] [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"

2018-01-22 Thread STINNER Victor
New submission from STINNER Victor : My workaround for bpo-31568 is causing new issues on Python 3.5. Output: --- 0.03s$ pyenv global system 3.5 pyenv: version `3.5' not installed --- Extract of Python 3.5 .travis.yml: --- before_install: # work around

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread STINNER Victor
STINNER Victor added the comment: I don't know well, Cheryl's PR wasn't added to this issue: https://github.com/python/cpython/pull/5266 -- pull_requests: +5113 stage: -> patch review ___ Python tracker

[issue32619] multiplication error

2018-01-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is a FAQ to do with the properties of binary floating point numbers. https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate -- nosy: +steven.daprano resolution:

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread Nathaniel Smith
Nathaniel Smith added the comment: It doesn't help that Python spells SSL_shutdown as "unwrap". I think in practice basically the only two things you want are unidirectional shutdown, or "soft" shutdown. Bidirectional shutdown has some extremely theoretical uses, and we have

[issue32266] test_pathlib fails if current path has junctions

2018-01-22 Thread Larry Hastings
Larry Hastings added the comment: Python 3.4 and 3.5 are in "security fixes only" mode. This is a minor bugfix, so it's too late to accept it into 3.4 and 3.5. -- nosy: +larry versions: -Python 3.4, Python 3.5 ___ Python

[issue32072] Issues with binary plists

2018-01-22 Thread Larry Hastings
Larry Hastings added the comment: New changeset c59731d92dc73111d224876f1caa064097aad786 by larryhastings (Serhiy Storchaka) in branch '3.4': [3.4] bpo-32072: Fix issues with binary plists. (GH-4455) (#4658)

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread Christian Heimes
Christian Heimes added the comment: You have to tell OpenSSL that a hard-close is expected and fine. If you just SSL_free() the SSL connection, then OpenSSL removes the session from the SSL_CTX's session cache. It assumes that something went wrong and defaults to secure

[issue32589] Statistics as a result from timeit

2018-01-22 Thread Matthias Gilch
Change by Matthias Gilch : -- resolution: -> rejected stage: patch review -> resolved status: -> closed ___ Python tracker

[issue32589] Statistics as a result from timeit

2018-01-22 Thread Matthias Gilch
Matthias Gilch added the comment: Steven: Thanks for the advice. Next time I'll follow it Victor: I'll look into perf I see that there are maybe problems and agree that we can close the issue and the PR. -- ___

[issue27815] Make SSL suppress_ragged_eofs default more secure

2018-01-22 Thread Nathaniel Smith
Nathaniel Smith added the comment: @Christian: I'm surprised and somewhat dismayed to hear that OpenSSL invalidates sessions on hard close -- that hasn't been part of the spec since 2006 when TLS 1.1 came out. I'm not a cryptographer, but the spec explicitly allows keeping

  1   2   >