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
a3a93ae7
Commit
a3a93ae7
authored
Jan 20, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1396471: Document that Windows' ftell() can return invalid
values for text files with UNIX-style line endings.
parent
b709c2ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+5
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/lib/libstdtypes.tex
View file @
a3a93ae7
...
...
@@ -625,7 +625,7 @@ characters is assumed.
\begin{methoddesc}
[string]
{
find
}{
sub
\optional
{
, start
\optional
{
, end
}}}
Return the lowest index in the string where substring
\var
{
sub
}
is
found, such that
\var
{
sub
}
is contained in the range [
\var
{
start
}
,
\var
{
end
}
)
. Optional arguments
\var
{
start
}
and
\var
{
end
}
are
\var
{
end
}
]
. Optional arguments
\var
{
start
}
and
\var
{
end
}
are
interpreted as in slice notation. Return
\code
{
-1
}
if
\var
{
sub
}
is
not found.
\end{methoddesc}
...
...
@@ -1598,6 +1598,10 @@ flush the read-ahead buffer.
\begin{methoddesc}
[file]
{
tell
}{}
Return the file's current position, like
\code
{
stdio
}
's
\cfunction
{
ftell()
}
.
\note
{
On Windows,
\method
{
tell()
}
can return illegal values (after an
\cfunction
{
fgets()
}
) when reading files with
\UNIX
{}
-style line-endings.
Use binary mode (
\code
{
'rb'
}
) to circumvent this problem.
}
\end{methoddesc}
\begin{methoddesc}
[file]
{
truncate
}{
\optional
{
size
}}
...
...
Misc/NEWS
View file @
a3a93ae7
...
...
@@ -727,6 +727,9 @@ Tests
Documentation
-------------
- Bug #1396471: Document that Windows'
ftell
()
can
return
invalid
values
for
text
files
with
UNIX
-
style
line
endings
.
-
Bug
#
1274828
:
Document
os
.
path
.
splitunc
().
-
Bug
#
1190204
:
Clarify
which
directories
are
searched
by
site
.
py
.
...
...
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