[Pythonmac-SIG] MacOS 10.4: getxattr() etc. for Python?
Wolfgang Keller
wolfgang.keller.nospam at gmx.de
Wed May 4 12:38:20 CEST 2005
Hello,
> On May 3, 2005, at 11:09 AM, Wolfgang Keller wrote:
>> has anyone already wrapped the getxattr(), setxattr(),
>> removexattr(), listxattr() functions on MacOS 10.4 for
>> Python?
> I took a stab at it today.
Hey, I had asked _whether_ someone has done it, I didn't ask you
_to_ _do_ _it_! ;-)
> Get the xattr package from pythonmac packages <http://pythonmac.org/
packages/>>
Shame on me, I don't even have MacOS X.4 yet. *drvvf*
> I don't expose getxattr, etc. as public API, because the options they
> take don't translate well to Python. Public API is simply an "xattr"
> type that you can wrap over a path or fd, and then it's used in a
> dict-like way.
That's _exactly_ the way it should be done. :-)
Dumb question: How about integrating it "officially" in the Macpython
distribution, so that all file objects on MacOS X.4 automatically have
an xattr dict?
Best regards,
Wolfgang Keller
--
P.S.: My From-address is correct
More information about the Pythonmac-SIG
mailing list