Tom Tucker wrote:
> 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

Tom beat me to posting that, see here for more information on escape sequences 
in Python:

http://docs.python.org/ref/strings.html


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

Reply via email to