[issue11425] Cleanup sample codes in tutorial.

2011-03-07 Thread Éric Araujo
Éric Araujo 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 tracker

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread Georg Brandl
Georg Brandl 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 -> fixed __

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger 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 the whole sentence harder to ment

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
INADA Naoki added the comment: This patch inserts spaces around ** operator but I prefer no spaces around **. Any thoughts? -- ___ Python tracker ___ ___

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
New submission from INADA Naoki : * 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 KeyboardInterrupt/raise Ke