[issue11425] Cleanup sample codes in tutorial.

2011-03-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just two notes: The operations like “7205759403792794 * 10**30 / 2**56” in floatimport could use some parens; the patch removed a duplicate “statement: for” entry. -- nosy: +eric.araujo ___ Python

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: * Insert spaces around operators and after commas. * Split one liner blocks (ex. def foo(x, y): return x + y) to multi-line blocks. * Insert empty line after def block for scripts (not interactive mode). * Use new-style raise (s/ralse

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
INADA Naoki songofaca...@gmail.com added the comment: This patch inserts spaces around ** operator but I prefer no spaces around **. Any thoughts? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11425

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Sorry, but I think many of these changes should not be made. Sometime the tight spacing is used for visual grouping. The following look fine and should not be changed because adding spaces around the + or * operator makes

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I made the c - cls change in 88fe1ac48460. Some other fixes have already been made in py3k (like removing the duplicate index keyword), and for the others I completely agree with Raymond. -- nosy: +georg.brandl resolution: rejected -