[Python-Dev] Re: PEP 292, Simpler String Substitutions

Christian Tismer tismer@tismer.com
Fri, 21 Jun 2002 17:53:36 +0200


Tim Peters wrote:
> [Guido, quotes Christian]
> 
>>>The following statements are ordered by increasing hate.
>>>1 - I do hate the idea of introducing a "$" sign at all.
>>>2 - giving "$" special meaning in strings via a module
>>>3 - doing it as a builtin function
>>>4 - allowing it to address local/global variables
>>
> 
> [and adds]
> 
>>Doesn't 4 contradict your +1 on allvars()?
> 
> 
> Since Christian's reply only increased the apparent contradiction, allow me
> to channel:  they are ordered by increasing hate, but starting at the
> bottom.  s/increasing/decreasing/ in his original, or s/hate/love/, and you
> can continue to read it in the top-down Dutch way <wink>.

Huh?
Reading from top to bottom, as I used to, I see increasing
numbers, which are in the same order as the "increasing hate"
(not a linear function, but the same ordering).

4 - allowing it to address local/global variables
is what I hate the most.
This is in no contradiction to allvars(), which is simply
a function that puts some variables into a dict, therefore
deliberating the interpolation from variable access.

Where is the problem, please?

-- 
Christian Tismer             :^)   <mailto:tismer@tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34  home +49 30 802 86 56  pager +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/