[Tutor] How to type annotate complex dictionary containing lambdas?

Alan Gauld alan.gauld at yahoo.co.uk
Sun Nov 17 19:50:19 EST 2019


On 17/11/2019 22:04, DL Neil via Tutor wrote:

> and yes, +1 on the class-upgrade (gives more leg-room on the plane!). We 
> keep the dictionary structure and add (more flexible) functionality.
> 
> [oops, in saying that, I fear @Alan will come-after me: So, in a bid to 
> prevent the tooth- and claw-marks: a class *first* gives function and 
> *then* offers us a dictionary/data-structure 'for free'

:-)

But the good news in this case is that the required methods
are there for the picking within the dict. All we need are
a few useful names.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list