[Python-ideas] explicitation lines in python ?
Guido van Rossum
guido at python.org
Sat Jun 26 04:36:15 CEST 2010
On Fri, Jun 25, 2010 at 7:25 PM, Daniel DELAY <danieldelay at gmail.com> wrote:
> Le 25/06/2010 21:08, Daniel DELAY a écrit :
>>
>> with open('data.txt') as f :
>> if line in enumerate(mylist) : # main line
>> mylist : f.read().strip().lower() # explicitation(s) line(s)
>> print line # "classical" indented block
>>
> oups sorry I meant something like :
>
> with open('data.txt') as f :
> for i, line in enumerate(mylist) : # main line
> mylist : f.read().split('\n') # explicitation(s) line(s)
> print(i, line) # "classical" indented block
I don't know where you got the word "explicitation" -- I've never
heard of it. (Maybe it's French? You sound French. :-) However, this
feature existed in ABC under the name "refinement". See
http://homepages.cwi.nl/~steven/abc/qr.html#Refinements
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list