Can someone please direct me to the code for the class <int> in python. I know that it must have written in C, but I could not understand, where to ask this query.
Though I tried to figure it out myself, but could not even understand, which folder to attack in the source code. (the source has really got some good great number of files..)

Recommended Answers

All 2 Replies

Going from the root as as folder python,

python\Objects\intobject.c

Cheers and Happy coding

To those, who got confused like me initially, python is now implementing int as long and thus you can find it as..
python3.x\Objects\longobject

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.