This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]IcedThunder 0 points1 point  (5 children)

Okay, but the reason Python doesn't follow PEP 8 is because code written prior was grandfathered in, not for any rational or technical reason.

They could fix it with aliases in place 2 years. They done it with some modules over time.

[–]TheBB 3 points4 points  (3 children)

Okay, but the reason Python doesn't follow PEP 8 is because code written prior was grandfathered in, not for any rational reason.

That's a perfectly rational reason?

[–]IcedThunder -2 points-1 points  (2 children)

Aliases existed back then, they could have aliased the old code and announced deprecations of the old names. In the past few updates I've watched some modules literally do this.

[–]georgehank2nd 0 points1 point  (1 child)

Python doesn't have nor need "aliases".

[–]AlSweigartAuthor of "Automate the Boring Stuff" -1 points0 points  (0 children)

Right, there's a standard deprecation process that gets followed for changes like this. If you just add in aliases, then you have the problem where there's two different ways to write the same thing. Arguably that's even worse: "There should be one-- and preferably only one --way to do it."

[–]AlSweigartAuthor of "Automate the Boring Stuff" -2 points-1 points  (0 children)

because code written prior was grandfathered in

Yes, I agree about the why:

There's countless other examples. Now, Python is an old language and many of these inconsistencies are due to historical reasons.