On Thu, Dec 20, 2012 at 3:28 PM, Wiktor Mizdal <wiktor8...@o2.pl> wrote: > > I try use in Pypy 2 codes from Compatibility Page: > > 1) open("filename", "w").write("stuff") > > 2) with open("filename", "w") as f: > f.write("stuff") > > and it works. > > Is Compatibility Page actual? > > Wiktor
The first one *might* not work if the next thing you do is to read the file. Notably: open("filename", "w").write("stuff") open("filename", "r").read() # might return empty string Can you suggest a better wording? Cheers, fijal _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev