Kiuhnm wrote:
Why do you write
// Print the number of words...
def printNumWords(): ...
and not
// Prints the number of words...
def printNumWords(): ...
where it is understood?
Is that an imperative or a base form or something else?
Kiuhnm
http://www.python.org/dev/peps/pep-0257/
Why do you write
// Print the number of words...
def printNumWords(): ...
and not
// Prints the number of words...
def printNumWords(): ...
where it is understood?
Is that an imperative or a base form or something else?
Kiuhnm
--
http://mail.python.org/mailman/listinfo/python-list
On 24/03/2012 19:36, Kiuhnm wrote:
Why do you write
// Print the number of words...
def printNumWords(): ...
and not
// Prints the number of words...
def printNumWords(): ...
where it is understood?
Is that an imperative or a base form or something else?
The first is the
Why do you write
// Print the number of words...
def printNumWords(): ...
and not
// Prints the number of words...
def printNumWords(): ...
where it is understood?
Is that an imperative or a base form or something else?
I've seen it both ways, and I don't think anyone will fault you
On Sat, Mar 24, 2012 at 4:24 PM, MRAB pyt...@mrabarnett.plus.com wrote:
On 24/03/2012 19:36, Kiuhnm wrote:
Why do you write
// Print the number of words...
def printNumWords(): ...
and not
// Prints the number of words...
def printNumWords(): ...
where it is understood?
Is
On 3/24/2012 21:24, MRAB wrote:
On 24/03/2012 19:36, Kiuhnm wrote:
Why do you write
// Print the number of words...
def printNumWords(): ...
and not
// Prints the number of words...
def printNumWords(): ...
where it is understood?
Is that an imperative or a base form or something else?
The
On Sun, Mar 25, 2012 at 7:32 AM, Colton Myers colton.my...@gmail.com wrote:
// Print the number of words...
// Prints the number of words...
I've seen it both ways, and I don't think anyone will fault you for either.
I usually use the first version, commanding the code to do what I want.
In article mailman.961.1332628608.3037.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
It's funny how these things go. There are multiple distinct
conventions, and regarding function definition comments (or
docstrings), both of those do definitely exist. I think I've seen more