[issue20740] Remove invalid number from squares in introduction section

2014-02-25 Thread Pavel Kazakov
Pavel Kazakov added the comment: > (Alternatively, we could redefine squares in Python. All other languages > just have the regular squares; Python has a super *extra* square 2! That > clearly makes squares in Python *better* than squares in other languages...) Heh. I initially wasn't sure

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 ___ Python tracker ___

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 151a498c55e3 by Ezio Melotti in branch '3.3': #20740: desquarify 2. http://hg.python.org/cpython/rev/151a498c55e3 New changeset 1bc585ba5df2 by Ezio Melotti in branch 'default': #20740: merge with 3.3. http://hg.python.org/cpython/rev/1bc585ba5df2

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python has a super *extra* square 2! And let's not forget about -1. -- nosy: +pitrou ___ Python tracker ___ _

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: We should then declare that π is a square, which would allow an easy solution to squaring a circle in Python ☺ -- nosy: +loewis ___ Python tracker ___

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Mark Dickinson
Mark Dickinson added the comment: That's not nitpicky! It's a potentially confusing error that should definitely be rectified. (Alternatively, we could redefine squares in Python. All other languages just have the regular squares; Python has a super *extra* square 2! That clearly makes sq

[issue20740] Remove invalid number from squares in introduction section

2014-02-22 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mai

[issue20740] Remove invalid number from squares in introduction section

2014-02-22 Thread Pavel Kazakov
New submission from Pavel Kazakov: This is probably being nitpicky, but in the introduction section, the squares list include a 2: squares = [1, 2, 4, 9, 16, 25] However, 2 is not a square number (perfect square). So it should be: [1, 4, 9, 16, 25] I've included a patch that removes the 2. --