-
December 23rd, 2014, 03:24 PM
#1
Thanks gianluca.finocchiaro. It looks like that demo is featured on the Lightstreamer demo page now.
When I execute the script, I get a syntax error. Any idea why? I'm running Python 2.6.
>python stock_list_demo.py
File "stock_list_demo.py", line 92
k: self._decode(v, curr_item.get(k)) for k, v
^
SyntaxError: invalid syntax
-
December 23rd, 2014, 04:20 PM
#2
Dictionary comprehensions are not supported in python 2.6. You need to use 2.7 to run this. You may want to update your requirements to say 2.7 instead of any 2.x version.
Last edited by Jim; December 23rd, 2014 at 04:35 PM.
-
December 24th, 2014, 09:20 AM
#3
Hi Jim.
thanks for reporting this issue. I have just the fixed backward compatibility with Python 2.6, now available on GitHub.
Let me know for any further problem.
Regards,
Gianluca
Similar Threads
-
By Alessandro in forum Client SDKs
Replies: 1
Last Post: December 18th, 2014, 05:15 PM
-
By keyan in forum Client SDKs
Replies: 4
Last Post: December 18th, 2014, 05:12 PM
-
By subuta in forum Client SDKs
Replies: 2
Last Post: January 5th, 2012, 08:53 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:01 AM.
Bookmarks