Why python???

Alex Martelli aleax at aleax.it
Sun Sep 7 04:33:45 EDT 2003


Sean Ross wrote:
   ...
>> >>    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
   ...
> Could "end code" replace "%%" as 'the end of embedded Python code'
> delimiter in that language?

Sure, with some effort.  A single token would be a drop-in replacement,
two tokens would be a bit of work.


Alex






More information about the Python-list mailing list