[issue42280] The list of standard generic collections is incomplete

2021-10-29 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +AlexWaygood
nosy_count: 5.0 -> 6.0
pull_requests: +27583
pull_request: https://github.com/python/cpython/pull/29308

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2021-10-20 Thread Ken Jin


Ken Jin  added the comment:

I concur with Guido to close this.

--
resolution:  -> wont fix
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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread Guido van Rossum

Guido van Rossum  added the comment:

Let’s just close this, there are more important things to do.

--

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread jack1142


jack1142  added the comment:

I was thinking that this could be the case but if I'm not mistaken, there's 
actually quite a lot of types in this list that aren't collections (awaitable, 
coroutine, iterable, iterator, generator, the async versions of those, 
callable, *hmm, are views collections?*, and the ones you mentioned), so I 
figured that listing *only* collections might have not been the intention when 
this was written. But listing all of the generics in Python would indeed be 
lengthy so it might make sense to limit it to collections nonetheless, I'm not 
really sure about it though.

--

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-15 Thread Guido van Rossum


Guido van Rossum  added the comment:

I think the difference between the two lists is that not every generic type is 
a collection.

If we apply that standard, I think the contextlib and re classes need to be 
*removed* from the list (did I get that right?).

--

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-07 Thread Ken Jin


Ken Jin  added the comment:

Dear Jack, good catch! My only worry is that if we make the list exhaustive,  
it would be too lengthy, or that it might not be feasible to continuously 
update it every time a new generic type supports the feature.

Maybe a line somewhere to mention that most container types in Python should 
support the feature, and that the list provided is non-exhaustive should 
suffice?

I'm not sure, nosy-ing Guido and Ivan to the list for their thoughts on this.

--
nosy: +gvanrossum, kj, levkivskyi

___
Python tracker 

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



[issue42280] The list of standard generic collections is incomplete

2020-11-06 Thread jack1142


New submission from jack1142 :

It looks like the documentation lists standard library collections that support 
parameterized generics[1] however, it seems to only feature a part of all the 
collections that support parametrizing (I'm going by the list that was produced 
by Ethan Smith[2], it could be slightly inaccurate now, but that can be 
cross-checked when making the contribution).

I would be interested in making a PR adding these if/when this issue gets 
accepted.


[1] 
https://docs.python.org/3.10/library/stdtypes.html#standard-generic-collections
[2] https://github.com/gvanrossum/cpython/pull/1#issuecomment-582781121

--
assignee: docs@python
components: Documentation
messages: 380467
nosy: docs@python, jack1142
priority: normal
severity: normal
status: open
title: The list of standard generic collections is incomplete
type: enhancement
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