Message200783
| Author |
barry |
| Recipients |
barry |
| Date |
2013年10月21日.14:01:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1382364108.83.0.592480403248.issue19331@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
PEP 8 says:
"""
Class Names
Almost without exception, class names use the CapWords convention. Classes for internal use have a leading underscore in addition.
"""
yet there are some notable exceptions in practice, such as classes designed to be context managers (used with the `with` statement).
This message indicates Nick's implementation choice of a wrapper function in part to avoid naming a class with all lower cases (which look better with `with`, but break the PEP 8 convention).
https://mail.python.org/pipermail/python-dev/2013-October/129791.html
The PEP 8 language should be revised, but striking the right balance might be a little tricky. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年10月21日 14:01:48 | barry | set | recipients:
+ barry |
| 2013年10月21日 14:01:48 | barry | set | messageid: <1382364108.83.0.592480403248.issue19331@psf.upfronthosting.co.za> |
| 2013年10月21日 14:01:48 | barry | link | issue19331 messages |
| 2013年10月21日 14:01:48 | barry | create |
|