A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-September/048622.html below:

[Python-Dev] Re: Alternative Implementation for PEP 292:Simple String Substitutions

[Python-Dev] Re: Alternative Implementation for PEP 292:Simple String Substitutions [Python-Dev] Re: Alternative Implementation for PEP 292:Simple String SubstitutionsBarry 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4