[issue20740] Remove invalid number from squares in introduction section
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 if I was just missing a super fancy feauture of Python, but I eventually concluded the 2 probably wasn't supposed to be there. In the name of making Python better, since π and -1 have already been proposed as additional squares, I vote for including the constant e as well. Fixed, thanks for the report and the patch! Great! Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
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 squares in Python *better* than squares in other languages...) -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
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 rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
Antoine Pitrou added the comment: Python has a super *extra* square 2! And let's not forget about -1. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
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 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
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 rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
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. -- assignee: docs@python components: Documentation files: fix_squares.patch keywords: patch messages: 211982 nosy: docs@python, nullishzero priority: normal severity: normal status: open title: Remove invalid number from squares in introduction section type: enhancement Added file: http://bugs.python.org/file34196/fix_squares.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20740] Remove invalid number from squares in introduction section
Changes by Georg Brandl ge...@python.org: -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com