Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue2826] safe_substitute() and substitute()

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 11, 2008, 2:34 PM

Post #1 of 2 (148 views)
Permalink
[issue2826] safe_substitute() and substitute()

New submission from Chester <wxpythoner [at] gmail>:

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

----------
messages: 66675
nosy: chester, gvanrossum
severity: normal
status: open
title: safe_substitute() and substitute()
versions: 3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6, Python 3.0

__________________________________
Tracker <report [at] bugs>
<http://bugs.python.org/issue2826>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 11, 2008, 2:48 PM

Post #2 of 2 (128 views)
Permalink
[issue2826] safe_substitute() and substitute() [In reply to]

Georg Brandl <georg [at] python> added the comment:

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.

----------
nosy: +georg.brandl -gvanrossum
resolution: -> rejected
status: open -> closed
type: -> feature request
versions: -3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5

__________________________________
Tracker <report [at] bugs>
<http://bugs.python.org/issue2826>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.