Reply to post: Re: I like Python and C

Python creator Guido van Rossum sys.exit()s as language overlord

Charlie Clark Silver badge

Re: I like Python and C

Some design decisions were, in hindsight, wrong. ‘print’ - statement rather than ‘print()’ - expression, for example . Means you can’t ‘[print(x) for c in x]’.

I actually want my print statement back. Why on earth would I ever wrap a print call in a comprehension? Never ever felt even the urge to do this in the past. And if I ever did, two lines would be fine.

Code that works on both 2 and 3 requires minimal changes if you can start with 3-style. Then it's really just unicode literals, ints instead of longs. It's a bit more work if you have extensions. All in all less work than changing a major component.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019