On Mon, Jan 23, 2017 at 8:33 PM, Victor Stinner
<victor.stin...@gmail.com> wrote:
> 2017-01-23 12:25 GMT+01:00 INADA Naoki <songofaca...@gmail.com>:
>> I gave advice to use 'List[User]' instead of List[User] to the team of
>> the project,
>> if the team think RAM usage or boot speed is important.
>
> I would prefer a Python option (ex: "-o noannotation" command line
> option) to opt-out annotations rather than having to write annotations
> in strings, which is IMHO more "ugly".
>
> Victor

Personally speaking, I hope annotations are just static hint, and
makes zero overhead at runtime.
(startup time, memory consumption, and execution speed).

Anyway, many users are starting to use typing, for code completion or
static checking.
And very few user noticed it affects to performance of `isinstance(x,
collections.Sequence)`.
Python 3.7 may be too slow to help them.
Can't we skip abc registration of typing.List[MyClass] completely?

I'm sorry if it's silly idea.  I don't know about background of
current typing.py design. And I
don't use abc much too.

Naoki
_______________________________________________
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-archive.com

Reply via email to