[issue40424] AIX: parallel build and ld WARNINGS

2020-06-11 Thread Michael Felt


Michael Felt  added the comment:

specifically, makexp_aix - from 1998-1999 - did not consider parallelization.

make -j2 is sufficient to create the following issue - that frequently leads to 
a failed compile/build.

./Modules/makexp_aix Modules/python.exp . libpython3.9d.a;  gcc -pthread 
-Wl,-bE:Modules/python.exp -lld -o python Programs/python.o libpython3.9d.a 
-lintl -ldl  -lm   -lm 
./Modules/makexp_aix Modules/python.exp . libpython3.9d.a;  gcc -pthread 
-Wl,-bE:Modules/python.exp -lld -o Programs/_testembed Programs/_testembed.o 
libpython3.9d.a -lintl -ldl  -lm   -lm 
ld: 0711-418 ERROR: Import or export file Modules/python.exp at line 2:
A symbol name may only be followed by an export attribute
or an address. The line is being ignored.
ld: 0711-415 WARNING: Symbol PyAST_Check is already exported.
ld: 0711-415 WARNING: Symbol PyAST_Compile is already exported.
ld: 0711-415 WARNING: Symbol PyAST_CompileEx is already exported.
ld: 0711-415 WARNING: Symbol PyAST_CompileObject is already exported.
...
Over 4000 lines of warnings later:
ld: 0711-415 WARNING: Symbol _Py_write is already exported.
ld: 0711-415 WARNING: Symbol _Py_write_noraise is already exported.
collect2: error: ld returned 8 exit status
Makefile:598: recipe for target 'python' failed
make: *** [python] Error 1
program finished with exit code 2

Explanation: makexp_aix is running in parallel - and writing to python.exp in 
parallel.

The patch/PR "tames" this - and, hopefully, multiple "fails" per day, of the 
AIX bots will cease.

p.s. needed in 3.8, 3.9 and the new master (3.10)

--
versions: +Python 3.10

___
Python tracker 

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



[issue40424] AIX: makexp_aix, parallel build (failures) and ld WARNINGS

2020-06-11 Thread Michael Felt


Change by Michael Felt :


--
title: AIX: parallel build and ld WARNINGS -> AIX: makexp_aix, parallel build 
(failures) and ld WARNINGS

___
Python tracker 

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



[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-11 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 33faf5c4f43e24766cf567bec89ad4c7f1491ff7 by Dong-hee Na in branch 
'master':
bpo-40925: Remove unused stack macro SET_VALUE (GH-20783)
https://github.com/python/cpython/commit/33faf5c4f43e24766cf567bec89ad4c7f1491ff7


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread Sandro Mani


New submission from Sandro Mani :

Followup of bpo-40854, there is one remaining usage of PLATLIBDIR which should 
be replaced by config->platlibdir.

--
components: Interpreter Core
messages: 371260
nosy: smani
priority: normal
severity: normal
status: open
title: Replace PLATLIBDIR macro with config->platlibdir

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread Sandro Mani


Change by Sandro Mani :


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

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread Sandro Mani


Change by Sandro Mani :


--
pull_requests: +19995
pull_request: https://github.com/python/cpython/pull/20799

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +19996
pull_request: https://github.com/python/cpython/pull/20800

___
Python tracker 

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



[issue40253] Fix .py(w) file association with Python 3 Windows installer

2020-06-11 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
title: Fix .py(w) file association with Pyhon 3 Windows installer -> Fix .py(w) 
file association with Python 3 Windows installer

___
Python tracker 

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



[issue29633] MSI installer does not pass values as SecureProperty from UI

2020-06-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Steve, etc., is this of any current relevance or should it be closed?

--
nosy: +terry.reedy

___
Python tracker 

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



[issue40855] statistics.stdev ignore xbar argument

2020-06-11 Thread Matti


Matti  added the comment:

Hi Raymond and Steven!

I'm happy that you are solving this issue but do you have any comment on my 
previous answer?

--

___
Python tracker 

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



[issue40948] Better identify Windows installer as installer only, not runner

2020-06-11 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Some beginners on Windows think that python-3.8.3-amd64.exe, for instance, is 
for running python-3.8.3, leading to repeated and now tiresome questions on 
python-list and probably elsewhere.  The latest example is "repair modify 
uninstall" with the core complaint that "after downloading and trying to launch 
it keeps saying repair modify uninstall".  (Actually, 'modify' comes first.)

In response, Grant Edwards suggested adding run instructions to the initial 
screen and asked a "Is the file name not clear that it's an installer?"

For the naive, the answer, as is traditional, is 'no'. How about adding 'setup' 
or 'install', as I have seen occasionally.
  python-3.8.3-amd64-setup.exe

The initial screen is different according to whether an installed binary is 
absent or present.  For the latter, add something like

Python 3.8.3 {n} bit is installed for {who}.
To run it, {directions}
To change it, click one of the buttons below.

An optional add-on would be a button to open the doc page on using python on 
Windows.

(I an not suggesting a button to actually run python.exe from the installer.  
Users should really learn how to start it properly according to platform and 
python-specific conventions and their particular needs.)

Does the final screen after installation say anything about running the new 
install?  (I cannot remember.)

Ned: I don't think that this issue afficts Mac newbies.  Perhaps python-xyz.pkg 
is more clearly not for running.  But something you might watch for.

--
components: Windows
messages: 371263
nosy: ned.deily, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Better identify Windows installer as installer only, not runner
versions: Python 3.10, 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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 9727694f08cad4b019d2939224e3416312b1c0e1 by Lysandros Nikolaou in 
branch 'master':
bpo-40939: Generate keyword.py using the new parser (GH-20800)
https://github.com/python/cpython/commit/9727694f08cad4b019d2939224e3416312b1c0e1


--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +19997
pull_request: https://github.com/python/cpython/pull/20801

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

>>> __new_parser__
  File "", line 1
__new_parser__
^
SyntaxError: You found it!

"new", "ex" or "ng" are not really future proof names. Can we rename the 
keyword to "__peg_parser__"?

--
nosy: +vstinner

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> Can we rename the keyword to "__peg_parser__"?

I guess we could just remove this, as soon as the old parser is out. We were 
only using this to differentiate between the two parsers, when we were testing 
enabling/disabling the old one. I could get a PR ready to be merged after 
GH-20768 is there.

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> I guess we could just remove this, as soon as the old parser is out. We were 
> only using this to differentiate between the two parsers, when we were 
> testing enabling/disabling the old one. I could get a PR ready to be merged 
> after GH-20768 is there.

I would personally would like to keep the easter egg, but I assume is better to 
rename it to "__peg_parser__".

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 961edf7979ca34d6fe104a1cce005aa8cac35821 by Miss Islington (bot) 
in branch '3.9':
bpo-40939: Generate keyword.py using the new parser (GH-20800)
https://github.com/python/cpython/commit/961edf7979ca34d6fe104a1cce005aa8cac35821


--

___
Python tracker 

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



[issue40746] test_gdb failing on Raspbian on 3.9, regression from 3.8

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Some data from a recent build:
https://buildbot.python.org/all/#/builders/645/builds/480

That's 32-bit ARM, armv7l ABI with GCC 8.3 and GDB 8.2.

Python is built with -Og optimization level. In my experience, gdb fails to 
read debug symbols when Python is optimized at -Og level. Last time I asked a 
gdb developer, he told me that he always use -O0, so do I.


test.pythoninfo:

platform.architecture: 32bit ELF
platform.libc_ver: glibc 2.28
platform.platform: Linux-4.19.97-v7l+-armv7l-with-glibc2.28
platform.python_implementation: CPython

CC.version: gcc (Raspbian 8.3.0-6+rpi1) 8.3.0
sysconfig[PY_CFLAGS]: -Wno-unused-result -Wsign-compare -g -Og -Wall
sysconfig[PY_CFLAGS_NODIST]: -std=c99 -Wextra -Wno-unused-result 
-Wno-unused-parameter -Wno-missing-field-initializers 
-Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal
sysconfig[PY_STDMODULE_CFLAGS]: -Wno-unused-result -Wsign-compare -g -Og -Wall 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-fvisibility=hidden -I./Include/internal -I. -I./Include

gdb_version: GNU gdb (Raspbian 8.2.1-2) 8.2.1

--
nosy: +vstinner

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> I would personally would like to keep the easter egg, but I assume is better 
> to rename it to "__peg_parser__".

Ok then! On it.

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +19998
pull_request: https://github.com/python/cpython/pull/20802

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I did'nt ask to remove the easter egg. I'm just asking to avoid the "new" name. 
In my experience, each time that a "new" thing happens, later we have to use 
"new extended", "new_v2" or worse name :-)

Oh, if the name changes, please change it in 3.9 as well.


Look at this amazing names of the 5 flavors of functions parsing a string:

PyParser_ParseString()
PyParser_ParseStringFlags()
PyParser_ParseStringFlagsFilename()
PyParser_ParseStringFlagsFilenameEx() <= public!
PyParser_ParseStringObject()

Same for parsing a file:

PyParser_ParseFile()
PyParser_ParseFileFlags()
PyParser_ParseFileFlagsEx() <= public!
PyParser_ParseFileObject()

Or PyRun functions:

PyRun_String()
PyRun_AnyFile()
PyRun_AnyFileEx() <= public!
PyRun_AnyFileFlags()
PyRun_SimpleString()
PyRun_SimpleFile()
PyRun_SimpleFileEx() <= public!
PyRun_InteractiveOne()
PyRun_InteractiveLoop()
PyRun_File()
PyRun_FileEx() <= public!
PyRun_FileFlags()

ceval.c:

PyEval_EvalCode()
PyEval_EvalCodeEx() <= public!
_PyEval_EvalCodeWithName()
_PyEval_EvalCode()

I cannot count the number of "Ex" functions that we have :-)

Py_Finalize() -> :Py_FinalizeEx() <= public!
PyErr_Print() -> PyErr_PrintEx() <= public!
PySys_SetArgv() -> PySys_SetArgvEx() <= public!
PyErr_WarnEx() <= public!

_PyBytes_FormatEx()
_PyDict_MergeEx()
_Py_DecodeLocaleEx(), _Py_EncodeLocaleEx()
struct PyMemAllocatorEx
_Py_DecodeUTF8Ex(), _Py_EncodeUTF8Ex()
etc.

--

___
Python tracker 

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



[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og (fail on Raspbian on 3.9, regression from 3.8)

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
title: test_gdb failing on Raspbian on 3.9, regression from 3.8 -> test_gdb 
failing on 32-bit armv7l when built with GCC -Og (fail on Raspbian on 3.9, 
regression from 3.8)

___
Python tracker 

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



[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og (fail on Raspbian on 3.9, regression from 3.8)

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

> Marking release blocker as this isn't present in 3.8 or earlier, we've got a 
> regression here.

FYI we have issue with test_gdb on Fedora for at least 5 years. Most issues 
come from -Og optimization level of test_gdb.

Recently, I modified test_gdb to skip tests when we detect that gdb fails to 
read debug symbols, which happens often when using -Og: bpo-40019.

commit 7bf069b6110278102c8f4719975a5eb5a5af25f9
Author: Victor Stinner 
Date:   Fri Mar 20 08:23:26 2020 +0100

bpo-40019: Skip test_gdb if Python was optimized (GH-19081)

test_gdb now skips tests if it detects that gdb failed to read debug
information because the Python binary is optimized.

--

___
Python tracker 

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



[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og (fail on Raspbian on 3.9, regression from 3.8)

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I closed bpo-17737 "test_gdb fails on armv7hl" as out of date.

--

___
Python tracker 

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



[issue17737] test_gdb fails on armv7hl

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.4 and Fedora 20 are no longer maintained. See bpo-40746 for a more 
recent test_gdb issue on armv7l.

--
nosy: +vstinner
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



[issue29685] test_gdb failed

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I believe that this issue is a duplicated of bpo-40436 which was fixed by:

commit ec9bea4a3766bd815148a27f61eb24e7dd459ac7
Author: Victor Stinner 
Date:   Wed Apr 29 17:11:48 2020 +0200

bpo-40436: Fix code parsing gdb version (GH-19792)

test_gdb and test.pythoninfo now check gdb command exit code.


If it's not the case, please provide more information, as requested.

--
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> pythoninfo collect_gdb() blows up when gdb fails to run

___
Python tracker 

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



[issue40436] pythoninfo collect_gdb() blows up when gdb fails to run

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-29685 "test_gdb failed" as duplicate of this issue. Extract:

(...)
  File "/home/studio/Python-3.6.0/Lib/test/test_gdb.py", line 46, in 
gdb_version, gdb_major_version, gdb_minor_version = get_gdb_version()
  File "/home/studio/Python-3.6.0/Lib/test/test_gdb.py", line 43, in 
get_gdb_version
raise Exception("unable to parse GDB version: %r" % version)
Exception: unable to parse GDB version: ''

--

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-06-11 Thread Mark Shannon


Mark Shannon  added the comment:

This change combines the explicit state in `PyFrameObject.f_excuting` and 
`PyGenObject.gi_running`, and the implicit state in `PyFrameObject.f_stacktop 
== NULL` and `PyFrameObject.f_last == -1` into a single enum field in 
`PyFrameObject`.

Since we no longer need to test `PyFrameObject.f_stacktop == NULL` , The 
`f_stacktop` pointer can be replaced with a `f_stackdepth` integer, which make 
for simpler code when iterating over the stack and avoids the potential hazard 
of NULL pointers.

There are  three benefits to these changes:

1. The code is more robust and, IMO, easier to understand, as all state is now 
explicit.
2. It carries additional information about the state of the frame. Information 
about whether a frame exiting by `return` or by `raise` is available.
3. A modest reduction in size of frame and generator objects.

--

___
Python tracker 

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



[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-06-11 Thread Mark Shannon


Change by Mark Shannon :


--
keywords: +patch
pull_requests: +1
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20803

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner
nosy_count: 2.0 -> 3.0
pull_requests: +2
pull_request: https://github.com/python/cpython/pull/20804

___
Python tracker 

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



[issue18822] poor proxyval() coverage in test_gdb

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

No activity for 7 years, I close the issue as out of date.

--
nosy: +vstinner
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



[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I fail to reproduce the issue on the master branch of Python on Fedora 32:

* Python master at commit 9727694f08cad4b019d2939224e3416312b1c0e1
* Fedora 32
* gcc (GCC) 10.1.1
* GNU gdb (GDB) Fedora 9.1-5.fc32

Notice that multiple tests are skipped:

$ ./configure --with-lto && make && ./python -m test -v test_gdb 
(...)
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 
-Wall -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g 
-std=c99 (...)
(...)
== CPython 3.10.0a0 (heads/master:9727694f08, Jun 11 2020, 15:31:25) [GCC 
10.1.1 20200507 (Red Hat 10.1.1-1)]
== Linux-5.6.16-300.fc32.x86_64-x86_64-with-glibc2.31 little-endian
== cwd: /home/vstinner/python/master/build/test_python_139705
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 2.77 Run tests sequentially
0:00:00 load avg: 2.77 [1/1] test_gdb
GDB version 9.1:
GNU gdb (GDB) Fedora 9.1-5.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
test_NULL_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with NULL ob_type is handled gracefully ... ok
test_NULL_ptr (test.test_gdb.PrettyPrintTests)
Ensure that a NULL PyObject* is handled gracefully ... ok
test_builtin_method (test.test_gdb.PrettyPrintTests) ... ok
test_builtins_help (test.test_gdb.PrettyPrintTests)
Ensure that the new-style class _Helper in site.py can be handled ... ok
test_bytes (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of bytes ... ok
test_corrupt_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a corrupt ob_type is handled gracefully ... ok
test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_flags is handled ... ok
test_corrupt_tp_name (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_name is handled ... ok
test_dicts (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of dictionaries ... ok
test_exceptions (test.test_gdb.PrettyPrintTests) ... ok
test_frames (test.test_gdb.PrettyPrintTests) ... ok
test_frozensets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of frozensets ... ok
test_getting_backtrace (test.test_gdb.PrettyPrintTests) ... ok
test_int (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of various int values ... ok
test_lists (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of lists ... ok
test_modern_class (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of new-style class instances ... ok
test_selfreferential_dict (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a dict doesn't lead proxyval ... ok
test_selfreferential_list (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a list doesn't lead proxyval ... ok
test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests) ... ok
test_selfreferential_old_style_instance (test.test_gdb.PrettyPrintTests) ... ok
test_sets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of sets ... ok
test_singletons (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of True, False and None ... ok
test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode strings ... ok
test_subclassing_list (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a list subclass ... ok
test_subclassing_tuple (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a tuple subclass ... ok
test_truncation (test.test_gdb.PrettyPrintTests)
Verify that very long output is truncated ... ok
test_tuples (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of tuples ... ok
test_bt (test.test_gdb.PyBtTests)
Verify that the "py-bt" command works ... skipped 'Python was compiled with 
optimizations'
test_bt_full (test.test_gdb.PyBtTests)
Verify that the "py-bt-full" command works ... skipped 'Python was compiled 
with optimizations'
test_gc (test.test_gdb.PyBtTests)
Verify that "py-bt" indicates if a thread is garbage-collecting ... skipped 
'Python was compiled with optimizations'
test_pycfunction (test.test_gdb.PyBtTests)
Verify that "py-bt" displays invocations of PyCFunction instances ... skipped 
'Python was compiled with optimizations'
test_threads (test.test_gdb.PyBtTests)
Verify that "py-bt" indicates threads that are waiting for the GIL ... ok
test_wrapper_call (test.test_gdb.PyBtTests) ... skipped 'Python was compiled 
with optimizations'
test_basic_command (test.test_gdb.PyListTests)
Verify that the "py-list" command works ... skipped 'Python was compiled with 
optimizations'
test_one_abs_arg (test.test_gdb.PyListTests)
Verify the "py-list" command with one absolute argument ... skipped 'Python was 
compiled 

[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20002
pull_request: https://github.com/python/cpython/pull/20806

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +20001
pull_request: https://github.com/python/cpython/pull/20805

___
Python tracker 

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



[issue32834] test_gdb fails with Posix locale in 3.7

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I close the issue. I cannot reproduce the issue on Fedora 32. Please open it if 
you can still reproduce it on the master branch. In this case, please mention 
your GDB version, Python version used by GDB and tested Python version.

* Python master at commit 9727694f08cad4b019d2939224e3416312b1c0e1
* gcc (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)
* GNU gdb (GDB) Fedora 9.1-5.fc32

On Fedora 32, GDB is linked to Python 3.8:

$ gdb 
GNU gdb (GDB) Fedora 9.1-5.fc32
(gdb) python import sys; print(sys.version)
3.8.3 (default, May 15 2020, 00:00:00) 
[GCC 10.1.1 20200507 (Red Hat 10.1.1-1)]


test_gdb:

vstinner@apu$ LC_ALL=C ./python -We -m test -vuall -m test_strings test_gdb
== CPython 3.10.0a0 (heads/master:9727694f08, Jun 11 2020, 15:44:14) [GCC 
10.1.1 20200507 (Red Hat 10.1.1-1)]
== Linux-5.6.16-300.fc32.x86_64-x86_64-with-glibc2.31 little-endian
== cwd: /home/vstinner/python/master/build/test_python_151860
== CPU count: 8
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 1.68 Run tests sequentially
0:00:00 load avg: 1.68 [1/1] test_gdb
GDB version 9.1:
GNU gdb (GDB) Fedora 9.1-5.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode strings ... ok

--

Ran 1 test in 1.834s

OK

== Tests result: SUCCESS ==

1 test OK.

Total duration: 2.4 sec
Tests result: SUCCESS

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7 by Victor Stinner in 
branch 'master':
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
https://github.com/python/cpython/commit/b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7


--

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Michael Osipov for the fix! It's already merged into the master branch 
and will be merged into 3.8 and 3.9 branches as soon as the CI tests pass on 
the two backport PRs.

I don't think that it's worth it to backport the fix to 3.7: this branch is 
close to move to security fixes only. I prefer to reduce any risk of regression.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 5b8e3a533560c39eb40b2fb950d2b14caacfaf6a by Miss Islington (bot) 
in branch '3.8':
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
https://github.com/python/cpython/commit/5b8e3a533560c39eb40b2fb950d2b14caacfaf6a


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner
nosy_count: 1.0 -> 2.0
pull_requests: +20003
pull_request: https://github.com/python/cpython/pull/20807

___
Python tracker 

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



[issue34401] Make test_gdb work on HP-UX

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 2f46c65071c5528ce143bd02786f8fe94fe65d1f by Miss Islington (bot) 
in branch '3.9':
bpo-34401: Fix test_gdb for HP GDB version string (GH-20804)
https://github.com/python/cpython/commit/2f46c65071c5528ce143bd02786f8fe94fe65d1f


--

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20004
pull_request: https://github.com/python/cpython/pull/20807

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Follow-up: bpo-40947 "Replace PLATLIBDIR macro with config->platlibdir".

--

___
Python tracker 

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



[issue28557] error message for bad raw readinto

2020-06-11 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
versions: +Python 3.10, 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



[issue36560] test_functools leaks randomly 1 memory block

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

AMD64 Fedora Rawhide Refleaks 3.8:
https://buildbot.python.org/all/#/builders/79/builds/196
test_functools leaked [1, 1, 1] memory blocks, sum=3

--

___
Python tracker 

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



[issue40949] test_socket: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-06-11 Thread STINNER Victor


New submission from STINNER Victor :

aarch64 RHEL8 Refleaks 3.x:
https://buildbot.python.org/all/#/builders/563/builds/127

The system load was quite high (9.95) for "CPU count: 8".

0:22:19 load avg: 9.95 [406/426/2] test_socket failed (env changed) (2 min 41 
sec) -- running: test_pydoc (20 min 35 sec), test_asyncio (11 min 56 sec), 
test_faulthandler (39.2 sec), test_concurrent_futures (20 min 7 sec), test_venv 
(1 min 17 sec), test_peg_generator (15 min 51 sec), test_multiprocessing_spawn 
(54.4 sec), test_signal (9 min 26 sec)
beginning 6 repetitions
123456
Warning -- threading_cleanup() failed to cleanup 0 threads (count: 0, 
dangling: 5)
Warning -- Dangling thread: 
Warning -- Dangling thread: 
Warning -- Dangling thread: 
Warning -- Dangling thread: 
Warning -- Dangling thread: <_MainThread(MainThread, started 281473770473840)>
..

It may be related to bpo-36750: "test_socket leaks file descriptors on macOS".

--
components: Tests
messages: 371287
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_socket: threading_cleanup() failed to cleanup 0 threads (count: 0, 
dangling: 5)
versions: Python 3.10

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Guido van Rossum


Guido van Rossum  added the comment:

Honestly I see no reason to keep that easter egg. Can we remove it please?

--

___
Python tracker 

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



[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +20005
pull_request: https://github.com/python/cpython/pull/20808

___
Python tracker 

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



[issue40424] AIX: makexp_aix, parallel build (failures) and ld WARNINGS

2020-06-11 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
nosy: +BTaskaya

___
Python tracker 

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



[issue40949] test_socket: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

> New changeset 961edf7979ca34d6fe104a1cce005aa8cac35821 by Miss Islington 
> (bot) in branch '3.9':
> bpo-40939: Generate keyword.py using the new parser (GH-20800)

This change broke this buildbot:

AMD64 Arch Linux VintageParser 3.9:
https://buildbot.python.org/all/#/builders/765/builds/67
1 test failed: test_keyword

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Ok, let's remove it. Lysandros can you modify PR 20802 to remove it?

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> Lysandros can you modify PR 20802 to remove it?

Yup!

--

___
Python tracker 

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



[issue27578] inspect.findsource raises exception with empty __init__.py

2020-06-11 Thread kernc


Change by kernc :


--
nosy: +kernc
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue27578] inspect.findsource raises exception with empty __init__.py

2020-06-11 Thread kernc


Change by kernc :


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

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

> This change broke this buildbot:

GH-20802 fixes this breakage.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20007
pull_request: https://github.com/python/cpython/pull/20810

___
Python tracker 

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



[issue40950] PEP 3121 applied to nis module

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


--
assignee: corona10
components: Extension Modules
nosy: corona10
priority: normal
severity: normal
status: open
title: PEP 3121  applied to nis module
type: enhancement
versions: Python 3.10

___
Python tracker 

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



[issue40950] PEP 3121 applied to nis module

2020-06-11 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d72b9644a3e6eec83be48b1ebc2ec6ca776134d3 by Victor Stinner in 
branch 'master':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)
https://github.com/python/cpython/commit/d72b9644a3e6eec83be48b1ebc2ec6ca776134d3


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d72b9644a3e6eec83be48b1ebc2ec6ca776134d3 by Victor Stinner in 
branch 'master':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)
https://github.com/python/cpython/commit/d72b9644a3e6eec83be48b1ebc2ec6ca776134d3


--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset bdfe9b633a171522bc6cdb7c8aa1215cbd119b59 by Victor Stinner in 
branch 'master':
bpo-40275: test.supports imports lazily fnmatch, glob, struct (GH-20810)
https://github.com/python/cpython/commit/bdfe9b633a171522bc6cdb7c8aa1215cbd119b59


--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20009
pull_request: https://github.com/python/cpython/pull/20812

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 10e6506aa8261aacc89b49e629ae1c927fa5151c by Hai Shi in branch 
'master':
bpo-40275: Add warnings_helper submodule in test.support (GH-20797)
https://github.com/python/cpython/commit/10e6506aa8261aacc89b49e629ae1c927fa5151c


--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I'm no longer sure that it's worth it to create support.process_helper. I only 
see these functions which would be untroversial for process_helper:

* wait_process()
* reap_children()
* args_from_interpreter_flags()
* optim_args_from_interpreter_flags()

PythonSymlink might be moved to support.script_helper instead.

For now, I suggest to leave all these functions in support/__init__.py.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

I propose to start updating tests to use directly support.import_helper and 
support.os_helper. Hai: do you want to work on that? Maybe start by focusing on 
import_helper (but if you modify a test, check for also symbols imported from 
os_helper).

When you modify tests, I suggest to remove "from .import_helper import ..." and 
"from .os_helper import ..." in support/__init__.py and then run tests, to 
ensure that you updated all imports of the modified tests.

Try to not create giant PRs modifying 100+ files. For example, limit a PR to 20 
test files.

When PR 20812 will be merged and import_helper and os_helper will no longer be 
imported  by support, "import test.support" done after "import unittest"  will 
only import 17 modules which is way better than the situation in April!

--

___
Python tracker 

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20011
pull_request: https://github.com/python/cpython/pull/20813

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +20010
pull_request: https://github.com/python/cpython/pull/20813

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread hai shi


hai shi  added the comment:

I propose to start updating tests to use directly support.import_helper and 
support.os_helper. Hai: do you want to work on that? Maybe start by focusing on 
import_helper (but if you modify a test, check for also symbols imported from 
os_helper).

> of course, I will do it.

Try to not create giant PRs modifying 100+ files. For example, limit a PR to 20 
test files.

> forgive me again. I will create some PRs of appropriate size.

--

___
Python tracker 

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



[issue29633] MSI installer does not pass values as SecureProperty from UI

2020-06-11 Thread Steve Dower


Steve Dower  added the comment:

We can close it. bdist_msi isn't recommended for any reason, and cx_Freeze 
isn't ours.

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



[issue40939] Remove the old parser

2020-06-11 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset bcd7deed9118e365c1225de2a2e1a81bf988c6ab by Lysandros Nikolaou in 
branch 'master':
bpo-40939: Remove PEG parser easter egg (__new_parser__) (#20802)
https://github.com/python/cpython/commit/bcd7deed9118e365c1225de2a2e1a81bf988c6ab


--

___
Python tracker 

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



[issue40948] Better identify Windows installer as installer only, not runner

2020-06-11 Thread Steve Dower


Steve Dower  added the comment:

The current "using" doc page is way too in-depth, but I'm actually okay with 
the idea of having a "Did you mean to launch Python? Press 'Start' and type 
'Python' to find it" message on the Modify page of the installer.

Perhaps the people hitting this problem would read the final page of the 
installer, but I suspect they're just like everyone else and don't read 
instructions until just-in-time. So if they're reaching the Modify page, that's 
the place to put them.

--

___
Python tracker 

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



[issue40275] test.support has way too many imports

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 30abcd8ab648dbf1803e36a8ba5d93fa019b by Victor Stinner in 
branch 'master':
bpo-40275: Move TransientResource to test_urllib2net (GH-20812)
https://github.com/python/cpython/commit/30abcd8ab648dbf1803e36a8ba5d93fa019b


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset dc40105c88b968a50c3458e10e1d732e957ef0a3 by Victor Stinner in 
branch '3.9':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813)
https://github.com/python/cpython/commit/dc40105c88b968a50c3458e10e1d732e957ef0a3


--

___
Python tracker 

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



[issue40947] Replace PLATLIBDIR macro with config->platlibdir

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks Sandro!

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



[issue40854] Allow overriding sys.platlibdir: add PYTHONPLATLIBDIR env var

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset dc40105c88b968a50c3458e10e1d732e957ef0a3 by Victor Stinner in 
branch '3.9':
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813)
https://github.com/python/cpython/commit/dc40105c88b968a50c3458e10e1d732e957ef0a3


--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 1ed83adb0e95305af858bd41af531e487f54fee7 by Pablo Galindo in 
branch 'master':
bpo-40939: Remove the old parser (GH-20768)
https://github.com/python/cpython/commit/1ed83adb0e95305af858bd41af531e487f54fee7


--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread STINNER Victor


STINNER Victor  added the comment:

A few remaining references to the good old times of the old parser:

Programs/_testembed.c:488:putenv("PYTHONOLDPARSER=1");
Programs/_testembed.c:676:putenv("PYTHONOLDPARSER=1");
Tools/scripts/run_tests.py:29:if 'PYTHONOLDPARSER' not in os.environ:

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20012
pull_request: https://github.com/python/cpython/pull/20814

___
Python tracker 

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



[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-11 Thread E. Paine


E. Paine  added the comment:

This is interesting as it works fine on Windows but does the behaviour you 
describe on Linux. I presume the difference is due to how Tcl/Tk handles the 
title-bar, in which case this isn't really a tkinter issue and there isn't much 
that can be done (from a tkinter perspective anyway).

When tested (on Linux), however, calling tk.geometry() returned a different 
value to tk.winfo_geometry(). Calling tk.geometry(tk.geometry()) did not change 
the window position and everything worked as expected (weird!).

I am not sure, though, if this behaviour should be changed. Looking at the Tk 
man page (https://www.tcl.tk/man/tcl8.6/TkCmd/wm.htm#M42), it says:
"Note that this is related to winfo geometry, but not the same. That [...] 
always reflects Tk's current understanding of the actual size and location of 
window, whereas wm geometry allows [...] querying of the window manager's 
understanding of the size and location of the window. This can vary 
significantly, for example to reflect the addition of decorative elements to 
window such as title bars, and window managers are not required to precisely 
follow the requests made through this command."

--
nosy: +epaine, gpolo, serhiy.storchaka

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20013
pull_request: https://github.com/python/cpython/pull/20815

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> A few remaining references to the good old times of the old parser:

Thanks Victor, opened https://github.com/python/cpython/pull/20815 to address 
those.

--

___
Python tracker 

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



[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread Ned Deily


Ned Deily  added the comment:

Thanks for the report.  I have to agree that the behavior is a little bit 
counterintuitive but I believe everything is working as designed and 
documented.  It all comes down to the fact that the ensurepip module is only 
concerned with the version of pip bundled with the python release; ensurepip 
deliberately does not check PyPI for a newer version of pip.  As documented, 
venv calls ensurepip after creating a new venv so the pip that is installed 
there is the one released with ensurepip. To get the latest version of pip, you 
would need to run (in the activated venv):

python3 -m pip install --upgrade pip

just as you needed to do to upgrade the system-wide instance of python3 to the 
latest pip.

https://docs.python.org/3/library/venv.html#creating-virtual-environments
  "Unless the --without-pip option is given, ensurepip will be invoked
   to bootstrap pip into the virtual environment."

https://docs.python.org/3/library/venv.html#creating-virtual-environments
  "Note: This module does not access the internet [...]"

--
nosy: +ned.deily

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset 436b648910c27baf8164a6d46d746d36d8a93478 by Pablo Galindo in 
branch 'master':
bpo-40939: Remove some extra references to PYTHONOLDPARSER (GH-20815)
https://github.com/python/cpython/commit/436b648910c27baf8164a6d46d746d36d8a93478


--

___
Python tracker 

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



[issue40855] statistics.stdev ignore xbar argument

2020-06-11 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

> do you have any comment on my previous answer?

I see what you're trying to do but think that interpretation is surprising
and is at odds with the existing and intended uses of the *xbar* argument.  

The goals were to allow the mean to be precomputed (common case) or to be 
recentered (uncommon).  Neither case should have the effect of changing the 
divisor.  

We can't break existing code that assumes that stdev(data) is equal to 
stdev(data, xbar=mean(data)).

>>> data = [1, 2]
>>> stdev(data)
0.7071067811865476
>>> stdev(data, xbar=mean(data))
0.7071067811865476

--

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Brandt Bucher


Change by Brandt Bucher :


--
nosy: +brandtbucher

___
Python tracker 

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



[issue40940] How to update pip permanently for new venv?

2020-06-11 Thread Ned Deily


Ned Deily  added the comment:

Also, this issue has come up before and is discussed in more detail in 
Issue37107, so let's continue any further discussion there.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> ensurepip --upgrade doesn't change the version of pip used by 
venv

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 46398fba4d66ad342cf2504ef947b5fb857423b2 by kernc in branch 
'master':
bpo-29620: iterate over a copy of sys.modules (GH-4800)
https://github.com/python/cpython/commit/46398fba4d66ad342cf2504ef947b5fb857423b2


--
nosy: +akuchling

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +20014
pull_request: https://github.com/python/cpython/pull/20816

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +20015
pull_request: https://github.com/python/cpython/pull/20817

___
Python tracker 

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



[issue40939] Remove the old parser

2020-06-11 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 3782497cc22e70b41e32ac09cb06d3948074d8a7 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-40939: Fix test_keyword for the old parser (GH-20814)
https://github.com/python/cpython/commit/3782497cc22e70b41e32ac09cb06d3948074d8a7


--

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 3e499cda47afe2282ca3f1d04151e2c86f2e7e09 by Miss Islington (bot) 
in branch '3.8':
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816)
https://github.com/python/cpython/commit/3e499cda47afe2282ca3f1d04151e2c86f2e7e09


--

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset f881c869753fb2b1b7aef353416893190251c539 by Miss Islington (bot) 
in branch '3.7':
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20817)
https://github.com/python/cpython/commit/f881c869753fb2b1b7aef353416893190251c539


--

___
Python tracker 

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



[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:

Changes applied to master, 3.8, and 3.7.  Thanks!

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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:


New changeset 60c2a810e37994fc640c58d0ef45b6843354b770 by MARK SCHWAB in branch 
'master':
bpo-40626: Support HDF5 in mimetypes (GH-20042)
https://github.com/python/cpython/commit/60c2a810e37994fc640c58d0ef45b6843354b770


--
nosy: +akuchling

___
Python tracker 

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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +20016
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20818

___
Python tracker 

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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread miss-islington


miss-islington  added the comment:


New changeset a3d6d23a923d62a713b9e4536d5f7ce7313d99c7 by Miss Islington (bot) 
in branch '3.8':
bpo-40626: Support HDF5 in mimetypes (GH-20042)
https://github.com/python/cpython/commit/a3d6d23a923d62a713b9e4536d5f7ce7313d99c7


--

___
Python tracker 

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



[issue40626] application/x-hdf5 mime type missing from mimetypes library

2020-06-11 Thread A.M. Kuchling


A.M. Kuchling  added the comment:

MIME type added to master and 3.8 branches. Thanks for your patch!

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



[issue37747] _markupbase.py fails with TypeError on invalid keyword in marked section

2020-06-11 Thread Leonard Richardson


Leonard Richardson  added the comment:

This was also recently filed as a bug against Beautiful Soup, a package I 
maintain, using Python 3.8. 
(https://bugs.launchpad.net/beautifulsoup/+bug/1883104)

The attached script reproduces the problem without using external packages.

--
nosy: +leonardr
versions: +Python 3.8
Added file: https://bugs.python.org/file49226/test_issue37747.py

___
Python tracker 

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



[issue6721] Locks in the standard library should be sanitized on fork

2020-06-11 Thread Jesse Farnham


Change by Jesse Farnham :


--
nosy: +jesse.farnham

___
Python tracker 

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



  1   2   >