MCPcopy Create free account
hub / github.com/ml-explore/mlx / ~PyFileWriter

Method ~PyFileWriter

python/src/load.cpp:336–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334 tell_func_(file.attr("tell")) {}
335
336 ~PyFileWriter() {
337 nb::gil_scoped_acquire gil;
338
339 pyostream_.release().dec_ref();
340 write_func_.release().dec_ref();
341 seek_func_.release().dec_ref();
342 tell_func_.release().dec_ref();
343 }
344
345 bool is_open() const override {
346 bool out;

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected