dirkheld wrote: > Hi, > > I upgraded my system from tiger to leopard. With leopard came a new > version of python 2.5 > > Now I trying to run some python code that previously worked on tiger > (which included an older version of python). > > This is the error I'm receiving : > > Traceback (most recent call last): > File "test.py", line 18, in print_total > f=open('a_file.txt','w') > IOError: [Errno 2] No such file or directory: 'a_file.txt' > > > Is this a bug in python? This code worked on my old system
The obvious question is: do you have 'a_file.txt' on your new system? There are many happy python programmers on leopard, and this is one heck of a basic functionality - I really doubt it's broken in such obvious way (if any at all). Diez -- http://mail.python.org/mailman/listinfo/python-list