pass a python file-like object as a Godot File Object
I'd like to try to manipulate io objects from python but in Godot. Are file like objects passed to godot as Godot File objects? Is there a workaround to do so?
files descriptors are provided by the kernel through a syscall, hence it should be possible to do a syscall from godot and providing a file descriptor that has been created from python. That said, this is only POSIX stuff so not sure if it is still true under win32 api (I guess it is but who knows ^^)
One more thing is most of the time in python you don't directly use the posix api (i.e. os.open('/foo.txt', os.O_RDWR)) but the higher level open('/foo.txt', 'w').
This api is of course Python only: you cannot pass a pure python object to Godot