Results 1 to 10 of 80

Hybrid View

  1. #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

  2. #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.

  3. #3
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    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

  1. Python Client Library for Lightstreamer
    By Alessandro in forum Client SDKs
    Replies: 1
    Last Post: December 18th, 2014, 05:15 PM
  2. how to comunicate lightstreamer server by python
    By keyan in forum Client SDKs
    Replies: 4
    Last Post: December 18th, 2014, 05:12 PM
  3. Replies: 2
    Last Post: January 5th, 2012, 08:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 05:01 AM.