[Python-ideas] name2type mapping

2018-10-25 Thread Thomas Güttler Lists
I created a first draft of the name2type mapping which was discussed here some days ago: https://github.com/guettli/python-name2type-mapping/blob/master/README.rst Feedback is welcome. Regards,   Thomas Güttler -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback:

Re: [Python-ideas] TypeHinting: From variable name to type

2018-10-20 Thread Thomas Güttler Lists
Am 19.10.18 um 12:15 schrieb Steven D'Aprano: On Fri, Oct 19, 2018 at 09:18:02AM +0200, Thomas Güttler wrote: Imaging you are developing in the django context. Everytime you use a variable named "request" or "response" your human brains knows that this is a subclass of

[Python-ideas] kwargs for return

2019-01-26 Thread Thomas Güttler Lists
I know this is going to get rejected, but I want to speak out the idea nevertheless: I love kwargs and named arguments from the beginning (roughly 18 years now) I guess you came across this several times before: In the first version of the API one variable gets returned: Example: