Re: Is PEP-8 a Code or More of a Guideline?
- From: Wildemar Wildenburger <wildemar@xxxxxxxxxxxx>
- Date: Thu, 31 May 2007 19:57:57 +0200
Warren Stringer wrote:
i.prefer.dots -- no, seriouslyAre you now suggesting that "addinfourl()" should actually be called "url()", placed in a module named "info", which is part of a package called "add", so as to enable you to call "add.info.url()"?
sure it's slow, but forces you the think about names in a new way.
May I assume it wouldn't bother you having millions of packages containing only one module each (plus their __init__.py's) where the modules only provide around one function.
OK, go ahead. Modify the whole Python-library to conform to that style and then send us the bill from your psychiatrist. This may be a nice idea for the Next Overwhelming Programming Escapade (Codename: NOPE), but you can just forget about it in Python.
Excuse my mocking, but while typing dots is far easier for US and German keyboards, this may be a whole different story for any other layout (I forget how it goes with the french layout; shift for the dot or the comma?).
Back to the drawing boards!
;)
/W
PS
You may want to elaborate on the "new way to think about names". Maybe you have a point which I just don't see.
.
- References:
- Is PEP-8 a Code or More of a Guideline?
- From: Paul McGuire
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Stefan Sonnenberg-Carstens
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Steven Bethard
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Roy Smith
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Frank Swarbrick
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Tim Roberts
- Re: Is PEP-8 a Code or More of a Guideline?
- From: John DeRosa
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Szabolcs Nagy
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Joe Riopel
- Re: Is PEP-8 a Code or More of a Guideline?
- From: kc
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Joe Riopel
- Re: Is PEP-8 a Code or More of a Guideline?
- From: Christophe
- Is PEP-8 a Code or More of a Guideline?
- Prev by Date: FAQ: how to vary the byte offset of a field of a ctypes.Structure
- Next by Date: strange PyLint configuration (was: PEP 8 style enforcing program)
- Previous by thread: RE: Is PEP-8 a Code or More of a Guideline?
- Next by thread: Re: Is PEP-8 a Code or More of a Guideline?
- Index(es):
Relevant Pages
|