[docs] Error in "The Python Tutorial"

Jason Scatena jscatena88 at gmail.com
Wed Feb 27 00:13:39 CET 2013


Nevermind I now realize i was looking at the python 2.x documentation not
the python 3 documentation. Scratch my last email.

-Jason Scatena

On Tue, Feb 26, 2013 at 5:48 PM, Jason Scatena <jscatena88 at gmail.com> wrote:

> To Whom it May Concern,
> Under the tutorial section "3.1.1 Numbers" I believe there is an error in
> the code example block. It shows:
>
> >>> 2+24>>> # This is a comment... 2+24>>> 2+2  # and a comment on the same line as code4>>> (50-5*6)/45>>> # Integer division returns the floor:... 7/32>>> 7/-3-3
>
> Should it not show a double forward slash for the integer division. This
> is the results of me trying the code example(copied and pasted directly
> from bash):
> >>> 7/3
> 2.3333333333333335
> >>> 7//3
> 2
> >>> 7/-3
> -2.3333333333333335
> >>> 7//-3
> -3
>
>
> Regards,
> -Jason Scatena
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130226/83edcf42/attachment-0001.html>


More information about the docs mailing list