[issue38479] Segmentation fault: 11 Python3.6 on Macbook

2019-10-15 Thread Ned Deily
Ned Deily added the comment: Your system appears to be running Cylance, which I gather is some sort of third-party virus protection system; from the system crash trace, the crash ssems to have happened in /Library/Application Support/Cylance/Desktop/CyMemDef.dylib which presumably is part of

[issue11410] Use GCC visibility attrs in PyAPI_*

2019-10-15 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 0b60f64e4343913b4931dc27379d9808e5b78fe1 by Vinay Sajip in branch 'master': bpo-11410: Standardize and use symbol visibility attributes across POSIX and Windows. (GH-16347) https://github.com/python/cpython/commit/0b60f64e4343913b4931dc27379d9808e

[issue38294] Documentation on 3.6->3.7 re.escape no longer escaping "/" or ":" should be obvious

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset ae41f629e187e1f0cf4d62f5a7b181c64da26466 by Ned Deily (Ricardo Bánffy) in branch '3.7': [3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. (GH-16442) (GH-16647) https://github.com/python/cpython/commit/ae41f629e187e1f0cf

[issue36953] Remove collections ABCs?

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 42b16b2a867ad3f6c022476076da3d6ea789021b by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-36953: Delay removal of ABCs from collections. (GH-13409) https://github.com/python/cpython/commit/42b16b2a867ad3f6c022476076da3d6ea789021b --

[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 1c61f2cc7ab44591b1832307a4022c927502d446 by Ned Deily (Vinay Sajip) in branch '3.7': bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672) https://github.com/python/cpython/commit/1c61f2cc7ab44591b183230

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 2a405598bbccbc42710dc5ecf3d44c8de4c16582 by Ned Deily (Abhilash Raj) in branch '3.7': [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727) https://github.com/python/cpython/c

[issue32996] Improve What's New in 3.7

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 49e650b2489da861d4c49b41787160f30d8259bf by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-32996: Documentation fix-up. (GH-16646) https://github.com/python/cpython/commit/49e650b2489da861d4c49b41787160f30d8259bf --

[issue28556] typing.py upgrades

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset bd9a70c2c177d2f99f63d87b865e6e9c2936ba2e by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-28556: Remove another mention of metaclass of Generic in typing docs (GH-16743) https://github.com/python/cpython/commit/bd9a70c2c177d2f99f63d87b865e6e

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 88204a3908663a574919f9c17278bcabed0598fa by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463) https://github.com/python/cpython/commit/88204a3908663a574919f9c17278bcabed0598fa

[issue22347] mimetypes.guess_type("//example.com") misinterprets host name as file name

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 2a405598bbccbc42710dc5ecf3d44c8de4c16582 by Ned Deily (Abhilash Raj) in branch '3.7': [3.7] bpo-38449: Revert "bpo-22347: Update mimetypes.guess_type to allow oper parsing of URLs (GH-15685)" (GH-16724) (GH-16727) https://github.com/python/cpython/c

[issue26510] [argparse] Add required argument to add_subparsers

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset f168c17b075b4103eaf1f619acd3bca3890fbac7 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588) https://github.com/python/cpython/commit/f168c17b075b4103eaf1f619acd3bca3890fbac

[issue38235] Docs of logging module says argument is named "lvl". TypeError.

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 6eb554583218cda9a145982a41c30612968a942f by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38235: Correct some arguments names in logging documentation (GH-16571) (GH-16577) https://github.com/python/cpython/commit/6eb554583218cda9a145982a41c

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset ab22c8bc488e822d03c4778b30ec60131ea35c63 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38344: Fix syntax in activate.bat (GH-16533) https://github.com/python/cpython/commit/ab22c8bc488e822d03c4778b30ec60131ea35c63 -- ___

[issue38391] Typo in tutorial code (does not compile)

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset e9c65b4ae765ccd381eccdfc4617dc46899406e1 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-38391: Fixing a typo for Py_DECREF (GH-16616) https://github.com/python/cpython/commit/e9c65b4ae765ccd381eccdfc4617dc46899406e1 -- nosy: +ned.

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : >>> import resource >>> high = 300 * 1024 * 1024 >>> resource.setrlimit(resource.RLIMIT_MEMLOCK, (high, high)) Traceback (most recent call last): File "", line 1, in ValueError: not allowed to raise maximum limit >>> Internally

[issue38481] Class static property not static

2019-10-15 Thread 楚艺
New submission from 楚艺 <1090217...@qq.com>: code: -- class D: num = 0 def __init__(self): self.num += 1 print('D num', self.num) for i in range(5): D() ---

[issue38344] activate.bat else needs to be on the same line as the if

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (3.7.5 is released with this fix) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix released in 3.8.0 and 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue38449] regression - mimetypes guess_type is confused by ; in the filename

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix also released in 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38481] Class static property not static

2019-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: When you assign to self.num, you're creating an instance variable which hides the class variable. Instead, assign directly to the class variable: class D: num = 0 def __init__(self): D.num += 1 print('D num', self.num) for i in range(5

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
New submission from Jim Carroll : While working with codecs.iterdecode(), encountered "can't concat int to bytes". The source of the problem is BufferedIncrementalDecoder stores it's internal buffer as a bytes (ie: b""), but decode() can be passed either a byte string or in the case of iterde

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Change by Jim Carroll : Removed file: https://bugs.python.org/file48661/codecs.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Change by Jim Carroll : Added file: https://bugs.python.org/file48662/codecs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16575] ctypes: unions as arguments

2019-10-15 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +16355 pull_request: https://github.com/python/cpython/pull/16799 ___ Python tracker ___ _

[issue38470] test_compileall fails in AMD64 Windows7 SP1 3.x

2019-10-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset eb1dda2b56f67f09352c303588c28880c471ae87 by Petr Viktorin (Victor Stinner) in branch 'master': bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789) https://github.com/python/cpython/commit/eb1dda2b56f67f09352c303588c28880c471ae8

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-10-15 Thread Arnaud Diederen
Arnaud Diederen added the comment: Python 3.8 was released yesterday, but this issue was unfortunately not addressed, making it as an embedded runtime. Are there plans to fix this for a minor 3.8 release? Thanks! -- nosy: +Arnaud Diederen ___ Pyt

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +16356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16800 ___ Python tracker __

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks, Brian for the report! I have a fix ready. When merged, this will be available in the next release. -- ___ Python tracker ___

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The first argument of iterdecode() should be an iterable of bytes objects, not a bytes object. Try codecs.iterdecode([enc], 'utf-8') -- nosy: +serhiy.storchaka ___ Python tracker

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Cooper Lees
New submission from Cooper Lees : I'd like to propose adding a run commands (.venvrc) file support to the venv library. File Location: `~/.venvrc` This file will support all current CLI arguments and override the defaults for each CLI if present in the file. I will also endeavour to add test

[issue37759] Polish whatsnew for 3.8

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: What's New in Python 3.8: * functools.singledispatchmethod is missing https://docs.python.org/dev/library/functools.html#functools.singledispatchmethod * About "Added new multiprocessing.shared_memory module. (Contributed by Davin Potts in bpo-35813.)". Comm

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f3ef06a7cb347ab7bd3cc2b0b3dcebe4f9ff36f9 by Pablo Galindo in branch 'master': bpo-38478: Correctly handle keyword argument with same name as positional-only parameter (GH-16800) https://github.com/python/cpython/commit/f3ef06a7cb347ab7bd

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +16357 pull_request: https://github.com/python/cpython/pull/16801 ___ Python tracker ___ __

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the benefit of such change? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pytho

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Jim Carroll added the comment: According to the documentation (https://docs.python.org/3.7/library/codecs.html#codecs.iterdecode), the first parameter is a bytes object to decode (not an iterable of bytes). Which is also consistent with it's companion iterencode() which accepts a str object,

[issue37961] Tracemalloc traces do not include original stack trace length

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8d59eb1b66c51b2b918da9881c57d07d08df43b7 by Victor Stinner (Julien Danjou) in branch 'master': bpo-37961, tracemalloc: add Traceback.total_nframe (GH-15545) https://github.com/python/cpython/commit/8d59eb1b66c51b2b918da9881c57d07d08df43b7

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread miss-islington
miss-islington added the comment: New changeset f705f8e9b58955d0d9083e98d71ba01b2e69798c by Miss Islington (bot) in branch '3.8': bpo-38478: Correctly handle keyword argument with same name as positional-only parameter (GH-16800) https://github.com/python/cpython/commit/f705f8e9b58955d0d9083

[issue38484] HTMLParser.handle_starttag should mention that value can be None

2019-10-15 Thread Sebastian Rittau
New submission from Sebastian Rittau : The documentation for HTMLParser.handle_starttag (https://docs.python.org/3/library/html.parser.html#html.parser.HTMLParser.handle_starttag) should mention that the value of an attribute can be `None` for argument-less attributes. I can submit a PR if wa

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-15 Thread Dong-hee Na
Dong-hee Na added the comment: > What is the benefit of such change? I think that if an API is implemented for a specific purpose, it should be used. This will help us to maintain code quality. Especially in the case of pointed out logics, since Py_ISDIGIT is exactly what we want to do, By

[issue34688] Segfault in pandas that works fine on 3.7

2019-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This has an issue in GitHub and pandas is also tested with 3.8 from https://github.com/pandas-dev/pandas/pull/28730. I am closing this as third party. -- resolution: -> third party stage: -> resolved status: open -> closed __

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Cooper Lees
Change by Cooper Lees : -- keywords: +patch pull_requests: +16358 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16802 ___ Python tracker ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Cooper Lees
Change by Cooper Lees : -- pull_requests: +16359 pull_request: https://github.com/python/cpython/pull/168 ___ Python tracker ___ ___

[issue37961] Tracemalloc traces do not include original stack trace length

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your contribution Julien, I merged your PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue17477] update the bsddb module do build with db 5.x versions

2019-10-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Time to die. -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -16359 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue18734] Berkeley DB versions 4.4-4.9 are not discovered by setup.py

2019-10-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Time to die. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue6462] bsddb3 intermittent test failures

2019-10-15 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Time to die. -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: Zachary Ware commented the new failures on the x86 Gentoo worker: "My worker was updated to OpenSSL v1.1.1d with sslv3 disabled today, which seems like a likely source of these failures." -- ___ Python tracker

[issue38006] Crash in remove() weak reference callback of weakref.WeakValueDictionary at Python exit

2019-10-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue38112] Compileall improvements

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: Should be fixed by: New changeset eb1dda2b56f67f09352c303588c28880c471ae87 by Petr Viktorin (Victor Stinner) in branch 'master': bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789) https://github.com/python/cpython/commit/eb1dda2b56f67f0935

[issue38470] test_compileall fails in AMD64 Windows7 SP1 3.x

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: > create_long_path isn't taking into account _write_atomic in > Lib/importlib/_bootstrap_external.py. Yeah, I found the same issue: https://github.com/python/cpython/pull/16778#issuecomment-541764285 I began to write a complex change to take _write_atomic()

[issue38470] test_compileall fails in AMD64 Windows7 SP1 3.x

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like test_compileall now pass on the 4 Windows workers: * https://buildbot.python.org/all/#/builders/3 * https://buildbot.python.org/all/#/builders/12 * https://buildbot.python.org/all/#/builders/40 * https://buildbot.python.org/all/#/builders/58 ---

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Walter Dörwald
Walter Dörwald added the comment: The documentation might be unclear here. But the argument iterator of iterdecode(iterator, encoding, errors='strict', **kwargs) *is* supposed to be an iterable over bytes objects. In fact iterencode() transforms an iterator over strings into an iterator ov

[issue38468] Refactor python-config.in - use getvar()

2019-10-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 3cd21aa6a1467723ccc85e6411a6cbe7fa81ef76 by Joannah Nanjekye in branch 'master': bpo-38468 : Refactor python-config (#16749) https://github.com/python/cpython/commit/3cd21aa6a1467723ccc85e6411a6cbe7fa81ef76 -- __

[issue38485] BUG Modules/_io/texio.c

2019-10-15 Thread Jim Carroll
New submission from Jim Carroll : The io.TextIOWrapper class initializes a codec.IncrementalEncoder and uses it to encode str, but it never calls the encoder's encode('', final=True). According to the docs https://docs.python.org/3.5/library/codecs.html#codecs.IncrementalEncoder.encode: `

[issue38468] Refactor python-config.in - use getvar()

2019-10-15 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs still make it look like *digestmod* is an optional argument: https://docs.python.org/3/library/hmac.html#hmac.new The help output does as well: >>> help(hmac.new) Help on function new in module hmac: new(key, msg=None, digestmod=N

[issue38485] BUG Modules/_io/texio.c

2019-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +IO nosy: +benjamin.peterson, stutzbach type: -> behavior versions: +Python 2.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-15 Thread Caris Moses
Caris Moses added the comment: I am having some trouble figuring out how to use CPython to get the exact PR you tested on since I've never used CPython before. However, when I just install Python 3.7.5RC1 and 3.8.0RC1 from the binaries and run your code I do get the AttributeError. And when

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was added as a replacement of locale aware isdigit(). It was initially used only for implementing bytes.isdigit() and in PyOS_ascii_strtod(). isdigit() is not used in Modules/_struct.c, so there is nothing to replace with Py_ISDIGIT(). Currently hardcod

[issue38486] Dead links in mailbox doc

2019-10-15 Thread Inada Naoki
New submission from Inada Naoki : Reported on mailing list: https://mail.python.org/archives/list/d...@python.org/thread/NIXFQMWFNSNO6RXPINY56CQQ5L7QIRUV/ qmail.org is dead. The mailbox doc [1] contains two links to man pages in qmail.org. Can we just remove them? [1] https://docs.python.or

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. You can download the patch for the PR by appending .diff/.patch to the PR URL. The patch can be applied to your source locally with "git apply patch_file" to run my example. Reverting patch would cause AttributeError D

[issue38474] digit check logic can be replaced by Py_ISDIGIT on prepare_s

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left this on to the struct module maintainers. -- nosy: +mark.dickinson, meador.inge ___ Python tracker ___ _

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +16360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16804 ___ Python tracker __

[issue38480] resource.setrlimit() should raise PermissionError

2019-10-15 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It turns out there is a similar precedent which was solved in the same way: issue18787. -- ___ Python tracker ___ ___

[issue38486] Dead links in mailbox doc

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +email nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___ Python-b

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Christian Heimes
Christian Heimes added the comment: The weird argument style of a required digestmod with None as default is an unfortunate outcome of the old API. The msg and digestmod argument can be passed in as keyword and as positional argument. I studied existing code and have considered to make diges

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +16362 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/16805 ___ Python tracker ___ ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the feedback. Better late than never. :) A default algorithm is a bad thing when it comes to authentication. Explicit is better than implicit. A default regularly becomes obsolete as math and cryptanalysis methods move forward and need to be

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: BTW, if you want the type annotation that'd be used for this, 3.8 effectively removes the Optional[] from the one listed in: https://github.com/python/typeshed/blob/master/stdlib/2and3/hmac.pyi#L16 -- ___ Python

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I modified my PR 16780 to also fix this issue, my PR was written for bpo-36338. -- ___ Python tracker ___ ___

[issue36338] urlparse of urllib returns wrong hostname

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I modified my PR 16780 to also fix bpo-33342: "urllib IPv6 parsing fails with special characters in passwords". -- ___ Python tracker ___ __

[issue38487] expat infinite loop

2019-10-15 Thread Marcos Dione
New submission from Marcos Dione : I'm trying to add external entities support to xmltodict[1]. For that I extended the handler to have a ExternalEntityRefHandler handler. After reading a couple of files, the script lock in a tight loop. I ran the script with gdb (!!) and found that expat thi

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-15 Thread Caris Moses
Caris Moses added the comment: Great, thanks so much. It works with the patch. So will this patch be included in the next released version of Python? -- ___ Python tracker __

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It needs to approved and merged by a core dev so that it will be available by 3.7.6 and 3.8.1. To clarify the calls are recorded in 3.7.5 and 3.8.0 in mock_calls. It's a problem with assert_has_calls and autospec. As a workaround you can turn off a

[issue21478] mock calls don't propagate to parent (autospec)

2019-10-15 Thread Caris Moses
Caris Moses added the comment: I see. Thanks for your help! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-10-15 Thread Ned Deily
Change by Ned Deily : -- keywords: +3.8regression nosy: +lukasz.langa versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-l

[issue38488] Update bundled pip to 19.3

2019-10-15 Thread Xavier Fernandez
Change by Xavier Fernandez : -- components: Library (Lib) nosy: Xavier Fernandez priority: normal pull_requests: 16363 severity: normal status: open title: Update bundled pip to 19.3 type: enhancement ___ Python tracker

[issue38489] Python 3.7 documentation is unavailable for download

2019-10-15 Thread Daniel Schlomer
New submission from Daniel Schlomer : All the download links at https://docs.python.org/3.7/download.html return a 404 error. -- messages: 354751 nosy: schlomer priority: normal severity: normal status: open title: Python 3.7 documentation is unavailable for download type: behavior ver

[issue38489] Python 3.7 documentation is unavailable for download

2019-10-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The full documentation builds of the current state of the docs, including the downloadable packages, occur only once every 24 hours and the 3.7.5 just missed the last iteration. It looks like they should appear in about 4 or 5 hours. Try

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I just discovered that the assignment operator leaks variables out of comprehensions. >>> [(j:=i*i)+1/j for i in range(1, 3)] [2.0, 4.25] >>> j 4 >>> g = ((j:=i*i*i)+1/j for i in range(1, 3)) >>> list(g) [2.0, 8.125] >>> j 8 So it does not supersedes this

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-15 Thread Tymek Wołodźko
New submission from Tymek Wołodźko : Covariance and Pearson's correlation are one of the most basic bivariate statistics. https://en.wikipedia.org/wiki/Covariance https://en.wikipedia.org/wiki/Pearson_correlation_coefficient -- messages: 354754 nosy: Tymek Wołodźko priority: normal sev

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-15 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16364 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16813 ___ Python tracker ___ __

[issue32856] Optimize the `for y in [x]` idiom in comprehensions

2019-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +16365 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16814 ___ Python tracker ___

[issue38482] BUG in codecs.BufferedIncrementalDecoder

2019-10-15 Thread Jim Carroll
Jim Carroll added the comment: I understand. btw; I did a deep dive on cpython codebase, and the only references to codecs.iterencode()/iterdecode() is in ./Lib/tests/test_codecs.py. I suspect functions are not used by many people. The patch I proposed was a three line change that would all

[issue17123] Add OCSP support to ssl module

2019-10-15 Thread Bernie Hackett
Bernie Hackett added the comment: OCSP is the only way Let's Encrypt supports revocation. It would be really useful to have stapling verification supported in the standard library, even just the callback support PyOpenSSL supports. https://letsencrypt.org/docs/revoking/ -- nosy: +be

[issue38491] Can not build Python 3.8.0 on Linux - missing dependencies

2019-10-15 Thread devlocalca
New submission from devlocalca : I can not build the 3.8.0 source code on Linux due to missing dependencies that I cannot find. More information here: https://www.reddit.com/r/Python/comments/digewe/python_38_not_possible_to_install_on_linux_why/ Can someone please show me how to build/insta

[issue17123] Add OCSP support to ssl module

2019-10-15 Thread Shane Harvey
Change by Shane Harvey : -- nosy: +ShaneHarvey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16366 pull_request: https://github.com/python/cpython/pull/16815 ___ Python tracker ___ __

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the bug on my laptop with the command: ./python -u -m test test_asyncio -m test.test_asyncio.test_sslproto.SelectorStartTLSTests.test_start_tls_server_1 -F -j100 It's a race condition in the test itself, not in asyncio. PR 16815 fix it. I a

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: > I also got access to Zachary Ware's Gentoo buildbot worker where I can also > easily reproduce the bug using "... -F -j2". FYI disabling TLSv1.3 works around the issue on this worker. (It doesn't fix the bug, only hides it.) -- __

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: FYI "test_start_tls_server_1()" is failing since at least 2017-12-30: https://bugs.python.org/issue32458#msg309244 I hope that my latest fix will be the last to finally make the test stable. But I always write that, and the bug always strike me in my back. So

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset fab4ef2df0857ab0c97f3058ac5ec3280c4eb891 by Victor Stinner in branch 'master': bpo-35998: Fix test_asyncio.test_start_tls_server_1() (GH-16815) https://github.com/python/cpython/commit/fab4ef2df0857ab0c97f3058ac5ec3280c4eb891 -- _

  1   2   >