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


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to