Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PEP contains lots of best practices that aren't enforced by the interpreter though, doesn't it? e.g. PEP 8. It's been a while so maybe PEP 8 is more unique than I realize? It seems like a pretty sensible recommendation that wouldn't necessarily need to change the way exceptions are handled by Python. Right there in PEP 8 it says in big text "A Foolish Consistency is the Hobgoblin of Little Minds." I imagine that enforcing this in the interpreter would fall under that, but it seems like a good piece of advice for folks new to the language, or more likely, new to coding.


No one would anyone would object if this was a "best practice" or "linter rule".

It's the enforcement by compiler, which will break lots of existing code, that makes people unhappy.


There are PEPs that are not language features, but this PEP is emphatically proposing a modification to the language.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: