On Sat, May 14, 2016 at 11:47 AM, Peter Ludemann
wrote:
> I think that Type[C,D] would mean Union[Type[C], Type[D]], but I'm not
> sure ... I should probably talk to a typing expert about this.
> (Sorry for thinking out loud; but if we decide that Type[C,D] doesn't make
> sense, we need to prohib
I think that Type[C,D] would mean Union[Type[C], Type[D]], but I'm not sure
... I should probably talk to a typing expert about this.
(Sorry for thinking out loud; but if we decide that Type[C,D] doesn't make
sense, we need to prohibit it)
I suppose I'm asking: do we allow new_user(Type[BasicUser,
What would Type[C, D] mean?
--Guido (mobile)
On May 14, 2016 11:21 AM, "Peter Ludemann via Python-Dev" <
python-dev@python.org> wrote:
> Is Type[C,D] allowed? Or should multiple types be restricted to TypeVar?
>
> ___
> Python-Dev mailing list
> Python-
Is Type[C,D] allowed? Or should multiple types be restricted to TypeVar?
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-
On 14 May 2016 at 19:36, Sven R. Kunze wrote:
> Fine example. Thinking naively, I would say, when somebody made an effort to
> write __fspath__, it should be respected. Maybe, that's just me.
Over time, we've generally moved towards treating subclasses as if
they were the base class where protoco
On 13.05.2016 18:43, Chris Angelico wrote:
https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_Check
https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_CheckExact
Thanks for pointing me at this.
I searched via github and found usages only:
https://github.com/python/cpython/search?u