[issue30550] Document order-preserving dictionary output in json

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4a40498ea96a3c606952712c7951b2ea4ab258e4 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-30550: Clarify JSON ordering guarantees (GH-15397) (GH-15403) https://github.com/python/cpython/commit/4a40498ea96a3c606952712c7951b2ea4

[issue30550] Document order-preserving dictionary output in json

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26589] Add HTTP Response code 451

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: There may still be some holes still remaining in OrderedDict but it doesn't seem to have been relevant in practice and will become even less so now that regular dicts are ordered and compact. If an issue does are arise with someone setting OrderedDict v

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Caleb Donovick
Change by Caleb Donovick : -- nosy: +donovick ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue37890] Modernize several tests in test_importlib

2019-08-22 Thread Kyle Stanley
Kyle Stanley added the comment: > I would just read through the other tests files under test_importlib to see > how other tests were done. Okay, I'll start with that and report back with any ideas for potential changes to test_pkg_import. Thanks. --

[issue19441] itertools.tee improve documentation

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is out of date. The docs currently have: ''' Once :func:`tee` has made a split, the original *iterable* should not be used anywhere else; otherwise, the *iterable* could get advanced without the tee objects being informed. ''' -- resolution

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Caleb Donovick
Caleb Donovick added the comment: I think findsource could be made more robust by using __qualname__ if it available. -- ___ Python tracker ___ __

[issue37792] xml.etree.ElementTree.Element.__eq__ does compare only objects identity

2019-08-22 Thread Marco Sulla
Marco Sulla added the comment: Thanks, but telling the truth: 1. I just not use SubElement, even if it's more convenient. I just create an Element and I append to the parent one. It's much more clear IMHO 2. I do not use `fromstring` and all its friends. It was just a suggestion 3. I alread

[issue12634] Random Remarks in class documentation

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15111 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15406 ___ Python tracker ___

[issue12634] Random Remarks in class documentation

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue27561] Warn against subclassing builtins, and overriding their methods

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue24724] Element.findall documentation misleading

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Issue is closed as far as I'm concerned Me too. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37922] inspect.getsource returns wrong class definition when multiple class definitions share the same name (but are defined in different scopes)

2019-08-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a duplicate of https://bugs.python.org/issue35113 . I have created a PR for the issue but didn't have time to debug the Windows issue. -- nosy: +xtreak ___ Python tracker

[issue37884] Optimize Fraction() and statistics.mean()

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Mark] > I'm with Raymond here; I don't think this change is > desirable for the math module, either with or without > the leading underscore in the name. [Jeroen] > May I propose PR 15327 as alternative? I'll take a look soonish. Since it has its own B

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-22 Thread Eryk Sun
Eryk Sun added the comment: > Is there a way to workaround that? For Windows, subprocess could have a _read_all(file) method that special cases a pipe. The read loop for a pipe would check whether the child has exited. Then call _winapi.PeekNamedPipe on the handle (from get_osfhandle), and d

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +15112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15407 ___ Python tracker __

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15113 pull_request: https://github.com/python/cpython/pull/15408 ___ Python tracker ___ ___

[issue25898] Check for subsequence inside a sequence

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If I were trying to channel Raymond I'd suggest posting the > python as a recipe and see if there is uptake. However, I > could be wrong and he might be interested. (I can't say > that I've ever needed this check myself.) Yes, exactly :-) Sebastian,

[issue29330] __slots__ needs documentation

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue37923] Combining typing.get_type_hints and inspect.signature

2019-08-22 Thread dmontague
New submission from dmontague : I am trying to obtain the output of `inspect.signature`, except with string-valued annotations converted to resolved type hints, similarly to `typing.get_type_hints`. Is there a good way to do this currently? If not, might this be a good fit for the standard l

[issue37924] Embedding Python in Another Application: Compiling under Unix misses the --embed flag

2019-08-22 Thread Miro Hrončok
New submission from Miro Hrončok : Based on changes in https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build I belive we should document the python3.8-config --embed flag in https://docs.python.org/3.8/extending/embedding.html#compiling-and-linking-under-

[issue37925] --embed not included in python3.8-config usage/--help

2019-08-22 Thread Miro Hrončok
New submission from Miro Hrončok : Based on changes in https://docs.python.org/3.8/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build I think that the usage string of python3.8-config should also contain --embed. Actual output: $ python3.8-config Usage: /usr/bin/python3.8-x86_64

[issue32621] Problem of consistency in collection.abc documentation

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The table is correct. See the interactive session below for confirmation. I think the source of your confusion is that some of the more complex ABCs are able to generate some of the required methods from the ones that are listed (for example, Mapping is

[issue12634] Random Remarks in class documentation

2019-08-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +15114 pull_request: https://github.com/python/cpython/pull/15409 ___ Python tracker ___ __

[issue12634] Random Remarks in class documentation

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 483ae0cf1dcf46f8b71c4bf32419dd138e908553 by Raymond Hettinger in branch 'master': bpo-12634: Clarify an awkward section of the tutorial (GH-15406) https://github.com/python/cpython/commit/483ae0cf1dcf46f8b71c4bf32419dd138e908553 --

[issue12634] Random Remarks in class documentation

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6fcb6cfb139ade1aac6dbee0b18ca72b18cbe0d2 by Raymond Hettinger in branch 'master': bpo-30826: Improve control flow examples (GH-15407) https://github.com/python/cpython/commit/6fcb6cfb139ade1aac6dbee0b18ca72b18cbe0d2 --

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2019-08-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +15115 pull_request: https://github.com/python/cpython/pull/15410 ___ Python tracker ___ __

[issue12634] Random Remarks in class documentation

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f6a7f5bc50f4267cfb7fe0c4ea16d5359c009cbd by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-12634: Clarify an awkward section of the tutorial (GH-15406) (GH-15409) https://github.com/python/cpython/commit/f6a7f5bc50f4267cfb7fe0c

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset b6341e676af2f58f3ad9b51a0d2fb7db5a3428e3 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-30826: Improve control flow examples (GH-15407) (GH-15410) https://github.com/python/cpython/commit/b6341e676af2f58f3ad9b51a0d2fb7db5a34

[issue37439] Add random.binomialvariate()

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Avi] > Shall I update the PR? Yes, please. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue37206] Incorrect application of Argument Clinic to dict.pop()

2019-08-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37454] Clarify docs for math.log1p()

2019-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sometimes you guys make me feel dumb as a rock. Sorry for the distraction. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

<    1   2