On 3/4/2015 17:37, Werner wrote:
On 3/4/2015 16:40, Paul McNett wrote:

...
I was going to say we should use six to help the transition between 2 and 3 but see that six doesn't solve this issue for us.
Was hoping for that too, but no look.

You need to rewrite that to take into account None being a possible value in [2] or [3] (order None as less than everything). That will be cross compatible.
Hhm, not my strength, here is what I came up with as a test, but it looks a bit long.

Werner


--- StripMime Report -- processed MIME parts ---
multipart/mixed
 text/plain (text body -- kept)
 text/x-python
---
Forgot about attachments not being allowed, as it is short I just do it inline.

f1 = None
f2 = 'f2'

if f1:
    if f2:
        r1 = max(f1, f2)
    else:
        r1 = f1
elif f2:
    r1 = f2
else:
    r1 = None

print(r1)



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to