naming convention for functions that mutate their arguments?

Discussion in 'Python' started by mike p., Feb 26, 2004.

  1. mike p.

    mike p. Guest

    Hi all,

    I was wondering if there was any official/recommended way to denote that a
    Python function may mutate one or more of its arguments? I took a glance at
    PEP 8, but didn't see anything along these lines. A google search turned up
    something similar (
    http://aspn.activestate.com/ASPN/Mail/Message/1457714) but I didn't run
    across a resolution.

    Thanks!
    mike
     
    mike p., Feb 26, 2004
    #1
    1. Advertising

  2. mike p.

    Terry Reedy Guest

    "mike p." <> wrote in message news:c1lgcf$m00$...
    > Hi all,
    >
    > I was wondering if there was any official/recommended way to denote that

    a
    > Python function may mutate one or more of its arguments?


    The list mutation methods all return None to remind of this. Otherwise,
    read doc strings.

    Terry J. Reedy
     
    Terry Reedy, Feb 27, 2004
    #2
    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. Rick

    Which c# naming convention?

    Rick, Jan 19, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,786
    Paul Glavich
    Jan 19, 2004
  2. dm1608
    Replies:
    6
    Views:
    8,531
  3. Buck Turgidson

    JSP Method Naming Convention

    Buck Turgidson, Mar 2, 2004, in forum: Java
    Replies:
    1
    Views:
    1,757
    P.Hill
    Mar 2, 2004
  4. harry
    Replies:
    2
    Views:
    1,197
    harry
    Dec 8, 2004
  5. Roedy Green

    Naming Convention(s)

    Roedy Green, Sep 3, 2005, in forum: Java
    Replies:
    24
    Views:
    975
    Dale King
    Sep 12, 2005
Loading...

Share This Page