> for line in file:
This line is not required as the you have opened your file to 'f'.
'file' is a built-in class. Type -
help(file)
on the interpreter to know more about it.
> for line in f:
> print(line.rstripe())
> f.close()
Are you sure that you need to close the file aft
> AttributeError: Queue instance has no attribute 'taskdone'
Method name is task_done (not taskdone)
https://docs.python.org/2/library/queue.html#Queue.Queue.task_done
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options
On Sun, Aug 2, 2015 at 9:39 AM, Quiles, Stephanie
wrote:
>
> hello again!
>
> I have to unify these methods so that i can enter an infix, convert it to a
> postfix and then solve. Here are the methods
At the end of your code I added this -
inFixExpr = raw_input("Enter infix string : ")
postFixE
nt_detect(23, GPIO.RISING, callback=play)
and similarly for the other pins.
Check the "Events and Callback Functions" section of this tutorial -
http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/
Cheers,
Anish Tambe
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
The usage of the api as documented here - https://github.com/zachwill/fred
- suggests :
>>> import fred
# Save your FRED API key.
>>> fred.key('my_fred_api_key')
# Interact with economic data categories.
>>> fred.category()
...
Cheers,
Anish Tambe
On 26 Oc