[Python-bugs-list] [ python-Bugs-419434 ] Tutorial contains wrong sample code.

noreply@sourceforge.net noreply@sourceforge.net
Mon, 21 May 2001 10:03:54 -0700


Bugs item #419434, was updated on 2001-04-27 02:50
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=419434&group_id=5470

Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Dinu C. Gherman (dinu_gherman)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Tutorial contains wrong sample code.

Initial Comment:
The tutorial for version 2.1 of Python contains this piece of wrong code:

>>> x = 10 * 3.14
>>> y = 200*200
>>> s = 'The value of x is ' + `x` + ', and y is ' + `y` + '...'
>>> print s
The value of x is 31.4, and y is 40000...

where the real output should read:

>>> print s
The value of x is 31.400000000000002, and y is 40000...

Dinu Gherman


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-05-21 10:03

Message:
Logged In: YES 
user_id=3066

Fixed in Doc/tut/tut.tex revisions 1.135 and 1.133.2.2.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=419434&group_id=5470