Re: naming convention for scalars, lists, dictionaries ...

2005-03-01 Thread Paul Boddie
[EMAIL PROTECTED] wrote in message news:<[EMAIL PROTECTED]>... > 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". Your suggestion coincides partly with a

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Jack Diederich
On Mon, Feb 28, 2005 at 09:41:37PM +0100, Just wrote: > In article <[EMAIL PROTECTED]>, > Jack Diederich <[EMAIL PROTECTED]> wrote: > > > On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote: > > > Jack Diederich wrote: > > > >Ditto for me, plural implies list and singular implies instance,

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Just
In article <[EMAIL PROTECTED]>, Jack Diederich <[EMAIL PROTECTED]> wrote: > On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote: > > Jack Diederich wrote: > > >Ditto for me, plural implies list and singular implies instance, > > >for (contact) in contacts: > > > # do something with cont

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Jack Diederich
On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote: > Jack Diederich wrote: > >Ditto for me, plural implies list and singular implies instance, > >for (contact) in contacts: > > # do something with contact > > May I ask why you place the parenthesis in the for statement? I like the tup

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Benji York
Jack Diederich wrote: Ditto for me, plural implies list and singular implies instance, for (contact) in contacts: # do something with contact May I ask why you place the parenthesis in the for statement? -- Benji -- http://mail.python.org/mailman/listinfo/python-list

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Jack Diederich
On Mon, Feb 28, 2005 at 11:32:22AM -0700, Steven Bethard wrote: > [EMAIL PROTECTED] wrote: > >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". > > In g

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Steven Bethard
[EMAIL PROTECTED] wrote: 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". In general, I find that naming collections for their contents is much more useful t

Re: naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread Skip Montanaro
beliavsky> Since Python does not have declarations, I wonder if people beliavsky> think it is good to name function arguments according to the beliavsky> type of data structure expected, with names like "xlist" or beliavsky> "xdict". In general, no. I think variable names should

naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread beliavsky
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". -- http://mail.python.org/mailman/listinfo/python-list