473,466 Members | 4,850 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dive Into Python -- Still Being Updated?

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...ting_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_dat...r.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.
>>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__
>>>
Jul 22 '06 #1
3 1328
Il 22 Jul 2006 15:48:36 -0700, ha********@gmail.com ha scritto:
http://diveintopython.org/getting_to...ting_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.

>
http://diveintopython.org/native_dat...r.tuplemethods

I think tuples have methods, na?
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 <al***************@gmail.com>
-
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
Jul 24 '06 #2

Alan Franzoni wrote:
Il 22 Jul 2006 15:48:36 -0700, ha********@gmail.com ha scritto:
http://diveintopython.org/getting_to...ting_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, 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.
http://diveintopython.org/native_dat...r.tuplemethods

I think tuples have methods, na?

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 :)

Jul 26 '06 #3
On Tue, Jul 25, 2006 at 11:32:23PM EDT, ha********@gmail.com wrote:
>
Alan Franzoni wrote:
Il 22 Jul 2006 15:48:36 -0700, ha********@gmail.com ha scritto:
http://diveintopython.org/getting_to...ting_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, yeah, my point. It's misleading.
... a "fib".. as in "telling fibs.."

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

???
Jul 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Franz Mueller | last post by:
Hi, which of the following books would you recommend: "Dive into Python" or "Beginning Python: From Novice to Professional"? I'm an experienced C++-programmer who wants to take a look at...
5
by: Casey Hawthorne | last post by:
Since there was talk of if-then-else not being allowed in lambda expressions, the following is from "Dive into Python" The and-or conditional expression trick from page 41 of "Dive into Python"...
1
by: Ben Edwards (lists) | last post by:
I have been going through Dive into Python which up to now has been excellent. I am now working through Chapter 9, XML Processing. I am 9 pages in (p182) in the 'Parsing XML section. The...
51
by: erikcw | last post by:
DiveIntoPython.org was the first book I read on python, and I really got a lot out of it. I need to start learning Java (to maintain a project I've inherited), and was wondering if anyone knew of...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.