Flynn, Stephen (L & P - IT) wrote:
All pretty standard stuff. I did however notice that the
dir(x) told me about __class__, __reduce__ and __reduce_ex__ where the
help(x) made no mention of them. Why is this difference? I presume the
two commands using different means of getting
Pythonistas,
Tinkering around this morning and noticed the following
when I created a tuple and asked for a dir() on it and some help() on
it.
>>> x=('rod','jane','freddy')
>>> dir(x)
['__add__', '__class__', '__contains__', '__delattr__', '__doc__',
'__eq__', '__format