DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python how much memory does a variable need
from sys import getsizeof a = 42 getsizeof(a) # size of object in bytes
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#memory
#variable
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit