On 31 oct, 22:21, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > def convert(n): > assert type(n) in (int,long)
I'd replace this line with n = int(n), more in the spirit of duck typing. -- Roberto Bonvallet -- http://mail.python.org/mailman/listinfo/python-list