Try escaping the quotes.

f = open("data.ini","w")
f.write("my \"car\" has been a great one for me")
f.close()

~ >cat data.ini
my "car" has been a great one for me

On 7/13/07, elis aeris <[EMAIL PROTECTED]> wrote:

also, why does the interpreter restart when I run this?



f = open("data.ini","w")

f.write("yeahppe")

f.close()
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to