Dive Into Python -- Still Being Updated?

H

hanumizzle

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@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.
 
A

Alan Franzoni

Il 22 Jul 2006 15:48:36 -0700, (e-mail address removed) ha scritto:
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'. :)

I think this is just a bad name for the function... it's not stated
anywhere that it should return a Fibonacci sequence.


Well... of course they have some *special* methods, (any python object has)
but they have no method of their own. I think this is pretty clear, it's
employed to emphasize the contrast with the list object.

BTW, you can see last update is 20 May 2004; it's right on the homepage.

--
Alan Franzoni <[email protected]>
-
Togli .xyz dalla mia email per contattarmi.
Rremove .xyz from my address in order to contact me.
-
GPG Key Fingerprint:
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E
-
Blog: http://laterradeglieroi.verdiperronchi.com
 
H

hanumizzle

Alan said:
Il 22 Jul 2006 15:48:36 -0700, (e-mail address removed) ha scritto:


I think this is just a bad name for the function... it's not stated
anywhere that it should return a Fibonacci sequence.

Well, yeah, my point. It's misleading. He was on the right track (it is
a sequence), but he goofed a little. In general, Mark Pilgrim's
material is pretty damn good.
Well... of course they have some *special* methods, (any python object has)
but they have no method of their own. I think this is pretty clear, it's
employed to emphasize the contrast with the list object.

I'm coming from Perl/Ruby, so maybe I don't grasp the concept of
'special' methods yet.
BTW, you can see last update is 20 May 2004; it's right on the homepage.

I know :( ...it is open content (GFDL), so I suppose I could pick it
up...maybe later :)
 
C

cga2000

Well, yeah, my point. It's misleading.

... a "fib".. as in "telling fibs.."

so the function lies .. therefore it does not return a Fibonacci
sequence..

???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top