Talk:Python Examples

From Open Rail Data Wiki
Revision as of 17:17, 17 August 2015 by Mia (talk | contribs) (→‎Syntax Error Line 25)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax Error Line 25

I attempted this code but ran into a syntax error on line 25:

mq.set_listener(, Listener(mq))
                ^

I corrected this by changing to:

mq.set_listener('', Listener(mq))

It seems to be running correctly now with Python 2.7.5; could someone confirm before I change the main page? Mia (talk) 18:13, 17 August 2015 (BST)

Just noticed that whoever uploaded the code ran into the same issue as me in trying to make the single quote marks show up, so I have edited the page after all. Mia (talk) 18:17, 17 August 2015 (BST)