naming convention for scalars, lists, dictionaries ...

beliavsky_at_aol.com
Date: 02/28/05


Date: 28 Feb 2005 09:51:55 -0800

Since Python does not have declarations, I wonder if people think it is
good to name function arguments according to the type of data structure
expected, with names like "xlist" or "xdict".



Relevant Pages

  • Re: up with PyGUI!
    ... > to approximate that with Python syntax. ... I'm avoiding a data-driven approach (XML) because I think that keeping ... all declarations in Python will make my code easy to work with in the ... you may want to reconsider using a GUI builder for some tasks. ...
    (comp.lang.python)
  • Re: variable declaration
    ... looking for the "use strict" equivalent that I was absolutely certain ... It's practically the only thing I've ever expected to find in Python ... paragraph early in the Nutshell book saying "there are no declarations, ... declaration that modifies the reference and not the referent. ...
    (comp.lang.python)
  • declarations summary
    ... generate executable bytecode but merely affects the compiler". ... don't fit comfortably into Python syntax and 2) they at least ... execute. ... for me to call them both "declarations" was incorrect. ...
    (comp.lang.python)
  • Re: class methods vs. functions
    ... > def modulus: ... methods that work with that data structure. ... By incorporating modulus ... Python does place a premium on rapid prototyping and in consequence ...
    (comp.lang.python)
  • Re: variable declaration
    ... But the fact that I cannot dissect Python byte code, ... Except Ales says no declarations allowed, ... >REDUNDANCY* introduced solely for that purpose. ... My REAL LIFE EXPERIENCE programming in Python ...
    (comp.lang.python)