[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2021-10-15 Thread tongxiaoge


tongxiaoge  added the comment:

I compared the log and found that  test_socket.HAVE_SOCKET_QIPCRTR is false in 
x86_ 64, and the value is true in the build log on the aarch64 architecture. I 
don't know whether it is related to this value.

--
Added file: https://bugs.python.org/file50362/log.rar

___
Python tracker 

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



Re: Request to advise error for python.

2021-10-15 Thread Michael Torrie
On 10/15/21 5:37 PM, 정성학(대학원생-자동차IT융합전공) via Python-list
wrote:
> Dear Sir,
> 
> resend request

Unfortunately your message is still blank. Attachments such as
screenshots are not visible to this list.  Whenever you ask questions on
the list it is helpful to:
- state the operating system you are using
- which installer you are using and where you downloaded it from
- copy and paste any text error messages you saw
- state any information you found doing an internet search for the error
message you saw.

If you are on Windows, please be sure to read this document:
https://docs.python.org/3/using/windows.html
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2021-10-15 Thread tongxiaoge

tongxiaoge  added the comment:

I use the Linux operating system (openeuler), kernel version 4.19.90, GCC 
version 7.3.0. I directly run the following statement in the virtual machine:

1、python3 Lib/test/test_concurrent_futures.py

2、python3 -m test test_concurrent_futures

The test cases are all passed, but I can reproduce the problem in other 
people's container environment. I suspect it is related to the environment 
configuration, but I don't know what it is related to?

Please refer to the attachment for some log information and python3.spec files 
used for build.

--
Added file: https://bugs.python.org/file50361/log_and_spec_file.rar

___
Python tracker 

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



[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-15 Thread Inada Naoki


Inada Naoki  added the comment:

>>> ll = [l for l in gzip.GzipFile(filename='data/UTF-8-test_for_gzip.txt.gz')]

This is bad code pattern because you don't close the file explicitly.
Actually, the error caused by the optimization thet iter(GzipFile) returns 
underlaying faster iterator that don't have reference to the GzipFile. So 
GzipFile.__del__ close the file.

Although this is caused by bad code pattern, I must admit this is a regression.
We need to call slow Python function for each lines instead of using fast C 
iterator...

--

___
Python tracker 

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



Re: Request to advise error for python.

2021-10-15 Thread 대학원생-자동차IT융합전공
Dear Sir,

resend request

===
Seonghark Jeong
KUL(Kookmin Unmanned vehicle research Laboratory)
GSAEK, Kookmin Univ.
E-Mail: seongh...@kookmin.ac.kr
HP: 82-10-3600-7143
===


2021년 10월 16일 (토) 오전 8:08, ‍정성학(대학원생-자동차IT융합전공) 님이
작성:

> Sir,
>
> I resend the e-mail
>
> ===
> Seonghark Jeong
> KUL(Kookmin Unmanned vehicle research Laboratory)
> GSAEK, Kookmin Univ.
> E-Mail: seongh...@kookmin.ac.kr
> HP: 82-10-3600-7143
> ===
>
>
> 2021년 10월 16일 (토) 오전 8:04, ‍정성학(대학원생-자동차IT융합전공) 님이
> 작성:
>
>> Hi Sir,
>>
>> I had the error below So, I install python many times, and same error
>> occur continuously.
>> Would you advise how to handle this error?
>>
>>
>> [image: image.png]
>> ===
>> Seonghark Jeong
>> KUL(Kookmin Unmanned vehicle research Laboratory)
>> GSAEK, Kookmin Univ.
>> E-Mail: seongh...@kookmin.ac.kr
>> HP: 82-10-3600-7143
>> ===
>>
>

-- 

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45465] logging messages are needlessly reformatted for every handler

2021-10-15 Thread Vinay Sajip


Vinay Sajip  added the comment:

Oh, I see what you mean now - I was thinking of the overall message formatted 
using a formatter. However, filters can still change a record's attributes and 
getMessage() could behave differently on different calls because of this. 
Changing things in this area could break existing code.

--

___
Python tracker 

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



[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-15 Thread Eric Snow


Eric Snow  added the comment:

@MAL, who's maintaining Tools/freeze?  I'm not aware of who's using it (other 
than you, of course).  It looks like PyRun isn't compatible with anything newer 
than 3.5, so it seems like that isn't verifying that Tools/freeze still works.  
Neither does it have tests that run in the test suite (nor on buildbots).

So could Tools/freeze have been broken for a while?  I ask because I haven't 
been able to get it work work on the master branch (or on 3.10).

--

___
Python tracker 

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



[issue45465] logging messages are needlessly reformatted for every handler

2021-10-15 Thread Роман Донченко

Роман Донченко  added the comment:

But message formatting is controlled by the record, not by the handler. The 
same record will always be formatted the same way (assuming that getMessage is 
deterministic, which seems like a fair assumption).

--

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread Eric Snow


Eric Snow  added the comment:

On Fri, Oct 15, 2021 at 3:56 AM STINNER Victor  wrote:
> New changeset 063abd931f064a4b6b478b0b6e9aa13ee38d2cff by Victor Stinner in 
> branch 'main':
> bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969)

FYI, _xxsubinterpretersmodule is supposed to be an extension module
(not builtin), so it's not meant to use internal APIs.  At some point
that happened and I only noticed now.  I've created bpo-45486 to
address that.

--

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

It sounds like you're using python 2.7, which is unsupported.

You've not even shown us what line produces the error you're seeing. I don't 
see "type(a[0])" anywhere in the code you posted.

Lacking a way to reproduce this on our own with python 3.x, I'm going to have 
to close this issue.

--

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Freek de Kruijf


Freek de Kruijf  added the comment:

The content of a[0] is something like '2021-10-15T15:02:11.486'

--

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Freek de Kruijf


Freek de Kruijf  added the comment:

About what version of Python is used, I don't know. Both 2.7.18 and 3.6.12 are 
installed. I use the program on a Raspberry Pi 4B with openSUSE Leap 15.3.

--

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Freek de Kruijf

Freek de Kruijf  added the comment:

When I try it in a few lines, there is no problem. So it is an issue in this 
bigger context with class definitions.
In the few lines type(a[0]) reports ; in the bigger context 
type(a[0]) reports . I have no idea how to reduce this issue in a 
few lines. It must have to do with the use of class in the bigger program, I 
assume. I found a workaround, so it up to you to analyze this further. I have 
only a vary basic knowledge about Python.

--

___
Python tracker 

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



[issue45445] Fail if an invalid -X option is provided

2021-10-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I'm opening this again as, this is still not finished as we want to still 
extend the initialization API to allow a non static string to improve the error 
message.

In general, the protocol is to ask if there is something else to be done before 
closing (and giving it some time before closing if nobody answers) :)

--
status: closed -> open

___
Python tracker 

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



[issue45488] Powershell Commands no Longer Recognised

2021-10-15 Thread Eryk Sun


Eryk Sun  added the comment:

This tracker is for issues with the Python language and standard library. You 
can ask for help with configuration problems on the Users discussion forum:

https://discuss.python.org/c/users/7

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



[issue45131] `venv` → `ensurepip` may read local `setup.cfg` and fail mysteriously

2021-10-15 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +dstufft, ncoghlan, pradyunsg

___
Python tracker 

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



[issue45491] help() is too noisy for types used like functions

2021-10-15 Thread Raymond Hettinger


New submission from Raymond Hettinger :

When someone requests help(range), help(zip), help(property), or 
help(classmethod), the expectation and need is to see something like what is 
shown in main documentation rather than being subjected to a listing of every 
standard dunder method.

It would be nice to have a way to mark types that are mostly used like 
functions so that help() output will be more focused and less noisy.  Then 
help() can omit the Methods and Static methods sections.  It would keep the 
section for non-standard descriptors such as start, stop, step, fget, fset, or 
fdel.

Alternatively, for all types, we can condense the Methods and Static Methods 
sections to just list the standard dunder methods rather that eating several 
rows of output per method.

--
components: Library (Lib)
messages: 404050
nosy: rhettinger
priority: normal
severity: normal
status: open
title: help() is too noisy for types used like functions
type: enhancement
versions: Python 3.11

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

If you want us to check if there's a bug in Python here, please reduce this to 
5 or 10 lines, with no external dependencies. As it is, we cannot run this code.

You also need to show how you run the program, what version of Python you're 
using, and what system you're running this on.

--

___
Python tracker 

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



[issue45442] Update `Virtual Environment` tutorial

2021-10-15 Thread miss-islington


miss-islington  added the comment:


New changeset 11b2ae7f5bc0e7ebbfe944bb746a0b3dfcd7ff43 by srinivasan in branch 
'main':
bpo-45442: Add deactivate step to venv tutorial. (GH-28981)
https://github.com/python/cpython/commit/11b2ae7f5bc0e7ebbfe944bb746a0b3dfcd7ff43


--
nosy: +miss-islington

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Freek de Kruijf


Freek de Kruijf  added the comment:

The python program is called from a surrounding system called domoticz. I will 
include the python program.

--
Added file: https://bugs.python.org/file50360/plugin.py

___
Python tracker 

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



[issue42174] shutil.get_terminal_size() returns 0 when run in a pty

2021-10-15 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +FFY00

___
Python tracker 

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



[issue45445] Fail if an invalid -X option is provided

2021-10-15 Thread Filipe Laíns

Change by Filipe Laíns :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement
versions: +Python 3.11

___
Python tracker 

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



[issue45229] Always use unittest for collecting tests in regrtests

2021-10-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +27272
pull_request: https://github.com/python/cpython/pull/28986

___
Python tracker 

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



[Python-announce] ANN: Leo 6.5-b1 released

2021-10-15 Thread Edward K. Ream
Leo http://leoeditor.com 6.5b1 is now available on 
[GitHub](https://github.com/leo-editor/leo-editor).

Leo is an [IDE, outliner and PIM](http://leoeditor.com/preface.html).

**The highlights of Leo 6.5**

- Add python-to-typescript and view-recent-commands.
- Add c.findCommands.interactive_search_helper.
- Leo now uses only traditional unit tests.
  Remove support for `@test` and `@suite`. Remove leoTest.py.
- Many code-level cleanups.
- 450+ pull requests.

**6.5 Links**

- [6.5 
issues](https://github.com/leo-editor/leo-editor/issues?q=is%3Aissue+milestone%3A6.5)
- [6.5 pull 
requests](https://github.com/leo-editor/leo-editor/pulls?q=is%3Apr+milestone%3A6.5)
- [6.5 bug 
fixes](https://github.com/leo-editor/leo-editor/issues?q=label%3Abug+milestone%3A6.5+)
- [6.5 
enhancements](https://github.com/leo-editor/leo-editor/issues?q=is%3Aissue+milestone%3A6.5+label%3Aenhancement+)
- [6.5 code-level 
improvements](https://github.com/leo-editor/leo-editor/issues?q=milestone%3A6.5+label%3Acode+)

**General Links**

- Leo's home page: http://leoeditor.com
- [Documentation](http://leoeditor.com/leo_toc.html)
- [Tutorials](http://leoeditor.com/tutorial.html)
- [Video tutorials](http://leoeditor.com/screencasts.html)
- [Forum](http://groups.google.com/group/leo-editor)
- [Download](http://sourceforge.net/projects/leo/files/)
- [Leo on GitHub](https://github.com/leo-editor/leo-editor)
- [LeoVue](https://github.com/kaleguy/leovue#leo-vue)
- [What people are saying about Leo](http://leoeditor.com/testimonials.html)
- [A web page that displays .leo files](http://leoeditor.com/load-leo.html)
- [More links](http://leoeditor.com/leoLinks.html)
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

See PR 6578. We already faced a similar problem when test_winfo_rgb was added. 
We finally found test colors which behave consistently on all tested platforms. 
But it turns out that not on all.

--

___
Python tracker 

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



[issue45490] [meta][C API] Avoid C macro pitfalls and usage of static inline functions

2021-10-15 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

Meta comment :-) ... wouldn't it be better to enable the Github wiki feature for
such collections ?

--
nosy: +lemburg

___
Python tracker 

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



[issue45427] importlib.readers.MultiplexedPath

2021-10-15 Thread Filipe Laíns

Filipe Laíns  added the comment:

*realize I did *not* point this out

:facepalm: sorry!

--

___
Python tracker 

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



[issue45427] importlib.readers.MultiplexedPath

2021-10-15 Thread Filipe Laíns

Filipe Laíns  added the comment:

Just to clarify, as I realize I did point this out in my reply, 
Traversable[1][2] is the protocol that objects returned by 
importlib.resources.files implement.

[1] https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable
[2] 
https://github.com/python/cpython/blob/00ffc4513df7b89a168e88da4d1e3ac367f7682f/Lib/importlib/abc.py#L355

--

___
Python tracker 

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



[issue45427] importlib.readers.MultiplexedPath

2021-10-15 Thread Filipe Laíns

Filipe Laíns  added the comment:

The Traversable protocol does not guarantee you access to the file-system path. 
pathlib.Path happens to give you that information, but other traversables are 
not required to.

The main reasoning for this is that traversables do not need to exist on the 
file-system, we can be reading from a zip, database, etc.

str(path) does give you the file-system path on pathlib.Path, but there is no 
guarantee about the value of __str__ on other traversables.
My recommendation here would be to use os.fspath[1] instead if you want to try 
getting the file-system path from traversables.

I don't really know what you are trying to accomplish, but I would recommend 
that you try designing your code directly on top of the Traversable interface, 
which should make it work on anything we return in importlib.resources.files.
If you actually need a file-system path, to pass to an external program or 
something like that, you can use the importlib.resources.as_file[2] helper.

bpo-44200 proposes documenting that traversables should implement __fspath__ if 
they represent a file-system path, which could help a bit with your issue.

[1] https://docs.python.org/3/library/os.html#os.fspath
[2] https://docs.python.org/3/library/importlib.html#importlib.resources.as_file

--
nosy: +FFY00, jaraco

___
Python tracker 

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



[issue45486] Stop using internal APIs in _xxsubinterpretersmodule.c.

2021-10-15 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +FFY00

___
Python tracker 

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



[issue45379] Improve errors related to frozen modules.

2021-10-15 Thread Filipe Laíns

Change by Filipe Laíns :


--
nosy: +FFY00

___
Python tracker 

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



[issue45195] test_readline: test_nonascii() failed on aarch64 RHEL8 Refleaks 3.x

2021-10-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27271
pull_request: https://github.com/python/cpython/pull/28984

___
Python tracker 

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



[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 00ffc4513df7b89a168e88da4d1e3ac367f7682f by Victor Stinner in 
branch 'main':
bpo-45440: Remove pymath.c fallbacks (GH-28977)
https://github.com/python/cpython/commit/00ffc4513df7b89a168e88da4d1e3ac367f7682f


--

___
Python tracker 

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



[issue30459] PyList_SET_ITEM could be safer

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 51f8196d05f0e271358eee0f90fe044b20449fb5 by Victor Stinner in 
branch 'main':
bpo-30459: Use (void) in macros setting variables (GH-28982)
https://github.com/python/cpython/commit/51f8196d05f0e271358eee0f90fe044b20449fb5


--

___
Python tracker 

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



[issue12872] --with-tsc crashes on ppc64

2021-10-15 Thread Irit Katriel


Change by Irit Katriel :


--
stage: patch review -> resolved
status: pending -> closed

___
Python tracker 

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



[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

I created bpo-45490: "[meta][C API] Avoid C macro pitfalls and usage of static 
inline functions" to discuss macros and static inline functions more generally.

--

___
Python tracker 

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



[issue45490] [meta][C API] Avoid C macro pitfalls and usage of static inline functions

2021-10-15 Thread STINNER Victor


New submission from STINNER Victor :

C macros are really cool and useful, but there are a bunch of pitfalls which 
are better to avoid:
https://gcc.gnu.org/onlinedocs/cpp/Macro-Pitfalls.html

Some macros of the Python C API have been converted to static inline functions 
over the last years. It went smoothly, I am not aware of any major issue with 
these conversions.

This meta issue tracks other issues related to macros and static inline 
functions.


=== Return void ===

One issue is that some macros are treated as an expression and can be reused, 
whereas it was not intended. For example PyList_SET_ITEM() was implemented as 
(simplified code):

  #define PyList_SET_ITEM(op, i, v) (op->ob_item[i] = v)

This expression has a value! Two projects used this value by mistake, like:

  "if (obj == NULL || PyList_SET_ITEM (l, i, obj) < 0)"

PyList_SET_ITEM() was fixed by casting the expression to void:

  #define PyList_SET_ITEM(op, i, v) ((void)(op->ob_item[i] = v))

=> bpo-30459



=== Abuse macros as an l-value ===

The Py_TYPE() macro could be used to assign a value: "Py_TYPE(obj) = new_type".

The macro was defined as:

  #define Py_TYPE(ob) (ob->ob_type)

It was converted to a static inline function to disallow using it as an l-value 
and a new Py_SET_TYPE(op, new_type) function was added. These changes give more 
freedom to other Python implementations to implement "PyObject" and 
Py_SET_TYPE().

=> bpo-45476 "[C API] Disallow using PyFloat_AS_DOUBLE() as l-value"
=> bpo-39573 PyObject Py_TYPE/Py_SET_TYPE


=== C API: Macros and embedded Python ===

Sadly, only symbols exported by libpython are accessible to other programming 
languages embedding Python. Macros of the Python C API are simply not available 
to them. Projects embedding Python have to hardcode constants and copy macros 
to their own language, with the risk of being outdated when Python macros are 
updated.

Even some projects written in C cannot use macros, because they only use 
libpython symbols. The vim text editor embeds Python this way.

Also, macros are simply excluded from the Python stable ABI (PEP 384).


=== Performance of static inline functions ===

In bpo-45116, it seems like _PyEval_EvalFrameDefault() reached Visual Studio 
thresholds and some static inline functions are no longer inlined 
(Py_INCREF/Py_DECREF).

I also noticed that when Python is built in debug mode in Visual Studio, static 
inline functions are not inlined. Well, the compiler is free to not inline in 
debug mode. I guess that GCC and clang also skip inlining using -Og and/or -O0 
optimization levels. Using __forceinline and __attribute__((always_inline)) on 
static inline functions (Py_INCREF, Py_TYPE) for debug builds was discussed in 
bpo-45094, but the idea was rejected.

On the other side, sometimes it's better to *disable* inlining on purpose to 
reduce the stack memory consumption, using the Py_NO_INLINE macro. See recent 
measurements of the stack memory usage:
https://bugs.python.org/issue45439#msg403768

In GH-28893, I noticed that converting a static inline function 
(PyObject_CallOneArg) to a regular function made it faster. I am not really 
sure, more benchmarks should be run to really what's going on.


=== Advantages of static inline functions ===

* It's possible to put a breakpoint on a static inline functions.

* Debuggers and profilers are able to get the static inline function names from 
the machine line, even with inline functions.

* Parameters and the return value have well defined types.

* Variables have a local scope.

* There is no risk of evaluating an expression multiple times.

* Regular C code. No need to use "\" character to multi-line statement. No need 
for "do { ... } while (0)" and other quicks to workaround preprocessor 
pitfalls. No abuse of (((parenthesis))).

--
components: C API
messages: 404038
nosy: vstinner
priority: normal
severity: normal
status: open
title: [meta][C API] Avoid C macro pitfalls and usage of static inline functions
versions: Python 3.11

___
Python tracker 

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



[issue45489] ForwardRef does not support | operator

2021-10-15 Thread Bobbey Reese


New submission from Bobbey Reese :

Not positive this is a bug, but it seems like ForwardRef should support the 
pipe (|) operator for indicating Unions in Python 3.10:

Python 3.10.0 (default, Oct  4 2021, 22:09:55) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from typing import ForwardRef
>>> ForwardRef('asdf') | ForwardRef('fdsa')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unsupported operand type(s) for |: 'ForwardRef' and 'ForwardRef'
>>> int | str
int | str
>>>

--
messages: 404037
nosy: bobbeyreese
priority: normal
severity: normal
status: open
title: ForwardRef does not support | operator
type: behavior
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



[issue45488] Powershell Commands no Longer Recognised

2021-10-15 Thread The Guy


New submission from The Guy :

I am using pyinstaller to port my python programs into windows executables so 
that I can distribute them among my friends, and I recently assigned python to 
my windows PATH (I'm still not 100% sure what that means so idk if im even 
saying that right) and now a large amount of my computers basic powershell 
commands are no longer recognized; trying to use the cmd cmdlet i am only met 
with the "not recognized as the name of a cmdlet, function, or operable 
program" error. I've checked the internet pretty extensively and I haven't 
found anything that works, if you know what's going on or have any ideas on how 
to fix it, any help would be greatly appreciated. 
P.S. I am an amateur programmer and I just started dipping my toes into python, 
so I apologize if I don't give enough/correct information, I am still very new 
to this and am happy to answer questions as needed. Also sorry if this is the 
wrong place to ask about these kinds of issues, idk where else to ask. (pls be 
nice im new)

--
assignee: docs@python
components: Documentation, Windows
messages: 404036
nosy: docs@python, julienbloxerk, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Powershell Commands no Longer Recognised
type: behavior
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



[issue42222] Modernize integer test/conversion in randrange()

2021-10-15 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
pull_requests: +27270
pull_request: https://github.com/python/cpython/pull/28983

___
Python tracker 

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



[issue45417] Enum creation non-linear in the number of values

2021-10-15 Thread Ethan Furman


Change by Ethan Furman :


--
assignee:  -> ethan.furman
stage: patch review -> backport needed
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



[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard


Richard  added the comment:

Sorry, I mean it works fine with Python 3.9.2 from apt as well as Python 3.9.7 
from pyenv. But 3.10.0 and 3.11-dev from pyenv are broken.

--

___
Python tracker 

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



[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard

Richard  added the comment:

Note that the same happens with pyenv-compiled Python 3.9.7 (same way as I 
compiled 3.10 and 3.11), to rule out issues with different installation methods:

```
❯ python3.9 -VV
Python 3.9.7 (default, Oct  8 2021, 10:30:22) 
[GCC 10.2.1 20210110]
```

--

___
Python tracker 

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



[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard

New submission from Richard :

Starting in Python 3.10, TLS connections to certain servers (e.g. 
websocket-cs.vudu.com:443) are failing when it worked fine on Python 3.9 and 
earlier on the same system.


Minimal working example:

```
#!/usr/bin/env python3

import socket
import ssl

HOST = 'websocket-cs.vudu.com'
PORT = 443

sock = socket.create_connection((HOST, PORT))
ctx = ssl.create_default_context()
ssock = ctx.wrap_socket(sock, server_hostname=HOST)
print("Connection successful")
```


Output:
```
❯ python3.9 ssl_eof_test.py
Connection successful

❯ python3.10 ssl_eof_test.py
Traceback (most recent call last):
  File "/home/nyuszika7h/ssl_eof_test.py", line 11, in 
ssock = ctx.wrap_socket(sock, server_hostname=HOST)
  File "/home/nyuszika7h/.pyenv/versions/3.10.0/lib/python3.10/ssl.py", line 
512, in wrap_socket
return self.sslsocket_class._create(
  File "/home/nyuszika7h/.pyenv/versions/3.10.0/lib/python3.10/ssl.py", line 
1070, in _create
self.do_handshake()
  File "/home/nyuszika7h/.pyenv/versions/3.10.0/lib/python3.10/ssl.py", line 
1341, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:997)

❯ python3.11 ssl_eof_test.py
Traceback (most recent call last):
  File "/home/nyuszika7h/ssl_eof_test.py", line 11, in 
ssock = ctx.wrap_socket(sock, server_hostname=HOST)
^^^
  File "/home/nyuszika7h/.pyenv/versions/3.11-dev/lib/python3.11/ssl.py", line 
517, in wrap_socket
return self.sslsocket_class._create(
   ^
  File "/home/nyuszika7h/.pyenv/versions/3.11-dev/lib/python3.11/ssl.py", line 
1075, in _create
self.do_handshake()
^^^
  File "/home/nyuszika7h/.pyenv/versions/3.11-dev/lib/python3.11/ssl.py", line 
1346, in do_handshake
self._sslobj.do_handshake()
^^^
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:998)
```


System information:

```
❯ uname -a
Linux cadoth 5.10.0-8-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 
GNU/Linux

❯ lsb_release -d
Description:Debian GNU/Linux 11 (bullseye)

❯ openssl version
OpenSSL 1.1.1k  25 Mar 2021

❯ python3.9 -VV
Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110]

❯ python3.10 -VV
Python 3.10.0 (default, Oct  5 2021, 00:24:29) [GCC 10.2.1 20210110]

❯ python3.11 -VV
Python 3.11.0a1+ (heads/main:547d26aa08, Oct 15 2021, 17:35:52) [GCC 10.2.1 
20210110]

❯ python3.9 -c 'import ssl; print(ssl.OPENSSL_VERSION)'
OpenSSL 1.1.1k  25 Mar 2021

❯ python3.10 -c 'import ssl; print(ssl.OPENSSL_VERSION)'
OpenSSL 1.1.1k  25 Mar 2021

❯ python3.11 -c 'import ssl; print(ssl.OPENSSL_VERSION)'
OpenSSL 1.1.1k  25 Mar 2021
```

--
assignee: christian.heimes
components: SSL
messages: 404033
nosy: christian.heimes, nyuszika7h
priority: normal
severity: normal
status: open
title: SSLEOFError regression with certain servers in Python 3.10
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for the correction, Ned!

--

___
Python tracker 

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



[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Ned Deily


Ned Deily  added the comment:

> I think https://github.com/python/pythondotorg/issues is the correct place to 
> report issues with the web site.

In this case, it has to do with how the docs are generated with Sphinx and the 
source for them is in the cpython repo. You can see the problem if you build 
the docs yourself and open them in a browser.

--
nosy: +mdk, ned.deily

___
Python tracker 

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



[issue45483] pure Python class that has been registered as a `collections.abc.Sequence` can't be recgnized by the match statement without the `_abc` module

2021-10-15 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +rhettinger

___
Python tracker 

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



[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Steve, how do we make it so that "Edit with IDLE" appears when right-clicking 
on a .pyi file in Windows explorer?  As easy as on mac (see Ronald's answer 
above)?

--
nosy: +steve.dower

___
Python tracker 

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



[issue30459] PyList_SET_ITEM could be safer

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27269
pull_request: https://github.com/python/cpython/pull/28982

___
Python tracker 

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



[issue45442] Update `Virtual Environment` tutorial

2021-10-15 Thread Shivnaren Srinivasan


Change by Shivnaren Srinivasan :


--
pull_requests: +27268
pull_request: https://github.com/python/cpython/pull/28981

___
Python tracker 

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



[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In Paine's failing color test, the returned tuple is The returned tuple is 
(0x4a48, 0x3c27, 0x8c91) versus (0x4a4a, 0x3c3c, 0x8c91), which is to say, 
nearly correct.  Since the tested call is 
  self._getints(self.tk.call('winfo', 'rgb', self._w, color))
either ._getints is buggy on this particular system (seems very unlikely), or 
root.tk.call is doing something flakey on this particular system (ditto), or 
the result is entirely the responsibility of tcl/tk and the test is too severe, 
testing tk, not our _tkinter/tkinter.

The preceding assert, which passed, is
  self.assertEqual(rgb('#F0F'), (0x, 0x, 0x))
Since the should that the call basically works, is the more detailed test 
needed for testing tkinter?

I looked at the color man page.  It says "When fewer than 16 bits are provided 
for each color, they represent the most significant bits of the color, while 
the lower unfilled bits will be repeatedly replicated from the available higher 
bits. For example, #3a7 is the same as #." This is 4 bits to 16. It 
does not give an example for 8 or 12 to 16 and this might allow some wiggle 
room.

Other text indicates some fuzziness in exact colors. "Tk_AllocColorFromObj 
returns a pointer to an XColor structure; the structure indicates the exact 
intensities of the allocated color (which may differ slightly from those 
requested, depending on the limitations of the screen)"  Perhaps this 
screen-specific behavior is happening here. 

Also, "They allow colors to be shared whenever possible, so that colormap space 
is preserved, and they pick closest available colors when colormap space is 
exhausted. "  Could this happen here?

test_winfo_rgb has multiple asserts.  If this one is commented out, do the rest 
pass?

--

___
Python tracker 

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



[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
title: Performance regression 3.10b1 and later on Windows: Py_DECREF() not 
inlined in PGO build -> Performance regression 3.10b1: inlining issue in the 
big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

___
Python tracker 

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



[issue45444] test.test_concurrent_futures fail in x86_ 64 architecture

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

What is your operating system? (name/version) Did you try to build Python 
manually and run the test manually? How did you build Python? What are the 
configure flags and compiler flags?

--
nosy: +vstinner

___
Python tracker 

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



[issue45486] Stop using internal APIs in _xxsubinterpretersmodule.c.

2021-10-15 Thread Eric Snow


New submission from Eric Snow :

By design, _xxsubinterpretersmodule is not supposed to be a builtin module.  As 
a regular extension module it should only use public (or 
private-but-not-internal) APIs.  In fact, I was careful to not use any internal 
APIs in the implementation.  However, some have crept in.  The usage of 
internal API should be replaced with public (or private) API.  If necessary, 
new API should be added.

--
messages: 404027
nosy: eric.snow, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: Stop using internal APIs in _xxsubinterpretersmodule.c.
versions: Python 3.11

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please provide a code snippet we can run that demonstrates the problem.

--
nosy: +eric.smith

___
Python tracker 

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



[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

PyThreadState.cframe.use_tracing format changed again: set value set to 0 or 
255.
https://github.com/python/cpython/commit/bd627eb7ed08a891dd1356756feb1ce2600358e4

--

___
Python tracker 

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



[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

> bpo-43760: Add PyThreadState_EnterTracing() (GH-28542)

I created changes to use it:

* pythoncapi_compat: 
https://github.com/pythoncapi/pythoncapi_compat/commit/10fde24739cab4547e9c27c31c8804a25e23e8a0
* Cython: https://github.com/cython/cython/pull/4411
* greenlet: https://github.com/python-greenlet/greenlet/pull/267

--

___
Python tracker 

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



[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The most straightforward change for macOS is to add “pyi” to the list of 
extensions in “Mac/IDLE/IDLE.app/Contents/Info.plist”.  That way IDLE will be 
seen as a valid editor for .pyi files.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue43725] Create a release branch ABI stability regression test

2021-10-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I will add something to the devguide explaining how to do it. In any case, the 
RM should be ideally the one doing this because every potential ABI breakage 
need to be supervised by the RM (even if is a false positive).

--

___
Python tracker 

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



[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Yes.  After this issue is done, we should open a new issue and nosy Steve 
Dower, who is in charge of that for Windows, and Ned Deily, in case anything 
should be done on mac.

--

___
Python tracker 

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



[issue45481] gc is disabled without explict calling gc.disable()

2021-10-15 Thread Zachary Ware


Change by Zachary Ware :


--
versions:  -Python 3.6

___
Python tracker 

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



[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba by Victor Stinner in 
branch 'main':
bpo-43760: Add PyThreadState_EnterTracing() (GH-28542)
https://github.com/python/cpython/commit/547d26aa08aa5e4ec6e4f8a5587b30b39064a5ba


--

___
Python tracker 

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



[issue43725] Create a release branch ABI stability regression test

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

> the dump needs to be generated in a docker container using the same compiler 
> version that is used in the CI

I'm not used to docker and I don't know how to get a docker similar than the 
one used by GitHub Action. Is there a documentation somewhere giving commands 
to get the docker image and how to run it?

--

___
Python tracker 

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



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Freek de Kruijf


New submission from Freek de Kruijf :

In a piece of code I have
pT = datetime.strptime(a[0],"%Y-%m-%dT%H:%M:%S.%f")
When I check type(a[0]) I got type(a[0]):  not 
In this case I get: message attribute of type 'NoneType' is not 
callableTraceback
When I use str(a[0]) instead of a[0], the issue is gone.
a[0] behaves elsewhere as a string without the surrounding str().
This piece of code is rather local in a larger program.

--
components: Interpreter Core
messages: 404018
nosy: f.de.kruijf
priority: normal
severity: normal
status: open
title: datetime.strptime issues message attribute of type 'NoneType' is not 
callableTraceback
type: behavior

___
Python tracker 

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



[issue45473] Enum: add "name" and "value" keywords to call syntax

2021-10-15 Thread Ethan Furman


Ethan Furman  added the comment:

> Are there any other names that you would contemplate besides `from_name` and
> `from_value`?

No.

> My reading of your response indicates that you are fundamentally opposed to
> the addition of class methods, since they would limit the space of possible
> instance methods/members.  Is that a fair reading?

Yes.

Instance methods/attributes are not an issue, though, as the instance namespace 
and the class namespace are distinct -- which is why we can have a `value` 
member even though each member has a `value` attribute.

The issue is that class methods/attributes and members (which look like 
attributes) all live in the class namespace, so we cannot have both a 
`from_value` member and a `from_value` class method in the class namespace.

> Do you agree with the fundamental issue that is identified: that the
> parenthesis/square bracket construction is difficult to read and makes
> implementation mistakes more likely?

Only partially.  Being able to easily tell the difference between round and 
square brackets is an important skill to have.  With enums, square brackets are 
akin to dictionary lookup, which uses (string) keys, and the keys of an enum 
are the member names; that leaves round brackets (parenthesis), which is call 
syntax, for value lookup.

Additionally, if the wrong syntax is used then an exception will be raised at 
that location, making it an easy  fix.

> One alternative to the class methods I might propose is to use a keyword
> argument in the __init__ function.
>
>SomeEnum(name="foo")
>SomeEnum(value="bar")
>
> This would also solve the stated problem, but I suspect that messing with the
> init function introduces more limitations to the class than the classmethod
> solution.

This idea has come up before.  I'll look into it.

--
title: Enum add "from_name" and "from_value" class methods -> Enum: add "name" 
and "value" keywords to call syntax

___
Python tracker 

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



[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27267
pull_request: https://github.com/python/cpython/pull/28979

___
Python tracker 

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



[issue44849] test_os: test_get_set_inheritable_o_path() failed on AMD64 FreeBSD Shared 3.x

2021-10-15 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27266
pull_request: https://github.com/python/cpython/pull/28978

___
Python tracker 

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



[issue32596] Lazy import concurrent.futures.process and thread

2021-10-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you Inada-san. My first intention when I seen this code was to simplify 
it, but then I have found that it was an intentional change.

It may be easy to detect such code and raise a syntax warning or error. Or get 
rid of this limitation and allow globals officially here.

--

___
Python tracker 

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



[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like pickle tests started to crash at build 936, 4 days ago:
https://buildbot.python.org/all/#/builders/402/builds/936

This build was trigged by the change:

commit fcb3d2ff633f3e9a826888d8b29c305a3959ff54
Author: Mark Shannon 
Date:   Mon Oct 11 11:34:02 2021 +0100

Restore PEP 523 functionality. (GH-28871)


I don't know if the commit is related to the crash or not.

--

___
Python tracker 

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



[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-15 Thread STINNER Victor


New submission from STINNER Victor :

s390x RHEL7 LTO 3.x:
https://buildbot.python.org/all/#/builders/402/builds/979


0:02:00 load avg: 5.14 [193/427/2] test_pickletools crashed (Exit code -11) -- 
running: test_unparse (30.6 sec), test_concurrent_futures (1 min 56 sec), 
test_multiprocessing_spawn (43.2 sec)
Fatal Python error: Segmentation fault

Current thread 0x03ffb8e77700 (most recent call first):
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3304 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  (...)
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  ...

Extension modules: _testcapi, _testbuffer (total: 2)


and


test_instance_dispatch_table (test.test_pickle.CDispatchTableTests) ... ok
test_appends_on_non_lists (test.test_pickle.CDumpPickle_LoadPickle) ... ok
test_attribute_name_interning (test.test_pickle.CDumpPickle_LoadPickle) ... ok
Fatal Python error: Segmentation fault

Current thread 0x03ff80377700 (most recent call first):
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  (...)
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  File 
"/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z.lto/build/Lib/test/pickletester.py",
 line 3305 in __getattr__
  ...

Extension modules: _testcapi, _testbuffer (total: 2)


--
components: Tests
messages: 404014
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_pickle segfault on s390x RHEL7 LTO 3.x
versions: Python 3.11

___
Python tracker 

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



[issue45482] [C API] Move _PyNamespace_New() to the internal C API

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: [C API] Add PySimpleNamespace_New() function -> [C API] Move 
_PyNamespace_New() to the internal C API

___
Python tracker 

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



[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 354c35220d25a893e502014478f6739dad6897f3 by Victor Stinner in 
branch 'main':
bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975)
https://github.com/python/cpython/commit/354c35220d25a893e502014478f6739dad6897f3


--

___
Python tracker 

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



[issue45440] [C API] Py_IS_INFINITY() macro doesn't work in the limited C API if isinf() is not defined

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27265
pull_request: https://github.com/python/cpython/pull/28977

___
Python tracker 

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



[issue32596] Lazy import concurrent.futures.process and thread

2021-10-15 Thread Inada Naoki


Inada Naoki  added the comment:

See this comment.
https://github.com/python/cpython/pull/5241#discussion_r162765765

--

___
Python tracker 

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



[issue45483] pure Python class that has been registered as a `collections.abc.Sequence` can't be recgnized by the match statement without the `_abc` module

2021-10-15 Thread GalaxySnail


New submission from GalaxySnail :

Pure Python class that has been registered as a `collections.abc.Sequence` 
can't be recgnized by the match statement without the `_abc` module.

For example:

```
>>> from test.support.import_helper import import_fresh_module

>>> collections_abc_with_c_abc = import_fresh_module(
... "collections.abc", fresh=["_collections_abc", "abc", "_abc"])

>>> class MyList:
... def __init__(self, iterable):
... self.list = list(iterable)
... def __len__(self):
... return len(self.list)
... def __getitem__(self, item):
... return self.list[item]
...
>>> collections_abc_with_c_abc.Sequence.register(MyList)

>>> match MyList(range(3, 10)):
... case [x, *_]:
... print(x)
... case _:
... print("not a sequence")
...
3

>>> collections_abc_with_py_abc = import_fresh_module(
... "collections.abc", fresh=["_collections_abc", "abc"], blocked=["_abc"])
>>> class MyList:
... def __init__(self, iterable):
... self.list = list(iterable)
... def __len__(self):
... return len(self.list)
... def __getitem__(self, item):
... return self.list[item]
...
>>> collections_abc_with_py_abc.Sequence.register(MyList)

>>> match MyList(range(3, 10)):
... case [x, *_]:
... print(x)
... case _:
... print("not a sequence")
...
not a sequence
```

It seems to be caused by 
https://github.com/python/cpython/commit/069e81ab3da46c441335ca762c4333b7bd91861d
 , only `tp_flags` are checked in the `MATCH_SEQUENCE` opcode. `Mapping` has 
the same problem.

--
messages: 404011
nosy: GalaxySnail
priority: normal
severity: normal
status: open
title: pure Python class that has been registered as a 
`collections.abc.Sequence` can't be recgnized by the match statement without 
the `_abc` module
type: behavior
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue45476] [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
title: [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static 
inline functions -> [C API] Disallow using PyFloat_AS_DOUBLE() as l-value

___
Python tracker 

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



[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

> #define Py_RVALUE(expr) ((void)0, (expr))

Oh, that's a clever trick!

I wrote GH-28976 which uses it.

--

___
Python tracker 

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



[issue44977] Deprecate delegation of int to __trunc__

2021-10-15 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
components: +Interpreter Core
stage:  -> needs patch
title: Deprecate delegation of int to __trunc__? -> Deprecate delegation of int 
to __trunc__
versions: +Python 3.11

___
Python tracker 

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



[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27264
pull_request: https://github.com/python/cpython/pull/28976

___
Python tracker 

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



[issue45428] py_compile fails to read filenames from stdin

2021-10-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your contribution Graham.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11

___
Python tracker 

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



[issue43139] test_ttk test_compound, test_tk test_type fail with Tk 8.6.11.1

2021-10-15 Thread E. Paine


E. Paine  added the comment:

TL;DR I believe these are both Tk issues. I will take it up with them when I 
have time.

Starting with `test_winfo_rgb`, it is not the case that the expected behaviour 
is no longer that #4a3c8c is equivalent to #4a4a3c3c8c8c since this is 
documented on the man page (https://www.tcl.tk/man/tcl/TkLib/GetColor.html#M8). 
I need to do more research into exactly what versions / platforms are effected.

I also believe the problem with `test_configure_type` is on the Tk end, since 
`[menu .m] configure -type {}` succeeds despite not being documented on the man 
page (https://www.tcl.tk/man/tcl8.4/TkCmd/menu.html#M13) nor in the "bad type" 
message:
% [menu .m] configure -type a 
bad type "a": must be normal, tearoff, or menubar

--

___
Python tracker 

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



[issue45428] py_compile fails to read filenames from stdin

2021-10-15 Thread miss-islington


miss-islington  added the comment:


New changeset 2b6eb8149656541044884e76212495175e061a0a by Miss Islington (bot) 
in branch '3.10':
bpo-45428: Fix reading filenames from stdin in py_compile (GH-28848)
https://github.com/python/cpython/commit/2b6eb8149656541044884e76212495175e061a0a


--

___
Python tracker 

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



[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-15 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

On 14.10.2021 22:56, Eric Snow wrote:
> 
> @MAL, what's the best way to make sure Tools/freeze is still working?  I 
> don't see any tests for it in the test suite.  I tried running the test in 
> Tools/freeze/test, but I can't get that to work on main (or on the 3.10 
> branch).

You'd have to create a frozen binary using the standard way freeze
works. I have never run those tests, so don't know whether they work,
but, of course, made sure that the freeze works as basis for PyRun
and patched it slightly to add features we needed.

One of these days, I need to refactor PyRun into a standalone project
and put it on Github (it's currently integrated into our internal
single repo setup). Then it'll be easier to see the changes I made.
For now, I can only reference the tar file:

https://www.egenix.com/products/python/PyRun/#Download
https://www.egenix.com/products/python/PyRun/#Installation

I can send you an updated version for Python 3.8, if there's
interest.

Essentially, you need to create a Python module which runs your
application, then point freeze.py to it and then compile the
generated .c files using the generated Makefile.

--

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a7f8dfd25a167ccfde9996c499fa38a2aba60022 by Victor Stinner in 
branch 'main':
bpo-44113: Move the What's New entry to Deprecate section (GH-28974)
https://github.com/python/cpython/commit/a7f8dfd25a167ccfde9996c499fa38a2aba60022


--

___
Python tracker 

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



[issue45229] Always use unittest for collecting tests in regrtests

2021-10-15 Thread jerry chow


Change by jerry chow :


--
nosy: +jerrylikerice1s

___
Python tracker 

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



[issue45451] IDLE Shell GUI - remove window border

2021-10-15 Thread jerry chow


Change by jerry chow :


--
nosy: +jerrylikerice1s

___
Python tracker 

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



[issue45457] Documentation for ssl.load_default_certs is outdated

2021-10-15 Thread jerry chow


Change by jerry chow :


--
nosy: +jerrylikerice1s

___
Python tracker 

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



[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:

> The other choice is to move the function to the internal C API.

I created GH-28975 for that.

--

___
Python tracker 

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



[issue45482] [C API] Add PySimpleNamespace_New() function

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27263
pull_request: https://github.com/python/cpython/pull/28975

___
Python tracker 

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



[issue45445] Fail if an invalid -X option is provided

2021-10-15 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 79bc5e1dc6f87149240bded3654574b24168f1ac by Pablo Galindo Salgado 
in branch 'main':
bpo-45445: Remove incorrectly commited test file (GH-28972)
https://github.com/python/cpython/commit/79bc5e1dc6f87149240bded3654574b24168f1ac


--

___
Python tracker 

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



[issue44113] [C API] Deprecate legacy API for configure Python initialization

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27262
pull_request: https://github.com/python/cpython/pull/28974

___
Python tracker 

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



[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 105582e74c1817bc6a9d99bcb6540b34a3367292 by Victor Stinner in 
branch 'main':
bpo-45434: Remove Include/eval.h header file (GH-28973)
https://github.com/python/cpython/commit/105582e74c1817bc6a9d99bcb6540b34a3367292


--

___
Python tracker 

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



[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread Gareth Rees

Gareth Rees  added the comment:

If the problem is accidental use of the result of PyFloat_AS_DOUBLE() as an 
lvalue, why not use the comma operator to ensure that the result is an rvalue?

The C99 standard says "A comma operator does not yield an lvalue" in §6.5.17; I 
imagine there is similar text in other versions of the standard.

The idea would be to define a helper macro like this:

/* As expr, but can only be used as an rvalue. */
#define Py_RVALUE(expr) ((void)0, (expr))

and then use the helper where needed, for example:

#define PyFloat_AS_DOUBLE(op) Py_RVALUE(((PyFloatObject *)(op))->ob_fval)

--
nosy: +g...@garethrees.org

___
Python tracker 

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



[issue45465] logging messages are needlessly reformatted for every handler

2021-10-15 Thread Vinay Sajip


Vinay Sajip  added the comment:

A developer may wish to format messages differently for different audiences 
(i.e. different handlers) - for example, omit stack traces. This behaviour is 
by design.

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



[issue45476] [C API] Convert "AS" functions, like PyFloat_AS_DOUBLE(), to static inline functions

2021-10-15 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

On 15.10.2021 11:43, STINNER Victor wrote:
> Again, I'm not aware of any performance issue caused by short static inline 
> functions like Py_TYPE() or the proposed PyFloat_AS_DOUBLE(). If there is a 
> problem, it should be addressed, since Python uses more and more static 
> inline functions.
> 
> static inline functions is a common feature of C language. I'm not sure where 
> your doubts of bad performance come from.

Inlining is something that is completely under the control of the
used compilers. Compilers are free to not inline function marked for
inlining, which can result in significant slowdowns on platforms
which are e.g. restricted in RAM and thus emphasize on small code size,
or where the CPUs have small caches or not enough registers (think
micro-controllers).

The reason why we have those macros is because we want the developers to be
able to make a conscious decision "please inline this code unconditionally
and regardless of platform or compiler". The developer will know better
what to do than the compiler.

If the developer wants to pass control over to the compiler s/he can use
the corresponding C function, which is usually available (and then, in many
cases, also provides error handling).

> Using static inline functions has other advantages. It helps debugging and 
> profiling, since the function name can be retrieved by debuggers and 
> profilers when analysing the machine code. It also avoids macro pitfalls 
> (like abusing a macro to use it as an l-value ;-)).

Perhaps, but then I never had to profile macro use in the past. Instead,
what I typically found was that using macros results in faster code when
used in inner loops, so profiling usually guided me to use macros instead
of functions.

That said, the macros you have inlined so far were all really trivial,
so a compiler will most likely always inline them (the number of machine
code instructions for the call would be more than needed for
the actual operation).

Perhaps we ought to have a threshold for making such decisions, e.g.
number of machine code instructions generated for the macro or so, to
not get into discussions every time :-)

A blanket "static inline" is always better than a macro is not good
enough as an argument, though.

Esp. in PGO driven optimizations the compiler could opt for using
the function call rather than inlining if it finds that the code
in question is not used much and it needs to save space to have
loops fit into CPU caches.

--

___
Python tracker 

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



[issue45434] [C API] Clean-up the Python.h header file

2021-10-15 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +27261
pull_request: https://github.com/python/cpython/pull/28973

___
Python tracker 

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



[issue45445] Fail if an invalid -X option is provided

2021-10-15 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +27260
pull_request: https://github.com/python/cpython/pull/28972

___
Python tracker 

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



[issue45447] IDLE: Support syntax highlighting for .pyi stub files

2021-10-15 Thread E. Paine


E. Paine  added the comment:

Would it make sense, since this issue pretty much makes IDLE officially support 
.pyi files, to add the "Edit with IDLE" menu when right-clicking on a .pyi file 
in Windows explorer?

--

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2021-10-15 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 063abd931f064a4b6b478b0b6e9aa13ee38d2cff by Victor Stinner in 
branch 'main':
bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969)
https://github.com/python/cpython/commit/063abd931f064a4b6b478b0b6e9aa13ee38d2cff


--

___
Python tracker 

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



[issue32596] Lazy import concurrent.futures.process and thread

2021-10-15 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

What are issues with using global variable as import target?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



  1   2   >