ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
how to display the return type of an os method?
by Robert P. J. Day other posts by this author
Nov 7 2009 10:19AM messages near this date
Re: database handling | Re: how to display the return type of an os method?
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.  how dumb a question is that?

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Robert P. J. Day
Bruno Desthuilliers
Robert P. J. Day

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved