Does Python data type are all object based on C Class? -
i understand precisly info type in python 2.7. here understand :
all types in python based on class. all class python utilize written in cso when write have:
x = 82
python create object of class int the class int written in c thus utilize c long type in pi = 3.14
python create object of class float the class float written in c thus utilize c double type inso there no primitive info type in python, type object ?
where can find c code represent python class int , float ?
in python object: numerics types, modules, functions, lists, dicts, tuples, classes... absolutely everything.
refer farther reading:
http://www.jeffknupp.com/blog/2013/02/14/drastically-improve-your-python-understanding-pythons-execution-model/
python class python-2.7 object types
No comments:
Post a Comment