[issue38181] some trable with max when np.nan is in the first of a list

2019-09-16 Thread 薛定谔的喵

薛定谔的喵 <1147945...@qq.com> added the comment:

thanks .

--
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



[issue38181] some trable with max when np.nan is in the first of a list

2019-09-16 Thread Mark Dickinson


Mark Dickinson  added the comment:

Right, `max` can only give meaningful results when presented with elements that 
belong to a totally-ordered collection. Unfortunately, floats-including-nan is 
not such a collection (though floats-excluding-nan *is*, provided we ignore 
wrinkles with positive and negative zero).

Here's the source of the issue:

Python 3.7.4 (default, Sep  7 2019, 19:52:29) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> 5.0 < np.nan
False
>>> np.nan < 5.0
False

--
nosy: +mark.dickinson
resolution: third party -> 
stage: resolved -> 
status: closed -> open

___
Python tracker 

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



[issue38168] Refleaks in setint() of mmapmodule.c

2019-09-16 Thread Xiang Zhang


Xiang Zhang  added the comment:


New changeset 68d8c122972d7a49627b983af4ccbfad9f5ade17 by Xiang Zhang in branch 
'2.7':
[2.7] bpo-38168: Fix a possbile refleak in setint() of mmapmodule.c (GH-16136) 
(GH-16176)
https://github.com/python/cpython/commit/68d8c122972d7a49627b983af4ccbfad9f5ade17


--
nosy: +xiang.zhang

___
Python tracker 

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



[issue38168] Refleaks in setint() of mmapmodule.c

2019-09-16 Thread Xiang Zhang


Change by Xiang Zhang :


--
components: +Extension Modules -Interpreter Core
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 2.7, Python 3.7, 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



[issue38154] test__xxsubinterpreters: random failures on AMD64 FreeBSD CURRENT Shared 3.x

2019-09-16 Thread Kyle Stanley


Kyle Stanley  added the comment:

I believe I found a potential fix, see 
https://bugs.python.org/issue37224?@ok_message=msg%20352516%20created%0Aissue%2037224%20message_count%2C%20messages%20edited%20ok&@template=item#msg352514.
 Should I attach the PR to that issue or this one?

--
nosy: +aeros167

___
Python tracker 

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



[issue38181] some trable with max when np.nan is in the first of a list

2019-09-16 Thread Mark Dickinson


Change by Mark Dickinson :


--
resolution:  -> not a bug
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



[issue38182] test_asyncio.test_subprocess: test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-09-16 Thread STINNER Victor


New submission from STINNER Victor :

AMD64 FreeBSD 10-STABLE Non-Debug 3.x:
https://buildbot.python.org/all/#/builders/167/builds/1535

==
ERROR: test_stdin_stdout 
(test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/test/test_asyncio/test_subprocess.py",
 line 129, in test_stdin_stdout
exitcode, stdout = self.loop.run_until_complete(task)
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/base_events.py",
 line 608, in run_until_complete
return future.result()
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/tasks.py",
 line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError

and then when asyncio is re-run in verbose mode:

ERROR: test_stdin_stdout 
(test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/test/test_asyncio/test_subprocess.py",
 line 129, in test_stdin_stdout
exitcode, stdout = self.loop.run_until_complete(task)
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/base_events.py",
 line 608, in run_until_complete
return future.result()
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd10.nondebug/build/Lib/asyncio/tasks.py",
 line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError

--
components: Tests, asyncio
messages: 352521
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: test_asyncio.test_subprocess: test_stdin_stdout() failed on AMD64 
FreeBSD 10-STABLE Non-Debug 3.x
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



[issue38182] test_asyncio: SubprocessMultiLoopWatcherTests.test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-09-16 Thread STINNER Victor


Change by STINNER Victor :


--
title: test_asyncio.test_subprocess: test_stdin_stdout() failed on AMD64 
FreeBSD 10-STABLE Non-Debug 3.x -> test_asyncio: 
SubprocessMultiLoopWatcherTests.test_stdin_stdout() failed on AMD64 FreeBSD 
10-STABLE Non-Debug 3.x

___
Python tracker 

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



[issue38182] test_asyncio: SubprocessMultiLoopWatcherTests.test_stdin_stdout() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.8 also has SubprocessMultiLoopWatcherTests so it's also likely 
affected.

I ran this command for 1 minute on my Linux laptop, it didn't fail:

# my laptop has 8 logical CPUs
$ ./python -m test test_asyncio -m SubprocessMultiLoopWatcherTests -j20 -F -v

--
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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +koobs

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

Python 2.7, 3.7 and 3.8 buildbot workers are also affected.

Python 2.7 fails differently:

https://buildbot.python.org/all/#/builders/169/builds/166

0:04:53 load avg: 3.40 [217/404/1] test_idle failed -- running: test_decimal 
(31 sec 780 ms)

 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!


 Warning: unable to create user config directory
/root/.idlerc
 Check path and permissions.
 Exiting!

test test_idle failed -- multiple errors occurred; run in verbose mode for 
details

--

___
Python tracker 

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



[issue38184] [2.7] test_site: test_s_option() failed on AMD64 Fedora Rawhide Refleaks 2.7

2019-09-16 Thread STINNER Victor


New submission from STINNER Victor :

https://buildbot.python.org/all/#/builders/190/builds/151

Re-running test 'test_site' in verbose mode
beginning 6 repetitions
123456

(...)

test_aliasing_mbcs (test.test_site.ImportSideEffectTests) ... ok
test_no_duplicate_paths (test.test_site.ImportSideEffectTests) ... ok
test_setdefaultencoding_removed (test.test_site.ImportSideEffectTests) ... ok
test_setting_copyright (test.test_site.ImportSideEffectTests) ... ok
test_setting_help (test.test_site.ImportSideEffectTests) ... ok
test_setting_quit (test.test_site.ImportSideEffectTests) ... ok
test test_site failed -- Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/test_site.py",
 line 191, in test_s_option
self.assertIn(usersite, sys.path)
AssertionError: '/root/.local/lib/python2.7/site-packages' not found in 
['/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/target/lib/python27.zip',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/plat-linux2',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/lib-tk',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/lib-old',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/build/lib.linux-x86_64-2.7-pydebug']

test_sitecustomize_executed (test.test_site.ImportSideEffectTests) ... ok

==
FAIL: test_s_option (test.test_site.HelperFunctionsTests)
--
Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/test/test_site.py",
 line 191, in test_s_option
self.assertIn(usersite, sys.path)
AssertionError: '/root/.local/lib/python2.7/site-packages' not found in 
['/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/target/lib/python27.zip',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/plat-linux2',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/lib-tk',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/Lib/lib-old',
 
'/home/buildbot/buildarea/2.7.cstratak-fedora-rawhide-x86_64.refleak/build/build/lib.linux-x86_64-2.7-pydebug']

--
Ran 21 tests in 0.017s

FAILED (failures=1, skipped=1)
1 test failed again:
test_site

--
components: Tests
messages: 352525
nosy: vstinner
priority: normal
severity: normal
status: open
title: [2.7] test_site: test_s_option() failed on AMD64 Fedora Rawhide Refleaks 
2.7
versions: Python 2.7

___
Python tracker 

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



[issue38152] AST change introduced tons of reference leaks

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

commit 0247e80f3c529900689425676342cb70ea31a13d
Author: Eddie Elizondo 
Date:   Sat Sep 14 09:38:17 2019 -0400

Fix leaks in Python-ast.c (#16127)

--

___
Python tracker 

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



[issue38176] test_threading leaked [1, 1, 1] references: test_threads_join

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

commit 09dc2c672f937cbe53300cb680fca1f9c78ff976
Author: Dino Viehland 
Date:   Sun Sep 15 15:51:44 2019 +0100

Fix missing dec ref (#16158)

diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 8b0a0244bf..1ea2bf28ab 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -572,6 +572,7 @@ static int
 _random_clear(PyObject *module)
 {
 Py_CLEAR(_randomstate(module)->Random_Type);
+Py_CLEAR(_randomstate(module)->Long___abs__);
 return 0;
 }

--

___
Python tracker 

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



[issue38075] Make random module PEP-384 compatible

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

commit 09dc2c672f937cbe53300cb680fca1f9c78ff976
Author: Dino Viehland 
Date:   Sun Sep 15 15:51:44 2019 +0100

Fix missing dec ref (#16158)

diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 8b0a0244bf..1ea2bf28ab 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -572,6 +572,7 @@ static int
 _random_clear(PyObject *module)
 {
 Py_CLEAR(_randomstate(module)->Random_Type);
+Py_CLEAR(_randomstate(module)->Long___abs__);
 return 0;
 }

--
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



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

2019-09-16 Thread STINNER Victor


Change by STINNER Victor :


--
title: Race in PyThread_release_lock - can lead to memory corruption and 
deadlock -> [2.7] Race in PyThread_release_lock on macOS - can lead to memory 
corruption and deadlock

___
Python tracker 

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



[issue38178] Remove explicit "loop" argument from EchoClientProtocol example

2019-09-16 Thread STINNER Victor

STINNER Victor  added the comment:

> In modern asyncio code the explicit loop arguments are no longer used since 
> the loop can always be obtained with get_running_loop().

Yeah, the trend changed. Around Python 3.4, passing explicitly loop was 
preferred for best performances.

Since that time, the code to get the current loop has been optimized, and the 
new trend is to make the loop implicit to make the code more readable.

--

When I wrote the doc, self.loop.stop() was called explicitly:

https://docs.python.org/3.5/library/asyncio-protocol.html#tcp-echo-client-protocol

It seems like the example has been modified to add a new "on_con_lost" Future.

--

Anyway, thanks Hrvoje Nikšić for your contribution ;-)

--

___
Python tracker 

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



[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-09-16 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests:  -10795

___
Python tracker 

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



[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-09-16 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests:  -10794

___
Python tracker 

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



[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-09-16 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests:  -10796

___
Python tracker 

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



[issue33214] join method for list and tuple

2019-09-16 Thread Александр Семенов

Александр Семенов  added the comment:

in javascript join() is made the other way around
['1','2','3'].join(', ')
so, [].join() may confuse some peoples.

--
nosy: +iamsav

___
Python tracker 

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



[issue33214] join method for list and tuple

2019-09-16 Thread Christian Heimes


Christian Heimes  added the comment:

> in javascript join() is made the other way around
> ['1','2','3'].join(', ')
> so, [].join() may confuse some peoples.

It would be too confusing to have two different approaches to join strings in 
Python. Besides ECMAScript 1 came out in 1997, 5 years after Python was first 
released. By that argument JavaScript that should.

--

___
Python tracker 

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



[issue33214] join method for list and tuple

2019-09-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

How common is the case of variable number of things to concatenate/union/merge?

>From my experience, in most ceases this looks like:

result = []
for ...:
# many complex statements
# may include continue and break
result.extend(items) # may be intermixed with result.append(item)

So concatenating purely lists from some sequence is very special case. And 
there are several ways to perform it.

result = []
for items in seq:
result.extend(items)
# nothing wrong with this simple code, really

result = [x for items in seq for x in items]
# may be less effective for really long sublists,
# but looks simple

result = list(itertools.chain.from_iterable(items))
# if you are itertools addictive ;-)

--

___
Python tracker 

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



[issue38185] Weird way of case-insensitive indexing of sqlite3.Row

2019-09-16 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

sqlite3.Row can be indexed by integers and by strings. In the latter case 
string matching is case insensitive. But the code that implements this is too 
simple-minded. It compares UTF-8 representation of two strings ignoring some 
bit. It works for ASCII letters, but has weird behavior for digits, '_' and 
non-ASCII characters.

For example:

>>> import sqlite3
>>> con = sqlite3.connect(":memory:")
>>> con.row_factory = sqlite3.Row
>>> row = con.execute("select 1 as a_1").fetchone()
>>> row['a_1']
1
>>> row['A_1']
1
>>> row['A_\x11']
1
>>> row['A\x7f1']
1
>>> row = con.execute("select 1 as ÿ").fetchone()
>>> row["ÿ"]
1
>>> row["Ÿ"]
Traceback (most recent call last):
  File "", line 1, in 
IndexError: No item with that key
>>> row["ß"]
1

--
components: Library (Lib)
messages: 352533
nosy: berker.peksag, ghaering, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Weird way of case-insensitive indexing of sqlite3.Row
type: behavior
versions: Python 3.7, 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



[issue24363] httplib fails to handle semivalid HTTP headers

2019-09-16 Thread Christian Schmidbauer


Change by Christian Schmidbauer :


--
keywords: +patch
pull_requests: +15787
pull_request: https://github.com/python/cpython/pull/12214

___
Python tracker 

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



[issue33214] join method for list and tuple

2019-09-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is history, but in 1997 Python had the same order of arguments as 
ECMAScript: string.join(words [, sep]). str.join() was added only in 1999 
(226ae6ca122f814dabdc40178c7b9656caf729c2).

--

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

This is related to issue 37400 and issue 27838 in that specific invocations of 
the buildbot service (like via sudo) cause the environment to be setup 
differently.

In this case, I had just started the buildbot worker via sudo prior to the 
build starting and failing.

In the #37400 and #27838 cases (see msg295486), sudo was also used, where HOME 
ends up being /root, which is not writeable by the user the worker is run under 
(buildbot).

The test should either mock, or should write to a known temp directory 
(possibly one it creates), either in the build dir, or /tmp or similar, though 
I'd lean towards keeping all test writes within the scope of the temporary 
build location

I can either

1) if the issue cannot be resolved in short order, restart the worker now to 
clear the problem, until this issue has a changeset against it to resolve it

2) if it can be resolved in short order, leave the worker in this state until 
fixed

--

___
Python tracker 

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



[issue38180] Test pyexpat fails on Fedora 30

2019-09-16 Thread Christian Heimes


Christian Heimes  added the comment:

What's your expat version? Please post the output of "rpm -qa expat"

--
nosy: +christian.heimes

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +15788
pull_request: https://github.com/python/cpython/pull/16178

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:

I've published the sources and binaries for Windows - will get to updating the 
3.9/3.8/3.7 branches later today unless someone else does first (should just 
require version number changes).

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset d8903416d223d01e23dfa8bffe48b1428d90d202 by Steve Dower in branch 
'2.7':
bpo-38117: Updates bundled OpenSSL to 1.0.2t (GH-16178)
https://github.com/python/cpython/commit/d8903416d223d01e23dfa8bffe48b1428d90d202


--

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-16 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset e8d7fa2db8a6c641019b06943852492f24ac3e69 by Christian Heimes in 
branch '3.8':
[3.8] bpo-38153: Normalize hashlib algorithm names (GH-16083) (GH-16144)
https://github.com/python/cpython/commit/e8d7fa2db8a6c641019b06943852492f24ac3e69


--

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15789
pull_request: https://github.com/python/cpython/pull/16179

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15790
pull_request: https://github.com/python/cpython/pull/16180

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +15791
pull_request: https://github.com/python/cpython/pull/16181

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 07186c3959a61c3d73b5ccae431cdd32afe70e5e by Miss Islington (bot) 
in branch '3.8':
bpo-33095: Add reference to isolated mode in -m and script option (GH-7764)
https://github.com/python/cpython/commit/07186c3959a61c3d73b5ccae431cdd32afe70e5e


--
nosy: +miss-islington

___
Python tracker 

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



[issue38153] Normalize hashing algorithm names

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 0067fc287a86cdd8d71dc2d402d596950ff88fca by Miss Islington (bot) 
in branch '3.8':
bpo-38153: detect shake independently from sha3 (GH-16143)
https://github.com/python/cpython/commit/0067fc287a86cdd8d71dc2d402d596950ff88fca


--
nosy: +miss-islington

___
Python tracker 

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



[issue33095] Cross-reference isolated mode from relevant locations

2019-09-16 Thread Julien Palard


Julien Palard  added the comment:


New changeset 210dc3bb37ec57a8b8b16ffe0881181138a6e973 by Julien Palard in 
branch '3.7':
[3.7] bpo-33095: Add reference to isolated mode in -m and script option 
(GH-7764) (GH-16181)
https://github.com/python/cpython/commit/210dc3bb37ec57a8b8b16ffe0881181138a6e973


--
nosy: +mdk

___
Python tracker 

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



[issue38186] Use FindFirstFile in ntpath.realpath() when access is denied

2019-09-16 Thread Steve Dower


New submission from Steve Dower :

There remains a case in ntpath.realpath() where a (handled) ERROR_ACCESS_DENIED 
or ERROR_SHARING_VIOLATION will break out of traversing a series of paths.

However, in this case (in os.stat(), for example), we could request the real 
name of the file from the directory using FindFirstFileW. This would correct 
the case and remove any path shortening (e.g. LONGFI~1 to LongFilename) without 
needing to directly access the file.

--
components: Windows
messages: 352543
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Use FindFirstFile in ntpath.realpath() when access is denied
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



[issue38186] Use FindFirstFile in ntpath.realpath() when access is denied

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:

See issue38081 and PR 16156 for related discussion and changes.

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +15792
pull_request: https://github.com/python/cpython/pull/16184

___
Python tracker 

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



[issue38179] Test subprocess fails on Fedora 30: test_group and test_extra_groups

2019-09-16 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I think this should be fixed now as reported in 
https://bugs.python.org/issue36046#msg352235 . Can you please try the latest 
master branch?

--
nosy: +gregory.p.smith, xtreak

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset 3ab73f6bbf4ff66e7ace3c4eab25461b5c7d71d4 by Steve Dower in branch 
'master':
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
https://github.com/python/cpython/commit/3ab73f6bbf4ff66e7ace3c4eab25461b5c7d71d4


--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15793
pull_request: https://github.com/python/cpython/pull/16185

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest to fix the buildbot workers right now. I plan to leave this issue 
open until test_idle is fixed.

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +15794
pull_request: https://github.com/python/cpython/pull/16186

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset 89b8933bb537179f81003928786c5cc6183af591 by Steve Dower in branch 
'master':
bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156)
https://github.com/python/cpython/commit/89b8933bb537179f81003928786c5cc6183af591


--

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15795
pull_request: https://github.com/python/cpython/pull/16187

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread Steve Dower


Change by Steve Dower :


--
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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 26729ce74a47c3d16f219aee0a712011622aeeb5 by Miss Islington (bot) 
in branch '3.8':
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
https://github.com/python/cpython/commit/26729ce74a47c3d16f219aee0a712011622aeeb5


--

___
Python tracker 

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



[issue38081] Different behavior of os.path.realpath('nul') in 3.7 and 3.8

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 4924d558478c9bd7f7ee7cd9c00c72c0f281f1a5 by Miss Islington (bot) 
in branch '3.8':
bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156)
https://github.com/python/cpython/commit/4924d558478c9bd7f7ee7cd9c00c72c0f281f1a5


--

___
Python tracker 

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



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

2019-09-16 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -terry.reedy

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Steve Dower  added the comment:


New changeset 76d8fb771659a5574604bf78eb2ee090f5c337cc by Steve Dower in branch 
'3.7':
bpo-38117: Update bundled Windows OpenSSL to 1.1.1d (GH-16184)
https://github.com/python/cpython/commit/76d8fb771659a5574604bf78eb2ee090f5c337cc


--

___
Python tracker 

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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Running the test suite to check refleaks over test.test_tools.test_c_analyzer 
will always fail, make it impossible for the refleak buildbots to run 
correctly. 

Steps to reproduce:

./python -m test test_tools -v -R 3:3


==
FAIL: test_typical 
(test.test_tools.test_c_analyzer.test_c_globals.test_find.StaticsTest)
--
Traceback (most recent call last):
  File 
"/home/pablogsal/github/cpython/Lib/test/test_tools/test_c_analyzer/test_c_globals/test_find.py",
 line 319, in test_typical
self.assertEqual(found, [
AssertionError: Lists differ: [Vari[413 chars]rc1/sub/ham.c', funcname=None, 
name='var1'), v[318 chars]nt')] != [Vari[413 chars]rc1/spam.c', funcname=None, 
name='freelist'), [431 chars]nt')]

First differing element 4:
Varia[21 chars]rc1/sub/ham.c', funcname=None, name='var1'), v[30 chars]t *')
Varia[21 chars]rc1/spam.c', funcname=None, name='freelist'), [34 chars]10]')

Second list contains 1 additional elements.
First extra element 8:
Variable(id=ID(filename='Include/spam.h', funcname=None, name='data'), 
vartype='static const int')

  [Variable(id=ID(filename='src1/spam.c', funcname=None, name='var1'), 
vartype='static const char *'),
   Variable(id=ID(filename='src1/spam.c', funcname='ham', name='initialized'), 
vartype='static int'),
   Variable(id=ID(filename='src1/spam.c', funcname=None, name='var2'), 
vartype='static PyObject *'),
   Variable(id=ID(filename='src1/eggs.c', funcname='tofu', name='ready'), 
vartype='static int'),
+  Variable(id=ID(filename='src1/spam.c', funcname=None, name='freelist'), 
vartype='static (PyTupleObject *)[10]'),
   Variable(id=ID(filename='src1/sub/ham.c', funcname=None, name='var1'), 
vartype='static const char const *'),
   Variable(id=ID(filename='src2/jam.c', funcname=None, name='var1'), 
vartype='static int'),
   Variable(id=ID(filename='src2/jam.c', funcname=None, name='var2'), 
vartype='static MyObject *'),
   Variable(id=ID(filename='Include/spam.h', funcname=None, name='data'), 
vartype='static const int')]

--

Ran 219 tests in 3.769s

FAILED (failures=1, skipped=2, expected failures=14)
test test_tools failed
test_tools failed

== Tests result: FAILURE ==

1 test failed:
test_tools

Total duration: 19 sec 101 ms
Tests result: FAILURE

--
components: Tests
messages: 352552
nosy: eric.snow, pablogsal
priority: normal
severity: normal
status: open
title: test.test_tools.test_c_analyzer fails in refleak mode
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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Check this failure in the buildbots for reference:

https://buildbot.python.org/all/#/builders/80/builds/705/steps/4/logs/stdio

--

___
Python tracker 

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



[issue38117] Update to OpenSSL 1.1.1d, 1.1.0l, 1.0.2t

2019-09-16 Thread Steve Dower


Change by 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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Lisa Roach


Lisa Roach  added the comment:

It helps to comment on the issue before making a PR for it to claim it, as now 
we have 3 PRs all for the same issue :) We will likely accept the first PR that 
was created (or in this case the first PR that gets a CLA signed for it)

--

___
Python tracker 

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



[issue38185] Weird way of case-insensitive indexing of sqlite3.Row

2019-09-16 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15797
pull_request: https://github.com/python/cpython/pull/16191

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset a9187c31185fe7ea47271839898416400cc3d976 by Stéphane Wirtel 
(marcoramirezmx) in branch 'master':
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
https://github.com/python/cpython/commit/a9187c31185fe7ea47271839898416400cc3d976


--
nosy: +matrixise

___
Python tracker 

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



[issue27071] unittest.TestCase.assertCountEqual is a very misleading name

2019-09-16 Thread Michael Foord


Michael Foord  added the comment:

I like assertPermutation (with or without the Is, slight preference for 
without).

--

___
Python tracker 

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



[issue38136] Remove AsyncMock.assert_awaited_*

2019-09-16 Thread Lisa Roach


Change by Lisa Roach :


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

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55 by Miss Islington (bot) 
in branch '3.8':
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
https://github.com/python/cpython/commit/cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55


--
nosy: +miss-islington

___
Python tracker 

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



[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15799
pull_request: https://github.com/python/cpython/pull/16193

___
Python tracker 

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



[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15800
pull_request: https://github.com/python/cpython/pull/16194

___
Python tracker 

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



[issue38175] Memory leak in comparison of sqlite.Row objects

2019-09-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8debfa50407107ff2329d01081cdc12d359f1d12 by Serhiy Storchaka in 
branch 'master':
bpo-38175: Fix a memory leak in comparison of sqlite3.Row objects. (GH-16155)
https://github.com/python/cpython/commit/8debfa50407107ff2329d01081cdc12d359f1d12


--

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

I've restarted the worker via sudo service(8), which shouldn't have the same 
(environment) issue as starting the rc script directly under sudo

https://buildbot.python.org/all/#/builders/168/builds/1462 is running now

Let me know if you need any further information from my end to assist 
resolution of test_idle under reproduction conditions

--

___
Python tracker 

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



[issue38188] Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in multiprocessing.reduction.DupHandle

2019-09-16 Thread Cameron Kennedy


New submission from Cameron Kennedy :

The DuplicateHandle function is utilized by the DupHandle object to duplicate 
handles for the purpose of sending and receiving between processes on Windows 
systems. At least on Python 3.7.3, this function is invoked with an incorrect 
argument order. In multiprocessing.reduction, send_handle passes 
_winapi.DUPLICATE_SAME_ACCESS as the access argument to the DupHandle 
constructor, which in-turn passes it to the access argument for 
_winapi.DuplicateHandle(). Instead, per 
https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-duplicatehandle
 this constant should be passed into the options argument. This bug results in 
any handles communicated via this method to have meaningless permissions set, 
which makes them unusable. 

I've monkeypatched the issue with the following code:

try:
import _winapi
log = logging.getLogger('')
log.warning('Patching multiprocessing.reduction to deal with the 
_winapi.DuplicateHandle() PROCESS_DUP_HANDLE argument order bug.')
class _PatchedDupHandle(object):
'''Picklable wrapper for a handle.'''
def __init__(self, handle, access, pid=None, options=0):
if pid is None:
# We just duplicate the handle in the current process and
# let the receiving process steal the handle.
pid = os.getpid()
proc = _winapi.OpenProcess(_winapi.PROCESS_DUP_HANDLE, False, pid)
try:
self._handle = _winapi.DuplicateHandle(
_winapi.GetCurrentProcess(),
handle, proc, access, False, options)
finally:
_winapi.CloseHandle(proc)
self._options = options
self._access = access
self._pid = pid

def detach(self):
'''Get the handle.  This should only be called once.'''
# retrieve handle from process which currently owns it
if self._pid == os.getpid():
# The handle has already been duplicated for this process.
return self._handle
# We must steal the handle from the process whose pid is self._pid.
proc = _winapi.OpenProcess(_winapi.PROCESS_DUP_HANDLE, False,
   self._pid)
try:
return _winapi.DuplicateHandle(
proc, self._handle, _winapi.GetCurrentProcess(),
self._access, False, 
self._options|_winapi.DUPLICATE_CLOSE_SOURCE)
finally:
_winapi.CloseHandle(proc)
DupHandle = _PatchedDupHandle
def _patched_send_handle(conn, handle, destination_pid):
'''Send a handle over a local connection.'''
dh = DupHandle(handle, 0, destination_pid, 
_winapi.DUPLICATE_SAME_ACCESS)
conn.send(dh)
send_handle=_patched_send_handle
except ImportError:
pass

The above seems to fix the problem on my machine by adding an additional 
options property to the DupHandle object and an options argument to send_handle 
function.

--
components: Windows
messages: 352560
nosy: m3rc1fulcameron, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in 
multiprocessing.reduction.DupHandle
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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Lisa, I don't close this issue because I would like to know if we have to back 
port to 3.7. The spelling error does exist into 3.7

--
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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Lisa Roach

Lisa Roach  added the comment:

(y) Thanks for looking into it Stéphane!

--

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
pull_requests: +15801
pull_request: https://github.com/python/cpython/pull/16195

___
Python tracker 

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



[issue38188] Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in multiprocessing.reduction.DupHandle

2019-09-16 Thread Ammar Askar


Change by Ammar Askar :


--
nosy: +eryksun

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread miss-islington

miss-islington  added the comment:


New changeset 7aae4f004e69ebec011098f85ab232e2778a0ca4 by Miss Islington (bot) 
(Stéphane Wirtel) in branch '3.7':
[3.7] bpo-38100: Fix spelling error in unittest.mock code (GH-16195)
https://github.com/python/cpython/commit/7aae4f004e69ebec011098f85ab232e2778a0ca4


--

___
Python tracker 

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



[issue38100] Spelling error in unittest.mock code

2019-09-16 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Jonathan Gossage


New submission from Jonathan Gossage :

Python 3.8 was installed from source on Ubuntu 19.04 desktop and a virtual 
environment was created with python3.8 -m venv venvrh. When attempting to use 
pip to install a package, the following error was encountered:

(venvrh) jgossage@jgossage-XPS-8700:~/Projects/Maintenance$ pip install sphinx
WARNING: pip is configured with locations that require TLS/SSL, however the ssl 
module in Python is not available.
Collecting sphinx
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL 
because the SSL module is not available.")': /simple/sphinx/
  Could not fetch URL https://pypi.org/simple/sphinx/: There was a problem 
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): 
Max retries exceeded with url: /simple/sphinx/ (Caused by SSLError("Can't 
connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement sphinx (from 
versions: none)
ERROR: No matching distribution found for sphinx
WARNING: pip is configured with locations that require TLS/SSL, however the ssl 
module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem 
confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): 
Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect 
to HTTPS URL because the SSL module is not available.")) - skipping

--
assignee: christian.heimes
components: SSL
messages: 352564
nosy: Jonathan.Gossage, christian.heimes
priority: normal
severity: normal
status: open
title: pip does not run in virtual environment in 3.8
type: behavior
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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Ammar Askar


Ammar Askar  added the comment:

As the error says:

> Can't connect to HTTPS URL because the SSL module is not available.

Since you built it from source, you should check your build logs, the _ssl 
module likely failed to build. You're most probably missing the openssl 
dependency.

--
nosy: +ammar2

___
Python tracker 

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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I guess it's due to the binary not being built with ssl module. During build 
did you get a message like below ? 


Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with 
X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, 
https://github.com/libressl-portable/portable/issues/381

In the REPL you can verify it by trying to import ssl module that would fail if 
python was not built with ssl

./python.exe
Python 3.9.0a0 (heads/pr_16148:1a801bd50d, Sep 16 2019, 22:15:26)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/ssl.py", line 
98, in 
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'

--
nosy: +xtreak

___
Python tracker 

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



[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close this issue, it's not related to the packaging of Python, but just to 
your compilation.

As explained by Ammar Askar, when you compile Python, you have to be sure that 
you have the openssl-dev package installed on your system

You can read this page: 
https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_linux.html

--
nosy: +matrixise
resolution:  -> not a bug
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



[issue21705] cgi.py: Multipart with more than one file is misparsed

2019-09-16 Thread Ethan Furman


Ethan Furman  added the comment:

The last status was "test-needed" -- has anyone verified that a test exists for 
this scenario?

--

___
Python tracker 

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



[issue38165] freezes when loading a program on imports

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close the issue because it's a duplicate of an other issue of the same author.

--
nosy: +matrixise
resolution:  -> duplicate
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



[issue38162] Import Long Load

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I close the issue because there is no discussion :/

--
components: +Unicode -Windows
nosy: +ezio.melotti, matrixise, vstinner
resolution:  -> rejected
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



[issue38162] Import Long Load

2019-09-16 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

and related to 3.6 (security)

--

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15803
pull_request: https://github.com/python/cpython/pull/16199

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15804
pull_request: https://github.com/python/cpython/pull/16200

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 724f1a57231f9287c37255adf0e4364d12cf693d by Miss Islington (bot) 
(Christian Heimes) in branch 'master':
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)
https://github.com/python/cpython/commit/724f1a57231f9287c37255adf0e4364d12cf693d


--
nosy: +miss-islington

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +15805
pull_request: https://github.com/python/cpython/pull/16201

___
Python tracker 

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



[issue38183] test_idle fails on AMD64 FreeBSD CURRENT Shared 3.x: GetUserCfgDir() fails with PermissionError

2019-09-16 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

>From IDLE's viewpoint, the 2.7 failures are the same.  In current 3.x, 
>GetUserCfgDir has

warn = ('\n Warning: unable to create user config directory\n' +
userDir + '\n Check path and permissions.\n Exiting!\n')
if not idlelib.testing:
print(warn, file=sys.stderr)
raise SystemExit

In 2.7. the conditional clause is not there because idlelib.testing does not 
exist.  It was added to avoid 3.x regrtest resource-changed checks that either 
were not backported to 2.7 or are not triggered by the smaller 2.7 set of IDLE 
tests.

The irony of the failures is that the tests are carefully written to pass 
regardless of user config values, if any, and never alter them.  Only 
test_config and test_configdialog actually *need* to access the config 
machinery.  Other tests could mock idleConf.

PR 16198 has a minimal fix that works on my Windows machine.  A 2.7 backport, 
which must be manual, will require the addition of idlelib.testing and its 
setting it test_idle.  I will wait for passes from buildbots, not just the CI.

Followup issues:

0. For 'other tests', mock idleConf and run a bit faster.

1. If ignoring .idlerc this way works, simplify some of the tests by setting 
idlelib.testing to True instead of duplicating what IdleConf will now  do.

2. Minimally implement "# TODO continue without userDIr instead of exit".  
Replace "raise SystemExit" with "return ''" and add warnings that configuration 
changes will disappear when exiting IDLE.

--
stage: patch review -> commit review
type:  -> behavior
versions: +Python 2.7, Python 3.7, Python 3.8

___
Python tracker 

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



[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-16 Thread STINNER Victor


New submission from STINNER Victor :

https://buildbot.python.org/all/#/builders/225/builds/239

...
0:21:16 load avg: 2.54 [422/423] test_venv passed (1 min 31 sec) -- running: 
test_tools (1 min 27 sec)
running: test_tools (1 min 57 sec)
running: test_tools (2 min 27 sec)
running: test_tools (2 min 57 sec)
running: test_tools (3 min 27 sec)
0:23:42 load avg: 1.48 [423/423] test_tools passed (3 min 52 sec)
command timed out: 1200 seconds without output running ['make', 'buildbottest', 
'TESTOPTS=-j2 -j4 ${BUILDBOT_TESTOPTS}', 'TESTPYTHONOPTS=', 'TESTTIMEOUT=900'], 
attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=2628.905564


It may be a regression caused by bpo-37531.

--
components: Tests
messages: 352574
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: regrtest: test suite completes but Tests Result is not displayed and the 
process hangs
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



[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-16 Thread Eric Snow


Eric Snow  added the comment:

Yeah, dropping str support is fine.  It wouldn't be hard to add it back in if 
later we find it's useful. :)

--

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 1ecc75ad1cdf458c2aa7192844e83c4665a5f9b5 by Miss Islington (bot) 
in branch '3.8':
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)
https://github.com/python/cpython/commit/1ecc75ad1cdf458c2aa7192844e83c4665a5f9b5


--

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset 5d55d52b61f56522e616ac1423437d4e3f641ce6 by Miss Islington (bot) 
in branch '2.7':
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)
https://github.com/python/cpython/commit/5d55d52b61f56522e616ac1423437d4e3f641ce6


--

___
Python tracker 

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



[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2019-09-16 Thread miss-islington


miss-islington  added the comment:


New changeset c55f69552cdab26362c1ff4416fe1c3e9b27ccbe by Miss Islington (bot) 
in branch '3.7':
[3.7] bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ 
(GH-16140) (GH-16200)
https://github.com/python/cpython/commit/c55f69552cdab26362c1ff4416fe1c3e9b27ccbe


--

___
Python tracker 

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



[issue38191] typing.NamedTuple() should prefix parameters with '_'

2019-09-16 Thread Glenn Gribble


New submission from Glenn Gribble :

At present, it is not possible to use the shorthand notation to define a 
NamedTuple with typename or fields.  I.e., NamedTuple('MyTuple', typename=str, 
fields=int) does not work.  Changing the parameter names to _typename and 
_fields would allow any non-private, legal identifier to be used in the 
shorthand notation.
  
>>> import typing
>>> typing.NamedTuple('Example', fieldz=int)

>>> typing.NamedTuple('Example2', fields=int)
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python37\lib\typing.py", line 1411, in __new__
return _make_nmtuple(typename, fields)
  File "C:\Program Files\Python37\lib\typing.py", line 1326, in _make_nmtuple
types = [(n, _type_check(t, msg)) for n, t in types]
TypeError: 'type' object is not iterable


Of course, it is fairly easy to work around the issue by using fields parameter:

>>> typing.NamedTuple('Example3', [('fields', int)])



There would be backwards compatibility issues with any code using named 
arguments for fields or typename.

--
components: Library (Lib)
messages: 352579
nosy: gribbg
priority: normal
severity: normal
status: open
title: typing.NamedTuple() should prefix parameters with '_'
type: enhancement
versions: Python 3.7, 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



[issue38162] Import Long Load

2019-09-16 Thread STINNER Victor

STINNER Victor  added the comment:

tempfile uses a low number of random bits per filename, so collision is 
"likely". Two Python processes might attempt to create the same temporary file 
"at the same time". Maybe not two processes, but two Python threads.

Rather than writing complex locking mechanism, "for seq in range(TMP_MAX):" 
retries. While one collision is "likely", TMP_MAX is less likely, especially if 
TMP_MAX is big.

On my Linux, I get:

pvstinner@apu$ python3
Python 3.7.4 (default, Jul  9 2019, 16:32:37) 
>>> import posix
>>> posix.TMP_MAX
238328

Removing the loop introduces a race condition. You tagged this issue as 
"performance": well, in Python we don't accept optimizations which make Python 
"not correct". Correctness matters more than performance.

If tempfile is critical for your application performance, you can easily copy 
tempfile.py and adapt it for your needs ;-)

--

Well, as Stéphane wrote: you need to eloborate the rationale for your change.

--

___
Python tracker 

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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +nanjekyejoannah, vstinner

___
Python tracker 

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



[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

> command timed out: 1200 seconds without output running ['make', 
> 'buildbottest', 'TESTOPTS=-j2 -j4 ${BUILDBOT_TESTOPTS}', 'TESTPYTHONOPTS=', 
> 'TESTTIMEOUT=900'], attempting to kill

faulthandler is supposed to display the traceback where the test hangs, but for 
the main process, libregrtest uses a delay of timeout x 2 seconds:

self.worker_timeout = self.ns.timeout * 1.5
self.main_timeout = self.ns.timeout * 2.0

Here timeout=900 ("TESTTIMEOUT=900"), so main_timeout = 1800 seconds (30 
minutes), whereas buildbot timeout is 1200 seconds (20 minutes) :-(

In fact, main_timeout can be *way* shorter: the main process calls 
faulthandler.dump_traceback_later(self.main_timeout, exit=True) every 
max(PROGRESS_UPDATE, PROGRESS_MIN_TIME) seconds (or more often): every 30 
seconds (of more often).

So main_process could be max(PROGRESS_UPDATE, PROGRESS_MIN_TIME) x 2 = 1 
minute, instead of 30 minutes.

--

___
Python tracker 

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



[issue38190] regrtest: test suite completes but Tests Result is not displayed and the process hangs

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

> https://buildbot.python.org/all/#/builders/225/builds/239

This bug only occurred once, the next build (240) was fine.

--

___
Python tracker 

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



[issue38187] test.test_tools.test_c_analyzer fails in refleak mode

2019-09-16 Thread STINNER Victor


STINNER Victor  added the comment:

I also opened https://bugs.python.org/issue38177#msg352474 we should only track 
this leak in a single issue, you can close bpo-38177.

--

___
Python tracker 

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



[issue38192] Fix invocation of EchoClientProtocol

2019-09-16 Thread Hrvoje Nikšić

Change by Hrvoje Nikšić :


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

___
Python tracker 

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



  1   2   >