distinction between float & int

I

Ishwor

hi all,
can anyone tell me why this distinction? i mean why it returns False
on floats??
thanx .
 
S

Steve Holden

Ishwor said:
hi all,
can anyone tell me why this distinction? i mean why it returns False
on floats??


False


thanx .

There is no guarantee that this will hold in all implementations of Python.

The majority implementation, usually called CPython because its
implementation language is C, keeps copies of the first 100 (?) integers
so it doesn't have to create separate integer objects each time they are
required.

No caching at all is applied to floats, as far as I can tell.
False

regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top