Since which version is the FileObject.truncate() method implemented in Python? I need the exact version number so that I can specify on my GitHub account from when you can use the program.
>Solution :
If you’re asking about the .truncate() method of Python file objects, it’s been there "forever". The oldest docs python.org keeps around are for version 1.4, and you can see .truncate() documented in 1.4 here.
Otherwise I don’t know what you could mean by FileObject (there’s nothing of that name in the CPython distribution).