[Python-Dev] Security capabilities in Python
python-dev at zesty.ca
Wed Apr 13 11:03:43 CEST 2005
On Sun, 10 Apr 2005, Eyal Lotem wrote:
> It may be really hard to get it right, unless we are overlooking some simple
To "get it right", you at least need to know exactly what your
operators mean. I messed up because i failed to realize that
'==' can be redefined, and 'in' depends on '==' to work properly.
> What about implementing the facet in C? This could avoid the class of
> problems you have just mentioned.
I don't think that's a good solution. A facet is just one basic
programming pattern that you can build in a capability system; it
would be silly to have to go back to C every time you wanted to
build some other construct. A better way would be to start with
capabilities that behave simply and correctly; then you can build
whatever you want.
More information about the Python-Dev