[Python-Dev] Re: Alternative Implementation for PEP 292:Simple
String Substitutions
Barry Warsaw
barry at python.org
Sun Sep 5 17:30:56 CEST 2004
On Sun, 2004-09-05 at 00:32, Tim Peters wrote:
> You'll rarely hear me say this <wink>, but fiddling classes at class
> creation time is exactly what metaclasses are for. For example,
> suppose you said a Template subclass could define a class variable
> `idpat`, containing a regexp matching that subclass's idea of "an
> identifier".
Very cool idea, thanks Tim! I like that much more than forcing users to
specify the entire pattern.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040905/b6b0bbb3/attachment.pgp
More information about the Python-Dev
mailing list