[issue31635] test_strptime failure on OpenBSD

2018-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I used OpenBSD 6.1. I'll check on more modern versions when have chance. -- ___ Python tracker ___

[issue34659] Inconsistency between functools.reduce & itertools.accumulate

2018-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks like a duplicate of issue25193. See also a long discussion on the Python-ideas mailing list 5 months ago: [Start argument for itertools.accumulate()](https://mail.python.org/pipermail/python-ideas/2018-April/049649.html). -- nosy:

[issue34673] make the eval loop more editable

2018-09-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ddd1949fea59f256e51191540a4446f75ed608fa by Benjamin Peterson in branch 'master': closes bpo-34673: Tweaks to make ceval more editable. (GH-9289) https://github.com/python/cpython/commit/ddd1949fea59f256e51191540a4446f75ed608fa --

[issue34709] Suggestion: make getuser.getpass() also look at SUDO_USER environment variable

2018-09-16 Thread Amos S
New submission from Amos S : When doing "sudo python-script.py", the output of "getpass.getuser()" is pretty much useless for what it's used (I assume mainly logging and tracking purposes, that's what we use it for ourselves). I worked around this limitation by using it in expression likes:

[issue34708] Odd crashes/freezes when sys.stdout.shell.console is typed

2018-09-16 Thread Harrison Chudleigh
Change by Harrison Chudleigh : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34708] Odd crashes/freezes when sys.stdout.shell.console is typed

2018-09-16 Thread Harrison Chudleigh
Harrison Chudleigh added the comment: Edit: I checked Python 3.4 (Windows XP SP3). It hangs in the same way as Python 3.6/3.7. -- ___ Python tracker ___

[issue34708] Odd crashes/freezes when sys.stdout.shell.console is typed

2018-09-16 Thread Harrison Chudleigh
New submission from Harrison Chudleigh : If sys is imported and sys.stdout.shell.console is typed, IDLE does not return to the prompt. Ctrl-C has no effect and after a restart with Ctrl-F6, IDLE does not react after a command is typed in. This also occurs when other variables such as

[issue34707] Python not reentrant

2018-09-16 Thread john skaller
New submission from john skaller : Executive Summary: Python currently is not properly re-entrant. This comment applies to the CAPI and particularly embedding. A fix is not possible in Python 3.x but should be scheduled for Python 4. On Linux all binary plugins are broken as well. The fault

[issue34660] Replace ableist terms and pejoratives in source code.

2018-09-16 Thread Carol Willing
Carol Willing added the comment: Hi all, I'm going to close this issue for now. As I mentioned earlier (sorry Terry for not being clearer), I will be doing a comprehensive review of the docs and source code over the next few months. I will make recommendations as PRs and issues as I go

[issue34660] Replace ableist terms and pejoratives in source code.

2018-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Gabriel, I believe I addressed most your concerns in my previous post. You might reread it in that light. There seems to be a misperception that we have collectively changed how we judge doc proposals. Should we 'announce' that we proceed as we have

[issue33649] asyncio docs overhaul

2018-09-16 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 5cc583d94095ed3bb543fa2f032f9593a6315a52 by Yury Selivanov (Bumsik Kim) in branch 'master': bpo-33649: Clarify protocol_factory as a method parameter (GH-9330) https://github.com/python/cpython/commit/5cc583d94095ed3bb543fa2f032f9593a6315a52

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jose: The purpose of the tracker is to facilitate patches to the CPython code and docs. Your post and personal perspective (with 'srecentrly uddenly' corrected),though related, belongs elsewhere, such as python-list. Gabriel: Insults so not solve issues.

[issue34660] Replace ableist terms and pejoratives in source code.

2018-09-16 Thread Gabriel Marko
Gabriel Marko added the comment: @terry.reedy: By madness I meant: 1. blank replacement of words without relevant justification. Collecting 5 links and labelling some words as pejorative or ist or do it for “diversity reasons” etc. is no justification. I have no problem with changing

[issue34706] Signature.from_callable sometimes drops subclassing

2018-09-16 Thread Buck Evan
Change by Buck Evan : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34659] Inconsistency between functools.reduce & itertools.accumulate

2018-09-16 Thread Lisa Roach
Change by Lisa Roach : -- keywords: +patch pull_requests: +8769 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34660] Replace ableist terms and pejoratives in source code.

2018-09-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: David and Brett: I consider part of the actions of the anonymous person using the temporary aliases 25.45 and jonsees to be violations of our Code of Conduct. I would therefore like you two to issue a warning, if not a ban. I consider the first part of the

[issue34706] Signature.from_callable sometimes drops subclassing

2018-09-16 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8768 stage: -> patch review ___ Python tracker ___ ___

[issue34706] Signature.from_callable sometimes drops subclassing

2018-09-16 Thread Buck Evan
New submission from Buck Evan : Specifically in the case of a class that does not override its constructor signature inherited from object. Github PR incoming shortly. -- components: Library (Lib) messages: 325501 nosy: bukzor priority: normal severity: normal status: open title:

[issue34605] Avoid master/slave terminology

2018-09-16 Thread Gabriel Marko
Gabriel Marko added the comment: @serhiy.storchaka: IMO, the problem isn't the master/slave terminology itself but the way how the changes were introduced (no discussion) and the justification ("diversity reasons"???). IMO this is the next level: https://bugs.python.org/issue34660 and I

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-16 Thread Gabriel Marko
Gabriel Marko added the comment: @Mariatta: > There will be no further discussion about this. Repeating this over and over again won't solve the (any) issue. This madness reached another level here: https://bugs.python.org/issue34660. That was exactly my point here:

[issue34561] Replace list sorting merge_collapse()?

2018-09-16 Thread Tim Peters
Tim Peters added the comment: Another runstack.py adds a bad case for 2-merge, and an even worse (percentage-wise) bad case for timsort. powersort happens to be optimal for both. So they all have contrived bad cases now. powersort's bad cases are the least bad. So far ;-) But I expect

[issue31635] test_strptime failure on OpenBSD

2018-09-16 Thread Paul Ganssle
Paul Ganssle added the comment: This appears to be a duplicate of issue #13414, which was resolved as fixed in BSD. @serhiy Are you using a very old version of BSD? -- ___ Python tracker

[issue31635] test_strptime failure on OpenBSD

2018-09-16 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is the relevant test: https://github.com/python/cpython/blob/3.7/Lib/test/test_strptime.py#L536 The issue seems to be in `strftime` rather than in `strptime`. According to Serhiy's paste, it seems that `datetime.datetime.strftime("%G %V %w")` on

[issue32313] Wrong inspect.getsource for datetime

2018-09-16 Thread Paul Ganssle
Paul Ganssle added the comment: I think this is *mostly* the correct behavior (though it may indeed be confusing). Note that `datetime.py` *is* the source of the module `datetime`, it's just that most of the code in there is shadowed by the line you've linked. If you try and get the source

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-16 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > [..] but I think it's the best we can do. It's consistent with any other > class derived from tuple or list: [...] I agree with this argument. Sorry for delay with my response and thank you Eric for taking care about this issue! --

[issue34682] Typo reports on docs@

2018-09-16 Thread ZooDSS
ZooDSS added the comment: Wanted to add a little bit more, but didn't know where to, so here it goes. https://docs.python.org/3/reference/expressions.html#membership-test-operations "The operator not in is defined to have the inverse true value of in." may be better to use "... the inverse

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-16 Thread Nick Coghlan
Nick Coghlan added the comment: I'd strongly prefer to just go back to the PEP 538 design. It's much simpler to implement, we don't actually want anyone turning off locale coercion except for debugging purposes (unlike UTF-8 mode), and the only argument against doing this the way PEP 538

[issue21109] tarfile: Traversal attack vulnerability

2018-09-16 Thread Tal Einat
Tal Einat added the comment: For one thing, the new diffs are still missing tests. Tests should include, at the least: 1. *Safely* testing SafeTarFile against examples of problematic tarballs. Perhaps from Jakub's collection of "sly" tarballs could be used, assuming those could be licensed

[issue34705] Python 3.8 changes how returns through finally clauses are traced

2018-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Humm, the optimization is not related here. Even if it is not involved (replace 17 with []), the line 4 is reported twice, because RETURN_VALUE is executed after CALL_FINALLY. 4 10 BUILD_LIST 0 12 POP_BLOCK

[issue29883] asyncio: Windows Proactor Event Loop UDP Support

2018-09-16 Thread Carol Willing
Change by Carol Willing : -- nosy: +willingc stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34705] Python 3.8 changes how returns through finally clauses are traced

2018-09-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a side effect of specific optimization. If the return value is constant, it is pushed on the stack after executing the finally code (see LOAD_CONST at offset 14 below). But other opcodes at this line (POP_BLOCK and CALL_FINALLY) are executed after

[issue32490] subprocess: duplicate filename in exception message

2018-09-16 Thread Zackery Spytz
Zackery Spytz added the comment: There was also some relevant discussion in #22536. -- ___ Python tracker ___ ___ Python-bugs-list

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-09-16 Thread Anthony Flury
Anthony Flury added the comment: Am not a big fan of special casing, I think the functools.update_wrapper is the way to go - will have a look later and produce a pull request with some test cases. -- ___ Python tracker

[issue34660] Replace ableist terms and pejoratives in source code.

2018-09-16 Thread Gabriel Marko
Gabriel Marko added the comment: Come on guys. Stop this madness. :( -- nosy: +suic ___ Python tracker ___ ___ Python-bugs-list

[issue33367] Multiprocessing Pool workers initiated with maxtasksperchild do not execute when sharing logging

2018-09-16 Thread Soumyadipta Das
Change by Soumyadipta Das : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33367] Multiprocessing Pool workers initiated with maxtasksperchild do not execute when sharing logging

2018-09-16 Thread Soumyadipta Das
Change by Soumyadipta Das : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34705] Python 3.8 changes how returns through finally clauses are traced

2018-09-16 Thread Ned Batchelder
Ned Batchelder added the comment: This affects coverage.py, as reported in this bug: https://github.com/nedbat/coveragepy/issues/707 -- ___ Python tracker ___

[issue34705] Python 3.8 changes how returns through finally clauses are traced

2018-09-16 Thread Ned Batchelder
New submission from Ned Batchelder : When a return statement also executes a finally clause, the sequence of lines reported to the trace function is different in 3.8 than it has been before 3.8: $ cat finally_trace.py def return_from_finally(): try: print("returning")

[issue32152] Add pid to .cover filename in lib/trace.py

2018-09-16 Thread Ned Batchelder
Ned Batchelder added the comment: The trace module doesn't get much use. Have you tried using coverage.py? https://pypi.org/project/coverage/ -- nosy: +nedbat ___ Python tracker

[issue34704] Do not access ob_type directly, introduce Py_TP

2018-09-16 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +8767 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34704] Do not access ob_type directly, introduce Py_TP

2018-09-16 Thread Neil Schemenauer
New submission from Neil Schemenauer : My long term goal is to make it possible to make PyObject an opaque structure. Obviously that would break nearly every 3rd party extension at this point. However, to allow freedom on certain interpreter implementation strategies, it is helpful if code

[issue26979] The danger of PyType_FromSpec()

2018-09-16 Thread Neil Schemenauer
Change by Neil Schemenauer : -- nosy: +nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-09-16 Thread Neil Schemenauer
Neil Schemenauer added the comment: I would suggest that sharing of objects between interpreters should be stamped out. Could we have some #ifdef debug checking that would warn or assert so this doesn't happen? I know currently we share a lot of objects. However, in the long term, that

[issue34382] test_os.test_mode fails when directory base directory has g+s set

2018-09-16 Thread Michael Felt
Michael Felt added the comment: Closing this, and my PR, as issue34664 is a repeat and already merged. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34703] Unexpected Arithmetic Result

2018-09-16 Thread Mark Dickinson
Mark Dickinson added the comment: This isn't a bug; it's a result of Python using the hardware-provided binary floating-point, which can't represent all decimal numbers exactly. Please take a look at https://docs.python.org/3/tutorial/floatingpoint.html for more information. --

[issue34703] Unexpected Arithmetic Result

2018-09-16 Thread chengxuncc
New submission from chengxuncc : >>> 2359296/10/1000**2 0.235929602 >>> 2359296/1000 0.2359296 You can see it. -- components: Interpreter Core messages: 325478 nosy: chengxuncc priority: normal severity: normal status: open title: Unexpected Arithmetic Result type:

[issue32990] Supporting extensible format(PCM) for wave.open(read-mode)

2018-09-16 Thread Zackery Spytz
Zackery Spytz added the comment: Andrea, are you still working on this issue? If not, I will submit a PR. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue34560] Backport of uuid1() failure fix

2018-09-16 Thread Riccardo Mottola
Riccardo Mottola added the comment: https://github.com/python/cpython/pull/9125 should close it -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue34702] urlopen doesn't handle query strings with "file" scheme

2018-09-16 Thread Guillaume Ayoub
New submission from Guillaume Ayoub : urlopen includes query strings in the filename with "file"-scheme URLs. >>> from urllib.request import urlopen >>> urlopen('file:///tmp/test') > >>> urlopen('file:///tmp/test?q') Traceback (most recent call last): File

[issue34697] ctypes: Crash if manually-created CField instance is used

2018-09-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19417] Bdb: add a unittest file (test.test_bdb)

2018-09-16 Thread miss-islington
miss-islington added the comment: New changeset 57e70d3802a2a78e638999c6923053c63fe373f8 by Miss Islington (bot) (xdegaye) in branch '2.7': [2.7] bpo-19417: Add test_bdb.py (GH-5217) (GH-6156) https://github.com/python/cpython/commit/57e70d3802a2a78e638999c6923053c63fe373f8 --