Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safe_substitute() and substitute() #47075

Closed
chester mannequin opened this issue May 11, 2008 · 2 comments
Closed

safe_substitute() and substitute() #47075

chester mannequin opened this issue May 11, 2008 · 2 comments
Labels
type-feature A feature request or enhancement

Comments

@chester
Copy link
Mannequin

chester mannequin commented May 11, 2008

BPO 2826
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-05-11.21:48:16.829>
created_at = <Date 2008-05-11.21:34:07.845>
labels = ['type-feature']
title = 'safe_substitute() and substitute()'
updated_at = <Date 2008-05-11.21:48:16.815>
user = 'https://bugs.python.org/chester'

bugs.python.org fields:

activity = <Date 2008-05-11.21:48:16.815>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2008-05-11.21:48:16.829>
closer = 'georg.brandl'
components = []
creation = <Date 2008-05-11.21:34:07.845>
creator = 'chester'
dependencies = []
files = []
hgrepos = []
issue_num = 2826
keywords = []
message_count = 2.0
messages = ['66675', '66677']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'chester']
pr_nums = []
priority = 'normal'
resolution = 'rejected'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue2826'
versions = ['Python 2.6', 'Python 3.0']

@chester
Copy link
Mannequin Author

chester mannequin commented May 11, 2008

Please consider of removing safe_substitute() method and make the
current substitute() method act like safe_substitute() method but being
named substitute().

@birkenfeld
Copy link
Member

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.

@birkenfeld birkenfeld added the type-feature A feature request or enhancement label May 11, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant