What's more pythonic?
Aahz
aahz at pythoncraft.com
Fri Sep 15 00:36:21 EDT 2006
In article <pan.2006.09.13.04.08.11.294080 at dcs.nac.uci.edu>,
Dan Stromberg <strombrg at dcs.nac.uci.edu> wrote:
>
>Is sample1 or sample2 the more pythonic way of comparing?
Depending on what versions of Python you're targetting, some people
would argue neither (advocating the deprecation of __cmp__). I'm not
sure what the current status of __cmp__ is for Python 3.0.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"LL YR VWL R BLNG T S" -- www.nancybuttons.com
More information about the Python-list
mailing list