A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-September/091829.html below:

[Python-Dev] re.Scanner and string.Template

[Python-Dev] re.Scanner and string.Template [Python-Dev] re.Scanner and string.TemplateBenjamin Peterson benjamin at python.org
Thu Sep 17 17:34:07 CEST 2009
2009/9/17 nathan binkert <nate at binkert.org>:
> I've been working on code that works a lot like string.Template and in
> the process, I stumbled on re.Scanner.  I have two questions.
> 1) Is re.Scanner ever going to be official?  Can I count on it being
> in future versions of python?  It's been there for a really long time,
> so I assume so, but something that's undocumented seems that it could
> be dropped easily.

See http://bugs.python.org/issue5337.

> 2) Is there a reason that string.Template doesn't use re.Scanner?  My
> understanding of re.Scanner is that it is exactly what you want for
> something like string.Template.

Perhaps because it wasn't documented. :)



-- 
Regards,
Benjamin
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