Library Naming Conventions.

Discussion in 'Python' started by chris.lyon@spritenote.co.uk, Apr 30, 2005.

  1. Guest

    Is there any specific naming convention as to capitalisation?

    Cookies versus cgi for example.
     
    , Apr 30, 2005
    #1
    1. Advertising

  2. Guest

    , Apr 30, 2005
    #2
    1. Advertising

  3. Guest

    quoting:

    Modules should have short, lowercase names, without underscores.

    this still doesn't explain Cookie.




    wrote:
    > see http://www.python.org/peps/pep-0008.html for naming conventions

    and
    > other style issues
     
    , May 10, 2005
    #3
  4. Peter Hansen Guest

    wrote:
    > quoting:
    >
    > Modules should have short, lowercase names, without underscores.
    >
    > this still doesn't explain Cookie.


    Sure it does. The subject line says "conventions", and a convention
    isn't a firm rule, just something many people agree on. Obviously the
    author of Cookie has different preferences. Nobody is bound by a
    convention.

    The PEP describes what is widespread but not universal preference,
    that's all.

    -Peter
     
    Peter Hansen, May 10, 2005
    #4
  5. wrote:

    > quoting:
    >
    > Modules should have short, lowercase names, without underscores.
    >
    > this still doesn't explain Cookie.


    the document you're quoting also says:

    This document was adapted from Guido's original Python Style
    Guide essay[2]

    where [2] points to a document that says:

    Module names can be either MixedCase or lowercase.
    There is no unambiguous convention to decide which
    to use. Modules that export a single class (or a number
    of closely related classes, plus some additional support)
    are often named in MixedCase, with the module name
    being the same as the class name (e.g. the standard
    StringIO module). Modules that export a bunch of
    functions are usually named in all lowercase.

    </F>
     
    Fredrik Lundh, May 10, 2005
    #5
  6. Robert Kern Guest

    wrote:
    > quoting:
    >
    > Modules should have short, lowercase names, without underscores.
    >
    > this still doesn't explain Cookie.


    PEP-008 didn't exist since the beginning of Python's development. Cookie
    (I believe) predates PEP-008.

    --
    Robert Kern


    "In the fields of hell where the grass grows high
    Are the graves of dreams allowed to die."
    -- Richard Harter
     
    Robert Kern, May 10, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =B=
    Replies:
    4
    Views:
    9,295
  2. Floppy Jellopy

    Namespaces and Naming conventions

    Floppy Jellopy, Jul 20, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    531
    Kevin Spencer
    Jul 21, 2005
  3. Josh  Wolf
    Replies:
    2
    Views:
    3,268
    Martin Robins
    Mar 31, 2006
  4. Roy  Assaly
    Replies:
    1
    Views:
    465
    Roy Assaly
    Apr 10, 2006
  5. bartek
    Replies:
    6
    Views:
    359
    bartek
    Apr 5, 2004
Loading...

Share This Page