I have opened file in Python with code:
fileObject = open('file')
While debbuging in IDE I see that fileObject has many attributes such as:
_CHUNK_SIZE, _finalizing, closed, encoding, ..., name, newlines
I would like to access the attribute name
, because sometimes in huge programs, file name and path are generated, and I would like to get content of that attribute.