|inhahe||azanar: [object] * 3|
|ehird||File "/sw/lib/python2.5/socket.py", line 45, in <module>|
ImportError: No module named _socket <-- That's bad, right.
|masterdriverz||Leeds: why is that better than sets?|
|efphe||is there an object X such that isinstance(X, C) is True for each class C?|
|Leeds||masterdriverz: I'm not saying it's better... just wondering if set.issubset will return False if any items in foo aren't in bar, or if it checks all|
|inhahe||that wil just make 3 references to the object though, so if you modify one it chagnes them all , i think|
|AzMoo||inhahe, ah nice, thanks.|
inhahe, ah, not so nice.
|masterdriverz||>>> set(['foo', 'bar', 'baz']) <= set(['foo', 'bar', 'bat'])|
>>> set(['foo', 'bar', 'baz']) <= set(['foo', 'bar', 'bat', 'baz'])
|inhahe||there are copy and deepcopy methods for copyingc objects|
|Leeds||masterdriverz: right, that's the result... what I'm saying is if you have, say, two sets with thousands of items, will it check all of them before returning False|
|masterdriverz||Leeds: i guess it depends on the exact situation|
sets is almost certainly faster though...
|Karql||Do someone know how to use setuid()? I've set chmod -rwsr-x--- 1 root karql 80 lut 18 17:41 setuid.py but I get error: OSError: [Errno 1] Operation not permitted|
|Leeds||Karql: on Linux? scripts don't run with setuid on Linux|
|Karql||Yes on Linux|
So how i can set other uid for process?
|Leeds||you need to run it with su or sudo or something|
|bzed||you do NOT, i repeat NOT want to give the py interpreter a setuid bit|
|Leeds||no, don't do that|
|Karql||hmm it's possible to compile python script that it does not depend on interpreter?|
|bzed||I've seen a suid-wrapper for py progs some time ago. just don't know where it was. but you'd still ahve to be careful with that|
|Karql||(sory for my english:D|
bzed: You think about that: http://mail.python.org/pipermail/python-list/2003-September/223556.html
I'd just use sudo though
|Karql||I want to use my django apps on user privileges so I though that I use su_exec but I don't know why I doesn't work. (In ror it's work) So I've wanted to use setuid in application.fcgi|
/usr/sbin/suexec_lighttpd karql users indexer.fcgi
/\ it doesn't work