Hi,
When you call extractfile() on a TarFile, the result is a buffered version of a
_FileInFile pseudo-file.
When fileno() is called on this resulting file, fileno() it not exist
(understandably) and an AttributeError is raised.
I would like to suggest raising an io.UnsupportedOperation instead, so that
file would act more like other file-like objects.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/JP4EYNRQOZ6PSEVYUJKS5HBHDR6VSKWF/
Code of Conduct: http://python.org/psf/codeofconduct/