Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Does python guarantees that file.write() works without file.close() ?
Post: RE: Does python guarantees that file.write() works...

(Oct-18-2019, 01:39 PM)perfringo Wrote: (Oct-18-2019, 01:20 PM)kryptomatrix Wrote: Is it guaranteed, that "out.txt" will contain "abc" Only taxes and death are guaranteed, everything else is optio...
kryptomatrix General Coding Help 7 3,838 Oct-21-2019, 11:28 AM
    Thread: Does python guarantees that file.write() works without file.close() ?
Post: RE: Does python guarantees that file.write() works...

The question is, whether it is guaranteed to write when exit() is called (or earlier).
kryptomatrix General Coding Help 7 3,838 Oct-18-2019, 11:21 PM
    Thread: Does python guarantees that file.write() works without file.close() ?
Post: RE: Does python guarantees that file.write() works...

(Oct-18-2019, 01:39 PM)perfringo Wrote: (Oct-18-2019, 01:20 PM)kryptomatrix Wrote: Is it guaranteed, that "out.txt" will contain "abc" Only taxes and death are guaranteed, everything else is optio...
kryptomatrix General Coding Help 7 3,838 Oct-18-2019, 10:27 PM
    Thread: Does python guarantees that file.write() works without file.close() ?
Post: Does python guarantees that file.write() works wit...

Long story short: Is it guaranteed, that "out.txt" will contain "abc" after executing the following program: f = open("out.txt", "w") f.write("abc\n")I'm not sure, whether the Standard guarantees if t...
kryptomatrix General Coding Help 7 3,838 Oct-18-2019, 01:20 PM
    Thread: Change linenumber and filename printed in exceptions like #line in C
Post: Change linenumber and filename printed in exceptio...

Hi, As you might know, there is the #line command in the C-preprocessor: #include <stdio.h> #line 20 "abc" int main() { printf("%i %s\n", __LINE__, __FILE__); //outputs 22 abc }Is there som...
kryptomatrix General Coding Help 2 2,620 Jul-11-2019, 01:10 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020