print and long ints...

lance@markv.com
Thu, 10 Mar 94 9:26:49 PST

What am I doing wrong?

>>> a
5L
>>> print '%i' % a
Traceback (innermost last):
File "<stdin>", line 1
TypeError: int argument required
>>> print '%d' % a
Traceback (innermost last):
File "<stdin>", line 1
TypeError: int argument required
>>>

Why can't I use the '%' modifier on a print statement AND use a LONG
as the value passed in?

--

Lance Ellinghouse lance@markv.com UNIX Systems Support support@markv.com Mark V Systems Limited Voice: +1 818 995 7671 FAX: +1 818 995 4267