[Python-bugs-list] [ python-Bugs-505150 ] mac module documentation inaccuracy.

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Feb 2002 08:49:19 -0800


Bugs item #505150, was opened at 2002-01-17 15:10
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=505150&group_id=5470

Category: Documentation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Miller (mrmiller)
>Assigned to: Jack Jansen (jackjansen)
Summary: mac module documentation inaccuracy.

Initial Comment:
The documentation at <http://www.python.org/doc/current/mac/module-mac.html> for the
MacPython 2.2 mac module says, in part:

> ==snip==
>> One additional function is available:
>>
>> xstat(path)
>>        This function returns the same information as stat(), 
>> but with three additional values appended: the size of the 
>> resource fork of the file and its
>>        4-character creator and type.
> ==snip==

The xstat() function is available only under PPC MacPython but not under Carbon MacPython.
The documentation should be updated, assuming the ommision was intentional. Ideally, it would 
suggest alternatives for the Carbon version.


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-02-14 08:49

Message:
Logged In: YES 
user_id=3066

Jack -- the FSSpec object as documented allows access to the
creator and type information, but not the size of the
resource fork.  How should the caller get that?

Thanks.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2002-02-05 14:22

Message:
Logged In: YES 
user_id=45365

Here is a patch for libmac.tex. I'll leave it to you to replace the \code{} sections with one of the gazillion macros I can never remember, hope you don't mind:-)

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=505150&group_id=5470