This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: safe_substitute() and substitute()
Type: enhancement Stage:
Components: Versions: Python 3.0, Python 2.6
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: chester, georg.brandl
Priority: normal Keywords:

Created on 2008-05-11 21:34 by chester, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg66675 - (view) Author: Chester (chester) Date: 2008-05-11 21:34
Please consider of removing safe_substitute() method and make the
current substitute() method act like safe_substitute() method but being
named substitute().
msg66677 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-11 21:48
First of all, you don't say which type these methods belong to. I assume
you mean string.Template.

What good would that be? Those extra 5 characters to type shouldn't be
the problem.

Many template strings have only defined keys, and it is a programming
error if a key is not given or misspelled in the template. In this case,
substitute() is the right function.

Rejecting this RFE.
History
Date User Action Args
2022-04-11 14:56:34adminsetgithub: 47075
2008-05-11 21:48:16georg.brandlsetstatus: open -> closed
versions: - Python 2.5, Python 2.4, Python 2.3, Python 2.2.3, Python 2.2.2, Python 2.2.1, Python 2.2, Python 2.1.2, Python 2.1.1, 3rd party
nosy: + georg.brandl, - gvanrossum
messages: + msg66677
resolution: rejected
type: enhancement
2008-05-11 21:34:07chestercreate