|
![](/i/fill.gif) |
On Fri, 19 Aug 2011 13:49:01 -0700, Darren New wrote:
> On 8/19/2011 13:04, Shay wrote:
>> bool_a = len(A[0]) == 2
>> bool_b = min([A[2] == x[2] for x in A[1:]) bool_c = ccw_angle(*A)< pi
>>
>> bool_b will not work if bool_a is true
>
> bool_b = bool_a ? min(...) : false
Beautiful, but that doesn't seem to be valid Python. However, a bit of
guess-work reveals that:
bool_b = False if bool_a else min(...)
does work. So, I learned something there.
Thanks.
-Shay
Post a reply to this message
|
![](/i/fill.gif) |