Changes between Initial Version and Version 1 of Ticket #11187, comment 222
- Timestamp:
- 04/13/16 19:06:36 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11187, comment 222
initial v1 3 3 > 4 4 > I am sure there are reasons for that python3 convention, but I do prefer simple to read code. Anyway, I can also do the other if you prefer. 5 6 In python3, `print` becomes an actual function, so it needs the parentheses (which due to Python's handling of parentheses, `print(foo)` gets evaluated to `print foo`, but having a comma means `(foo, bar)` becomes a tuple). So to help make the doctests 2/3 compatible and to ease the eventual transition, I do prefer the way I had it or make it into a few examples and have a doctest which does check everything (without verbose).