Here's an excerpt of my code:
def listFrom(here):
print "[DBG] here: " + here
def book(here, there, amount):
print "[DBG] here: " + here + "; there: " + there + "; amount: " + str(amount)
# Code that takes input and stores it into the string input
# Yes, I know this is dangerous, but it's part of a
# school assignment where we HAVE to use eval.
eval(input, {"__builtins__": {}, "listAll": listAll, "listFrom": listFrom, "listFromTo": listFromTo, "book": book, "about": about, "commands": commands, "book": book})
If I enter listFrom('LON')
, the program returns [DBG] here: LON
as expected. However, when I do book('LON', 'MAN', 8)
I get an inexplicable [DBG] here: ☺; there: ☻; amount: ♥
. What could be the cause of this?