[Python-Dev] Wrappers and keywords

David LeBlanc whisper@oz.net
Thu, 17 Apr 2003 12:51:08 -0700


(You'll excuse me I hope if this is deemed inappropriate. I'm posting this
here rather than in the general list since it's about the language and not
it's application.)

I am curious to know why the, what seems to me kludgy, "def x(): pass  x =
(static|class)method(x)" syntax was chosen over a simple "staticdef x
():..." or "classdef x ():..." def specialization syntax? Either method adds
keywords to the language, but a direct declaration seems clearer and less
error prone to me compared to the "call->assignment magically makes a
wrapper" method. Is it hard to do the needed special wrapping directly?

Regards,

David LeBlanc
Seattle, WA USA