shuetisha.dev
shuetisha.dev

Reputation: 109

How to initialise long integer variable with Python3

I have a simple question. My code has a line:

max_id=-1L

This line works with but it is not working on . How can I fix this problem?

Upvotes: 0

Views: 184

Answers (1)

willeM_ Van Onsem
willeM_ Van Onsem

Reputation: 476574

In , int and longs were merged into each other: ints have arbitrary size like longs in .

You can thus simply drop the L suffix:

max_id=-1

Upvotes: 2

Related Questions