[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
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,
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
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
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
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
[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
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
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