Re: [Tutor] Python 3.2 - difference between out of dir() and help()

2012-03-08 Thread Steven D'Aprano
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

[Tutor] Python 3.2 - difference between out of dir() and help()

2012-03-08 Thread Flynn, Stephen (L & P - IT)
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