RE: syntax error in sum(). Please explicate.



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
.



Relevant Pages

  • Re: syntax error in sum(). Please explicate.
    ... tutorial and the entry for the built in function sum, ... I'm not sure why that's a syntax error there. ...
    (comp.lang.python)
  • Re: uninstallation of windows desktop search
    ... There is no entry for it in Add/Remove programs applet. ... I am now trying to decide between Copernic Desktop Search and Google ... What do you search for that the built in search will not find and why ...
    (microsoft.public.windowsxp.general)
  • Orphan GDG problem
    ... We have a job that fails when creating a GDG entry, ... It looks like the file has beed created spuriously some how and is in some sort of orphan state so when we run the job to create +1 HSM seems to want to recall the orphan version but fails as above in the process. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Future of Orion??
    ... And don't forget that a capsule has a good chance of bringing a crew home ... The entry without flight control requirement has ... Right up until the parachute fails to open. ...
    (sci.space.shuttle)
  • Cant get RWW working
    ... fails, ... Did Harry B's suggestion of adding an entry in the hosts file EG: ...
    (microsoft.public.windows.server.sbs)