>>> x, y = [], []
>>> print x == y, x is y
True False
>>> class T(object): pass
>>> x, y = T(), T()
>>> print x == y, x is y
False False
>>> filter(lambda x: 'env' in x, dir(os))
['environ', 'getenv', 'putenv', 'unsetenv']
>>>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment