Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How convert int to BigInteger (Python)

How do I convert int to BigInteger in Python?

I can’t find anything like this on the net for python. I need to convert int to BigInteger in order to compare via Sqlalchemy ORM with the value in the database (telegram_id are registered via models with the bigint type)

error:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

asyncpg.exceptions.UndefinedFunctionError: operator does not exist: bigint !~~* unknown
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.

>Solution :

The "BigInteger" in python is called "long". You might want to checkout this post.

(I would have answered as a comment since this is not really a solution but I can’t comment yet because of my low reputation)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading