View Single Post
Old 07-30-2010, 03:04 PM   #2370
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by sark666 View Post
Haivng limited knowledge of python (but learning) I'm not sure what you mean if I use string I need to import it. I'll try without.
You would need this at the top of the recipe:
Code:
import string
Otherwise, your recipe doesn't know the string function.

Quote:
You also mentioned to try print to make sure it's chopping up correctly, well I tried in a python editor previously and it's chopping up the string as I expected. I'm just not passing it back properly.
If you didn't have string imported, it would have failed. Didn't you get an error message? I like to print the results when the recipe runs, then I can see if it's doing what I expect. I take print statements out only after it's all working.
Starson17 is offline