20 Dec
2012
20 Dec
'12
1:28 p.m.
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
20 Dec
20 Dec
1:34 p.m.
On Thu, Dec 20, 2012 at 3:28 PM, Wiktor Mizdal <wiktor8010@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
4369
Age (days ago)
4369
Last active (days ago)
1 comments
2 participants
participants (2)
-
Maciej Fijalkowski
-
Wiktor Mizdal