mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Added deprecatioon information for mac.xstat().
This closes SF bug #505150.
This commit is contained in:
parent
928051fb26
commit
960d7a68d0
1 changed files with 8 additions and 1 deletions
|
|
@ -31,12 +31,19 @@ as well as the exception \exception{error}. Note that the times
|
||||||
returned by \function{stat()} are floating-point values, like all time
|
returned by \function{stat()} are floating-point values, like all time
|
||||||
values in MacPython.
|
values in MacPython.
|
||||||
|
|
||||||
One additional function is available:
|
One additional function is available, but only under Classic MacPython,
|
||||||
|
not under Carbon MacPython:
|
||||||
|
|
||||||
\begin{funcdesc}{xstat}{path}
|
\begin{funcdesc}{xstat}{path}
|
||||||
This function returns the same information as \function{stat()}, but
|
This function returns the same information as \function{stat()}, but
|
||||||
with three additional values appended: the size of the resource fork
|
with three additional values appended: the size of the resource fork
|
||||||
of the file and its 4-character creator and type.
|
of the file and its 4-character creator and type.
|
||||||
|
Availability: Classic MacPython only.
|
||||||
|
\deprecated{2.3}{Use the \function{\refmodule{macfs}.FSSpec()}
|
||||||
|
function to get an FSSpec object for the file, then
|
||||||
|
use the \method{GetCreatorType()} method to get the
|
||||||
|
creator and type information. It will no longer be
|
||||||
|
possible to get the size of the resource fork.}
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue