[issue2201] Documentation Section 4.4
New submission from Jarod: Section 4.4 of the tutorial gives example code: >>> for n in range(2, 10): ... for x in range(2, n): ... if n % x == 0: ... print n, 'equals', x, '*', n/x ... break ... else: ... # loop fell through without finding a factor ... print n, 'is a prime number' ... 2 is a prime number 3 is a prime number 4 equals 2 * 2 5 is a prime number 6 equals 2 * 3 7 is a prime number 8 equals 2 * 4 9 equals 3 * 3 When one is to enter the code (print n, 'equals' x, '*' n/x) you are given syntax error: File "", line 4 print n, 'equals' x, '*' n/x ^ SyntaxError: invalid syntax -- components: Documentation messages: 63096 nosy: str8lazy severity: normal status: open title: Documentation Section 4.4 type: compile error versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2201> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
Jarod added the comment: I made a type in that line, but when the typo isn't there I get the same thing. It turns out that it was an error from running a slightly older version of the dev kit. Now that I have updated the dev kit it runs, but I end up with the following as an output: 3 is a prime number 4 equals 2 * 2 5 is a prime number 5 is a prime number 5 is a prime number 6 equals 2 * 3 7 is a prime number 7 is a prime number 7 is a prime number 7 is a prime number 7 is a prime number 8 equals 2 * 4 9 is a prime number 9 equals 3 * 3 as opposed to the desired 2 is a prime number 3 is a prime number 4 equals 2 * 2 5 is a prime number 6 equals 2 * 3 7 is a prime number 8 equals 2 * 4 9 equals 3 * 3 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2201> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
Jarod added the comment: @Georg: you were correct, the indentation was incorrect, I suggest that there be some additional notation be added to code examples in the documentation showing how many tabs there are, to make for an easier read and minimize on errors. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2201> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20166] window x64 c-extensions not works on python3.4.0b2
New submission from jarod: After installing python3.4.0b2.amd64 and rebuild modules, most of them stoped works. List of modules is [psutil, ujson]. Exception occurs on importing module: import error: dynamic module does not define init function PyInit_ and I found solution (workaround) - need change declaration of init function: Line: PyObject *PyInit_(void) was changed to: PyMODINIT_FUNC PyInit_(void) and module works fine after rebuild. All works fine with 3.4.0b1 and all alpha versions. I have windows8.1 x64. -- components: Build, Windows messages: 207584 nosy: jarod priority: normal severity: normal status: open title: window x64 c-extensions not works on python3.4.0b2 versions: Python 3.4 ___ Python tracker <http://bugs.python.org/issue20166> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27401] Wrong FTP links in 5.3.2 installer
New submission from Jarod Brennfleck: So far, the only installers tested is the Python 5.3.2 x86 and x86_64 installers. When selecting customise install, the installer is unable to gather the files required, because the installer is looking for them in: https://www.python.org/ftp/python/3.5.2/amd64/ Following the link will result in a 404, as the folder does not exist. This reason has been found thanks to the log file of the installation that is given upon error during the installation. (Cheers for that! :D) The correct link is: https://www.python.org/ftp/python/3.5.2/amd64rc1/ -- components: Installation messages: 269383 nosy: Jarod Brennfleck priority: normal severity: normal status: open title: Wrong FTP links in 5.3.2 installer type: crash versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue27401> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com