New submission from Yahya Abou Imran :
In asyncio.Task help:
| set_exception(self, exception, /)
| Mark the future done and set an exception.
|
| If the future is already done when this method is called, raises
| InvalidStateError.
|
| set_result(self, result
Yahya Abou Imran added the comment:
I succeed in submitting a PR and building the doc locally.
But there is a little problem of consistency with the abstract methods:
in some classes, the inherited one are mentioned (Collection, Sequence,
Mapping), but not in some others (Coroutine
Yahya Abou Imran added the comment:
There is another one:
Reversible list __reversed__ in the abstract method but inherits __iter__ from
Iterable.
So there is definitely an inconsistency...
--
___
Python tracker
<https://bugs.python.
New submission from Yahya Abou Imran :
Opened after https://github.com/python/cpython/pull/5270 was closed.
Here:
https://docs.python.org/3/library/collections.abc.html
Some abstract methods are inherited from a superclass.
Most of the time the name of the method is mentioned in the subclass
Change by Yahya Abou Imran :
--
keywords: +patch
pull_requests: +5114
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32472>
___
___
Py
Yahya Abou Imran added the comment:
Perfect for me.
I was about to submit about the same patch as yours after your acceptation; but
it's better that way, it's your module!
Thanks Raymond.
--
___
Python tracker
<https://bugs.python.o
Change by Yahya Abou Imran :
--
keywords: +patch
pull_requests: +4994
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32471>
___
___
Py
Yahya Abou Imran added the comment:
I have generated SVG files.
Here is the rest of the ABCs present in the module:
https://gitlab.com/yahya-abou-imran/collections-abc-uml/blob/master/plantuml/other_collections.svg
And here is the full version with all ABCs:
https://gitlab.com/yahya-abou
Yahya Abou Imran added the comment:
I'm sorry, It's already done...
https://bugs.python.org/issue32467
--
___
Python tracker
<https://bugs.python.o
Change by Yahya Abou Imran :
--
keywords: +patch
pull_requests: +4963
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32473>
___
___
Py
New submission from Yahya Abou Imran :
>From python-ideas:
https://mail.python.org/pipermail/python-ideas/2017-December/048504.html
In python 2.7, ABCs's caches and registries are sets. But in python 3.6 they
are WeakSet.
In consequence, the output of _dump_registry() is almost
New submission from Yahya Abou Imran :
In the collections.abc documentation:
https://docs.python.org/3/library/collections.abc.html
__await__() doesn't appear in the abstract methods of Coroutine, we see only
send() and throw().
But since Coroutine inherit from Awaitable, it'
Yahya Abou Imran added the comment:
Here is the .puml
--
Added file: https://bugs.python.org/file47358/base.puml
___
Python tracker
<https://bugs.python.org/issue32
New submission from Yahya Abou Imran :
>From python-ideas:
>https://mail.python.org/pipermail/python-ideas/2017-December/048492.html
In this page of the documentation:
https://docs.python.org/3/library/collections.abc.html
The table could be difficult to understand, a diagram help vis
New submission from Yahya Abou Imran :
a `dict_values` instance behaves like a Collection (a Sized Iterable Container):
>>> values = {1: 'one', 2: 'two'}.values()
>>> 'two' in values
True
>>> 'three' in values
False
&
Yahya Abou Imran added the comment:
Hmm... Okay, I understand.
So the only objection I have left, it's that ValuesView isn't passing the is
instance of Collection test whereas it should, since he has the full behavior
of one. It could be passed in its register to solve this.
Bu
Yahya Abou Imran added the comment:
And I just saw that Raymon Hettinger made it inherting from Sized:
https://github.com/python/cpython/blame/master/Lib/_collections_abc.py#L694
So I we were to ahve his opinion on this...
--
___
Python tracker
Yahya Abou Imran added the comment:
https://mail.python.org/pipermail/python-ideas/2017-December/048489.html
Guido is waiting for objection on this...
I have absolutly no idea why this decision was made.
These tests
(ttps://github.com/python/cpython/blame/master/Lib/test/test_collections.py
Yahya Abou Imran added the comment:
Quoting my own post on python-ideas:
After I generate an UML diagram from collections.abc, I found very strange that
MappingView inherit from Sized instead of Collection (new in python 3.6).
Yes, MappingView only define __len__ and not __iter__ and
New submission from Yahya Abou Imran :
Quoting my own post on python-ideas:
After I generate an UML diagram from collections.abc, I found very strange that
MappingView inherit from Sized instead of Collection (new in python 3.6).
Yes, MappingView only define __len__ and not __iter__ and
20 matches
Mail list logo