[Tutor] CONSTANTS -- Is it appropriate to use uppercase names within a function or method?

Alan Gauld alan.gauld at yahoo.co.uk
Tue Nov 12 18:47:43 EST 2019


On 12/11/2019 21:00, boB Stepp wrote:
> IF I were to use type annotations as you suggest, would there be any
> point to the more expansive docstring?  The combination of type
> annotations with already very descriptive variable names seems to make
> any more description superfluous.

I'm not a big type hints fan so don't use them. But I'm curious to know
what they do in the context of the help() function. If there is no
docstring what do type hints generate in help messages?

I suppose I should just try it!...


-- 
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