When file-like object is passed to RWopsFromPython, the file handle should be closed with SDL_RWops.
However, the SubFile optimization bypasses this and creates its own SDL_RWops based on the SubFile class information, so the SubFile class should be closed as soon as it is passed into RWopsFromPython.
When file-like object is passed to
RWopsFromPython
, the file handle should be closed withSDL_RWops
.However, the
SubFile
optimization bypasses this and creates its ownSDL_RWops
based on theSubFile
class information, so theSubFile
class should be closed as soon as it is passed intoRWopsFromPython
.