if in expression
Christian Schmidt
christian2.schmidt at gmx.de
Mon Aug 18 10:35:48 EDT 2008
On 18 Aug., 10:22, John Machin <sjmac... at lexicon.net> wrote:
> On Aug 18, 5:46 pm, christian2.schm... at gmx.de wrote:
> > I'm using IronPython to evaluate expressions, so I can't use the
> > return statement but have to say it in an one-liner.
>
> By "evaluate expressions", do you mean using the eval built-in
> function?Ifso, find the recent thread addressing this topic; it was
> asserted that 98% of eval() use-cases were better implemented another
> way. What's _your_ use-case?
User provided python expression of .net's CLR-objects (with
overloaded
operators). The result is processed again in .net.
Reading through the mentioned mail, I think I'm in the 2%. :-)
Thanks,
Christian
More information about the Python-list
mailing list