[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



[issue42402] Termios module documentation is extremely lacking

2020-11-18 Thread Dan Merillat


New submission from Dan Merillat :

"The interpretation of the flags and the speeds as well as the indexing in the 
cc array must be done using the symbolic constants defined in the |termios| 
module."  (termios links to itself)

These constants are not listed in the documentation and the termios module is 
installed as a shared library so you can't read it without going to the source.

Furthermore the example in the documentation uses the following example:

new = termios.tcgetattr(fd)
new[3] = new[3] & ~termios.ECHO  # lflags

Which is explicitly against the documentation on the same page.
This has led to most searches on the net turning up people using magic numbers 
in places instead of symbolic values.

Inserting a list of constants with an extremely brief description would improve 
the module documentation dramatically.

--
assignee: docs@python
components: Documentation
messages: 381393
nosy: dan.merillat, docs@python
priority: normal
severity: normal
status: open
title: Termios module documentation is extremely lacking
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



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

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset fa2eee975dbf7d2728021ef9d97328bbe88351cf by Christian Heimes in 
branch 'master':
bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360)
https://github.com/python/cpython/commit/fa2eee975dbf7d2728021ef9d97328bbe88351cf


--

___
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-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset cc0cd43c0f96dac413e54855e9c77ec4b73bd2f8 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _random to multiphase initialization (GH-23359)
https://github.com/python/cpython/commit/cc0cd43c0f96dac413e54855e9c77ec4b73bd2f8


--

___
Python tracker 

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



[issue42375] subprocess DragonFlyBSD build update

2020-11-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22281
pull_request: https://github.com/python/cpython/pull/23389

___
Python tracker 

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



[issue42375] subprocess DragonFlyBSD build update

2020-11-18 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue42375] subprocess DragonFlyBSD build update

2020-11-18 Thread miss-islington


New submission from miss-islington :


New changeset 13b865f0e17c88b081c23f7f05cf91166d220a50 by David CARLIER in 
branch 'master':
bpo-42375: subprocess DragonFlyBSD build update. (GH-23320)
https://github.com/python/cpython/commit/13b865f0e17c88b081c23f7f05cf91166d220a50


--
nosy: +miss-islington

___
Python tracker 

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



[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Perhaps Kyle is right, I had a misunderstanding with `get_running_loop()` vs 
`_get_running_loop()`.

The last version seems good except for the rare chance of race condition.

The safe code can look like:

global_lock = threading.Lock()  like GIL

   def _get_loop(self):
   loop = asyncio.get_running_loop()
   if self._loop is None:
# the lock is required because
# the thread switch can happen
# between `self._loop is None` check
# and `self._loop = loop` assignment
with global_lock:
if self._loop is not None:
self._loop = loop
   if loop is not self._loop: raise

The alternative is using the fast C atomic `compare_and_swap` function
which is executed under the hold GIL.
We need the pure-Python fallback anyway.

Multithreading is hard...

--

___
Python tracker 

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



[issue27917] Choose platform triplets for android builds

2020-11-18 Thread pmp-p


Change by pmp-p :


--
nosy: +pmpp

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-18 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +22279
pull_request: https://github.com/python/cpython/pull/23386

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-18 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 4687338d0ed46e1f5f5060536becf8a96496bae7 by kj in branch 'master':
bpo-42345: Add whatsnew for typing.Literal in 3.10 (GH-23385)
https://github.com/python/cpython/commit/4687338d0ed46e1f5f5060536becf8a96496bae7


--

___
Python tracker 

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



[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

> Would this not also stop a number of IDLE tests? (Terry?)

Yes, at least half of them.  It took years to get us to run gui tests with the 
X simulator mock.  When we first added gui tests for IDLE in 2013, they (and 
the t/tk gui tests) were only run on Windows.

Please do not undo that.  Better to kill just wait-visibility on Linux.

--

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-18 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +22278
pull_request: https://github.com/python/cpython/pull/23385

___
Python tracker 

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



[issue42202] Optimize function annotation

2020-11-18 Thread Inada Naoki


Change by Inada Naoki :


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue42401] Plislit does not handle date timezone correctly

2020-11-18 Thread Jean-Charles BERTIN


Change by Jean-Charles BERTIN :


--
components:  -macOS

___
Python tracker 

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



[issue10399] AST Optimization: inlining of function calls

2020-11-18 Thread Paulo Henrique Silva


Change by Paulo Henrique Silva :


--
nosy: +phsilva

___
Python tracker 

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



[issue42401] Plislit does not handle date timezone correctly

2020-11-18 Thread Jean-Charles BERTIN


Change by Jean-Charles BERTIN :


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

___
Python tracker 

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



[issue42401] Plislit does not handle date timezone correctly

2020-11-18 Thread Jean-Charles BERTIN


New submission from Jean-Charles BERTIN :

The plistlib library does not write dates correctly due to its timezone naive 
date management.

For an example, see 
https://gist.github.com/jcbertin/fedc115ea8122bec9953aa11041294eb or file 
attached.

--
components: Library (Lib), macOS
files: incorrect_timezone.py
messages: 381386
nosy: jcbertin, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Plislit does not handle date timezone correctly
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49607/incorrect_timezone.py

___
Python tracker 

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



[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-18 Thread Kyle Stanley


Kyle Stanley  added the comment:

Regarding the example _get_loop():

```
   def _get_loop(self):
   loop = asyncio.get_running_loop()
   if self._loop is None:
self._loop = loop
   if loop is not self._loop: raise
   if not loop.is_running(): raise
```

Would this be added to all asyncio primitives to be called anytime a reference 
to the loop is needed within a coroutine?

Also, regarding the last line "if not loop.is_running(): raise" I'm not 100% 
certain that I understand the purpose. Wouldn't it already raise a RuntimeError 
from `asyncio.get_running_loop()` if the event loop wasn't running?

The only thing I can think of where it would have an effect is if somehow the 
event loop was running at the start of `_get_loop()` and then the event loop 
was stopped (e.g. a loop in an alternative thread was stopped by the main 
thread while the alternative thread was in the middle of executing 
`_get_loop()`). But to me, that seems to be enough of an edge case to simplify 
it to the following:


```
   def _get_loop(self):
   loop = asyncio.get_running_loop()
   if self._loop is None:
self._loop = loop
   if loop is not self._loop: raise
```

(Unless you intended for the first line `loop = asyncio.get_running_loop()` to 
instead be using the private `asyncio._get_running_loop()`, which returns None 
and doesn't raise. In that case, the original would be good to me.)

Other than that, I think the approach seems solid.

--

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-18 Thread Yurii Karabas


Change by Yurii Karabas <1998uri...@gmail.com>:


--
pull_requests: +22275
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23383

___
Python tracker 

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



[issue42381] Allow unparenthesized walrus in set comprehensions

2020-11-18 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


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



[issue42381] Allow unparenthesized walrus in set comprehensions

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset a85fefe71b3bf56b1b3e72e752e0f962c3b0b487 by Lysandros Nikolaou in 
branch 'master':
bpo-42381: Document walrus-related syntax changes in whatsnew (GH-23382)
https://github.com/python/cpython/commit/a85fefe71b3bf56b1b3e72e752e0f962c3b0b487


--
nosy: +miss-islington

___
Python tracker 

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



[issue42381] Allow unparenthesized walrus in set comprehensions

2020-11-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 87c87b5bd6f6a5924b485398f353308410f9d8c1 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-42381: Allow walrus in set literals and set comprehensions (GH-23332) 
(GH-2)
https://github.com/python/cpython/commit/87c87b5bd6f6a5924b485398f353308410f9d8c1


--

___
Python tracker 

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



[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

> Despite the fact that asyncio.get_running_loop() never returns None but 
> raises RuntimeError (and maybe other tiny cleanups), 

It never raises when called from inside a coroutine. And I propose to do that. 
So it will never fail.

--

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2020-11-18 Thread Yury Selivanov


Change by Yury Selivanov :


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



[issue42085] Add dedicated slot for sending values

2020-11-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

> Is anything left to do?

I think we can close this now.

--

___
Python tracker 

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



[issue42381] Allow unparenthesized walrus in set comprehensions

2020-11-18 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
pull_requests: +22274
pull_request: https://github.com/python/cpython/pull/23382

___
Python tracker 

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



[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-18 Thread Guido van Rossum


Guido van Rossum  added the comment:

We need to fix this to make __hash__ match __eq__.

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

___
Python tracker 

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



[issue1744] readline module - set/get quote delimiters

2020-11-18 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 3.2

___
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-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6f4635fe20457a7c513050bb117c2f0511cd4e44 by Victor Stinner in 
branch 'master':
bpo-1635741: Port _warnings to the multi-phase init (GH-23379)
https://github.com/python/cpython/commit/6f4635fe20457a7c513050bb117c2f0511cd4e44


--

___
Python tracker 

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



[issue42390] Other Python implementations may not expose the module name in datetime type names

2020-11-18 Thread Jakub Stasiak


Change by Jakub Stasiak :


--
nosy: +jstasiak

___
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-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22273
pull_request: https://github.com/python/cpython/pull/23381

___
Python tracker 

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



[issue21070] test_xmlrpc waits forever instead of reporting failure

2020-11-18 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 
3.4, Python 3.5

___
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-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22272
pull_request: https://github.com/python/cpython/pull/23379

___
Python tracker 

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



[issue38320] Clarify unittest expectedFailure behaviour in the documentation

2020-11-18 Thread Irit Katriel


Change by Irit Katriel :


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



[issue38320] Clarify unittest expectedFailure behaviour in the documentation

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 5f463e501b9667d1059a1e916d59d19cdd6addf7 by Miss Islington (bot) 
in branch '3.8':
[3.8] bpo-38320: Clarify that expectedFailure is satisfied by either failure or 
error of the test. (GH-22740) (GH-22782)
https://github.com/python/cpython/commit/5f463e501b9667d1059a1e916d59d19cdd6addf7


--

___
Python tracker 

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



[issue38320] Clarify unittest expectedFailure behaviour in the documentation

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset f9fa920c30326050a7096c5cb3594465d1e75ff2 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-38320: Clarify that expectedFailure is satisfied by either failure or 
error of the test. (GH-22740) (GH-22783)
https://github.com/python/cpython/commit/f9fa920c30326050a7096c5cb3594465d1e75ff2


--

___
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-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 622307142130d36a30644233441333247838af38 by Victor Stinner in 
branch 'master':
bpo-1635741: Convert _imp to multi-phase init (GH-23378)
https://github.com/python/cpython/commit/622307142130d36a30644233441333247838af38


--

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2020-11-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Is anything left to do?

--

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-11-18 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset e0251787d85950538cf2490c2c73cc680b153940 by Miro Hrončok in 
branch 'master':
bpo-39573: Remove What's new entry for Py_SIZE() (GH-23375)
https://github.com/python/cpython/commit/e0251787d85950538cf2490c2c73cc680b153940


--

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner

___
Python tracker 

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



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

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22271
pull_request: https://github.com/python/cpython/pull/23378

___
Python tracker 

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



[issue1525806] Tkdnd mouse cursor handling patch

2020-11-18 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.9 -Python 3.2

___
Python tracker 

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



[issue1374063] Broader iterable support for xmlrpclib

2020-11-18 Thread Irit Katriel


Irit Katriel  added the comment:

Skip has abandoned this (removed himself from nosy list) so I'm closing it.

--
nosy: +iritkatriel
resolution: remind -> wont fix
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



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

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22270
pull_request: https://github.com/python/cpython/pull/23377

___
Python tracker 

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



[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Despite the fact that asyncio.get_running_loop() never returns None but raises 
RuntimeError (and maybe other tiny cleanups), 
I can live with the proposal.

It doesn't make a system worse at least and backward compatible.
We can return to the idea of raising a warning from the constructor later, on 
collecting more feedback.

P.S.
There is a subtle non-deterministic behavior in the proposal: if the lock is 
accessed from a concurrent thread, the exception about wrong usage will be 
raised later at an arbitrary code point.
This is a well-known problem of the lazy initialization pattern and maybe we 
should do nothing with it. The programming is a compromise always.

--

___
Python tracker 

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



[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-18 Thread E. Paine


E. Paine  added the comment:

> Could that bot be configured to run tests with -u-gui?

This has been found to not just affect one machine: it is both Azure and Github 
Ubuntu. Therefore, the only Ubuntu bot still running gui tests would be Travis.

It could be done (with a very small patch) but:
1. I not sure about disabling all tkinter gui tests when most appear to be fine 
still
2. Would this not also stop a number of IDLE tests? (Terry?)
3. Would you intend for this to be temporary or more permanent?

--

___
Python tracker 

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



[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-18 Thread Yury Selivanov


Yury Selivanov  added the comment:

Yeah, I follow the reasoning.

My use case:

   class Something:
  def __init__(self):
  self._lock = asyncio.Lock()

  async def do_something():
  async with self._lock:
  ...

And `Something` won't be created in a coroutine. So now I have to jump through 
the hoops to implement lazy lock instantiation.


> But the lock is tightly coupled with a loop instance. In other words, the 
> loop belongs to the loop.
>The lock cannot be used after the loop dies (stopped and closed).

I agree. Maybe the solution should be this then:


class asyncio.Lock:

   def _get_loop(self):
   loop = asyncio.get_running_loop()
   if self._loop is None:
self._loop = loop
   if loop is not self._loop: raise
   if not loop.is_running(): raise

   async def acquire(self):
   loop = self._get_loop()
   ...

This is what would guarantee all protections you want and would also allow to 
instantiate `asyncio.Lock` in class constructors, simplifying code.

--

___
Python tracker 

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



[issue12684] profile does not dump stats on exception like cProfile does

2020-11-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> c/profile refactoring

___
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-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22269
pull_request: https://github.com/python/cpython/pull/23376

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 7c9487ded487f304c2906698c52f0815b92cbeb6 by Vladimir Matveev in 
branch 'master':
bpo-42085: Add documentation for Py_TPFLAGS_HAVE_AM_SEND (GH-23374)
https://github.com/python/cpython/commit/7c9487ded487f304c2906698c52f0815b92cbeb6


--
nosy: +miss-islington

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-11-18 Thread Miro Hrončok

Change by Miro Hrončok :


--
pull_requests: +22268
pull_request: https://github.com/python/cpython/pull/23375

___
Python tracker 

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



[issue42085] Add dedicated slot for sending values

2020-11-18 Thread Vladimir Matveev


Change by Vladimir Matveev :


--
pull_requests: +22267
pull_request: https://github.com/python/cpython/pull/23374

___
Python tracker 

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



[issue32218] add __iter__ to enum.Flag members

2020-11-18 Thread Henk-Jaap Wagenaar


Henk-Jaap Wagenaar  added the comment:

What does aenum do and has there been any feedback on it?

To me I would see what you suggest as surprising but I don't use enums often (I 
should use them more!) so take that with a grain of salt, and also surprising 
!= wrong/not good.

--
nosy: +cryvate

___
Python tracker 

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



[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-18 Thread Ned Deily


Ned Deily  added the comment:


New changeset 9ae1742bdf85dc78788ae2d68ab5b02f67f69eb3 by Steve Dower in branch 
'3.7':
[3.7] bpo-42336: Improve PCbuild batch files (GH-23325) (GH-23373)
https://github.com/python/cpython/commit/9ae1742bdf85dc78788ae2d68ab5b02f67f69eb3


--
nosy: +ned.deily

___
Python tracker 

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



[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Could that bot be configured to run tests with -u-gui? Tests on Linux I can run 
manually.

--

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0e2ac21dd4960574e89561243763eabba685296a by Victor Stinner in 
branch 'master':
bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366)
https://github.com/python/cpython/commit/0e2ac21dd4960574e89561243763eabba685296a


--

___
Python tracker 

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



[issue42142] test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:

bpo-42400 has been marked as a duplicate of this issue.

--
nosy: +vstinner

___
Python tracker 

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



[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 37f6fe2c935a57cd1bd42c773aba255d8134cb61 by Miss Islington (bot) 
in branch '3.9':
bpo-42336: Improve PCbuild batch files (GH-23275)
https://github.com/python/cpython/commit/37f6fe2c935a57cd1bd42c773aba255d8134cb61


--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 35bf8ea7bef7151a420a67638e88d6a1fd81d1a0 by Christian Heimes in 
branch '3.9':
[3.9] bpo-40998: Fix a refleak in create_filter() (GH-23365) (GH-23369)
https://github.com/python/cpython/commit/35bf8ea7bef7151a420a67638e88d6a1fd81d1a0


--

___
Python tracker 

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



[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-18 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +22266
pull_request: https://github.com/python/cpython/pull/23373

___
Python tracker 

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



[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset 8b1f4cc4644869812ff7f210a7fcbe872d88846e by Steve Dower in branch 
'3.8':
bpo-42336: Improve PCbuild batch files (GH-23325)
https://github.com/python/cpython/commit/8b1f4cc4644869812ff7f210a7fcbe872d88846e


--

___
Python tracker 

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



[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +22265
pull_request: https://github.com/python/cpython/pull/23372

___
Python tracker 

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



[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset 2156d964a12285280c533af1c96eb273c58451e6 by Steve Dower in branch 
'master':
bpo-42336: Improve PCbuild batch files (GH-23275)
https://github.com/python/cpython/commit/2156d964a12285280c533af1c96eb273c58451e6


--

___
Python tracker 

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



[issue42398] Race condition in "make regen-all" when running jobs in parallel

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


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



[issue42400] Ubuntu tests hangs on test_ttk_guionly and test_heading_callback

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

Thanks, I searched for test_heading_callback and didn't look for any bug with 
"guionly".

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, 
and more

___
Python tracker 

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



[issue42400] Ubuntu tests hangs on test_ttk_guionly and test_heading_callback

2020-11-18 Thread E. Paine


E. Paine  added the comment:

Issue 42142 covers this problem. I want to get PR-23156 merged which will 
(until a better fix is found) skip tests on Ubuntu which use `wait_visibility`.

However, this is becoming more of an issue and I am worried now about the 
general stability of the tkinter graphical tests on the bots. For example, 
Victor reported issue 42370 which caused the Github Ubuntu action to fail due 
to a random ttk Spinbox problem.

--
nosy: +epaine, vstinner

___
Python tracker 

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



[issue42400] Ubuntu tests hangs on test_ttk_guionly and test_heading_callback

2020-11-18 Thread Christian Heimes


New submission from Christian Heimes :

The Ubuntu test runner on Azure have been blocked and eventually failed by an 
issue related to tkinter tests. My PRs ran into the issue at least three times 
today.

Example: 
https://github.com/python/cpython/pull/23360/checks?check_run_id=1418826919

0:19:06 load avg: 0.00 running: test_ttk_guionly (19 min 1 sec)
0:19:36 load avg: 0.00 running: test_ttk_guionly (19 min 31 sec)
0:20:05 load avg: 0.00 [425/425/1] test_ttk_guionly crashed (Exit code 1)
Timeout (0:20:00)!
Thread 0x7f7b8751d080 (most recent call first):
  File "/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in 
wait_visibility
  File 
"/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_widgets.py", 
line 1539 in test_heading_callback
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 549 in 
_callTestMethod
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 592 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 652 in 
__call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in 
run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in 
run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/runner.py", line 176 in 
run
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 
959 in _run_suite
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 
1082 in run_unittest
  File "/home/runner/work/cpython/cpython/Lib/test/test_ttk_guionly.py", line 
31 in test_main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 236 in _runtest_inner2
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 272 in _runtest_inner
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 142 in _runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 195 in runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest_mp.py", 
line 81 in run_tests_worker
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 
659 in _main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 
639 in main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 
717 in main
  File "/home/runner/work/cpython/cpython/Lib/test/regrtest.py", line 43 in 
_main
  File "/home/runner/work/cpython/cpython/Lib/test/regrtest.py", line 47 in 

  File "/home/runner/work/cpython/cpython/Lib/runpy.py", line 87 in _run_code
  File "/home/runner/work/cpython/cpython/Lib/runpy.py", line 197 in 
_run_module_as_main
...

test_heading_callback (tkinter.test.test_ttk.test_widgets.TreeviewTest) ... 
Timeout (0:20:00)!
Thread 0x7f0461140080 (most recent call first):
  File "/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in 
wait_visibility
  File 
"/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_widgets.py", 
line 1539 in test_heading_callback
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 549 in 
_callTestMethod
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 592 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 652 in 
__call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in 
run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in 
run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in 
__call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/runner.py", line 176 in 
run
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 
959 in _run_suite
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 
1082 in run_unittest
  File "/home/runner/work/cpython/cpython/Lib/test/test_ttk_guionly.py", line 
31 in test_main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 236 in _runtest_inner2
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 272 in _runtest_inner
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 155 in _runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", 
line 195 in runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 
319 in rerun_failed_tests
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 
696 in _main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 
639 in main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", 

[issue42398] Race condition in "make regen-all" when running jobs in parallel

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 66dd5338a1ca98921c8e6c51228541ef8ed8076a by Miss Islington (bot) 
in branch '3.8':
bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)
https://github.com/python/cpython/commit/66dd5338a1ca98921c8e6c51228541ef8ed8076a


--

___
Python tracker 

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



[issue42398] Race condition in "make regen-all" when running jobs in parallel

2020-11-18 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +22264
pull_request: https://github.com/python/cpython/pull/23371

___
Python tracker 

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



[issue42398] Race condition in "make regen-all" when running jobs in parallel

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c53c3f400050a7edc92ccb7285a6d7eeb4c37fd2 by Victor Stinner in 
branch '3.9':
bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)
https://github.com/python/cpython/commit/c53c3f400050a7edc92ccb7285a6d7eeb4c37fd2


--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 994c68f586441cee755508e9357e6e03e2b7a887 by Miss Islington (bot) 
in branch '3.9':
bpo-40998: Address compiler warnings found by ubsan (GH-20929)
https://github.com/python/cpython/commit/994c68f586441cee755508e9357e6e03e2b7a887


--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22263
pull_request: https://github.com/python/cpython/pull/23370

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset 07f2adedf0940b06d136208ec386d69b7d2d5b43 by Christian Heimes in 
branch 'master':
bpo-40998: Address compiler warnings found by ubsan (GH-20929)
https://github.com/python/cpython/commit/07f2adedf0940b06d136208ec386d69b7d2d5b43


--

___
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-11-18 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 46f59ebd01e22cc6a56fd0691217318c1d801a49 by Christian Heimes in 
branch 'master':
bpo-1635741: Port _hashlib to multiphase initialization (GH-23358)
https://github.com/python/cpython/commit/46f59ebd01e22cc6a56fd0691217318c1d801a49


--

___
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-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset c7011012fac91a30923e39dbce7611f1b3ca8506 by Christian Heimes in 
branch 'master':
bpo-1635741: Port symtable module to multiphase initialization (GH-23361)
https://github.com/python/cpython/commit/c7011012fac91a30923e39dbce7611f1b3ca8506


--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +22262
pull_request: https://github.com/python/cpython/pull/23369

___
Python tracker 

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



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Change by Alex :


--
resolution:  -> fixed
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



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Alex  added the comment:

Uninstalled 3.8 and installed straight to 3.9 using home brew, this fixed the 
issue.

--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread miss-islington


miss-islington  added the comment:


New changeset d1e38d4023aa29e7ed64d4f8eb9c1e4a3c86a2e5 by Victor Stinner in 
branch 'master':
bpo-40998: Fix a refleak in create_filter() (GH-23365)
https://github.com/python/cpython/commit/d1e38d4023aa29e7ed64d4f8eb9c1e4a3c86a2e5


--
nosy: +miss-islington

___
Python tracker 

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



[issue32218] add __iter__ to enum.Flag members

2020-11-18 Thread hongweipeng


Change by hongweipeng :


--
nosy: +hongweipeng
nosy_count: 5.0 -> 6.0
pull_requests: +22261
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23368

___
Python tracker 

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



[issue42398] Race condition in "make regen-all" when running jobs in parallel

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22260
pull_request: https://github.com/python/cpython/pull/23367

___
Python tracker 

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



[issue42398] Race condition in "make regen-all" when running jobs in parallel

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8fba9523cf08029dc2e280d9f48fdd57ab178c9d by Victor Stinner in 
branch 'master':
bpo-42398: Fix "make regen-all" race condition (GH-23362)
https://github.com/python/cpython/commit/8fba9523cf08029dc2e280d9f48fdd57ab178c9d


--

___
Python tracker 

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



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Alex  added the comment:

What would you recommend to fix this? removing the package? I have a suspicion 
on which package it is.

--

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-11-18 Thread STINNER Victor

STINNER Victor  added the comment:

I wrote PR 23366 to revert the Py_TYPE() and Py_SIZE() changes: convert them 
back to macros to allow again "Py_TYPE(obj) = type;" and "Py_SIZE(obj) = size;" 
syntaxes.


Miro Hrončok:
> Another batch of broken projects:
> PyPAM https://bugzilla.redhat.com/show_bug.cgi?id=1897264

"Py_TYPE="

> bitarray https://bugzilla.redhat.com/show_bug.cgi?id=1897536

"Py_TYPE=/Py_SIZE="

> boost https://bugzilla.redhat.com/show_bug.cgi?id=1896382

"Py_TYPE="

> duplicity https://bugzilla.redhat.com/show_bug.cgi?id=1896684

"Py_TYPE="

> gobject-introspection https://bugzilla.redhat.com/show_bug.cgi?id=1893194

"Py_TYPE="

> mercurial https://bugzilla.redhat.com/show_bug.cgi?id=1897178

"Py_TYPE=/Py_SIZE="

> pybluez https://bugzilla.redhat.com/show_bug.cgi?id=1897256

"Py_TYPE="

> pygobject3 https://bugzilla.redhat.com/show_bug.cgi?id=1894522

"Py_TYPE="

> pylibacl https://bugzilla.redhat.com/show_bug.cgi?id=1897529

"Py_TYPE="

> pyside2 https://bugzilla.redhat.com/show_bug.cgi?id=1898974

"Py_TYPE="

> rdiff-backup https://bugzilla.redhat.com/show_bug.cgi?id=1898980

"Py_TYPE="



> Those are just the initial set of packages we have discovered so far. I think 
> there will be more.

Well, since the PEP 620 is not accepted, I prefer to revert the Py_TYPE() and 
the Py_SIZE() changes for now. We should have a wider discussion on how to 
introduce incompatible changes into the C API before being able to push more 
incompatible changes which impact a so wide range of C extension modules.

One practical problem is how to estimate the number of broken Python projects 
to decide if an incompatible change can be introduced or not. When I did early 
experiment before merging the PR 20290, it seems like only a minority of C 
extensions rely on "Py_TYPE(obj) = type;" syntax. It's a common pattern to 
define a type statically. Pseudo-code:

---
PyTypeObject MyType = {...};

PyInit_MyExtension(...)
{
   Py_TYPE() = ...;
   PyType_Ready();
   ...
}
---

"Py_TYPE() = ...;" is required since some C compilers don't support 
setting ob_type directly in the MyType static declaration. The type must be set 
at runtime.

Also I considered that the change is trivial enough to be accepable. Well, I 
was wrong, and that's why I'm not proposing to revert thes changes.

About the rationale for introducing C API incompatible changes, see the PEP 620.

--

___
Python tracker 

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



[issue42397] lstrip 处理出现bug

2020-11-18 Thread Eryk Sun


Eryk Sun  added the comment:

Python 3.9 added str.removeprefix() and str.removesuffix() [1]:

>>> "data_prj_t_suffix".removeprefix('data_prj_').removesuffix('_suffix')
't'

[1] https://docs.python.org/3/library/stdtypes.html#str.removeprefix

--
nosy: +eryksun

___
Python tracker 

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



[issue42399] Error upon pip usage.

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

Upon closer investigation something or someone has replaces and monkey patched 
the stdlib function subprocess.run() with code from the 3rd party library 
"run". The "run" package is not part of Python's stdlib.

--

___
Python tracker 

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



[issue42399] Error upon pip usage.

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/__init__.py"
 looks suspicious. It's a 3rd party package that is somehow injected into the 
code.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


Alex  added the comment:

I tried contacting the pip team and they said it is likely a python issue due 
to the stdlib stuff being opened.

--

___
Python tracker 

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



[issue15263] Guard against invalid file handles in os functions

2020-11-18 Thread Eryk Sun


Eryk Sun  added the comment:

> I don't see any _Py_VerifyFd in the code, is this out of date?

Yes, this issue is out of date. The underlying issue is that the C runtime in 
Windows automatically checks various parameters and calls a registered handler 
for invalid parameters, for which the default handler terminates the process. 
Python 3.5+ uses a new C runtime (ucrt), which supports setting a handler for 
just the current thread, so this issue is addressed more generally nowadays by 
the macros _Py_BEGIN_SUPPRESS_IPH and _Py_END_SUPPRESS_IPH.

--
nosy: +eryksun
resolution:  -> out of date
stage: needs patch -> 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



[issue42399] Error upon pip usage.

2020-11-18 Thread Alex


New submission from Alex :

MacOS catalina 10.15.6
Python -version 3.9 although experienced on 3.8 too.
pip -version 20.2.4

Any time I send a command using pip including; pip install, pip freeze, pip 
list etc. I get this error.



Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/pip", line 8, in 

sys.exit(main())
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/cli/main.py",
 line 73, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/commands/__init__.py",
 line 104, in create_command
module = importlib.import_module(module_path)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py",
 line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 783, in exec_module
  File "", line 219, in _call_with_frames_removed
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/commands/list.py",
 line 9, in 
from pip._internal.cli.req_command import IndexGroupCommand
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/cli/req_command.py",
 line 22, in 
from pip._internal.req.constructors import (
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/req/__init__.py",
 line 10, in 
from .req_install import InstallRequirement
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_internal/req/req_install.py",
 line 10, in 
import uuid
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/uuid.py", line 
57, in 
_AIX = platform.system() == 'AIX'
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", 
line 891, in system
return uname().system
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", 
line 857, in uname
processor = _syscmd_uname('-p', '')
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/platform.py", 
line 613, in _syscmd_uname
output = subprocess.check_output(('uname', option),
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/__init__.py",
 line 145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/__init__.py",
 line 121, in create_process
shlex.split(command),
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 311, in split
return list(lex)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 300, in __next__
token = self.get_token()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 109, in get_token
raw = self.read_token()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/shlex.py", 
line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'

--
components: Library (Lib)
messages: 381339
nosy: alki284
priority: normal
severity: normal
status: open
title: Error upon pip usage.
type: crash
versions: Python 3.8

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22259
pull_request: https://github.com/python/cpython/pull/23366

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +22258
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23365

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread STINNER Victor


STINNER Victor  added the comment:

> The reference leak was introduced in 86ea58149c3 / GH-13159 / bpo-36737. PR 
> GH-20929 fixes it, too.

Usually, it's not that the subinterpreter work introduces new leak, but makes 
old leak suddenly visible.

The create_filter() leak was introduced way earlier:

commit 9b99747386b690007027c3be2a5d7cfe3d3634f5
Author: Nick Coghlan 
Date:   Mon Jan 8 12:45:02 2018 +1000

bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458)

It's a minor leak since the create_filter() function is called exactly 5 times 
at startup. It's a leak of 5 strong references, it's not a big deal :-)

--
nosy: +vstinner

___
Python tracker 

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



[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2020-11-18 Thread Miro Hrončok

Miro Hrončok  added the comment:

Another batch of broken projects:

PyPAM https://bugzilla.redhat.com/show_bug.cgi?id=1897264
bitarray https://bugzilla.redhat.com/show_bug.cgi?id=1897536
boost https://bugzilla.redhat.com/show_bug.cgi?id=1896382
duplicity https://bugzilla.redhat.com/show_bug.cgi?id=1896684
gobject-introspection https://bugzilla.redhat.com/show_bug.cgi?id=1893194
mercurial https://bugzilla.redhat.com/show_bug.cgi?id=1897178
pybluez https://bugzilla.redhat.com/show_bug.cgi?id=1897256
pygobject3 https://bugzilla.redhat.com/show_bug.cgi?id=1894522
pylibacl https://bugzilla.redhat.com/show_bug.cgi?id=1897529
pyside2 https://bugzilla.redhat.com/show_bug.cgi?id=1898974
rdiff-backup https://bugzilla.redhat.com/show_bug.cgi?id=1898980



Those are just the initial set of packages we have discovered so far. I think 
there will be more.

--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

Too many Eric S's!

--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread Christian Heimes


Christian Heimes  added the comment:

Sorry, I meant to add Eric S. :)

--

___
Python tracker 

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



[issue40998] Compiler warnings in ubsan builds

2020-11-18 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +eric.snow

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


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

___
Python tracker 

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



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-11-18 Thread Christian Heimes


Change by Christian Heimes :


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



  1   2   >