python Queue function bug

Posted by Fly on Tue 20 Apr 2010 09:53 PM — 6 posts, 28,722 views.

#0
Script error
World: a
Execution of line 1 column 0
Immediate execution
Traceback (most recent call last):
File "<Script Block 10>", line 1, in <module>
world.Queue(world.EvaluateSpeedwalk("4n"), true)
NameError: name 'true' is not defined

Line in error:
world.Queue(world.EvaluateSpeedwalk("4n"), true)
Australia Forum Administrator #1
I'm no Python expert, but for most functions I think you can substitute 1 for true and 0 for false.

This isn't a bug BTW - you are having trouble with the Python script engine, not MUSHclient.
Amended on Tue 20 Apr 2010 10:30 PM by Nick Gammon
#2
Thank you reply
This isn't bug, is my problem
USA #3
In Python, the value 'true' is written as 'True' (and false is 'False').

BTW if this isn't a bug report it should probably be filed somewhere other than the "Bug reports" section. :-)
Netherlands #4
I think I understand why he posted it as a bug. It's a blooper in the documentation, see: http://www.gammon.com.au/scripts/function.php?name=Queue
Australia Forum Administrator #5
Amended the documentation for the next release (and similar instances in other functions).

Also moved to General part of forum.