[Pythonmac-SIG] [ann] appscript 0.4.0 released
Chris Ryland
cpr at emsoftware.com
Fri Feb 13 10:55:56 EST 2004
On Friday, February 13, 2004, at 09:51 AM, has wrote:
> Only thing still bugging me is that Python doesn't have magic methods
> for overridding 'and', 'or' and 'not' operators directly, as writing
> test expressions is clumsy without it. (Do you think we should submit
> a PEP for this?)
Isn't the classical solution to define your datatypes such that
and/or/not/etc. are re-mapped as appropriate? That's what some of the
relational bindings packages (and some symbolic logic packages) do.
Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com
More information about the Pythonmac-SIG
mailing list