To 'with' or not to 'with': how is the question ?

Manuel Gutierrez Algaba thor at localhost.localdomain
Fri Sep 1 16:15:30 EDT 2000


On Fri,  Jason Cunliffe <jasonic at nomadicsltd.com> wrote:
>ouchdamn.. my 'with' example should have read
>

>Set evilcommondocument = CreateObject("Word.Document")
>
>With evilcommondocument   <<<
>    .AutoHyphenation = True
>    .PrintPreview
>    evilcommondocument.Close
>End With


Uhm, I see here a good solution for the "print<<" problem:


With print 
    .<<< = file
    with it
        .spaces = on 
        "ad","k3","332"
    end with
    . = stdout
    .newline
end width 

Maybe, it's unpythonic, but it'd ease VisualShit scripters to
adapt themselves to the language. 

Sounds like a mini-COBOL-Screen-Section inline. I like it !!!
-- 
MGA



More information about the Python-list mailing list