[Tutor] creating files on open()

William O'Higgins william.ohiggins at utoronto.ca
Fri May 20 20:45:01 CEST 2005


When I am open()-ing a file, I sort of expect that if the file doesn't
exist that it would be created, but it doesn't, it whines about it
instead.  So, how do I create a file with Python?  I've looked all over,
but I'm obviously missing something.  Thanks.
-- 

yours,

William

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.python.org/pipermail/tutor/attachments/20050520/272e196a/attachment.pgp


More information about the Tutor mailing list