[Python-Dev] str.dedent

James Y Knight foom at fuhm.net
Mon Nov 14 03:06:23 CET 2005


On Nov 13, 2005, at 8:07 PM, Greg Ewing wrote:
> Ian Bicking wrote:
>>>> I think a better argument for this is that dedenting a literal 
>> string is
>> more of a syntactic operation than a functional one. You don't think
>> "oh, I bet I'll need to do some dedenting on line 200 of this 
>> module, I
>> better import textwrap".
>>>> And regardless of the need to import, there's a feeling
> that it's something that ought to be done at compile
> time, or even parse time.

ITYM you mean "If only python were lisp". (macros, or even reader 
macros)
James


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /