On Wed, Feb 07, 2001 at 09:07:16AM -0500, Carl Talley wrote:
> 
> Try this syntax:
> 
> dir(['site'])
> 
> That is, the argument has to be a list of strings.
> 

Not quite, Carl. That is giving the list of attribute/methods of the list
object that you created.

>>> mylist = [1,2,3]
>>> dir(mylist)
['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse',
'sort']
>>>
>>> dir([1,2,3])
['append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse',
'sort']

Cheers,
Trent

-- 
Trent Mick
[EMAIL PROTECTED]
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to