Quote:Original post by kinetik_mjg
Both versions of your get_input() function look like they have a couple of bugs. First, the str object does not have an rsplit() method, so an AttributeError exception will be raised at this point in the code.
??? Do you mean the act that I want lowercase should be this?
[soource lang="python"] act = act.rsplit().lower()[/source]
If not, be be more specific or more lamen, but my guess is on more specific.
And as for "where is act cleared?"
I your asking where I delet the variable for later use so it doesn't mess up my code. In that case, I clear it when I'm done using it. I wouldn't clear it until I've processed the input and responded would I? But again, if I'm not understanding your question, be more specific or more lamens.
(Note: I don't ask that you be more lamens (that is if I don't understand you, otherwise it's good,) because I don't want to learn the terms, but because I still have to learn them.
EDIT:
Quote:Original post by Kylotan
How are you calling those functions? Both forms of return are fine. My guess is that perhaps something else is going wrong.
Hm. Well, the main block looks like this.
for x in range(1,2): get_input() print goal if act: process_input(act)
Although I've changed it thanks to kinetik_mjg's advice to this:
for x in range(1,2): act ,actOld ,actList = get_input() # Test print, WORKS print act, actList, actOld if act: process_input(act)
[Edited by - Splinter of Chaos on July 8, 2006 4:32:57 PM]