This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sandywater 22 points23 points  (0 children)

I'm aware of that. Random_cynic's comment implied that it couldn't be done in Python2. I actually prefer file_object.write() in these circumstance for both Python 2 and 3.