[issue40724] Support buffer protocol with type specs

2020-06-07 Thread Stefan Behnel


Stefan Behnel  added the comment:


New changeset 1e4fa91104a03c44baa241326102cbec42d387f1 by Miss Islington (bot) 
in branch '3.9':
bpo-40724: Support setting buffer slots from type specs (GH-20648) (GH-20683)
https://github.com/python/cpython/commit/1e4fa91104a03c44baa241326102cbec42d387f1


--

___
Python tracker 

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



[issue40724] Support buffer protocol with type specs

2020-06-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19905
pull_request: https://github.com/python/cpython/pull/20690

___
Python tracker 

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



[issue40724] Support buffer protocol with type specs

2020-06-07 Thread Stefan Behnel


Stefan Behnel  added the comment:


New changeset 1d711f2e31e02b2e9cbe4f109bf79541f56c35a2 by Miss Islington (bot) 
in branch '3.9':
bpo-40724: Fix return type of test helper function 
heapctypewithbuffer_releasebuffer() (GH-20685) (GH-20690)
https://github.com/python/cpython/commit/1d711f2e31e02b2e9cbe4f109bf79541f56c35a2


--

___
Python tracker 

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



[issue40724] Support buffer protocol with type specs

2020-06-07 Thread Stefan Behnel


Change by Stefan Behnel :


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



[issue40741] Upgrade to SQLite v3.32 in Windows and macOS builds

2020-06-07 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
title: Upgrade to SQLite v3.32.1 in Windows and macOS builds -> Upgrade to 
SQLite v3.32 in Windows and macOS builds

___
Python tracker 

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



[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2020-06-07 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
nosy: +erlendaasland

___
Python tracker 

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



[issue40617] sqlite3: expose sqlite3_create_window_function

2020-06-07 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Duplicate of bpo-34916

--

___
Python tracker 

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



[issue40896] Missing links to Source Code in Documentation pages

2020-06-07 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

In the case of time, it's a C module. Those usually don't have a link to their 
implementation at the top. Others like wsgiref should have a link as having a 
quick way to read the implementation is a nice way to check on the 
implementation details and get acquainted with Python's internal.

Could you open a PR to add those?

--
nosy: +remi.lapeyre
versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Dennis Sweeney


Change by Dennis Sweeney :


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

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Indeed, with PR 20691 applied, the following crashes:

>>> vars(str).items().mapping.clear()
>>> "uh oh"

--

___
Python tracker 

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



[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread hai shi

New submission from hai shi :

redundant if statements in itertools、_functools、_io, so remove it.

--
components: Extension Modules
messages: 370883
nosy: shihai1991
priority: normal
severity: normal
status: open
title: Remove redundant if statements in tp_traverse
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



[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread hai shi


Change by hai shi :


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

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Would the best way to address this be adding new KeysProxy, ValuesProxy, and 
ItemsProxy types?

--

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I am not sure that it is good idea to expose internal details (do you want to 
expose also internal details of iterators?), but if expose an underlying dict 
of a dict view, I think it should be either a copy or a read-only proxy. It 
should be enough to help with introspection, but will not open the hole in 
integrity.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +rhettinger

___
Python tracker 

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



[issue40894] asyncio.gather() cancelled() always False

2020-06-07 Thread Timm Wagener


Timm Wagener  added the comment:

Hello Kyle, thanks for reviewing.

> I'm starting to agree that it makes sense to override the behavior for 
> `cancelled()`. However, it might make more sense to replace the 
> `self._cancel_requested` check with  `isinstance(self.exception(), 
> exceptions.CancelledError)`, as this more accurately indicates if and when 
> the gather() was cancelled. I don't think we should rely on 
> `self._cancel_requested` since it would be true before the future is actually 
> cancelled and not always be correct since the gather() can be cancelled 
> without setting `self._cancel_requested`.

My understanding of the current logic is, that there is a distinction between 
an explicit `gather().cancel()` and an external `child.cancel()`. This 
distinction is made by the `_cancel_requested` variable:

* **Explicit gather.cancel():** Only an explicit cancellation of the gather 
task should result in `cancelled() is True`. This explicit cancellation is 
indicated by `_cancel_requested`. It works regardless of the 
`return_exceptions` kwarg. value. A `CancelledError` is always raised at the 
`await` site and `cancelled()` is True, provided that a previous 
`gather.cancel()` has been `True`.

* **External invocation of child.cancel()/Implicit cancellation, finishing of 
gather:** In this case, no explicit user intent has caused a cancellation of 
gather. This is reflected by `_cancel_requested` being `False` and 
`gather.cancelled()` always being `False`. Instead based on the value of the 
`return_exceptions` kwarg.:
  
  * **False:** The normal `set_exception()` is invoked and the child exception 
is set on the gather future _(in this case a `CancelledError`)_ while also 
setting state to `FINISHED`. This results in the gather raising at the `await` 
site and finishing. What makes it slighty confusing though is the exception 
being a `CancelledError`. However, i believe its otherwise in line with how 
`Future.cancelled()` behaves for any exception.
  
  * **True:** `CancelledErrors` in children are collected and returned amongst 
other results and exceptions in a list.

> Here's one case where relying on `self._cancel_requested` for 
> future_gather.cancelled() wouldn't work, based on a slight modification of 
> the reproducer example:

As outlined above, i'd assume this falls into the category of _implicit 
cancellation, finishing of gather without user intent_ for which I'm assuming 
`cancelled()` should be `False`. However, as mentioned, this is just my 
assumption based on the logic. One could also take your viewpoint, that 
`cancelled()` should be `True` when `fut.exception()` is a `CancelledError`.

> This should be "was called *as* it finished", not "was called *after* it was 
> finished". If gather_future.cancel() is called after the future is 
> `FINISHED`, it will immediately return false since it checks `self.done()` 
> first

I assume that these scenarios apply, when this like `current_task().cancel()` 
is happening in a `done()` callback or such? It seems like many (corner)-cases 
can be created and i'm certainly not aware of them. However, as `gather()` adds 
it's own callback first to its passed futures, and `outer` is not available 
beforehand for any done callback registration, i'm not sure how much of an 
effort one would have to make to create the case you described. But maybe I 
also didn't really understand the point you are getting at.

> asyncio.gather() is not deprecated or scheduled for deprecation, it is simply 
> the loop argument being deprecated.

I was actually referring to [this PR 
comment](https://github.com/python/cpython/pull/6694#issuecomment-543445208) , 
which I happened to stumble upon while researching for the issue.
> We'll likely have TaskGroups in asyncio 3.9 and will simply deprecate 
> asyncio.gather.

That's why I mentioned in the beginning that it may be a small, easy 
correctness improvement for a Python patch version if it's backwards compatible 
and not causing too much trouble. But maybe its also not considered that 
important anymore. I'd leave that up to the reviewers ;)

--

___
Python tracker 

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



[issue40899] Ddcument exceptions raised by importlib.import

2020-06-07 Thread Johannes Buchner


New submission from Johannes Buchner :

https://docs.python.org/3/library/functions.html#__import__
and 
https://docs.python.org/3/library/importlib.html#importlib.import_module
do not list which Exceptions are raised in case the module cannot be imported.

The two exceptions are listed here
https://docs.python.org/3/library/exceptions.html#ImportError
ModuleNotFoundError

Could you add a half-sentence "and raises an ModuleNotFoundError if import was 
unsuccessful." to the function docs?

--
assignee: docs@python
components: Documentation
messages: 370887
nosy: docs@python, j13r
priority: normal
severity: normal
status: open
title: Ddcument exceptions raised by importlib.import
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

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



[issue40897] Inheriting from Generic causes inspect.signature to always return (*args, **kwargs) for constructor (and all subclasses)

2020-06-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is not special for Generic, but happens with every type implementing __new__.

class A:
def __new__(cls, a=1, *args, **kwargs):
return object.__new__(cls)

class B(A):
def __init__(self, b):
pass

import inspect
print(inspect.signature(B))

The above example prints "(a=1, *args, **kwargs)" instead of "(b)".

--
nosy: +serhiy.storchaka, yselivanov

___
Python tracker 

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



[issue40899] Document exceptions raised by importlib.import

2020-06-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
title: Ddcument exceptions raised by importlib.import -> Document exceptions 
raised by importlib.import

___
Python tracker 

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



[issue40860] Exception in multiprocessing/context.py under load

2020-06-07 Thread Arkady


Arkady  added the comment:

Is there any news about?

This 50 lines sample reproduces the problem 
https://github.com/larytet-py/multiprocess
Please let me know if more information is needed.

--

___
Python tracker 

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



[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread Inada Naoki


Inada Naoki  added the comment:

Thanks.

--
nosy: +inada.naoki
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



[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset 47a23fc63fa5df2da8dbc542e78e521d4a7f10c9 by Hai Shi in branch 
'master':
bpo-40898: Remove redundant if statements in tp_traverse (GH-20692)
https://github.com/python/cpython/commit/47a23fc63fa5df2da8dbc542e78e521d4a7f10c9


--

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Inada Naoki


Inada Naoki  added the comment:

> Would the best way to address this be adding new KeysProxy, ValuesProxy, and 
> ItemsProxy types?

I feel it is too much.  Until real high need is demonstrated, I don't want to 
introduce such complexity.

--
nosy: +inada.naoki

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

property, partial, bound methods and ChinMap all do something complex with the 
underlying object. Dict-views are quite simple by comparison, is there an 
example where this would be helpful and better than just passing directly the 
mapping object?

--
nosy: +remi.lapeyre

___
Python tracker 

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



[issue40900] uuid module build fix on FreeBSD proposal

2020-06-07 Thread David CARLIER


Change by David CARLIER :


--
components: FreeBSD
nosy: devnexen, koobs
priority: normal
pull_requests: 19908
severity: normal
status: open
title: uuid module build fix on FreeBSD proposal
type: compile error
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



[issue38364] inspect.iscoroutinefunction / isgeneratorfunction / isasyncgenfunction can't handle partialmethod objects

2020-06-07 Thread Sam Bull


Change by Sam Bull :


--
nosy: +dreamsorcerer

___
Python tracker 

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



[issue40901] It's not clear what "interface name" means in socket if_nameindex/if_nametoindex/if_indextoname on Windows

2020-06-07 Thread Jakub Stasiak


New submission from Jakub Stasiak :

On Windows there are different names for the same interface in different 
contexts.

--
components: Library (Lib), Windows
messages: 370894
nosy: jstasiak, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: It's not clear what "interface name" means in socket 
if_nameindex/if_nametoindex/if_indextoname on Windows
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue40710] IDLE: Malfunctioning of '\r'

2020-06-07 Thread Sanmitha


Sanmitha  added the comment:

This issue is not based on Windows or my terminal. This is purely an IDLE 
error. In Windows, both in command prompt and powershell \r functions properly.

--
versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49218/Screenshot_20200607-185043.png

___
Python tracker 

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



[issue40901] It's not clear what "interface name" means in socket if_nameindex/if_nametoindex/if_indextoname on Windows

2020-06-07 Thread Jakub Stasiak


Change by Jakub Stasiak :


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

___
Python tracker 

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



[issue40710] IDLE: Malfunctioning of '\r'

2020-06-07 Thread Sanmitha


Sanmitha  added the comment:

This issue is not based on Windows or my terminal. This is purely an IDLE 
error. In Windows, both in command prompt and powershell \r functions properly.

--
status: closed -> open
Added file: https://bugs.python.org/file49219/Screenshot_20200607-185043.png

___
Python tracker 

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



[issue40901] It's not clear what "interface name" means in socket if_nameindex/if_nametoindex/if_indextoname on Windows

2020-06-07 Thread Jakub Stasiak


Jakub Stasiak  added the comment:

if_nameindex(), if_indextoname() and if_nametoindex() have been implemented as 
part of https://bugs.python.org/issue37007

While working on ifaddr I discovered that all three different kinds of names 
ifaddr fetches for an interface on Windows are not what Python socket functions 
use so I thought it'd be useful to document it for the next person who bumps 
into this.

--
nosy: +ZackerySpytz, dtantsur

___
Python tracker 

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



[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-06-07 Thread Jonathan Haigh


Jonathan Haigh  added the comment:

The situation for type=int and unspecified nargs or nargs="?" is also 
surprising: 

Python 3.8.3 (default, May 21 2020, 12:19:36) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import argparse
>>> p = argparse.ArgumentParser()
>>> p.add_argument("--c", action="extend", type=int)
_ExtendAction(option_strings=['--c'], dest='c', nargs=None, const=None, 
default=None, type=, choices=None, help=None, metavar=None)
>>> p.parse_args("--c 1".split())
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1768, in parse_args
args, argv = self.parse_known_args(args, namespace)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1800, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
2006, in _parse_known_args
start_index = consume_optional(start_index)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1946, in consume_optional
take_action(action, args, option_string)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1874, in take_action
action(self, namespace, argument_values, option_string)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1171, in __call__
items.extend(values)
TypeError: 'int' object is not iterable
>>> p = argparse.ArgumentParser()
>>> p.add_argument("--c", action="extend", type=int, nargs="?")
_ExtendAction(option_strings=['--c'], dest='c', nargs='?', const=None, 
default=None, type=, choices=None, help=None, metavar=None)
>>> p.parse_args("--c 1".split())
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1768, in parse_args
args, argv = self.parse_known_args(args, namespace)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1800, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
2006, in _parse_known_args
start_index = consume_optional(start_index)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1946, in consume_optional
take_action(action, args, option_string)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1874, in take_action
action(self, namespace, argument_values, option_string)
  File "/home/jonathan/.pyenv/versions/3.8.3/lib/python3.8/argparse.py", line 
1171, in __call__
items.extend(values)
TypeError: 'int' object is not iterable
>>>

I suggest that the default nargs for extend should be "*" or "+" and an 
exception should be raised if nargs is given as "?". I don't see the current 
behaviour with unspecified nargs or nargs="?" being useful (and it certainly is 
surprising). In both cases, I think the least surprising behaviour would be for 
extend to act the same as append (or for an exception to be raised).

> But I wonder, was this situation discussed in the original bug/issue?
Doesn't look like it:
https://bugs.python.org/issue23378
https://github.com/python/cpython/commit/aa32a7e1116f7aaaef9fec453db910e90ab7b101

--
nosy: +Jonathan Haigh

___
Python tracker 

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



[issue40898] Remove redundant if statements in tp_traverse

2020-06-07 Thread hai shi


hai shi  added the comment:

Thanks, Inada :)

--

___
Python tracker 

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



[issue40896] Missing links to Source Code in Documentation pages

2020-06-07 Thread Edison Abahurire


Edison Abahurire  added the comment:

Thanks for the review. 
I'll open a PR.

--

___
Python tracker 

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



[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-06-07 Thread Edison Abahurire


Edison Abahurire  added the comment:

Update: I opened a PR for this.

--

___
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-06-07 Thread STINNER Victor


STINNER Victor  added the comment:

Note: numpy was updated to also the use the macros using ", (void)0":
https://github.com/numpy/numpy/commit/f1671076c80bd972421751f2d48186ee9ac808aa

--

___
Python tracker 

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



[issue39791] New `files()` api from importlib_resources.

2020-06-07 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset 2efe18bf277dd0f38a1d248ae6bdd30947c26880 by Jason R. Coombs in 
branch 'master':
bpo-39791: Support file systems that cannot support non-ascii filenames 
(skipping tests in that case). (#20681)
https://github.com/python/cpython/commit/2efe18bf277dd0f38a1d248ae6bdd30947c26880


--

___
Python tracker 

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



[issue39791] New `files()` api from importlib_resources.

2020-06-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19910
pull_request: https://github.com/python/cpython/pull/20695

___
Python tracker 

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



[issue39791] New `files()` api from importlib_resources.

2020-06-07 Thread miss-islington


miss-islington  added the comment:


New changeset 71f501698d64af6463246bc6efdbbf1b85616102 by Miss Islington (bot) 
in branch '3.9':
bpo-39791: Support file systems that cannot support non-ascii filenames 
(skipping tests in that case). (GH-20681)
https://github.com/python/cpython/commit/71f501698d64af6463246bc6efdbbf1b85616102


--

___
Python tracker 

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



[issue40894] asyncio.gather() cancelled() always False

2020-06-07 Thread Timm Wagener


Timm Wagener  added the comment:

TLDR;
-
The intention of the PR is to make a future from gather return that cancelled() 
is True if, and only if, cancel() has successfully been called on it (explicit 
user intent) and it was awaited/has finished. All other finishing is not 
considered explicit user intent and has the state FINISHED (with exception or 
result), even if the exception is a CancelledError.

As mentioned, just my interpretation based on the logic i've seen.

--

___
Python tracker 

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



[issue40900] uuid module build fix on FreeBSD proposal

2020-06-07 Thread Christian Heimes


New submission from Christian Heimes :

Please explain which problem you are facing and how your proposal is going to 
fix the problem.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue40862] argparse.BooleanOptionalAction accept and silently discard its the const argument

2020-06-07 Thread paul j3


Change by paul j3 :


--
nosy: +paul.j3

___
Python tracker 

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



[issue40615] unstable behaviour for options in argparse

2020-06-07 Thread paul j3


Change by paul j3 :


--
nosy: +paul.j3

___
Python tracker 

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



[issue40900] uuid module build fix on FreeBSD proposal

2020-06-07 Thread David CARLIER


David CARLIER  added the comment:

This s about header picked up in a certain order. In case of FreeBSD, the 
uui_create case is taken which comes from the  but ...  is 
detected too.

--

___
Python tracker 

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



[issue36750] test_socket leaks file descriptors on macOS

2020-06-07 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

I think I stumbled on this too, I think the test that causes some issue is 
testCmsgTrunc2Int:


./python -m test -R: test_socket -m testCmsgTrunc2Int
0:00:00 load avg: 1.66 Run tests sequentially
0:00:00 load avg: 1.66 [1/1] test_socket
beginning 9 repetitions
123456789
.
test_socket leaked [2, 2, 2, 2] file descriptors, sum=8
test_socket failed

== Tests result: FAILURE ==

1 test failed:
test_socket

Total duration: 2.0 sec
Tests result: FAILURE



There is some file descriptors that are created by newFDs() but they are 
supposed to be cleaned up, maybe it is some race condition as I see that 
test_socket create a thread for each test?

--
nosy: +remi.lapeyre
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue31254] WeakKeyDictionary/Mapping doesn't call __missing__

2020-06-07 Thread Antony Lee


Change by Antony Lee :


--
nosy:  -Antony.Lee

___
Python tracker 

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



[issue40897] Inheriting from Generic causes inspect.signature to always return (*args, **kwargs) for constructor (and all subclasses)

2020-06-07 Thread Ralf Gommers


Change by Ralf Gommers :


--
nosy: +ralf.gommers

___
Python tracker 

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



[issue40823] Don't use obsolete unittest.makeSuite() in sqlite3 tests

2020-06-07 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Berker, do you have any objections to this change?

--
nosy: +berker.peksag

___
Python tracker 

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



[issue40710] IDLE: Malfunctioning of '\r'

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


Removed file: https://bugs.python.org/file49219/Screenshot_20200607-185043.png

___
Python tracker 

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



[issue40710] IDLE: Malfunctioning of '\r'

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


Removed file: https://bugs.python.org/file49179/r

___
Python tracker 

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



[issue40710] IDLE: Malfunctioning of '\r'

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Please stop spamming.  This is a duplicate of an existing issue.

--
status: open -> closed
versions:  -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue21673] Idle: hilite search terms in hits in Find in Files output window

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue18504] IDLE: Improve Mock_Text

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue20403] Idle options dialog: add help

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The help file is help.html.  Pulling snippet from this would be rather awkward. 
 The suggested additions to help.txt more or less duplicate the Setting 
preferences subsection.  So closing.

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



[issue18583] Idle: enhance FormatParagraph

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue21473] Idle: test startup scripts.

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue17583] IDLE HOWTO

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue1074333] On linux, numeric pad input is ignored when numlock off

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Summary: (Graves, msg23356, 2004-12-24) tk event for keypad keys depends on 
system keymap.  Windows: numlock off, keypad up (8) is .  Linux: same is 
 and Text does *not* see this as 
(Polo, msg86364, 2009-04-23) Workaround is to capture both events and tk:call 
multiple upsupported internal tk functions.

In the absence of more contemporary complaints by Linux users, closing.

--
nosy:  -ajaksu2, gpolo, jlgijsbers, kbk, netvigator
resolution: accepted -> third party
stage: test needed -> 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



[issue19042] Idle: run from editor without explicit save

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#5680 June 2019 also added no restart.  Some other ideas are possible additions 
in new issues.

--
resolution:  -> out of date
stage: test needed -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue30719] IDLE: Make PyShell visible upon error.

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue17238] IDLE: Add import statement completion

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6

___
Python tracker 

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



[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2020-06-07 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



[issue27620] IDLE: Add keyboard equivalents for mouse actions.

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6

___
Python tracker 

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



[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue27388] IDLE configdialog: reduce multiple references to Var names

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6

___
Python tracker 

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



[issue16198] IDLE - tabbing in a string always brings up file completion window

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40890] Dict views should be introspectable

2020-06-07 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Do you see any easy way to have some_mapping_proxy.items().mapping return 
some_mapping_proxy rather than unmasking the proxied dict?

--
keywords:  -easy (C), patch

___
Python tracker 

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



[issue24252] IDLE removes elements from tracebacks.

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue25032] IDLE - same menubar across application

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40902] Speed up PEG parser by using operator precedence for binary operators

2020-06-07 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Check https://github.com/we-like-parsers/cpython/issues/132 for context.

--
messages: 370915
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Speed up PEG parser by using operator precedence for binary operators

___
Python tracker 

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



[issue40902] Speed up PEG parser by using operator precedence for binary operators

2020-06-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
assignee:  -> pablogsal

___
Python tracker 

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



[issue40902] Speed up PEG parser by using operator precedence for binary operators

2020-06-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
components: +Interpreter Core
versions: +Python 3.10, Python 3.9

___
Python tracker 

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



[issue40902] Speed up PEG parser by using operator precedence for binary operators

2020-06-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue40903] Segfault in new PEG parser

2020-06-07 Thread Steve Stagg


New submission from Steve Stagg :

The input `p=p=` causes python 3.10 to crash.

I bisected the change, and the behavior appears to have been introduced by 
16ab07063cb564c1937714bd39d6915172f005b5 (bpo-40334: Correctly identify invalid 
target in assignment errors (GH-20076) )

Steps to reproduce:

$ echo 'p=p=' | /path/to/python3.10
=== SIGSEGV (Address boundary error)


Analysis:

This code is an invalid assignment, and the parser tries to generate a useful 
message for this case (invalid_assignment_rule).

However, the `target` of the assignment is a Name node.

The invalid_assignment_rule function tries to identify the target of the 
assignment, to create a useful description for the error menssage by calling 
`_PyPegen_get_invalid_target`, passing in the Name Node.

`PyPegen_get_invalid_target` returns NULL if the type is a Name type 
(pegen.c:2114).

The result of this call is then passed unconditionally to 
_PyPegen_get_expr_name, which is expecting a statement, not NULL.

Error happens here: pegen.c:164
`_PyPegen_get_expr_name(expr_ty e)` is being called with `e = 0x0`

--
components: Interpreter Core
messages: 370916
nosy: stestagg
priority: normal
severity: normal
status: open
title: Segfault in new PEG parser
type: crash
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



[issue24860] Can IDLE's query box be improved

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Thanks for the push.  query.py now has several subclasses which I believe 
covers all simple queries.

--
resolution:  -> out of date
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



[issue22133] IDLE: Set correct WM_CLASS on X11

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue23616] Idle: conflict between loop execution and undo shortcut.

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -kbk, roger.serwy
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue23069] IDLE's F5 Run Module doesn't transfer effects of future import

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The only currently active __future__ import is 'annotations'.
https://docs.python.org/3/reference/compound_stmts.html#index-23
The is currently scheduled to be needed indefinitely (until '4.0').

--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue22460] idle editor: replace all in selection

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40889] Symmetric difference on dict_views is inefficient

2020-06-07 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue40903] Segfault in new PEG parser

2020-06-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
nosy: +pablogsal
nosy_count: 1.0 -> 2.0
pull_requests: +19912
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20697

___
Python tracker 

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



[issue35228] Index search in CHM help crashes viewer

2020-06-07 Thread Václav Dvořák

Václav Dvořák  added the comment:

@steve.dower: I have cp1250 and I've had this issue for years now, on several 
Windows versions. Hoping Microsoft will fix it is obviously futile; can I ask 
for the Python community to apply the workaround suggested by Ma Lin please? 
Thanks.

--
nosy: +Václav Dvořák

___
Python tracker 

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



[issue14304] Implement utf-8-bmp codec

2020-06-07 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

October 2019, Serhiy solved the display issue with a _tkinter patch for #13153.
bpo-13153: Use OS native encoding for converting between Python and Tcl. 
(GH-16545)
https://github.com/python/cpython/commit/06cb94bc8419b9a24df6b0d724fcd8e40c6971d6
In Windows IDLE Shell
>>> ''.join(map(chr, [76, 246, 119, 105, 115, 0x1F40D]))
'Löwis🐍'
except that the snake is black and white.  (Many astral chars have no glyph and 
appear as a box.) In console REPL, the snake shows as box box space box.

Pasting astral characters into edited code 'works' except that editing 
following code is messy because the astral char is multiple chars internally 
and the visible cursor no longer matches the internal index.  (But pasting such 
no longer crashes IDLE.)

--
resolution:  -> out of date
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



[issue30751] IDLE: Display entry errors for key sequence entry in entry box

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue24813] Redesign Help => About IDLE, make it non-modal

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Still needs to make non-modal and consider other ideas.

--
nosy:  -kbk, roger.serwy
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40887] Leaks in new free lists

2020-06-07 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue30422] Add roadmap.txt section to idlelib

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40887] Leaks in new free lists

2020-06-07 Thread STINNER Victor


STINNER Victor  added the comment:

> Lists and tuples sometimes leak (starting 69ac6e58f and later):

It's not a regression. It's just that bpo-40521 helped Valgrind to detect such 
bug :-)

I wrote bpo-20698 to fix this issue.

I'm also working on a more generic approach to ensure that we don't add new 
objects to free lists after free lists are cleared.

--

___
Python tracker 

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



[issue40904] Segfault from new PEG parser handling yield withing f-strings

2020-06-07 Thread Steve Stagg


New submission from Steve Stagg :

The following command causes python to segfault:

$ echo "f'{yield}'" | python/bin/python3

Bisect tracked this down to:

c5fc15685202cda73f7c3f5c6f299b0945f58508 (bpo-40334: PEP 617 implementation: 
New PEG parser for CPython (GH-19503))

The illegal access is coming out of `fstring_shift_children_locations`
as n->v.Yield.value is None.

Correspondingly, the following produces the expected output:

$ echo "f'{yield 1}'" | python/bin/python3

Suggesting there's a missing check for no yield value in this code.

--
components: Interpreter Core
messages: 370923
nosy: stestagg
priority: normal
severity: normal
status: open
title: Segfault from new PEG parser handling yield withing f-strings
type: crash
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



[issue14304] Implement utf-8-bmp codec

2020-06-07 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



[issue40887] Leaks in new free lists

2020-06-07 Thread STINNER Victor


STINNER Victor  added the comment:

I'm curious about this bug, so I looked at code changes.

Before Python 3.6, warnings.c "garbage" is declared as a static variable. It is 
initialized once but never cleared.

In Python 3.7, the variable moved into _PyRuntimeState.gc.

In Python 3.8, _PyGC_Fini() started to clear the "garbage" list. This function 
is called by Py_FinalizeEx() *after* PyList_Fini().

--

___
Python tracker 

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



[issue40881] --with-valgrind broken

2020-06-07 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue40887] Leaks in new free lists

2020-06-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7907f8cbc6923240edb0b5b63adafb871c4c8875 by Victor Stinner in 
branch 'master':
bpo-40887: Fix finalize_interp_clear() for free lists (GH-20698)
https://github.com/python/cpython/commit/7907f8cbc6923240edb0b5b63adafb871c4c8875


--

___
Python tracker 

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



[issue37614] Pasteing 🌹into idle makes it exit

2020-06-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The crash issue is fixed, but editing does not work correctly.

--

___
Python tracker 

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



[issue18318] Idle: stop depending on console output

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40903] Segfault in new PEG parser

2020-06-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
assignee:  -> pablogsal

___
Python tracker 

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



[issue24265] IDLE -s and (-, -c command, or -r file) produces error message

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue40881] --with-valgrind broken

2020-06-07 Thread STINNER Victor


STINNER Victor  added the comment:

Regression introduced by my commit fe2978b3b940fe2478335e3a2ca5ad22338cdf9c: 
bpo-39573. I wrote a PR 20699 to fix unicode_release_interned().

--

___
Python tracker 

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



[issue40887] Leaks in new free lists

2020-06-07 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +19915
pull_request: https://github.com/python/cpython/pull/20700

___
Python tracker 

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



[issue40887] Free lists are still used after being finalized (cleared)

2020-06-07 Thread STINNER Victor


Change by STINNER Victor :


--
title: Leaks in new free lists -> Free lists are still used after being 
finalized (cleared)

___
Python tracker 

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



  1   2   >