[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: For each type, we need at least a test that creates a socket pair and successfully transfers data through the wire. I don't know what additional things are required. For example, on reading about SOCK_SEQ_PACKET I've found that recvmsg() is highly

[issue29930] Waiting for asyncio.StreamWriter.drain() twice in parallel raises an AssertionError when the transport stopped writing

2019-11-04 Thread Callum Ward
Callum Ward added the comment: Hi, I'm a new contributor: is there any consensus on what or if something needs to be done? If so, I can try and take forward the patch. -- nosy: +callumquick ___ Python tracker

[issue23692] Undocumented feature prevents re module from finding certain matches

2019-11-04 Thread Jackson Riley
Jackson Riley added the comment: Ah thank you very much Serhiy, that's super helpful! -- ___ Python tracker ___ ___

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2019-11-04 Thread Ethan Furman
Ethan Furman added the comment: I came across this /32 issue today trying to iterate over the hosts in 127.0.0.1/32. I think it's fair to say that any /32 network has precisely one host, and that host should by returned by IPv4Network().hosts(). -- nosy: +ethan.furman

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-04 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hey, I'm not exactly clear what the required fix is here and would appreciate some guidance, is it in the documentation or in the way the error is handled? -- ___ Python tracker

[issue23692] Undocumented feature prevents re module from finding certain matches

2019-11-04 Thread Jackson Riley
Jackson Riley added the comment: Hi Matthew, thank you for your suggestions of where to start. Could you possibly give a pointer to the place in the code where the 'capture changed' counter is incremented? I had a bit of a hunt and couldn't find it but may have been looking in the wrong

[issue15243] Misleading documentation for __prepare__

2019-11-04 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected

2019-11-04 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Callum Ward
Callum Ward added the comment: A matter of creating tests to allow test enabling of new socket types I could attempt, but new protocol/transport types may be beyond me. -- ___ Python tracker

[issue38599] Deprecate creation of asyncio object when the loop is not running

2019-11-04 Thread Callum Ward
Callum Ward added the comment: Hi, I'm a new contributor and this issue looks like an interesting enhancement: is there any consensus forming on what we want to limit to e.g. raising depreciation warnings when these first-class classes are created without running event loop? --

[issue38608] Undocumented behavior that IsolatedAsyncioTestCase would enable event loop debug mode

2019-11-04 Thread Callum Ward
Callum Ward added the comment: Hi, is there anything that needs to be fixed or done here? -- nosy: +callumquick ___ Python tracker ___

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-04 Thread PypeBros
Change by PypeBros : -- keywords: +patch pull_requests: +16558 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17045 ___ Python tracker ___

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-04 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm going to have to rescind the above statements. I was able to implement a > new prototype of asyncio.ThreadPool (using ThreadPoolExecutor) that spawns > it's threads asynchronously on startup. Since this one a bit more involved > than the previous code

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's the value of PyGILState_Check() before the call to PyGILState_Ensure()? PyGILState_Ensure() and PyGILState_Release() should bracket code where you're not sure about the current GIL state, but need the GIL. The Release function only undoes the

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: This issue added this FIXME: /* Due to the macros in which it's used, _Py_CheckRecursionLimit is in the stable ABI. It should be removed therefrom when possible. */ FYI I proposed PR 17046 to fix it ;-) -- nosy: +vstinner

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-04 Thread PypeBros
New submission from PypeBros : in urllib/request.py, when trying to use HTTP Digest Authentication with a server that replies with `WWW-Authenticate: Digest` where `qop="auth,auth-int"` rather than mere `qop="auth"` the connection fails to establish with a "qop 'auth,auth-int' is

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Malversán
Malversán added the comment: I do not have the answer about getting message boundaries at lower levels, but from a high-level point of view SOCK_SEQ_PACKET gives atomic reads, with no need to check for message boundaries yourself. Every time you read from a SOCK_SEQ_PACKET socket you get an

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: This issue reminds me bpo-33721: "os.path functions that return a boolean result like exists(), lexists(), isdir(), isfile(), islink(), and ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError

[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-11-04 Thread Anj-A
Change by Anj-A <2017...@gmail.com>: -- keywords: +patch pull_requests: +16560 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17047 ___ Python tracker

[issue23692] Undocumented feature prevents re module from finding certain matches

2019-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Matthew referred to the code of the regex module (of which he is the author). https://pypi.org/project/regex/ -- ___ Python tracker ___

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-04 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hi all, I'm a newcomer interested in doing a small fix. Wondering if anyone's working on this at the moment? -- nosy: +Anj-A ___ Python tracker

[issue38644] Pass explicitly tstate to function calls

2019-11-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16559 pull_request: https://github.com/python/cpython/pull/17046 ___ Python tracker ___

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: How to get the message boundary without recvmsg()? Sorry, I'm not familiar with seqpacket. -- ___ Python tracker ___

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Another question: does SSL/TLS make sense for seqpacket? -- ___ Python tracker ___ ___

[issue11354] argparse: nargs could accept range of options count

2019-11-04 Thread Alex
Alex added the comment: I've had a look at the most recent patch and the code surrounding it, and I would be happy to take on the work to update the code and testing. However, > - It's easy to test for this range after parsing, with '*' or '+' nargs. So > the main thing this patch adds is

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Callum Ward
Callum Ward added the comment: Hi Andrew, I'm a new contributor, but this sounds like a pretty cool enhancement. Would you be able to elaborate on what kind of things might be required to support each new socket type and test them in particular so I can see if I can take it on?

[issue38684] hashlib: build fails when blake2 is disabled in OpenSSL

2019-11-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6552563b3d5061816720a5a6c7d4ffd6ba35b98b by Christian Heimes (Alexandru Ardelean) in branch 'master': bpo-38684: haslib: fix build when Blake2 not enabled in OpenSSL (#17043)

[issue38684] hashlib: build fails when blake2 is disabled in OpenSSL

2019-11-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +16557 pull_request: https://github.com/python/cpython/pull/17044 ___ Python tracker ___

[issue38621] Bad decoding of encoded-words in unstructured email headers

2019-11-04 Thread Fred Drake
Change by Fred Drake : -- resolution: fixed -> rejected stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Malversán
Malversán added the comment: It has a certain logic to recommend recvmsg() in place of recv(), as SOCK_SEQ_PACKET is characterized by transmitting entire messages only. But it has to be noted that my current hack (described above) is working for SOCK_SEQ_PACKET sockets with no modification

[issue38608] Undocumented behavior that IsolatedAsyncioTestCase would enable event loop debug mode

2019-11-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: At first, would be nice to figure out what "invalid line reported" does mean. What text is reported and what is expected? -- ___ Python tracker

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-04 Thread Christian Boltz
New submission from Christian Boltz : The following test script works with Python 3.7 (and older), but triggers an endless loop with Python 3.8: #!/usr/bin/python3 import shutil import os os.mkdir('/dev/shm/t') os.mkdir('/dev/shm/t/pg') with open('/dev/shm/t/pg/pol', 'w+') as f:

[issue38652] Remove/update provisional note for asyncio.BufferedProtocol

2019-11-04 Thread Kyle Stanley
Kyle Stanley added the comment: > Hey, I've done the change and opened a pull request for it (I'm working with > Ben and I've let him know) Make sure to change the title of the PR to "bpo-: ", this will automatically attach the PR to the associated bpo issue. For example, if your PR title

[issue38652] Remove/update provisional note for asyncio.BufferedProtocol

2019-11-04 Thread Anj-A
Change by Anj-A <2017...@gmail.com>: -- keywords: +patch pull_requests: +16563 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17047 ___ Python tracker

[issue38687] Expose 'adler32_combine' function from zlib

2019-11-04 Thread Callum Attryde
Change by Callum Attryde : -- keywords: +patch pull_requests: +16561 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17048 ___ Python tracker ___

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-04 Thread Kyle Stanley
Kyle Stanley added the comment: > since the new threads are spawned in ThreadPoolExecutor *after* > executor.submit() is called It's also worth mentioning that ThreadPoolExecutor only spawns up to one additional thread at a time for each executor.submit() called. --

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

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: I've flagged this as a release blocker so the Release Manager can make a call about whether this should hold up future releases. -- nosy: +brett.cannon priority: normal -> release blocker ___ Python tracker

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23692] Undocumented feature prevents re module from finding certain matches

2019-11-04 Thread Jackson Riley
Jackson Riley added the comment: I've got a bit confused and am doubting myself - is the below output expected? >>> m = re.match('(?:()|(?(1)()|z)){1,2}(?(2)a|z)', 'a') >>> m.groups() ('', '') >>> m = re.match('(?:()|(?(1)()|z)){1,2}(?(1)a|z)', 'a') >>> m.groups() ('', None) The first pattern

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure there is much in common between this and issue33721. There are many ways to get a file path unrepresentable at the OS level. But I do not know any valid case for getting an out-of-range file descriptor. I am not convinced there is a bug

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: @Mark are you strongly opposed because we're providing an API for changing the eval function in the CPython API and you think it should be in the private API? Or you objecting to PEP 523 all-up (based on your list of objections)? Either way the PEP was

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Dave Johansen
Dave Johansen added the comment: I can't. I just know that I'm running this process and this crash happens. Any recommendations on how to diagnose that? -- ___ Python tracker

[issue32309] Implement asyncio.run_in_executor shortcut

2019-11-04 Thread Kyle Stanley
Kyle Stanley added the comment: > Nice work! This is a great excercise, but we can really just use > concurrent.futures.ThreadPool as is. Spawning threads is fast. As I mentioned > before all we need to do is to design *our* API to NOT initialize pools in > __init__, that's it. The design

[issue38687] Expose 'adler32_combine' function from zlib

2019-11-04 Thread Callum Attryde
New submission from Callum Attryde : zlib contains a function for combining Adler32 checksums which is not currently exposed by the Python module. This enhancement adds that function to Python -- components: Extension Modules messages: 355977 nosy: callumattryde priority: normal

[issue38652] Remove/update provisional note for asyncio.BufferedProtocol

2019-11-04 Thread Anj-A
Anj-A <2017...@gmail.com> added the comment: Hey, I've done the change and opened a pull request for it (I'm working with Ben and I've let him know) -- nosy: +Anj-A ___ Python tracker

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Can recv() get two messages at once? What is the behavior if the buffer size passed into recv() is smaller than the message length? -- ___ Python tracker

[issue38644] Pass explicitly tstate to function calls

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4b1e3d7c64985f5d5b00f6cc9a1c146bbbfd613 by Victor Stinner in branch 'master': bpo-38644: Add Py_EnterRecursiveCall() to the limited API (GH-17046) https://github.com/python/cpython/commit/f4b1e3d7c64985f5d5b00f6cc9a1c146bbbfd613 --

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: Basically you have to figure out where that bad memory came from and that's just plain hard in C short of slowly cutting out code until you get a small reproducer. Typically these sorts of issues are almost always in the extension modules, but your case is

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2019-11-04 Thread Malversán
Malversán added the comment: In my scenario that buffer overrun never happens, maybe because I use messages that are not big enough to overflow the default recv() buffer size. But I think I can confirm that multiple messages are never received in an atomic read, even if they are being issued

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist

2019-11-04 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: Can you trace this to actually being Python's fault? Unfortunately you're using two extension modules who both could be at fault with this. -- nosy: +brett.cannon ___ Python tracker

[issue38690] Command line option with &/or without a space results in the same outcome

2019-11-04 Thread jason gors
New submission from jason gors : The syntax in the Command line documentation was unexpected regarding the `-m` option (specifically `python -mtimeit`) [0]. Showing this: ``` python -mtimeit "range(100)" # behaving equivalent to this: python -m timeit "range(100)" ``` This led me to

[issue16575] ctypes: unions as arguments

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: Same issue on x86 Gentoo Refleaks 3.7: test_ctypes leaked [174, 174, 174] references, sum=522 test_ctypes leaked [76, 78, 76] memory blocks, sum=230 https://buildbot.python.org/all/#/builders/114/builds/631 --

[issue27994] In the argparse help(argparse) prints weird comments instead of good docstrings

2019-11-04 Thread Lewis Gaul
Change by Lewis Gaul : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27994] In the argparse help(argparse) prints weird comments instead of good docstrings

2019-11-04 Thread Lewis Gaul
Lewis Gaul added the comment: This doesn't seem to be the case [anymore] to me, should this be closed? -- nosy: +Lewis Gaul ___ Python tracker ___

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

2019-11-04 Thread miss-islington
miss-islington added the comment: New changeset 4c22e1665c4d8e8fa31bd7aa7b403480d9be5ce2 by Miss Islington (bot) in branch '3.8': closes bpo-37633: Reëxport some function compatibility wrappers for macros in ``pythonrun.h``. (GH-17056)

[issue38644] Pass explicitly tstate to function calls

2019-11-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16566 pull_request: https://github.com/python/cpython/pull/17052 ___ Python tracker ___

[issue37373] Configuration of windows event loop for libraries

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: > Is it be possible to backport this inside the standard ProactorEventLoop of > Python-3.8.1 ? As things are currently broken, no kitten would be armed > https://github.com/python-trio/trio/pull/1269 No, we don't add features to minor releases. If you need

[issue38694] docs.python.org does not switch version properly

2019-11-04 Thread Dong-hee Na
New submission from Dong-hee Na : 1. open https://docs.python.org/3.8/whatsnew/3.8.html 2. choose dev (3.9) 3. 3.9 whats news should be shown but still showing 3.8 -- assignee: docs@python components: Documentation messages: 356006 nosy: corona10, docs@python priority: normal severity:

[issue38644] Pass explicitly tstate to function calls

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 17269090940aa20f6079a6b9f27ae319f8cdae14 by Victor Stinner in branch 'master': bpo-38644: Pass tstate to _Py_CheckFunctionResult() (GH-17050) https://github.com/python/cpython/commit/17269090940aa20f6079a6b9f27ae319f8cdae14 --

[issue25522] IDLE: warn if save-as name matches stdlib name

2019-11-04 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a pull request for this issue. -- nosy: +ZackerySpytz ___ Python tracker ___ ___

[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2019-11-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: > I have encountered a minor bug with this new feature. Please open a new issue. -- ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16564 pull_request: https://github.com/python/cpython/pull/17050 ___ Python tracker ___

[issue38644] Pass explicitly tstate to function calls

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset be434dc0380d9f5c7c800de9943cc46d55fd9491 by Victor Stinner in branch 'master': bpo-38644: Pass tstate to Py_EnterRecursiveCall() (GH-16997) https://github.com/python/cpython/commit/be434dc0380d9f5c7c800de9943cc46d55fd9491 --

[issue25522] IDLE: warn if save-as name matches stdlib name

2019-11-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16565 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17051 ___ Python tracker

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: > IMO this punches a big hole in the Python execution model, but provides no > benefit. This PEP is about fixing a Python 3.8 regression. In Python 3.7, it was possible to get and set frame_eval. In Python 3.8, it's no longer possible. One option to fix

[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2019-11-04 Thread STINNER Victor
New submission from STINNER Victor : When using python3 -E or python3 -I, PYTHONCASEOK environment variable should be ignored by importlib. See an email sent in 2012: https://mail.python.org/pipermail/python-dev/2012-December/123403.html See importlib._bootstrap_external._relax_case attribute

[issue27994] In the argparse help(argparse) prints weird comments instead of good docstrings

2019-11-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-04 Thread Ammar Askar
Ammar Askar added the comment: Aah actually I was looking at an older version of the docs, the documentation now says, "if the address is allocated for private networks" which is actually misleading. The addresses here aren't all private networks:

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

2019-11-04 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +16567 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17056 ___ Python tracker

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

2019-11-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +16568 pull_request: https://github.com/python/cpython/pull/17057 ___ Python tracker ___

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

2019-11-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 62161ce989d7d4fe2b0e6899a54da20feeddc798 by Benjamin Peterson in branch 'master': closes bpo-37633: Reëxport some function compatibility wrappers for macros in ``pythonrun.h``. (GH-17056)

[issue38692] add a pidfd child process watcher

2019-11-04 Thread Benjamin Peterson
New submission from Benjamin Peterson : Recent versions of Linux has built out support for pidfd, a way to do process management with file descriptors. I wanted to try it out, so implemented a pidfd-based child watcher for asyncio. My WIP progress patch is attached. It passes all asyncio

[issue38591] Deprecate Process Child Watchers

2019-11-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: FWIW, I started implementing a pidfd-based child process watcher over on #38692. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue38693] Use f-strings instead of str.format within importlib

2019-11-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +16569 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17058 ___ Python tracker

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-04 Thread pascalhofmann
pascalhofmann added the comment: 0.0.0.0/0 is a network with addresses from 0.0.0.0 to 255.255.255.255. 0.0.0.0/8 is a network with addresses from 0.0.0.0 to 0.255.255.255. So 4278190080 out of 4294967296 addresses in 0.0.0.0/0 clearly are no private addresses. --

[issue38475] Break Statement

2019-11-04 Thread Lewis Gaul
Lewis Gaul added the comment: Should this issue be closed? -- nosy: +Lewis Gaul ___ Python tracker ___ ___ Python-bugs-list

[issue38430] Memory leak in ThreadPoolExecutor + run_in_executor

2019-11-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38475] Break Statement

2019-11-04 Thread Zachary Ware
Zachary Ware added the comment: Absent any response from the OP, I'm going to go with yes. Devor, if you can reduce your example to show a bug in the Python interpreter or standard library, please reopen with that example. -- resolution: -> not a bug stage: -> resolved status:

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Dan Snider
New submission from Dan Snider : When the following program has been input (into 32 bit 3.8.0 Python running on windows 10), all IDLE processes and windows will immediately and irrevocably hang the instant the open parentheses at the end of the statement "Object(" is rendered. However

[issue23692] Undocumented feature prevents re module from finding certain matches

2019-11-04 Thread Matthew Barnett
Matthew Barnett added the comment: It's been many years since I looked at the code, and there have been changes since then, so some of the details might not be correct. As to have it should behave: re.match('(?:()|(?(1)()|z)){1,2}(?(2)a|z)', 'a') Iteration 1. Match the repeated part. Group

[issue16575] ctypes: unions as arguments

2019-11-04 Thread STINNER Victor
STINNER Victor added the comment: This change introduced a reference leak on Windows. Example on 3.7: https://buildbot.python.org/all/#/builders/132/builds/645 test_ctypes leaked [174, 174, 174] references, sum=522 test_ctypes leaked [76, 77, 77] memory blocks, sum=230 -- nosy:

[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

2019-11-04 Thread Ammar Askar
Ammar Askar added the comment: The documentation for is_private notes: Returns: A boolean, True if the address is reserved per RFC 4193. iana-ipv4-special-registry or iana-ipv6-special-registry. If we take a look at the iana-ipv4-special-registry then 0.0.0.0/8 does show up there:

[issue38590] argparse unexpected behavior with argument group inside mutually exclusive group

2019-11-04 Thread paul j3
paul j3 added the comment: With one exception, groups are not designed or intended to be nested. But by inheritance (from _ActionsContainer) nesting isn't blocked nor does it raise any errors. As you surmise, an ArgumentGroup, is used only for grouping the help lines. By default that are

[issue38693] Use f-strings instead of str.format within importlib

2019-11-04 Thread Gregory P. Smith
New submission from Gregory P. Smith : importlib is full of str.format calls, modernizing it to use f-strings is a slight performance win and much more readable. -- assignee: gregory.p.smith messages: 356005 nosy: gregory.p.smith priority: normal severity: normal status: open title:

[issue38676] Unable to install Python 3.8 on Windows 10

2019-11-04 Thread BRT
BRT added the comment: I find a solution: during the installation process I unchecked the "associate with python files" and it worked! -- stage: -> resolved status: open -> closed ___ Python tracker

[issue38676] Unable to install Python 3.8 on Windows 10

2019-11-04 Thread BRT
Change by BRT : -- resolution: -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since isinstance(Object.__call__, types.MethodType) is False, the 'fob' in 'inspect.signature(fob)' is Object. (See the initial get_argspec code.) Indeed, 'inspect.signature(Object)' results in the traceback following inspect.signature(fob) and

[issue38695] IDLE should restart instead of hanging when subprocess exits

2019-11-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : This is a spinoff from #38689, about 'strange_callable(' in Shell hanging, because there is an uncaught exception is the run process. (See issue for 'strange_callable'.) Running IDLE from Windows Command Prompt, Windows eventually shows the circle

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Further experiments suggest a fix for the hang, which is not specific to this example. See new issue #38695. -- stage: -> test needed type: -> behavior versions: +Python 3.7, Python 3.9 ___ Python tracker

[issue38684] hashlib: build fails when blake2 is disabled in OpenSSL

2019-11-04 Thread Alexandru Ardelean
Change by Alexandru Ardelean : -- keywords: +patch pull_requests: +16556 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17043 ___ Python tracker

[issue38685] can't create a venv with a dash in the name

2019-11-04 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : I tried to create a venv via python -m venv here are the commands: > python --version Python 3.8.0 > python -m venv ~/.virtualenvs/test-proftpd Error: [Errno 40] Too many levels of symbolic links: '/home/stephane/.virtualenvs/test-proftpd/bin/python'

[issue38685] can't create a venv with a dash in the name

2019-11-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: close, bad manip :/ -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2019-11-04 Thread serge-sans-paille
serge-sans-paille added the comment: @ned I(d rather see this as an evolution of Issue13631, as this solves a problem when libreadline and libedit are both loaded in the same executable. As such, using libedit instead of readline wouldn't solve the issue: what if the program Python is

[issue38682] struct timeval is not declared

2019-11-04 Thread Mithil
New submission from Mithil : pytime.h compilation gives warnings - pytime.h:123:59: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv);

[issue38674] RotatingFileHandler issue: logs in the file are printed in incorrect order.

2019-11-04 Thread Vinay Sajip
Vinay Sajip added the comment: You're doing it wrong. I inserted a print statement just before the RotatingFileHandler for email.log is created. Here's what was printed: Creating RFH email.log Creating RFH email.log Creating RFH email.log Creating RFH email.log Creating RFH email.log In the

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-04 Thread Mark Shannon
Mark Shannon added the comment: I'm strongly opposed to this change. PEP 523 does not specify what the semantics of changing the interpreter frame evaluator actually is: Is the VM obliged to call the new interpreter? What happens if the custom evaluator leaves the VM in a inconsistent state?

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-04 Thread Mark Shannon
Mark Shannon added the comment: Fabio, OOI what are you trying achieve by changing the frame evaluator? -- ___ Python tracker ___

  1   2   >