[issue30434] multiprocessing AuthenticationError "digest sent was rejected"

2017-11-05 Thread Xiang Zhang
Xiang Zhang added the comment: I can't reproduce the failure with 2.7.13 but I do encounter the same failure just now, much same as yours, 2.7.5 and 2.7.13. I'd like to describe my situation. I have one client process started by 2.7.13(I build it from source) and one server process started

[issue25942] subprocess.call SIGKILLs too liberally

2017-11-05 Thread Martin Panter
Martin Panter added the comment: https://github.com/python/cpython/pull/4283 adds a secondary timeout, which defaults to 1 s when there is no main timeout. But this seems complicated and arbitrary. As I understand, the main use case discussed here was waiting without a timeout for a child tha

[issue29710] Incorrect representation caveat on bitwise operation docs

2017-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: Right, and that's why I think we're better off focusing on the arithmetic explanations wherever they apply. The problem is that for "x | y" and "x & y" there's no avoiding discussing the 2's complement representation. Martin, would you find the reference to `bi

[issue31953] Dedicated place for security announcements?

2017-11-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: There is Security SIG mailing list, please check it out: https://mail.python.org/mm3/archives/list/security-...@python.org/ -- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue29710] Incorrect representation caveat on bitwise operation docs

2017-11-05 Thread Martin Panter
Martin Panter added the comment: I find the model in terms of “bit_length” hard to understand. You have to understand what bit_length returns, and why you added 1. Bit_length is awkward for negative numbers. It only uses the absolute value, which would give off-by-one problems with negative v

[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Emanuel Barry
Emanuel Barry added the comment: This is a known issue, and is properly explained here: https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works -- nosy: +ebarry resolution: -> not a bug stage: -> resolved status: open -> close

[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Lucas Bertoldo
Change by Lucas Bertoldo : -- versions: +Python 2.7, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31953] Dedicated place for security announcements?

2017-11-05 Thread Jean-Philippe Ouellet
New submission from Jean-Philippe Ouellet : Hello, My apologies if this is not the right place to discus this. I would like to ensure that I stay informed of any potential future security issues in python (specifically at least the cpython runtime and standard library, although select very-po

[issue31952] Weird behavior on tupple item assignment

2017-11-05 Thread Lucas Bertoldo
New submission from Lucas Bertoldo : Basically, I typed: >>> m = (list(), list()) then I got, this, as expected: >>> m[0] += [1] Traceback (most recent call last): File "", line 1, in m[0] += [1] TypeError: 'tuple' object does not support item assignment but, when I checked the variable.

[issue21790] Change blocksize in http.client to the value of resource.getpagesize

2017-11-05 Thread Martin Panter
Martin Panter added the comment: Issue 31945 proposes adding a “blocksize” parameter to HTTPConnection objects, so I suggest to closing in favour of that one. -- resolution: -> rejected superseder: -> Configurable blocksize in HTTP(S)Connection __

[issue28716] Fractions instantiation revisited

2017-11-05 Thread Eric Wieser
Eric Wieser added the comment: > allows Fraction instantiation from duck-typing classes that provide > as_integer_ratio This would allow the numpy `np.floating` types to take part in `Fraction` conversion as well, which would be great. As far as I can tell, `Decimal` already follows this duc

[issue31951] import curses is broken on windows

2017-11-05 Thread joe m
New submission from joe m : Importing curses on Windows install calls the following: Traceback (most recent call last): File "", line 1, in File "C:\Users\user name\AppData\Local\Programs\Python\Python36-32\lib\curses\__init__.py", line 13, in from _curses import * ModuleNotFoundErro

[issue28140] Attempt to give better errors for pip commands typed into the REPL

2017-11-05 Thread Tom Viner
Change by Tom Viner : -- nosy: +tomviner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue30699] Misleading class names in datetime.tzinfo usage examples

2017-11-05 Thread Mario Corchero
Change by Mario Corchero : -- nosy: +mariocj89 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30699] Misleading class names in datetime.tzinfo usage examples

2017-11-05 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +4253 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue30548] typo in documentation for create_autospec

2017-11-05 Thread Mario Corchero
Mario Corchero added the comment: I've always understood instance as a way to say "I am passing this class but I want to force the autospec on the instance" For example, given ``` class X: def __init__(self): raise ``` You can do `unittest.mock.create_autospec(X, instance=True)`

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor is talking about inspect.signature(). In Python 3.5+ the result is "(fd, /)". In older versions it raises a ValueError. The docstring in 3.4 is 'dup(fd) -> fd2\n\nReturn a duplicate of a file descriptor.' It doesn't contain information that dup() ret

[issue31950] Default event loop policy doc lacks precision

2017-11-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : The doc for the default event loop policy states that """the default policy defines context as the current thread, and manages an event loop per thread that interacts with asyncio""". What it doesn't mention, though, is that you get a RuntimeError if you c

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-05 Thread Brett Cannon
Brett Cannon added the comment: R. David is correct that currently the policy is there are no type hints in the stdlib. Now the interesting thing about AC is the type hint info could be kept just in the docstring and not added to __annotations__ which somewhat goes around this restriction. Pl

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Unfortunately, there is no obvious way to capture the output of the child process here, short of running the entire test under a subprocess. -- ___ Python tracker __

[issue31863] Inconsistent returncode/exitcode for terminated child processes on Windows

2017-11-05 Thread Paul Moore
Paul Moore added the comment: I'm not actually sure what the proposal here is. Are we suggesting that all Python's means of terminating a process should use the same exit code? Note that doing so would be a backward compatibility break, as os.kill() is documented as having the behaviour seen

[issue31415] Add -X option to show import time

2017-11-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 4, 2017, at 14:29, Terry J. Reedy wrote: > The importtime output is sent to stderr. Should this be documented? Yes. :) -- ___ Python tracker _

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And please don't forget to edit a commit message when merge a PR. -- ___ Python tracker ___ ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2017-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_concurrent_futures now produces too much output on stderr. $ ./python -m test test_concurrent_futures >/dev/null Exception in initializer: Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/concurrent/futures/process.py", line 170, i

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-05 Thread R. David Murray
R. David Murray added the comment: I believe we currently have a policy that the python standard library will not include type annotations, that those are provided by typeshed. -- nosy: +r.david.murray ___ Python tracker

[issue27359] OrderedDict pseudo-literals (WIP)

2017-11-05 Thread Stefan Krah
Stefan Krah added the comment: It looks like guaranteed ordered literals are going to happen (yay!): https://mail.python.org/pipermail/python-dev/2017-November/150144.html -- nosy: +skrah resolution: later -> out of date stage: -> resolved status: open -> closed type: -> enhanceme

[issue31863] Inconsistent returncode/exitcode for terminated child processes on Windows

2017-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would like to know what our resident Windows users think about this (Paul, Steve, Zach). Reading the above arguments, I'd be inclined to settle on 15 (that is, the non-negative "signal" number). While it is not consistent with what "taskkill" or other API

[issue12276] 3.x ignores sys.tracebacklimit=0

2017-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request on GitHub Anand? Issue31949 fixes this and several other bugs in PyTraceBack_Print(), but it may be worth to fix this bug first, especially if the patch contains tests. -- assignee: docs@python -> serhiy.storchak

[issue31949] Bugs in PyTraceBack_Print()

2017-11-05 Thread Berker Peksag
Berker Peksag added the comment: > Setting sys.tracebacklimit to 0 or less no longer suppress printing > tracebacks in PyTraceBack_Print(). This was also reported in issue 12276. -- nosy: +berker.peksag ___ Python tracker

[issue31949] Bugs in PyTraceBack_Print()

2017-11-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4252 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31949] Bugs in PyTraceBack_Print()

2017-11-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 0fbab7ff8d2efd92e222fcc13c0aff0998c3c158 changed the semantic of PyTraceBack_Print and sys.tracebacklimit. It no longer match the documentation and the behavior of the traceback module. Setting sys.tracebacklimit to 0 or less no longer suppress printing t

[issue31454] Include "import as" in tutorial

2017-11-05 Thread Berker Peksag
Berker Peksag added the comment: PR 4041 looks good to me. Mariatta, do you have time to look at Mario's patch? Sarthak, thank you for your PR, but a PR was opened 12 days before yours (sorry, I missed it earlier) Would you like to work on another issue? I've just opened bpo-31948 and I'd be

[issue31948] Broken MSDN links in msilib docs

2017-11-05 Thread Berker Peksag
New submission from Berker Peksag : Most of the MSDN links in Doc/library/msilib.rst are broken: https://docs.python.org/3/library/msilib.html For example, the UuidToString link goes to https://msdn.microsoft.com/library?url=/library/en-us/rpc/rpc/uuidtostring.asp But I believe the cor

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-05 Thread Tal Einat
Tal Einat added the comment: Argument Clinic currently doesn't support input parameter type annotations either, though for this it has more relevant information in many cases. I think it would be a great boon for AC to enable declaring type annotations, both for input parameters and for retur

[issue31947] names=None case is not handled by EnumMeta._create_ method

2017-11-05 Thread Paul
New submission from Paul : It seems to me that this method should not have names=None default value in signature, because that case is not handled, nor is it described as a possible value in the docstring. Seems like maybe a copy and paste from __call__, which has basically same signature, bu

[issue31921] Bring together logic for entering/leaving a frame in frameobject.c

2017-11-05 Thread pdox
Change by pdox : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31921] Bring together logic for entering/leaving a frame in frameobject.c

2017-11-05 Thread pdox
pdox added the comment: Raymond, this is not an experiment, but the beginning of a sustained effort to improve locality during execution, to make more effective use of CPU cache lines. Rather than discuss the details of this change one PR at a time, I will close this issue for now, and open a

[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-11-05 Thread Stefan Krah
Stefan Krah added the comment: Berker's latest patch looks good to me. Unrelated to the patch (same before and after), this looks odd to me: >>> import uuid >>> uuid._has_uuid_generate_time_safe is None True >>> >>> import _uuid >>> _uuid.has_uuid_generate_time_safe 1 [Also, I thought we we

[issue28994] Misc fixes and cleanups in error handling C code

2017-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cf296537f164abeacd83011239881f75f290ed31 by Serhiy Storchaka in branch 'master': bpo-28994: PyErr_NormalizeException() no longer use C stack for recursion. (#2035) https://github.com/python/cpython/commit/cf296537f164abeacd83011239881f75f290ed

[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-11-05 Thread Berker Peksag
Berker Peksag added the comment: I've followed Stefan's suggestion and opened PR 4287 (tested on 10.10.5) -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-11-05 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +4250 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail