[EMAIL PROTECTED] wrote: ... > Every time I use dir(some module) I get a lot of attributes with double > underscore, for example __add__. Ok, I thought __add__ must be a method > which I can apply like this ... > I tried > >>> help(5.__add__) > > but got > SyntaxError: invalid syntax
That's because the parser thinks "5." is a float, rather than the integer 5 with a dot after it. If you want to refer to an attribute of an integer literal, you can use "(5).__add__" or "5 .__add__" (with a space). -- http://mail.python.org/mailman/listinfo/python-list