On Fri, Mar 16, 2012 at 1:06 AM, Mark Lawrence <breamore...@yahoo.co.uk> wrote: > Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>>> with open("filename", "w") as f > File "<stdin>", line 1 > > with open("filename", "w") as f > ^ > SyntaxError: invalid syntax > > -- > Cheers. > > Mark Lawrence. >
Erred for me also; but under f: Python 2.7.3rc1 (default, Feb 24 2012, 21:28:59) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> with open("filename", "w") as f File "<stdin>", line 1 with open("filename", "w") as f ^ SyntaxError: invalid syntax -- http://mail.python.org/mailman/listinfo/python-list