Lines Matching refs:fileobj
40 .. function:: open(name=None, mode='r', fileobj=None, bufsize=10240, **kwargs)
98 If *fileobj* is specified, it is used as an alternative to a :term:`file object`
111 be done on the file. If given, *fileobj* may be any object that has a
279 .. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, deref…
285 It can be omitted if *fileobj* is given.
292 If *fileobj* is given, it is used for reading or writing data. If it can be
293 determined, *mode* is overridden by *fileobj*'s mode. *fileobj* will be used
298 *fileobj* is not closed, when :class:`TarFile` is closed.
481 .. method:: TarFile.addfile(tarinfo, fileobj=None)
483 Add the :class:`TarInfo` object *tarinfo* to the archive. If *fileobj* is given,
489 .. method:: TarFile.gettarinfo(name=None, arcname=None, fileobj=None)
493 specified as a :term:`file object` *fileobj* with a file descriptor.
496 archive, otherwise, the name is taken from *fileobj*’s