Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
operator_comparison.py
rfmonk
Jan 16th, 2014
182
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/usr/bin/env python
from
operator
import
*
a
=
1
b
=
5.0
print
'a ='
,
a
print
'b ='
,
b
for
func
in
(
lt
,
le
,
eq
,
ne
,
ge
,
gt
)
:
print
'%s(a, b):'
% func.__name__
,
func
(
a
,
b
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Reproducible rate discrepancy
CSS | 8 min ago | 0.99 KB
I got $12,000 from this bug
CSS | 18 min ago | 0.99 KB
This month smells like money
CSS | 28 min ago | 0.99 KB
Admin Password
CSS | 49 min ago | 0.99 KB
dev loader method
CSS | 49 min ago | 0.99 KB
Module v1.3 - rate calculation bug (repro + w...
CSS | 59 min ago | 0.99 KB
Bought a $40 MacBook Air
1 day ago | 0.55 KB
My Amazon Shoppe
1 day ago | 0.40 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!