[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 28fca0c422b425a6be43be31add0a5328c16b0b8 by Victor Stinner 
(Zackery Spytz) in branch 'master':
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051)
https://github.com/python/cpython/commit/28fca0c422b425a6be43be31add0a5328c16b0b8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13981
pull_request: https://github.com/python/cpython/pull/14140

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13982
pull_request: https://github.com/python/cpython/pull/14141

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

According to the discussion in PR 14051: if os.dup() fails to make the new file 
descriptor new inheritable for a character device, the error must not be 
ignored. Instead, the caller is supposed to use os.dup(fd, inheritable=False).

Before *this bugfix*, os.dup() didn't respect its contract: fd2 was inheritable 
sometimes. Now the caller is aware of such special case and so can handle it 
properly.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35021] Assertion failures in datetimemodule.c.

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

Can we close this or is there anything further needed for this issue?

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36225] Lingering subinterpreters should be implicitly cleared on shutdown

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

Ping.  It was marked as a 3.7regression but perhaps it should now be just 
targeted for 3.8.

--
nosy: +ned.deily
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread Paul Ganssle


Paul Ganssle  added the comment:

I think the reason for the difference here is in the `no_error` function you 
never actually create the coroutine `true()`, so there's nothing to warn about.

One thing that's confusing things about this example is that the `false()` 
evaluates to True, because it returns a coroutine object (rather than the value 
`False`):

>>> async def false(): 
...: return False 
...:
 

>>> bool(false())   

True

If you expand your `false() or true()` statement, it's equivalent to:

x = false()
if not x:
x = true()

return await x

Since `false()` is truthy, you don't expect true() to ever be called, hence no 
warning.

@YoSTEALTH Does this make sense? Does it solve the issue?

--
nosy: +p-ganssle

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

Ping.  This was marked as a 3.7regression and there is a PR waiting for review. 
 Do we have plans to remove _dummy_thread in 3.8 or 3.9?

--
nosy: +ned.deily
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

Ping.  This was marked as a 3.7regression.  Is a change needed?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34806] distutils tests fail with recent 3.7 branch

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

Since there has been no followup on this, I assume it is no longer a problem 
for anyone and am closing.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +13983
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14142

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

What to do here?  This was originally filed as a "release blocker" and I 
allowed 3.7.3 to go out without a resolution for it since we had agreed to 
@christian.heimes proposal to defer full support of OpenSSL 1.1.1 until 3.7.4.  
Now we are approaching code cutoff for 3.7.4.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36403] AsyncIterator on 3.7: __aiter__ no longer honors finally blocks

2019-06-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

>From my understanding yield inside __aiter__ is a forbidden construction. Even 
>if parser allows it the statement doesn't make any sense.

I'm very interested to hear Yuri opinion.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37189] PyRun_String not exported in python38.dll

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Attached PR 14142 fix bpo-34646 regression.

> It shouldn't break existing code because PyRun_String has a macro expansion 
> to PyRun_StringFlags. ABI compatibility between major releases is not 
> provided.

Many applications don't use Python header files, but access directly libpython. 
For example, py2app uses dlsym():
https://bitbucket.org/ronaldoussoren/py2app/src/default/py2app/apptemplate/src/main.c

PyInstaller uses GetProcAddress() on Windows or dlsym() on other platforms:
* 
https://github.com/pyinstaller/pyinstaller/blob/1844d69f5aa1d64d3feca912ed1698664a3faf3e/bootloader/src/pyi_python.h
* 
https://github.com/pyinstaller/pyinstaller/blob/1844d69f5aa1d64d3feca912ed1698664a3faf3e/bootloader/src/pyi_pythonlib.c

That's why PyRun_String() is defined as an alias using a macro *and* as a 
function in pythonrun.c:

#undef PyRun_String
PyObject *
PyRun_String(const char *str, int s, PyObject *g, PyObject *l)
{
return PyRun_StringFlags(str, s, g, l, NULL);
}

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37312] Remove deprecated _dummy_thread and dummy_threading modules

2019-06-17 Thread STINNER Victor


New submission from STINNER Victor :

The _dummy_thread and dummy_threading modules are deprecated since Python 3.7 
which now requires threading support. Attached PR removes these modules.

--
components: Library (Lib)
messages: 345810
nosy: vstinner
priority: normal
severity: normal
status: open
title: Remove deprecated _dummy_thread and dummy_threading modules
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37312] Remove deprecated _dummy_thread and dummy_threading modules

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +13984
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14143

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

I created bpo-37312: "Remove deprecated _dummy_thread and dummy_threading 
modules" (in Python 3.9).

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37312] Remove deprecated _dummy_thread and dummy_threading modules

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.7 has been modified to always require threading support:

* https://bugs.python.org/issue31370
* https://mail.python.org/pipermail/python-dev/2017-September/149156.html

commit a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344
Author: Antoine Pitrou 
Date:   Thu Sep 7 18:56:24 2017 +0200
 
bpo-31370: Remove support for threads-less builds (#3385)
   
* Remove Setup.config
* Always define WITH_THREAD for compatibility.

--

In Python 3.8, the dummy_threading module is documented as:

"This module provides a duplicate interface to the threading module. It was 
meant to be imported when the _thread module was not provided on a platform.

Be careful to not use this module where deadlock might occur from a thread 
being created that blocks waiting for another thread to be created. This often 
occurs with blocking I/O."

https://docs.python.org/dev/library/dummy_threading.html

And the doc starts with: "Deprecated since version 3.7: Python now always has 
threading enabled. Please use threading instead."

IMHO it's now time to remove this module.

--

I proposed to remove these modules today after I saw a bug on _dummy_thread: 
bpo-36688.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c5905f39bcf4ef895d42eede41bb5a2f071a501d by Victor Stinner (Joost 
Lek) in branch 'master':
bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)
https://github.com/python/cpython/commit/c5905f39bcf4ef895d42eede41bb5a2f071a501d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13985
pull_request: https://github.com/python/cpython/pull/14144

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13986
pull_request: https://github.com/python/cpython/pull/14145

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

> Ping.  This was marked as a 3.7regression and there is a PR waiting for 
> review.

PR 12943 seems reasonable to me. I merged it.

> Do we have plans to remove _dummy_thread in 3.8 or 3.9?

I created bpo-37312 for Python 3.9. IMHO it's too late for 3.8.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

PR 13893 with an additional lock sounds like a reasonable solution. The code 
should be skipped if the thread is a daemon thread.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24255] Replace debuglevel-related logic with logging

2019-06-17 Thread Aldwin Pollefeyt


Aldwin Pollefeyt  added the comment:

PR waiting review, Stage should be 'patch review'

--
nosy: +aldwinaldwin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-17 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +13987
pull_request: https://github.com/python/cpython/pull/14146

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Martin Panter: In addition to PR 13893 change, what do you think of also using 
a weakref? It might make the code even more reliable if something goes wrong.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37313] test_concurrent_futures stopped after 25 hours on AMD64 Windows7 SP1 3.7

2019-06-17 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 Windows7 SP1 3.7:
https://buildbot.python.org/all/#/builders/130/builds/935

0:23:27 load avg: 7.92 [412/416] test_plistlib passed -- running: test_venv (1 
min 26 sec), test_concurrent_futures (23 min 26 sec)
0:23:32 load avg: 7.29 [413/416] test_argparse passed -- running: test_venv (1 
min 31 sec), test_concurrent_futures (23 min 31 sec)
0:23:34 load avg: 7.29 [414/416] test_venv passed (1 min 32 sec) -- running: 
test_concurrent_futures (23 min 32 sec)
0:23:37 load avg: 6.71 [415/416] test_largefile passed -- running: 
test_concurrent_futures (23 min 35 sec)
running: test_concurrent_futures (24 min 6 sec)
running: test_concurrent_futures (24 min 36 sec)
...
running: test_concurrent_futures (25 hour 25 min)
running: test_concurrent_futures (25 hour 26 min)
running: test_concurrent_futures (25 hour 26 min)
running: test_concurrent_futures (25 hour 27 min)
running: test_concurrent_futures (25 hour 27 min)
running: test_concurrent_futures (25 hour 28 min)
program finished with exit code 1
elapsedTime=91968.468000

--
components: Tests
messages: 345818
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_concurrent_futures stopped after 25 hours on AMD64 Windows7 SP1 3.7
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset 351b0e793e35510e8cbbcbb455a1b9544e808cdd by Miss Islington (bot) 
in branch '3.7':
bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)
https://github.com/python/cpython/commit/351b0e793e35510e8cbbcbb455a1b9544e808cdd


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset ad505918a1829e6fa2a48a7665234d60a9377e98 by Miss Islington (bot) 
in branch '3.8':
bpo-36688: Adding an implementation of RLock in _dummy_thread (GH-12943)
https://github.com/python/cpython/commit/ad505918a1829e6fa2a48a7665234d60a9377e98


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread YoSTEALTH


YoSTEALTH  added the comment:

Yes, this was the previous conclusion.

In a large code base, its hard to find such solution easily! There are many 
cases where `await` is not called and `RuntimeWarning` is not raised. Hard to 
narrow down the exact problem.

Maybe there needs to be a better way to evaluate coroutine vs waiting for the 
garbage collection to happen to riase `RuntimeWarning`

Paul, thanks for taking time to answer :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37314] Compilation failed on AMD64 Debian root 3.8: undefined reference to _PyTraceMalloc_NewReference

2019-06-17 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 Debian root 3.8:
https://buildbot.python.org/all/#builders/211/builds/47

libpython3.8d.a(bytesobject.o): In function `_Py_NewReference':
/root/buildarea/3.8.angelico-debian-amd64/build/./Include/object.h:439: 
undefined reference to `_PyTraceMalloc_NewReference'
/root/buildarea/3.8.angelico-debian-amd64/build/./Include/object.h:439: 
undefined reference to `_PyTraceMalloc_NewReference'
/root/buildarea/3.8.angelico-debian-amd64/build/./Include/object.h:439: 
undefined reference to `_PyTraceMalloc_NewReference'
/root/buildarea/3.8.angelico-debian-amd64/build/./Include/object.h:439: 
undefined reference to `_PyTraceMalloc_NewReference'

--
components: Tests
messages: 345822
nosy: vstinner
priority: normal
severity: normal
status: open
title: Compilation failed on AMD64 Debian root 3.8: undefined reference to 
_PyTraceMalloc_NewReference
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36688] _dummy_thread lacks an RLock implementaiton

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Joost Lek for the fix and Karthikeyan Singaravelan for the bug report. 
It's now fixed in 3.7, 3.8 and master branches. I close the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 71589491ad0da27f57789b97354f6094a91e2eb3 by Victor Stinner (Miss 
Islington (bot)) in branch '3.7':
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) 
(GH-14141)
https://github.com/python/cpython/commit/71589491ad0da27f57789b97354f6094a91e2eb3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 693945d45dfe50c843970cab3e3aa1fa3a3eddbe by Victor Stinner (Miss 
Islington (bot)) in branch '3.8':
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051) 
(GH-14140)
https://github.com/python/cpython/commit/693945d45dfe50c843970cab3e3aa1fa3a3eddbe


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

It looks we missed the window for 3.7.4 here.  (I assume the Windows installer 
build is not using 1.1.1.  Steve?)  Talking with Christian about this in IRC, 
we agreed, the CI pipelines (Azure and travis) are now using 1.1.1c and I've 
put a request to the buildbot owners to upgrade to 1.1.1c if possible.  So 
let's retarget 1.1.1c for 3.7.5 then which will be right around the time 1.1.0 
support ends.  In the meantime, we should update other installers to 1.1.0k and 
1.0.2s.

--
title: Upgrade to OpenSSL 1.1.1b -> Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 
1.0.2s
versions: +Python 2.7, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37267] os.dup() creates an inheritable fd when handling a character file on Windows

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Zackery Spytz as usual!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37315] Deprecate using math.factorial() with floats

2019-06-17 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Currently math.factorial() accepts integer-like objects (including objects with 
defined __index__) as well as float instances with integral value (but not 
arbitrary float-like objects with defined __float__). I suppose this was happen 
because factorial() was the first integer functions in the math module, and all 
other functions accepted floats at that time. See also issue7550. But now we 
have more pure integer functions in the math module: gcd, isqrt, comb, perm. 
Seems accepting floats in factorial was a mistake. Now we can fix it, and 
deprecate using factorial() with floats.

Initial version of factorial() accepted also non-integral numbers (except 
float) with defined __int__. It was fixed in issue33083.

--
components: Extension Modules
messages: 345828
nosy: mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, stutzbach
priority: normal
severity: normal
status: open
title: Deprecate using math.factorial() with floats
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

The solution is called static analyzers and "type hints".
Mypy detects the absence of "await" pretty well.
In turn, CPython does the best in runtime mode for detecting not-awaited 
awaitables when possible.

I think we should close the issue, it doesn't show a bug but requests for 
nice-to-have thing which is solved by another tool.

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

No idea what to do.
SSL support is obviously broken.
Current code is too complex to maintain.

Yuri has a full reimplementation of ssl_proto.py in uvloop.
It *seem* to work and can be backported.

I'm sick now, can be ready to work back in a day or two.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37315] Deprecate using math.factorial() with floats

2019-06-17 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +13988
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14147

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13989
pull_request: https://github.com/python/cpython/pull/14148

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37297] function changed when pickle bound method object

2019-06-17 Thread Géry

Change by Géry :


--
nosy: +asvetlov, christian.heimes, vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Commit f6a47f3e316cede2a07a1f74a509f6d80ab8fef0 introduced a workaround on 
Windows and FreeBSD. It was removed by commit 
f0749da9a535375f05a2015e8960e8ae54877349 in bpo-35998... but then Windows 
restarted to fail:
https://bugs.python.org/issue35998#msg345644

So I wrote PR 14148 to reintroduce the workaround until someone finds time to 
have a look.

Note: this issue is open since October 2018.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34903] strptime %d handling of single digit day of month

2019-06-17 Thread Mike Gleen


Change by Mike Gleen :


--
pull_requests: +13990
pull_request: https://github.com/python/cpython/pull/14149

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c034b7824f5a7c50f2946ab3931633200e31d903 by Victor Stinner in 
branch 'master':
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
https://github.com/python/cpython/commit/c034b7824f5a7c50f2946ab3931633200e31d903


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13993
pull_request: https://github.com/python/cpython/pull/14151

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-17 Thread Zackery Spytz


New submission from Zackery Spytz :

new_mmap_object() should pass the fd variable to PySys_Audit(), not fileno.

Also, there's a missing call to va_end() in PySys_Audit() itself.

--
components: Extension Modules
messages: 345834
nosy: ZackerySpytz
priority: normal
severity: normal
status: open
title: mmap.mmap() passes the wrong variable to PySys_Audit()
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37301] CGIHTTPServer doesn't handle long POST requests

2019-06-17 Thread vsbogd


vsbogd  added the comment:

Yeah, I have seen this comment as well. As I see this code for the first time I 
am not very familiar with it. 

It seems that this explanation is related to the case when non-Python CGI 
script is executed:

os.dup2(self.rfile.fileno(), 0)
os.dup2(self.wfile.fileno(), 1)
os.execve(scriptfile, args, env)

https://github.com/python/cpython/blob/3a1d50e7e573efb577714146bed5c03b9c95f466/Lib/http/server.py#L1176-L1178

On one hand the comment seems reasonable: as fileno is duped one cannot just 
read from it ahead of time. On the other hand few lines earlier one can see:

# throw away additional data [see bug #427345]
while select.select([self.rfile], [], [], 0)[0]:
if not self.rfile.read(1):
break

https://github.com/python/cpython/blob/3a1d50e7e573efb577714146bed5c03b9c95f466/Lib/http/server.py#L1163-L1166

which also seems like reading ahead of time.

My opinion this case should be tested after fix and if it works then fix can be 
applied without hesitation.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset 0040903bbae043225499babae23649d896ea2eec by Miss Islington (bot) 
in branch '3.7':
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
https://github.com/python/cpython/commit/0040903bbae043225499babae23649d896ea2eec


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset 0040903bbae043225499babae23649d896ea2eec by Miss Islington (bot) 
in branch '3.7':
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
https://github.com/python/cpython/commit/0040903bbae043225499babae23649d896ea2eec


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13994
pull_request: https://github.com/python/cpython/pull/14151

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37316] mmap.mmap() passes the wrong variable to PySys_Audit()

2019-06-17 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +13995
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14152

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c034b7824f5a7c50f2946ab3931633200e31d903 by Victor Stinner in 
branch 'master':
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
https://github.com/python/cpython/commit/c034b7824f5a7c50f2946ab3931633200e31d903


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37231] Optimize calling special methods

2019-06-17 Thread Jeroen Demeyer


Change by Jeroen Demeyer :


--
pull_requests: +13996
pull_request: https://github.com/python/cpython/pull/14153

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13992
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/14150

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13991
pull_request: https://github.com/python/cpython/pull/14150

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

> (I assume the Windows installer build is not using 1.1.1.  Steve?)

After doing a little more homework and better understanding 
PCbuild/get_externals.bat, https://github.com/python/cpython-source-deps, and 
https://github.com/python/cpython-bin-deps and their twisting branches, it 
appears we *are* using 1.1.1, in particular, 1.1.1b for 3.7 and 3.8 Windows 
builds.  So:

1. Can/should be try to update to 1.1.1c for 3.7.4 on Windows, and

2. Should I try to update the macOS installer to 1.1.1c for 3.7.4?

For the latter, I'll give it a try and see how smoothly it goes before making a 
final decision.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset a5ddbfbf50715e3d4b90ad367ed6827c6cbcc52f by Miss Islington (bot) 
in branch '3.8':
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
https://github.com/python/cpython/commit/a5ddbfbf50715e3d4b90ad367ed6827c6cbcc52f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35031] test_asyncio test_start_tls_server_1 fails in AMD64 FreeBSD CURRENT buildbots

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset a5ddbfbf50715e3d4b90ad367ed6827c6cbcc52f by Miss Islington (bot) 
in branch '3.8':
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
https://github.com/python/cpython/commit/a5ddbfbf50715e3d4b90ad367ed6827c6cbcc52f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33725] Python crashes on macOS after fork with no exec

2019-06-17 Thread Ned Deily


Ned Deily  added the comment:

As far as I can tell, the only thing left to do for this issue is to add a 
documentation warning to the 3.7 documents similar to what was added to 3.8 but 
without the change in default.  A PR would be nice.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37315] Deprecate using math.factorial() with floats

2019-06-17 Thread Mark Dickinson


Mark Dickinson  added the comment:

+1 from me; let's make `factorial` consistent with the other integer-based  
math module functions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34506] Traceback logged when SSL handshake fails

2019-06-17 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I believe the issue is a duplicate for #37035 at least regarding traceback 
logging.

It can be closed, OSError exceptions are not logged anymore.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34506] Traceback logged when SSL handshake fails

2019-06-17 Thread Aymeric Augustin


Aymeric Augustin  added the comment:

Yes, that seems reasonable.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37313] test_concurrent_futures stopped after 25 hours on AMD64 Windows7 SP1 3.7

2019-06-17 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

The test run was stopped by me terminating the stuck processes on the buildbot 
worker itself.  This happens approximately once a month or so.

As of late, its been stuck in test_concurrent_futures, but it can get stuck in 
any test that uses multiprocessing (the spawned pool never terminates).

--
nosy: +jkloth

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2019-06-17 Thread Mark Summerfield


Mark Summerfield  added the comment:

When running a VirtualBox Windows 7 guest on Linux I have found that 
os.path.samefile() returns False when the filenames are the same, e.g.,

f = r'V:\pdfs\boson1.pdf'
same = os.path.samefile(f, f)
print(same) # expected True; got False

I mention it here because it may be part of the same problem.
I'm using Python 3.7.2.

--
nosy: +mark
versions: +Python 3.7 -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34506] Traceback logged when SSL handshake fails

2019-06-17 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Don't log OSError exceptions in asyncio transports

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37231] Optimize calling special methods

2019-06-17 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 0456df4a55ec9a4e8f4425df92bbe63a290f3f2f by Inada Naoki (Jeroen 
Demeyer) in branch 'master':
bpo-37231: remove _PyObject_FastCall_Prepend (GH-14153)
https://github.com/python/cpython/commit/0456df4a55ec9a4e8f4425df92bbe63a290f3f2f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36922] Implement Py_TPFLAGS_METHOD_DESCRIPTOR

2019-06-17 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 2e9954d3472a23919b96323fcd5bb6c1d6927155 by Inada Naoki (Jeroen 
Demeyer) in branch 'master':
bpo-36922: use Py_TPFLAGS_METHOD_DESCRIPTOR in lookup_maybe_method() (GH-13865)
https://github.com/python/cpython/commit/2e9954d3472a23919b96323fcd5bb6c1d6927155


--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36922] Implement Py_TPFLAGS_METHOD_DESCRIPTOR

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13997
pull_request: https://github.com/python/cpython/pull/14155

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36922] Implement Py_TPFLAGS_METHOD_DESCRIPTOR

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset 988fff5d0e7fccecbf776c08ec56695820b3b4a8 by Miss Islington (bot) 
in branch '3.8':
bpo-36922: use Py_TPFLAGS_METHOD_DESCRIPTOR in lookup_maybe_method() (GH-13865)
https://github.com/python/cpython/commit/988fff5d0e7fccecbf776c08ec56695820b3b4a8


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37312] Remove deprecated _dummy_thread and dummy_threading modules

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8bf08ee45b7c2341f0d0175b91892843a37c23da by Victor Stinner in 
branch 'master':
bpo-37312: Remove _dummy_thread and dummy_threading modules (GH-14143)
https://github.com/python/cpython/commit/8bf08ee45b7c2341f0d0175b91892843a37c23da


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37312] Remove deprecated _dummy_thread and dummy_threading modules

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

Bye bye dummy_threading. As explained in PR 14143, I kept a reference to 
dummy_threading in 2to3 on purpose. Keep it there is fine, it helps to port 
legacy Python 2 code to Python 3.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c by Victor Stinner in 
branch 'master':
bpo-37194: Add a new public PyObject_CallNoArgs() function (GH-13890)
https://github.com/python/cpython/commit/2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13998
pull_request: https://github.com/python/cpython/pull/14156

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36732] test_asyncio: test_huge_content_recvinto() fails randomly

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

New failure on AMD64 Windows7 SP1 3.8:
https://buildbot.python.org/all/#/builders/208/builds/75

==
ERROR: test_huge_content_recvinto 
(test.test_asyncio.test_sock_lowlevel.SelectEventLoopTests)
--
Traceback (most recent call last):
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_asyncio\test_sock_lowlevel.py",
 line 225, in test_huge_content_recvinto
self.loop.run_until_complete(
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\base_events.py", line 
608, in run_until_complete
return future.result()
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_asyncio\test_sock_lowlevel.py",
 line 211, in _basetest_huge_content_recvinto
nbytes = await self.loop.sock_recv_into(sock, buf)
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\selector_events.py", 
line 400, in sock_recv_into
return await fut
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\selector_events.py", 
line 409, in _sock_recv_into
nbytes = sock.recv_into(buf)
ConnectionResetError: [WinError 10054] An existing connection was forcibly 
closed by the remote host

(... test_asyncio re-run in verbose mode ...)

==
ERROR: test_huge_content 
(test.test_asyncio.test_sock_lowlevel.ProactorEventLoopTests)
--
Traceback (most recent call last):
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\windows_events.py", 
line 453, in finish_recv
return ov.getresult()
OSError: [WinError 64] The specified network name is no longer available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_asyncio\test_sock_lowlevel.py",
 line 170, in test_huge_content
self.loop.run_until_complete(
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\base_events.py", line 
608, in run_until_complete
return future.result()
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\test\test_asyncio\test_sock_lowlevel.py",
 line 157, in _basetest_huge_content
data = await self.loop.sock_recv(sock, DATA_SIZE)
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\proactor_events.py", 
line 690, in sock_recv
return await self._proactor.recv(sock, n)
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\windows_events.py", 
line 808, in _poll
value = callback(transferred, key, ov)
  File 
"C:\buildbot.python.org\3.8.kloth-win64\build\lib\asyncio\windows_events.py", 
line 457, in finish_recv
raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 64] The specified network name is no longer 
available

--
resolution: out of date -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 1ce2656f13e726b3b99d4c968926908cff1f460a by Victor Stinner in 
branch 'master':
bpo-37194: Complete PyObject_CallXXX() docs (GH-14156)
https://github.com/python/cpython/commit/1ce2656f13e726b3b99d4c968926908cff1f460a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13999
pull_request: https://github.com/python/cpython/pull/14157

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +14000
pull_request: https://github.com/python/cpython/pull/14158

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:

> bpo-37191: the new vector APIs declare "static inline" functions which are no 
> C89 compatible and so cause compilation issues on pygobject3, python-dbus, 
> xen (for example).

bpo-37191 have been fixed, so this issue can now be closed.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2019-06-17 Thread prince parker


prince parker  added the comment:

>From the log record, everything I can advise is that it neglected to open the 
>document containing data about progressing introduces. At a supposition, 
>another introduce was running (possibly fizzled?) and didn't tidy up 
>appropriately. 
https://antimalwareserviceexecutables.com/

Rebooting ought to by and large determination that. In the event that it 
doesn't, you're either taking a gander at genuine OS defilement (worth testing 
if some other MSI installers work - Anaconda does not utilize MSI) or plate 
debasement.

--
hgrepos: +383
nosy: +prince_parker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 71031cf4ed5ac9e330c8890b92379d9df383925b by Victor Stinner in 
branch '3.8':
bpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14157)
https://github.com/python/cpython/commit/71031cf4ed5ac9e330c8890b92379d9df383925b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ac4202ee4d53d6c0a07109e03795b70d91edbbb3 by Victor Stinner in 
branch '3.7':
bpo-37194: Complete PyObject_CallXXX() docs (GH-14156) (GH-14158)
https://github.com/python/cpython/commit/ac4202ee4d53d6c0a07109e03795b70d91edbbb3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +14001
pull_request: https://github.com/python/cpython/pull/14159

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37315] Deprecate using math.factorial() with floats

2019-06-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 231aad38493c871dd32930a21d256cbacd2ae20c by Serhiy Storchaka in 
branch 'master':
bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)
https://github.com/python/cpython/commit/231aad38493c871dd32930a21d256cbacd2ae20c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-17 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 1b8a46d59734a77cd1f5ffcf3bdfcaafd58a87e7 by Serhiy Storchaka in 
branch 'master':
bpo-35431: Test math.comb() and math.perm() for OverflowError only on CPython. 
(GH-14146)
https://github.com/python/cpython/commit/1b8a46d59734a77cd1f5ffcf3bdfcaafd58a87e7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37315] Deprecate using math.factorial() with floats

2019-06-17 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37317] asyncio gather doesn't handle custom exceptions that inherit from BaseException

2019-06-17 Thread Carlos Mermingas


New submission from Carlos Mermingas :

asyncio.gather doesn't handle custom exception exceptions that inherit from 
BaseException in the same manner that it handles those that inherit from 
Exception, regardless of whether return_exceptions is set to True or False.

In the example below, I am using return_exceptions=True. If the custom 
exception inherits from Exception, a list printed, as expected. Conversely, if 
the custom exception inherits from BaseException, it is propagated:


import asyncio


class CustomException(BaseException):  # It works if base class changed to 
Exception
pass


async def do_this(x):
if x == 5:
raise CustomException()
await asyncio.sleep(1)
print(f'THIS DONE: {x}')


async def main():
print('BEGIN')
tasks = [do_this(x) for x in range(1, 11)]
result = await asyncio.gather(*tasks, return_exceptions=True)
print(f'Result: {result}')
print('END')


asyncio.run(main())

--
components: Library (Lib)
messages: 345861
nosy: cmermingas
priority: normal
severity: normal
status: open
title: asyncio gather doesn't handle custom exceptions that inherit from 
BaseException
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37317] asyncio gather doesn't handle custom exceptions that inherit from BaseException

2019-06-17 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
components: +asyncio
nosy: +asvetlov, yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37194] Move new vector private declarations to the internal C API

2019-06-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5352cc41fa4eb5f0dc847709392e88473b8593b0 by Victor Stinner in 
branch 'master':
bpo-37194: Add PyObject_CallNoArgs() rationale (GH-14159)
https://github.com/python/cpython/commit/5352cc41fa4eb5f0dc847709392e88473b8593b0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37318] builtins.True exists but can't be accessed

2019-06-17 Thread ChrisRands


New submission from ChrisRands :

On Python 3:

>>> import builtins
>>> 'True' in dir(builtins)
True
>>> builtins.True
  File "", line 1
builtins.True
^
SyntaxError: invalid syntax
>>> 

So "True" is a keyword, I guess this explains the behaviour, but still seems 
odd to me?

Relevant SO question:
https://stackoverflow.com/questions/56633402/why-are-true-and-false-being-set-in-globals-by-this-code

--
messages: 345863
nosy: ChrisRands
priority: normal
severity: normal
status: open
title: builtins.True exists but can't be accessed
type: behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-17 Thread Steve Dower


Steve Dower  added the comment:


New changeset 00f6493084c385033fe5574314223217d9a26672 by Steve Dower (Paul 
Monson) in branch 'master':
bpo-37288: Fix Windows build when --no-tkinter is specified (GH-14096)
https://github.com/python/cpython/commit/00f6493084c385033fe5574314223217d9a26672


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-17 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14002
pull_request: https://github.com/python/cpython/pull/14160

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2019-06-17 Thread Steve Dower


Steve Dower  added the comment:

Has anyone tried building with the newer SQLite and confirmed that the tests 
and any scenarios they use still work?

We don't currently have a SQLite expert to do these kinds of things.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-17 Thread Steve Dower


Steve Dower  added the comment:

Thanks, Paul!

--
assignee:  -> steve.dower
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37297] function changed when pickle bound method object

2019-06-17 Thread Géry

Géry  added the comment:

@George Xie

There is an issue with the Python workaround 
`multiprocessing.reduction.register(types.MethodType, my_reduce)` that you 
proposed. If you then instantiate a `multiprocessing.Manager()` you get this 
exception:

> python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> import types
>>> def my_reduce(obj):
... return (obj.__func__.__get__, (obj.__self__,))
...
>>> multiprocessing.reduction.register(types.MethodType, my_reduce)
>>> multiprocessing.Manager()
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python37\lib\multiprocessing\context.py", line 56, in 
Manager
m.start()
  File "C:\Program Files\Python37\lib\multiprocessing\managers.py", line 543, 
in start
self._process.start()
  File "C:\Program Files\Python37\lib\multiprocessing\process.py", line 112, in 
start
self._popen = self._Popen(self)
  File "C:\Program Files\Python37\lib\multiprocessing\context.py", line 322, in 
_Popen
return Popen(process_obj)
  File "C:\Program Files\Python37\lib\multiprocessing\popen_spawn_win32.py", 
line 89, in __init__
reduction.dump(process_obj, to_child)
  File "C:\Program Files\Python37\lib\multiprocessing\reduction.py", line 60, 
in dump
ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle : it's not the same object as 
multiprocessing.managers.BaseManager._run_server
>>> Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python37\lib\multiprocessing\spawn.py", line 105, in 
spawn_main
exitcode = _main(fd)
  File "C:\Program Files\Python37\lib\multiprocessing\spawn.py", line 115, in 
_main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37297] function changed when pickle bound method object

2019-06-17 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower


Steve Dower  added the comment:

The canonical source of versions used on Windows is in PCbuild/python.props

I'll pull the 1.1.1c sources into cpython-source-deps and run a build. If all 
goes smoothly, we can consider it, but I don't have a huge amount of time for 
CPython this week I'm afraid.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37288] Fix Windows build when --no-tkinter is specified

2019-06-17 Thread miss-islington


miss-islington  added the comment:


New changeset 79d8204c4f02d02b3c6570de94c85863c27ddecb by Miss Islington (bot) 
in branch '3.8':
bpo-37288: Fix Windows build when --no-tkinter is specified (GH-14096)
https://github.com/python/cpython/commit/79d8204c4f02d02b3c6570de94c85863c27ddecb


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34631] Upgrade to OpenSSL 1.1.1c, 1.1.0k, and/or 1.0.2s

2019-06-17 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +14003
pull_request: https://github.com/python/cpython/pull/14161

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread Matthew Cowles


Matthew Cowles  added the comment:

I disagree with the decision not to fix this bug. If a RuntimeWarning is 
warranted when a temporary variable is used, it's warranted when the value is 
used directly, without a temporary variable.

--
nosy: +mdcowles

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   >