Skip to content

safe_substitute() and substitute() #47075

Closed

Description

@chester
mannequin
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']

Activity

  1. chester commented on May 11, 2008

    chestermannequin
    MannequinAuthor

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

  2. birkenfeld commented on May 11, 2008

    @birkenfeld
    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.

  3. added
    type-feature
    on May 11, 2008
  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions