Dynamic comparison operators
- From: mlangenhoven@xxxxxxxxx
- Date: Thu, 24 May 2012 07:14:18 -0700 (PDT)
I would like to pass something like this into a function
test(val1,val2,'>=')
and it should come back with True or False.
Is there a way to dynamically compare 2 values like this or will I have to code each operator individually?
.
- Follow-Ups:
- Re: Dynamic comparison operators
- From: Paul Rubin
- Re: Dynamic comparison operators
- From: Colin J. Williams
- Re: Dynamic comparison operators
- From: Alain Ketterlin
- Re: Dynamic comparison operators
- Prev by Date: Re: Python Book for a C Programmer?
- Next by Date: Re: Dynamic comparison operators
- Previous by thread: Email Id Verification
- Next by thread: Re: Dynamic comparison operators
- Index(es):