Issue 2826: safe_substitute() and substitute()
Issue2826
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) * ![]() |
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:34 | admin | set | github: 47075 |
| 2008-05-11 21:48:16 | georg.brandl | set | status: 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:07 | chester | create | |
