RE: syntax error in sum(). Please explicate.
- From: "Delaney, Timothy (Tim)" <tdelaney@xxxxxxxxx>
- Date: Mon, 20 Nov 2006 11:39:05 +1100
John Machin wrote:
Michael Press wrote:
I have not written python codes nor run any. I saw this
code posted and decided to try it. It fails. I read the
tutorial and the entry for the built in function sum,
but still do not see the problem. The code was cut and
paste.
I doubt it -- "none" should be "None"
Not necessarily. He said he cut-and-pasted - I interpreted that to be
from *his* editor. But since he was getting a SyntaxError, he would not
have hit the NameError yet ...
All-in-all, this actually felt like a post from someone who *had* read:
http://www.catb.org/~esr/faqs/smart-questions.html
Tim Delaney
.
- Prev by Date: Re: re.match -- not greedy?
- Next by Date: Re: re.match -- not greedy?
- Previous by thread: Re: syntax error in sum(). Please explicate.
- Next by thread: Finding skilled pythonistas for micro-jobs?
- Index(es):
Relevant Pages
|