RFC: Proposal: Deterministic Object Destruction (Posting On Python-List Prohibited)
ooomzay at gmail.com
ooomzay at gmail.com
Thu Mar 1 19:02:36 EST 2018
On Thursday, March 1, 2018 at 11:51:50 PM UTC, Lawrence D’Oliveiro wrote:
> On Friday, March 2, 2018 at 12:39:01 PM UTC+13, ooo... at gmail.com wrote:
> > class RAIIFileAccess():
> > '''File Access-like Resource using [RAII] idiom'''
> >
> > ...
> >
> > def __del__(self):
> > low_level_file_close(self.handle) # fictitious function
>
> This may be OK for files opening for reading, not so good for writing.
Please could you explain the issue you perceive with writing?
More information about the Python-list
mailing list