Reputation: 109
I have a simple question. My code has a line:
max_id=-1L
This line works with python-2 but it is not working on python-3. How can I fix this problem?
Upvotes: 0
Views: 184
Reputation: 476574
In python-3.x, int
and long
s were merged into each other: int
s have arbitrary size like long
s in python-2.x.
You can thus simply drop the L
suffix:
max_id=-1
Upvotes: 2