Re: how to display the return type of an os method?
by Bruno Desthuilliers other posts by this author
Nov 7 2009 10:32AM messages near this date
how to display the return type of an os method?
|
Re: how to display the return type of an os method?
Robert P. J. Day a écrit :
> once again, a thoroughly newbie question but what's the quickest way
> to display the return type of, say, os.stat()? i can obviously do
> this in two steps:
>
> >>> x=os.stat('/etc/passwd')
> >>> type(x)
> <class 'posix.stat_result'>
>
> i'd just like to see that os.stat() returns a posix.stat_result
> object in one line.
=> type(os.stat('/etc/passwd'))
But reading the doc might help too:
=> help(os.stat)
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Robert P. J. Day
Bruno Desthuilliers
Robert P. J. Day
|