Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103291
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: how to get the list form dictionary's values |
| Date | 2016-02-21 15:06 +0100 |
| Organization | None |
| Message-ID | <mailman.7.1456063625.20994.python-list@python.org> (permalink) |
| References | <554c09f2-6a6b-4576-9c9d-50d6234c8583@googlegroups.com> |
davidbenny2000@gmail.com wrote:
> File "mainpy.py", line 81
> for functionlistelement in functionlist0
> ^
> SyntaxError: invalid syntax
>
>
> import asyncio
[snip]
> mappedfunc = {}
> functionlist000 = []
> functionlist001 = []
> functionlist002 = []
> functionlist003 = []
> functionlist004 = []
[snip many names with numeric suffix and repeated method calls]
I have no idea what you are trying to do; however, your code looks awfully
redundant. This is errorprone:
functionkey000 = {'000': f000 }
functionkey001 = {'001': f001 }
functionkey002 = {'002': f002 }
functionkey002 = {'003': f003 }
functionkey002 = {'004': f004 }
> for functionlistelement in functionlist0
To answer what seems to be your actual question: a colon is missing at the
end of this line.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to get the list form dictionary's values davidbenny2000@gmail.com - 2016-02-21 05:34 -0800
Re: how to get the list form dictionary's values Chris Angelico <rosuav@gmail.com> - 2016-02-22 01:04 +1100
Re: how to get the list form dictionary's values Ho Yeung Lee <davidbenny2000@gmail.com> - 2016-02-21 06:15 -0800
Re: how to get the list form dictionary's values Chris Angelico <rosuav@gmail.com> - 2016-02-22 02:01 +1100
Re: how to get the list form dictionary's values Marko Rauhamaa <marko@pacujo.net> - 2016-02-21 17:16 +0200
Re: how to get the list form dictionary's values Peter Otten <__peter__@web.de> - 2016-02-21 15:06 +0100
Re: how to get the list form dictionary's values Ho Yeung Lee <davidbenny2000@gmail.com> - 2016-02-21 06:21 -0800
csiph-web