Re: [Python-ideas] typing.modifiers

2016-09-17 Thread אלעזר
Thank you all! אלעזר (AKA Elazar) On Sat, Sep 17, 2016 at 4:53 AM Steven D'Aprano wrote: > On Sat, Sep 17, 2016 at 03:39:08AM +1000, Chris Angelico wrote: > > On Fri, Sep 16, 2016 at 11:22 PM, אלעזר wrote: > > > P.S. how do I change the name in my

Re: [Python-ideas] typing.modifiers

2016-09-16 Thread אלעזר
On Fri, Sep 16, 2016 at 1:16 PM Steven D'Aprano wrote: > On Fri, Sep 16, 2016 at 12:10:22AM +, אלעזר wrote: > > [...] > > Benefits of putting such a collection in stdlib (instead of as an > external > > package) include: > > Slow down! Before getting all excited about

Re: [Python-ideas] typing.modifiers

2016-09-16 Thread אלעזר
Thanks for the reply בתאריך יום ו׳, 16 בספט' 2016, 13:16, מאת Steven D'Aprano ‏< st...@pearwood.info>: > On Fri, Sep 16, 2016 at 12:10:22AM +, אלעזר wrote: > > [...] > > Benefits of putting such a collection in stdlib (instead of as an > external > > package) include: > > Slow down! Before

Re: [Python-ideas] typing.modifiers

2016-09-16 Thread Steven D'Aprano
On Fri, Sep 16, 2016 at 12:10:22AM +, אלעזר wrote: [...] > Benefits of putting such a collection in stdlib (instead of as an external > package) include: Slow down! Before getting all excited about adding these typing hints(?) into typing.modifiers, you first have to convince people that

[Python-ideas] typing.modifiers

2016-09-15 Thread אלעזר
With the new variable annotation syntax, it is possible to implement a useful "modifiers" library, all used as superclasses. Possible modifiers: * Named / Struct: annotation-defined fields. No monkey patching. * Immutable / Const * Sealed / Final: unsubclassable class * Array: a mutable