supporting asyncronous messages

Martin von Loewis loewis at informatik.hu-berlin.de
Sun Mar 11 21:12:35 CET 2001


Joshua Spoerri <josh at pobox.com> writes:

> can python overload the logical operators, if not, are there any
> plans to enable it to? 

No. Even if you could, you would not get your three-state logic.

> do you see any gotchas in this approach?

Many. If you want a special meaning, why not write methods? Instead of

   a and b

you could write

   a.my_special_and(b)

If you want that to operate on many arguments, how about

   my_special_and(a,b,c,d)

Provided you have the right syntax, how are you going to implement it?
It is easy to block, it is not that easy to unblock.

Regards,
Martin




More information about the Python-list mailing list