To what end though? It's a small thing sure but it's busywork. Why am I being asked to do busywork?
Re:Making Python 3 more attractive
by raverbashing on Wednesday April 15, 2015 @04:24AM
(#9379547)
Yeah, I don't like the busywork that Pep8 makes me do it, and it's a lot, and some of it is stupid, but it has to be done
You certainly don't have to do it if you don't want Python 3 and 2to3 makes it a lot easier
>Yeah, I don't like the busywork that Pep8 makes me do it, and it's a lot, and some of it is stupid, but it has to be done
Actually no, it hasn't. PEP8 is just a formatting standard, your code will work with your own standard too.
Re:Making Python 3 more attractive
by raverbashing on Wednesday April 15, 2015 @05:22AM
(#9379776)
True, I meant this https://pypi.python.org/pypi/pep8
Re:Making Python 3 more attractive
by alexchamberlain on Wednesday April 15, 2015 @05:59AM
(#9379895)
Guido doesn't like that tool; they're guidelines, not rules.
Re:Making Python 3 more attractive
by raverbashing on Wednesday April 15, 2015 @06:19AM
(#9379960)
> Guido doesn't like that tool; they're guidelines, not rules.
Yes, a lot of people need to get that memo
I don't like it as well, but it keeps a group of developers in check. And it can be configured, so there's that as well
Too bad autopep8 produces bad results out of the box
Re:Making Python 3 more attractive
by bufordsharkley on Wednesday April 15, 2015 @03:28AM
(#9379382)
The print function is clearly a better, more precise way to handle it, to be sure...
But the print statement was one prominent, attractive way that Python was essentially pseudocode-- its removal seems an improvement from a pedantic sense, but one that seems to run contrary to convenience and (perhaps) the expectations of a beginner.
I disagree about this being worse for beginners - if we're teaching a new programmer about functions, surely a basic print function is a great introduction? Whereas before it was a one-off special case.
Why is changing 'print stuff' to 'print (stuff)' such a big deal?
I think 2To3 solves a lot of print cases https://docs.python.org/2/library/2to3.html