[issue37664] Update bundled pip and setuptools

2019-08-18 Thread rdb
rdb added the comment: @steve.dower It will be necessary to update to pip 19.2.3 for Python 3.8.0b4 shortly, as per: https://github.com/pypa/pip/pull/6874#issuecomment-50364 -- nosy: +rdb ___ Python tracker

[issue35748] urlparse library detecting wrong hostname leads to open redirect vulnerability

2019-08-18 Thread Ilya Konstantinov
Ilya Konstantinov added the comment: >From RFC-1738: hostname = *[ domainlabel "." ] toplabel domainlabel= alphadigit | alphadigit *[ alphadigit | "-" ] alphadigit toplabel = alpha | alpha *[ alphadigit | "-" ] alphadigit alphadigit = alpha | digit However: py>

[issue37543] Optimize pymalloc for non PGO build

2019-08-18 Thread Hansraj Das
Change by Hansraj Das : -- pull_requests: +15043 pull_request: https://github.com/python/cpython/pull/15309 ___ Python tracker ___

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2019-08-18 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +15044 pull_request: https://github.com/python/cpython/pull/15326 ___ Python tracker ___

[issue37881] __text_signature__ parser doesn't handle globals in extension module

2019-08-18 Thread Antony Lee
New submission from Antony Lee : Starting from the custom2 example at https://docs.python.org/3/extending/newtypes_tutorial.html#adding-data-and-methods-to-the-basic-example, change the methods table to static PyMethodDef Custom_methods[] = { {"foo", (PyCFunction) Custom_foo,

[issue16468] argparse only supports iterable choices

2019-08-18 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34529] add the option for json.dumps to return newline delimited json

2019-08-18 Thread Thibault Molleman
Change by Thibault Molleman : -- nosy: +Thibault Molleman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9350] add remove_argument_group to argparse

2019-08-18 Thread hai shi
hai shi added the comment: IMHO, if we supply the ability to add an argument group, we need add the ability to remove the argument group too. -- nosy: +shihai1991 ___ Python tracker

[issue9350] add remove_argument_group to argparse

2019-08-18 Thread paul j3
paul j3 added the comment: hai shi Do you have a specific need for this, or do you want it just for the same of completeness? -- ___ Python tracker ___

[issue16468] argparse only supports iterable choices

2019-08-18 Thread paul j3
paul j3 added the comment: But see https://bugs.python.org/issue37793 for a discussion of whether 'container' is as good a descriptor as 'iterable'. -- ___ Python tracker

[issue37882] Code folding in IDLE

2019-08-18 Thread SilentGhost
Change by SilentGhost : -- versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37882] Code folding in IDLE

2019-08-18 Thread George Zhang
Change by George Zhang : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37882] Code folding in IDLE

2019-08-18 Thread George Zhang
New submission from George Zhang : Congrats on adding line numbers to IDLE. With this change, a change to add code folding could be done more easily as the folding can reference the line numbers. Many other IDEs have code folding but IDLE should also have it. Code folding could be done with

[issue37882] Code folding in IDLE

2019-08-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am familiar with the feature in Notepad++ on Windows. But I never use its +- code folding. IDLE already has two different and, to me, generally better code folding features. To get an outline view of a file's classes and functions, use File => Module

[issue37863] Speed up hash(fractions.Fraction)

2019-08-18 Thread Tim Peters
Tim Peters added the comment: For posterity: "Modular Inverse Algorithms Without Multiplications for Cryptographic Applications" Laszlo Hars https://link.springer.com/article/10.1155/ES/2006/32192 """ On the considered computational platforms for operand lengths used in

[issue37883] threading.Lock.locked is not documented

2019-08-18 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : As far as I can tell, it has never been documented. I'm not sure if it is deprecated but it has a docstring so it seems to me, that it just needs documentation in Doc/Library/threading.rst PS: I don't know how to set the beginner friendly flag. --

[issue37836] Support .as_integer_ratio() in fractions.Fraction

2019-08-18 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +15045 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15327 ___ Python tracker ___

[issue37836] Support .as_integer_ratio() in fractions.Fraction

2019-08-18 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +15046 pull_request: https://github.com/python/cpython/pull/15328 ___ Python tracker ___

[issue7982] extend captured_output to simulate different stdout.encoding

2019-08-18 Thread Andrew Frost
Andrew Frost added the comment: The patch Berker attached back in 2014 was never added to Python, I'd like to submit a PR for it as my first Python contribution! -- nosy: +adfrost ___ Python tracker

[issue9350] add remove_argument_group to argparse

2019-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The use case for me is I create an argument group and > then conditionally add a bunch of arguments to it. > If zero arguments are added I would like to then remove > the group so that an empty group does not show up > in the help output. ISTM this

[issue16468] argparse only supports iterable choices

2019-08-18 Thread Brendan Barnwell
Brendan Barnwell added the comment: Here is an example of someone who cares about the behavior and/or the documentation (and still cares enough to check up on their StackOverflow question six years later):

[issue37819] as_integer_ratio() missing from fractions.Fraction()

2019-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, but I do not understand why adding Fraction.as_integer_ratio() prevents adding math.as_integer_ratio(). The user code can not benefit from this until we add as_integer_ratio() to all numeric numbers, and this is not realistic. For the same reason

[issue37664] Update bundled pip and setuptools

2019-08-18 Thread Inada Naoki
Inada Naoki added the comment: When updating pip next time, please update setuptools too. https://setuptools.readthedocs.io/en/latest/history.html#v41-1-0 > #1788: Changed compatibility fallback logic for html.unescape to avoid > accessing HTMLParser.unescape when not necessary.

[issue9350] add remove_argument_group to argparse

2019-08-18 Thread hai shi
hai shi added the comment: paul, raymond. Thanks for give me a quick answer:). Looks raymond's reason is good enough, i just only consider this question from api completeness(as paul said) not from user case. -- ___ Python tracker

[issue37862] Search doesn't find built-in functions

2019-08-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: The search page is the last thing one should use. There is the index https://docs.python.org/3/genindex-Z.html and for builtin function, chapter 2 of the library manual. https://docs.python.org/3/library/functions.html#built-in-functions I don't know if the

[issue16468] argparse only supports iterable choices

2019-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, that makes sense. Go ahead with the edit. -- ___ Python tracker ___ ___

[issue16468] argparse only supports iterable choices

2019-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this should be dropped. IMO it is a pedantic nit. There is the everyday usage of the word "container" which has a reasonable plain meaning. There is also an ABC that was unfortunately called Container (with a capital C) that means anything the

[issue37836] Support .as_integer_ratio() in fractions.Fraction

2019-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I afraid this can slow down the Fraction constructor. -- ___ Python tracker ___ ___

[issue37882] Code folding in IDLE

2019-08-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Terry, you've made a good case that this feature request should be closed. -- nosy: +rhettinger ___ Python tracker ___