[issue38129] Spam

2019-09-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : Removed file: https://bugs.python.org/file48605/images (3).jpg ___ Python tracker ___ ___

[issue38129] Spam

2019-09-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg352053 ___ Python tracker ___ ___

[issue38129] Spam

2019-09-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> not a bug stage: -> resolved status: open -> closed title: Situs Judi Online Terpercaya -> Spam ___ Python tracker ___

[issue38129] Situs Judi Online Terpercaya

2019-09-12 Thread Situs Judi Online Terpercaya
New submission from Situs Judi Online Terpercaya : Situs https://sukabet.co/ adalah situs judi online terpercaya Indonesia yang menyediakan permainan judi online dan memberikan jaminan 100% menang tanpa kekalahan -- components: Distutils files: images (3).jpg messages: 352053 nosy:

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2019-09-12 Thread Nathaniel Smith
Nathaniel Smith added the comment: It's something I'm still interested in, but I'm not actively working on it (as you noticed :-)), and there are some other CPython changes that I'll probably prioritize first. Do you want to close this and I can re-open it when I do get back to it, or...?

[issue38106] Race in PyThread_release_lock - can lead to memory corruption and deadlock

2019-09-12 Thread Kirill Smelkov
Kirill Smelkov added the comment: I agree it seems like a design mistake. Not only it leads to suboptimal implementations, but what is more important, it throws misuse risks onto the user. -- ___ Python tracker

[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Other discussion with Zach, and at the end, there is no problem to merge your PR. Thank you for your contribution -- ___ Python tracker

[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 92777d5e5aed1753bafe07265dbe98b2d271815b by Stéphane Wirtel (Joannah Nanjekye) in branch 'master': bpo-18578: Rename and document test.bytecode_helper as test.support.bytecode_helper (GH-15168)

[issue32820] Add __format__ method to ipaddress

2019-09-12 Thread Zachary Ware
Zachary Ware added the comment: New changeset f9c95a4ba24c52eb1c052e3052d677e90a429a9a by Zachary Ware (ewosborne) in branch 'master': bpo-32820: __format__ method for ipaddress (#5627) https://github.com/python/cpython/commit/f9c95a4ba24c52eb1c052e3052d677e90a429a9a -- nosy:

[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker ___

[issue21120] PyArena type is used in headers from the limited API

2019-09-12 Thread Mark Shannon
Mark Shannon added the comment: New changeset 421a72af4deaec96a49a79951b9c2546a2faa13d by Mark Shannon (Zackery Spytz) in branch 'master': bpo-21120: Exclude Python-ast.h, ast.h and asdl.h from the limited API (#14634)

[issue32312] Create Py_AtExitRegister C API

2019-09-12 Thread STINNER Victor
STINNER Victor added the comment: Joannah Nanjekye asked me to have a look at this issue. The existing Py_AtExit() C function is very low-level: it's called very late in Py_Finalize(), when the Python runtime is already destroyed. I understand that the need here is to call C code which

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Mohammad, Could you sign the CLA? Thank you -- nosy: +matrixise versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue32395] asyncio.StreamReader.readuntil is not general enough

2019-09-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Allow multiple separators in Stream.readuntil ___ Python tracker

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: i reopened this without diving into the code to better understand based on Samuels comment. We could really do with a testcase that demonstrates the misleading error message problem for some test driven development here. -- keywords: -patch

[issue27589] asyncio doc: issue in as_completed() doc

2019-09-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ea683deccc505a781eb8c6a88b0835ad5151 by Benjamin Peterson (Zackery Spytz) in branch 'master': closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. (GH-16011)

[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15643 pull_request: https://github.com/python/cpython/pull/16020 ___ Python tracker ___

[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15642 pull_request: https://github.com/python/cpython/pull/16019 ___ Python tracker ___

[issue13927] Document time.ctime format

2019-09-12 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset 2d32bf1ef23c9e468b2e8afab3c24e7a2047ac36 by Paul Ganssle (Harmandeep Singh) in branch 'master': bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)

[issue38131] compile(mode='eval') uninformative error message

2019-09-12 Thread Ilya Kamenshchikov
New submission from Ilya Kamenshchikov : While trying to construct a valid ast node programmatically, I have tried following: import ast tree = ast.BinOp(left=ast.Num(n=2), right=ast.Num(n=2), op=ast.Add()) expr = ast.Expression(body=[tree]) ast.fix_missing_locations(expr) exe =

[issue37405] socket.getsockname() returns string instead of tuple

2019-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f60fd95dcc189ace8c0a2177a394b9cc20389a1e by Benjamin Peterson (Miss Islington (bot)) in branch '3.8': closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH-14392) (GH-16018)

[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15649 pull_request: https://github.com/python/cpython/pull/16026 ___ Python tracker ___

[issue37967] Beta GPG signature check failing

2019-09-12 Thread Ned Deily
Ned Deily added the comment: > If the pubkeys.txt on python.org has no benefit, why does it exist? That's an excellent question! Based on the points raised here and elsewhere, we discussed this more off-line and decided that we should remove the pubkeys.txt file from the website since, as

[issue38110] Use fdwalk() within os.closerange() impl if available

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 84eb42e3c90c03f13262f19185b14566e10941ac by Miss Islington (bot) in branch '3.8': bpo-38110: Use fdwalk for os.closerange() when available. (GH-15224) https://github.com/python/cpython/commit/84eb42e3c90c03f13262f19185b14566e10941ac

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan
New submission from Mohammad Dehghan : In section 8.6 of the tutorials page (https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions), the first item of the bullet points explaining some situations about finally clause, states that > If an exception occurs during execution

[issue35264] SSL Module build fails with OpenSSL 1.1.0 for Python 2.7

2019-09-12 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> compile error ___ Python tracker ___

[issue37758] unicodedata checksum-tests only test 1/17th of Unicode's codepoints

2019-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 6954be815a16fad11d1d66be576865bbbeb2b97d by Benjamin Peterson (Greg Price) in branch 'master': closes bpo-37758: Extend unicodedata checksum tests to cover all of Unicode. (GH-15125)

[issue32395] asyncio.StreamReader.readuntil is not general enough

2019-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is a duplicate of issue37141 where multiple separators are requested for readuntil. I guess we can close one of them as duplicates. -- nosy: +xtreak ___ Python tracker

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___

[issue37829] Documentation of stdlib: add example of mixed arguments to dict()

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your contribution, merged into master. -- nosy: +matrixise resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.7, Python 3.8 ___ Python

[issue32847] Add DirectoryNotEmptyError subclass of OSError

2019-09-12 Thread STINNER Victor
STINNER Victor added the comment: Copy of my comment on the review: https://github.com/python/cpython/pull/15496#pullrequestreview-287311626 I'm not excited by adding a new builtin symbol: IMHO this module already exists too many symbols. I'm not convinced that it's worth it. There is

[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15644 pull_request: https://github.com/python/cpython/pull/16021 ___ Python tracker ___

[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 692a0dc91597b7fb350383b633dc4d044cbd360e by Ivan Levkivskyi (Divij Rajkumar) in branch 'master': bpo-38008: Move builtin protocol whitelist to mapping instead of list (GH-15647)

[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 197ac1ad1c03243c647aa9100edbaa16bebbb7e9 by Miss Islington (bot) in branch '3.7': closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. (GH-16011)

[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset f545638b5701652ffbe1774989533cdf5bc6631e by Miss Islington (bot) (Hai Shi) in branch 'master': bpo-9938: Add optional keyword argument exit_on_error to argparse.ArgumentParser (GH-15362)

[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +15648 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16025 ___ Python tracker

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-09-12 Thread Julien Palard
Julien Palard added the comment: We're using assert instead of assertEqual to denote that we're not "testing unittest" but asserting that unittest work as documented. Whch is semantically a bit different. Unittesting unittest using unittest works, but using unittest test to test unittest

[issue38135] Depth first search in compile.c creates wrong BB order for certain CFG.

2019-09-12 Thread Mark Shannon
New submission from Mark Shannon : Consider a flow graph of four nodes, A, B, C, D where the A, B, C are "next" successors of each other (in order) and C branches to B and B branches to D. Note that there is no "next" link to the D block. The correct order is A, B, C, D but the 'dfs' function

[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 07b4148f3932ed22f9cd8476f49bd0079d093590 by Stéphane Wirtel (Miss Islington (bot)) in branch '3.7': bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16026)

[issue38135] Depth first search in compile.c creates wrong BB order for certain CFG.

2019-09-12 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37669] Make mock_open return per-file content

2019-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Given that the enhancement can only land on 3.9 I guess it will be a good recipe on returning mock_open data for per file to be added to the unittest examples page. -- ___ Python tracker

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15654 pull_request: https://github.com/python/cpython/pull/16031 ___ Python tracker ___

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2019-09-12 Thread Michael Foord
Michael Foord added the comment: The previous behaviour was unspecified and clearly due to missing functionality, so the advantages of fixing it outweigh any potential compatibility issues. But I'd see it as a feature enhancement for 3.9. -- ___

[issue38106] Race in PyThread_release_lock - can lead to memory corruption and deadlock

2019-09-12 Thread Armin Rigo
Armin Rigo added the comment: I agree with your analysis. I guess you (or someone) needs to write an explicit pull request, even if it just contains 187aa545165d cherry-picked. (I'm not a core dev any more nowadays) -- ___ Python tracker

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Eric Snow added the comment: @db3l, I'll take a look right away. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37879] Segfaults in C heap type subclasses

2019-09-12 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 3562ae25402aad36583bc27d4d82c67554323d5e by Petr Viktorin in branch '3.8': [3.8] bpo-37879: Suppress subtype_dealloc decref when base type is a C heap type (GH-15323, GH-16004) (GH-15966)

[issue36876] Global C variables are a problem.

2019-09-12 Thread Eric Snow
Eric Snow added the comment: New changeset 64535fc6c0712caef0bc46be30e661f7ccf8280e by Eric Snow in branch 'master': bpo-36876: Skip test_check_c_globals for now. (gh-16017) https://github.com/python/cpython/commit/64535fc6c0712caef0bc46be30e661f7ccf8280e --

[issue13927] Document time.ctime format

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15645 pull_request: https://github.com/python/cpython/pull/16022 ___ Python tracker ___

[issue13927] Document time.ctime format

2019-09-12 Thread Paul Ganssle
Paul Ganssle added the comment: We've merged the PR and I think it resolves this issue, so we can close this issue now. Please let me know if it's not fully resolved and we can re-open. Thanks Roger for reporting this and Harmandeep for making the PR and requested changes. --

[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your PR and for your time, I have merged the PR into master. -- nosy: +matrixise resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 894d0f7d5542ee04556ec1bee8c58506f7c916d4 by Stéphane Wirtel (Christian Heimes) in branch 'master': bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) https://github.com/python/cpython/commit/894d0f7d5542ee04556ec1bee8c58506f7c916d4

[issue36871] Misleading error from unittest.mock's assert_has_calls

2019-09-12 Thread Samuel Freilich
Samuel Freilich added the comment: Check out my PR, which solves a much smaller issue: It fixes a bug in the exception raising logic in assert_has_calls (and _awaits) which makes complicated problems like the one you mention much harder to debug. Also it has tests! --

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-09-12 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 648494b44aad273590382c8db5a9d1a6c96ee67a by Miss Islington (bot) in branch '3.8': bpo-35685: Add examples of unittest.mock.patch.dict usage (GH-11456) https://github.com/python/cpython/commit/648494b44aad273590382c8db5a9d1a6c96ee67a

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2019-09-12 Thread Inada Naoki
Inada Naoki added the comment: $ ./python -m pyperf timeit --compare-to ./python-master 'dict()' python-master: . 89.9 ns +- 1.2 ns python: . 72.5 ns +- 1.6 ns Mean +- std dev: [python-master] 89.9 ns +- 1.2 ns -> [python] 72.5 ns +- 1.6 ns: 1.24x

[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue32820] Add and document __format__ method for IPv[46]Address

2019-09-12 Thread Zachary Ware
Zachary Ware added the comment: The enhancement patch is merged, but it occurs to me after the fact that this could use some documentation, and possibly a mention in whatsnew. I'll leave this open as a documentation issue. -- assignee: -> docs@python components: +Documentation

[issue37879] Segfaults in C heap type subclasses

2019-09-12 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 5e9caeec76119a0d61c25f1466c27b7dbd5115bd by Petr Viktorin in branch 'master': bpo-37879: Fix warnings in _testcapimodule (GH-16004) https://github.com/python/cpython/commit/5e9caeec76119a0d61c25f1466c27b7dbd5115bd --

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-12 Thread Zachary Ware
Zachary Ware added the comment: If calling /usr/local/bin/python3.8 directly works as expected, there's nothing for us to do here so I'm going to go ahead and close the issue. Please reopen if you can demonstrate a real bug in the installation code, though! -- nosy: +zach.ware

[issue21120] PyArena type is used in headers from the limited API

2019-09-12 Thread Mark Shannon
Change by Mark Shannon : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-12 Thread Brett Cannon
Brett Cannon added the comment: Thanks for catching the warning and the fix, Karthikeyan! -- ___ Python tracker ___ ___

[issue32847] Add DirectoryNotEmptyError subclass of OSError

2019-09-12 Thread STINNER Victor
STINNER Victor added the comment: > Python's code base never specifically handles ENOTEMPTY. Right, so this use case looks artificial to me. > On the other hand, in terms of basic operations on files and directories, I > think implementing DirectoryNotEmptyError follows naturally from the

[issue37405] socket.getsockname() returns string instead of tuple

2019-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 954900a3f98a8c0dea14dd575490237f3f8626b3 by Benjamin Peterson (bggardner) in branch 'master': closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH-14392)

[issue37405] socket.getsockname() returns string instead of tuple

2019-09-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +15641 pull_request: https://github.com/python/cpython/pull/16018 ___ Python tracker ___

[issue38132] Simplify hashlib implementation

2019-09-12 Thread Christian Heimes
New submission from Christian Heimes : The hashlib module uses complicated macros and some pointless optimization. The code can be simplified to make maintenance easier. Cleanup also makes it easier to get rid of static global state and to add "usedforsecurity" feature. * The EVPobject

[issue38086] Synchronize importlib.metadata with importlib_metadata 0.21

2019-09-12 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower
Steve Dower added the comment: I added an "exe_display" override for listing paths, since the full path to the store app is not supposed to be used by users (it's different from sys.executable) and is only going to work when the shorter name is on PATH anyway (due to a limitation in Windows

[issue38133] py.exe cannot locate Store package

2019-09-12 Thread Steve Dower
Steve Dower added the comment: Sample output after this change (some paths elided): Installed Pythons found by ...\py.exe Launcher for Windows (venv) C:\...\env\Scripts\python.exe * -3.8-64python3.8.exe -3.7-32-32 C:\Python37_x86\python.exe -3.7-64

[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 2c910c1e732c9a3ec4c67a7c43d789d6c729304a by Gregory P. Smith (Julien Palard) in branch 'master': bpo-36675: Remove obsolete code. (GH-16024) https://github.com/python/cpython/commit/2c910c1e732c9a3ec4c67a7c43d789d6c729304a -- nosy:

[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, I have merged the PR of Christian for master, 3.8 & 3.7 Thank you so much, -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.6 ___ Python tracker

[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset 1fc84b64f9f740f2dc089da1d061dfdd5b438d3c by Stéphane Wirtel in branch '3.8': [3.8] bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16027) https://github.com/python/cpython/commit/1fc84b64f9f740f2dc089da1d061dfdd5b438d3c

[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 94a684734f669eab02b5c915394b749ccf936449 by Miss Islington (bot) in branch '3.8': bpo-36675: Remove obsolete code. (GH-16024) https://github.com/python/cpython/commit/94a684734f669eab02b5c915394b749ccf936449 -- nosy: +miss-islington

[issue35685] Add samples on patch.dict of the use of decorator and in class

2019-09-12 Thread Julien Palard
Julien Palard added the comment: New changeset 31a82e25b6044a5b5ee25246bad3eb7b873cf5ec by Julien Palard (Emmanuel Arias) in branch 'master': bpo-35685: Add examples of unittest.mock.patch.dict usage (GH-11456) https://github.com/python/cpython/commit/31a82e25b6044a5b5ee25246bad3eb7b873cf5ec

[issue27589] asyncio doc: issue in as_completed() doc

2019-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Current docs read as below with an example to show that earliest future is returned. I guess this can be closed. https://docs.python.org/dev/library/asyncio-task.html#asyncio.as_completed Run awaitable objects in the aws set concurrently. Return

[issue37141] Allow multiple separators in Stream.readuntil

2019-09-12 Thread Bruce Merry
Bruce Merry added the comment: I finally have permission from my employer to sign the contributors agreement, so I'll take a stab at this when I have some free time (unless nobody else gets to it first). -- ___ Python tracker

[issue38008] ContextManager and AsyncContextManager protocols can't be subclassed

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 52baf90a74f3a4573f4266bb4ca8569534db42a9 by Miss Islington (bot) in branch '3.8': bpo-38008: Move builtin protocol whitelist to mapping instead of list (GH-15647) https://github.com/python/cpython/commit/52baf90a74f3a4573f4266bb4ca8569534db42a9

[issue13927] Document time.ctime format

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 1e17c4d414049ad2b5b6a0a53685efc7a550c5c5 by Miss Islington (bot) in branch '3.8': bpo-13927: time.ctime and time.asctime return string explantion (GH-11303) https://github.com/python/cpython/commit/1e17c4d414049ad2b5b6a0a53685efc7a550c5c5

[issue37972] unittest.mock.call does not chain __getitem__ to another _Call object

2019-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset db0d8a5b2c803d30d9df436e00b6627ec8e09a13 by Michael Foord (Miss Islington (bot)) in branch '3.8': bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable (GH-15565) (GH-15965)

[issue38132] Simplify hashlib implementation

2019-09-12 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +15646 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16023 ___ Python tracker

[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +15647 pull_request: https://github.com/python/cpython/pull/16024 ___ Python tracker ___

[issue37609] support "UNC" device paths in ntpath.splitdrive

2019-09-12 Thread Steve Dower
Steve Dower added the comment: For clarity, given Eryk's examples above, both "\\?\UNC\" and "//?/UNC/" are okay (as are any combination of forward and backslashes in the prefix, as normalization will be applied for any except the "\\?\" version). "UNC" is also case-insensitive. --

[issue32008] Example suggest to use a TLSv1 socket

2019-09-12 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +15650 pull_request: https://github.com/python/cpython/pull/16027 ___ Python tracker ___

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2019-09-12 Thread Michael Foord
Michael Foord added the comment: As discussed with Karthik, I think this is a nice feature enhancement for the wraps functionality and worth fixing. It has the great advantage that the fix is nice and isolated and simple. -- ___ Python tracker

[issue38130] Error in section 8.6 of the tutorials (Errors and Exceptions, `finally` bullet points))

2019-09-12 Thread Mohammad Dehghan
Mohammad Dehghan added the comment: I submitted a PR for this: https://github.com/python/cpython/pull/16016 -- ___ Python tracker ___

[issue38129] Spam

2019-09-12 Thread Zachary Ware
Change by Zachary Ware : -- components: -Distutils nosy: -dstufft, eric.araujo, situsjudionlineterpercaya type: compile error -> versions: -Python 3.6 ___ Python tracker

[issue38121] Synchronize importlib.metadata with importlib_metadata 0.22

2019-09-12 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset 8ed6503eca4e3ea4949479d8d7fd9ffd54f81038 by Paul Ganssle (Jason R. Coombs) in branch 'master': bpo-38121: Sync importlib.metadata with 0.22 backport (GH-15993) https://github.com/python/cpython/commit/8ed6503eca4e3ea4949479d8d7fd9ffd54f81038

[issue21120] PyArena type is used in headers from the limited API

2019-09-12 Thread Mark Shannon
Change by Mark Shannon : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26050] Add new StreamReader.readuntil() method

2019-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: StreamReader and StreamWriter were merged to Stream with issue36889 and there were also docs added for it along with asyncio docs rewritten. I am closing this as fixed. Feel free to reopen if needed. Thanks. -- nosy: +xtreak resolution:

[issue38096] Clean up the "struct sequence" / "named tuple" docs

2019-09-12 Thread Paul Ganssle
Paul Ganssle added the comment: Sorry guys, my mistake. I think I was a bit caught up in the workflow at the sprint where I've been going through the review-cleanup-merge process a lot faster than I usually do (partially since I have the time and partially since the huge number of PRs

[issue38127] A fatal error when running test_ctypes

2019-09-12 Thread miss-islington
miss-islington added the comment: New changeset 79cbaf50ac9530d507149402de5c84fa590d9cfb by Miss Islington (bot) in branch '3.8': closes bpo-38127: _ctypes: PyObject_IsSubclass() should be checked for failure. (GH-16011)

[issue36675] Doctest directives and comments missing from code samples

2019-09-12 Thread Julien Palard
Julien Palard added the comment: I opened an issue on the sphinx-doc repo [1] to check if it would be possible to have an option in doctest blocks to not trim them. We previously had a hack in Doc/tools/extensions/pyspecific.py to patch sphinx to not trim them for the doctest.rst file. But

[issue38132] Simplify hashlib implementation

2019-09-12 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Yes that would be awesome! Indeed hashlib has been a bit of a pain to work with especially with FIPS related modifications, simplifying it would help a ton. -- nosy: +cstratak ___ Python tracker

[issue34632] Port importlib_metadata to Python 3.8

2019-09-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've addressed the requests made by rhettinger in issue38086 and issue38121. -- status: open -> closed ___ Python tracker ___

[issue38134] Remove copy of fast PBKDF2 algorithm

2019-09-12 Thread Christian Heimes
New submission from Christian Heimes : bpo #18582 added a C implementation of PBKDF2 algorithm. Back then Python still supported OpenSSL versions with a slow version of PBKDF2-HMAC. Nowadays all supported OpenSSL versions contain an optimized version of the password derivation algorithm.

[issue38134] Remove copy of fast PBKDF2 algorithm

2019-09-12 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +15651 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16028 ___ Python tracker

[issue9938] Add optional keyword argument exit_on_error to argparse.ArgumentParser

2019-09-12 Thread hai shi
hai shi added the comment: Stéphane, thanks for your good comment. Some argparse's bpo is too old ;) -- ___ Python tracker ___ ___

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-09-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. This looks like a valid change to me as I can see from the docstring it says it can be None but in the source code there is an explicit check that if self._local._loop which is returned is None then raise a RuntimeError. I

[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2019-09-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I wanted to merge the PR of Joannah but I have a question, are you sure that there is nobody using this module. Maybe we could add a warning when a user tries to use the module/function with a DeprecationWarning. Could we have a wrapper raising the warning

  1   2   3   >