Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f5bf3b0c
Commit
f5bf3b0c
authored
Feb 12, 2007
by
Lars Gustäbel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1656581: Point out that external file objects are supposed to be
at position 0. (backport from rev. 53752)
parent
4a67a674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Doc/lib/libtarfile.tex
Doc/lib/libtarfile.tex
+3
-2
No files found.
Doc/lib/libtarfile.tex
View file @
f5bf3b0c
...
...
@@ -48,8 +48,8 @@ Some facts and figures:
avoid this. If a compression method is not supported,
\exception
{
CompressionError
}
is raised.
If
\var
{
fileobj
}
is specified, it is used as an alternative to
a file object opened for
\var
{
name
}
.
If
\var
{
fileobj
}
is specified, it is used as an alternative to
a file
object opened for
\var
{
name
}
. It is supposed to be at position 0
.
For special purposes, there is a second format for
\var
{
mode
}
:
\code
{
'filemode|[compression]'
}
.
\function
{
open()
}
will return a
...
...
@@ -155,6 +155,7 @@ tar archive several times. Each archive member is represented by a
If
\var
{
fileobj
}
is given, it is used for reading or writing data.
If it can be determined,
\var
{
mode
}
is overridden by
\var
{
fileobj
}
's mode.
\var
{
fileobj
}
will be used from position 0.
\begin{notice}
\var
{
fileobj
}
is not closed, when
\class
{
TarFile
}
is closed.
\end{notice}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment