Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Since which version is this method implemented?

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading