| 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; |