Respect PEP 3109
|Reported by:||DaNmarner||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Tho porting to Python 3 has not started yet, there're things to be done without affecting the current support for Python (>2.4).
As mentioned in PEP 3109, one of Python's guiding maxims is "there should be one -- and preferably only one -- obvious way to do it". Specifically, raising exceptions with a message should be done in the ONE TRUE WAY since Python 1.5, as forced by Python 3:
All this patch does is to respect this principle.
Change History (3)
Changed 3 years ago by DaNmarner
comment:1 Changed 3 years ago by lrekucki
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin