introspection question: get return type
George Sakkis
george.sakkis at gmail.com
Thu May 14 21:07:47 EDT 2009
On May 14, 3:55 pm, a... at pythoncraft.com (Aahz) wrote:
> In article <4a0c6e42$0$12031$426a7... at news.free.fr>,
> Bruno Desthuilliers <bdesth.quelquech... at free.quelquepart.fr> wrote:
>
> >Marco Mariani a écrit :
> >> Bruno Desthuilliers wrote:
>
> >>> Oh, you meant the "return type" ? Nope, no way. It just doesn't make
> >>> sense given Python's dynamic typing.
>
> >> Unless he's really trying to write in Nohtyp,
>
> >You meant "Notype" ?-)
>
> Marco's spelling is correct. Try "Nohtyp".reverse()
I tried it:
>>> "Nohtyp".reverse()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'str' object has no attribute 'reverse'
This newfangled Nohtyp language is no good, I want my money back.
George
More information about the Python-list
mailing list