Talk:Python Examples: Difference between revisions

From Open Rail Data Wiki
Mia (talk | contribs)
Created page with "==Syntax Error Line 25== I attempted this code but ran into a syntax error on line 25: <nowiki>mq.set_listener(, Listener(mq)) ^</nowiki> I corrected this by ..."
 
Mia (talk | contribs)
 
Line 1: Line 1:
==Syntax Error Line 25==
==Syntax Error Line 25==
I attempted this code but ran into a syntax error on line 25:
I attempted this code but ran into a syntax error on line 25:
  <nowiki>mq.set_listener(, Listener(mq))
  <nowiki>mq.set_listener(, Listener(mq))
Line 7: Line 8:


It seems to be running correctly now with Python 2.7.5; could someone confirm before I change the main page? [[User:Mia|Mia]] ([[User talk:Mia|talk]]) 18:13, 17 August 2015 (BST)
It seems to be running correctly now with Python 2.7.5; could someone confirm before I change the main page? [[User:Mia|Mia]] ([[User talk: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. [[User:Mia|Mia]] ([[User talk:Mia|talk]]) 18:17, 17 August 2015 (BST)

Latest revision as of 17:17, 17 August 2015

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)