Dive Into Python -- Still Being Updated?
hanumizzle at gmail.com
hanumizzle at gmail.com
Sat Jul 22 18:48:36 EDT 2006
I find Dive Into Python generally an excellent text, and I am not
surprised to see people recommending it...but I have noticed a few
errors already:
http://diveintopython.org/getting_to_know_python/indenting_code.html
The function called fib (presumably short for Fibonacci) appears to
produce factorials. Anyway, 'fib' should really be called 'hem'. :)
http://diveintopython.org/native_data_types/tuples.html#odbchelper.tuplemethods
I think tuples have methods, na?
hanumizzle at debian:~$ python
Python 2.4.3 (#1, Jun 20 2006, 11:52:59)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "\n".join(dir(tuple))
__add__
__class__
__contains__
__delattr__
__doc__
__eq__
__ge__
__getattribute__
__getitem__
__getnewargs__
__getslice__
__gt__
__hash__
__init__
__iter__
__le__
__len__
__lt__
__mul__
__ne__
__new__
__reduce__
__reduce_ex__
__repr__
__rmul__
__setattr__
__str__
>>>
More information about the Python-list
mailing list