• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Why the size of integer always start 24 byte

python have dynamic data types then why sys.getsizeof(0) o/p 24 sys.getsizeof(1) o/p 28 it means python have some range of int

pythoncpythonpython3
20th Aug 2018, 5:52 AM
Rohit Jarariya
Rohit Jarariya - avatar
3 Answers
+ 2
See here https://stackoverflow.com/questions/10365624/sys-getsizeofint-returns-an-unreasonably-large-value and this http://deeplearning.net/software/theano/tutorial/JUMP_LINK__&&__python__&&__JUMP_LINK-memory-management.html
20th Aug 2018, 6:22 AM
KrOW
KrOW - avatar
+ 2
?????
20th Aug 2018, 5:58 AM
KrOW
KrOW - avatar
0
I mean what is the size of integer data types in python
20th Aug 2018, 6:07 AM
Rohit Jarariya
Rohit Jarariya - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Web Development
1 Votes
Cybersecurity techies
3 Votes
Please complete this code.
0 Votes
Can someone please explain python for me
0 Votes
Create a program in C++ that can;
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
What's wrong with code?
0 Votes