[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

[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

[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

[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

[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

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

[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

[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

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

[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

[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

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

2017-11-05 Thread Mario Corchero
Change by Mario Corchero : -- nosy: +mariocj89 ___ Python tracker ___ ___

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

[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

[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

[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

[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

[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

[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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

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