PEP 312 (and thus 308) implemented with a black magic trick
Max M
maxm at mxm.dk
Tue Mar 18 11:41:15 EST 2003
Michele Simionato wrote:
> With this example I wanted to point out (using the form of a joke and of
> a clever [2] hack) that we already have metaclasses, that potentially are
> *much more evil* than macros. Metaclasses allow to change the *semantics* of
> the language (WYSINWYG: what you see is not what you get).
I just wanted to add that you should probably call that WYGIWYG instead
of WYSINWYG.
You know WYGIWYG like in the old printer and Wordperfect days.
"What You Get Is What You Get": Wanna see how it looks printed out? Just
print it out and look at the paper.
Wanne see what this code does? Just run it and see what happens ;-)
--
hilsen/regards Max M Rasmussen, Denmark
http://www.futureport.dk/
Fremtiden, videnskab, skeptiscisme og transhumanisme
More information about the Python-list
mailing list