[Python-Dev] Python keywords (was Lockstep iteration (original) (raw)

Moshe Zadka Moshe Zadka moshez@math.huji.ac.il
Thu, 10 Aug 2000 04:28:00 +0300 (IDT)


On Thu, 10 Aug 2000, Mark Hammond wrote:

Sometimes it is worse than annoying!

In the COM and CORBA worlds, it can be a showstopper - if an external object happens to expose a method or property named after a Python keyword, then you simply can not use it!

How about this (simple, but relatively unannoying) convention:

To COM name: - remove last "_", if any

From COM name: - add "" is it's a keyword - add "" if last character is "_"

-- Moshe Zadka <moshez@math.huji.ac.il> There is no IGLU cabal. http://advogato.org/person/moshez