More or less code in python?
Dave Angel
davea at davea.name
Mon Mar 16 03:44:51 EDT 2015
On 03/16/2015 03:36 AM, Chris Angelico wrote:
> On Mon, Mar 16, 2015 at 6:32 PM, Dave Angel <davea at davea.name> wrote:
>> Assuming Python 3.x of course. if you're in Python 2, you'd use "long"
>> rather than int.
>
> Not sure you need to bother. Even in Py2, you can use the int
> constructor to get a long.
>
Actually I was talking about the terminology. In Python 2.x, you'd be
talking about longs to make it clear that they were (essentially)
unlimited in size. For the code itself, I doubt if you'd want to make
any distinction at all, as you say.
--
DaveA
More information about the Python-list
mailing list