Why python???

Sean Ross sross at connectmail.carleton.ca
Sat Sep 6 19:54:12 EDT 2003


"Alex Martelli" <aleax at aleax.it> wrote in message
news:kKt6b.24041$hE5.882369 at news1.tin.it...
[snip]
> >>
> >>    attribute salary is Currency
> >>        "Salario mensile"
> >>        restriction quantity(1)
> >>
> >>        on create code Python
> >>            if value[0] < minimumSalary:
> >>                value = [ minimumSalary ]
> >>            return value
> >>        %%
> >
> > My reflexive reaction was 'ugh'.  My considered reaction is 'bravo'.
>
> Glad you reconsidered;-).  I'm not enthusiastic about that %%, but we
> found that relying on just indentation for that specific role (indicating
> the end of embedded Python code and the return to the declarative
> language) was quite error-prone (e.g. due to Python continuation lines),
> so we decided we needed a marker of SOME kind or other right there,
> and for now, until further development, it's that "%%" thingy.

Hi.
Could "end code" replace "%%" as 'the end of embedded Python code' delimiter
in that language?
Just curious,
Sean






More information about the Python-list mailing list