Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ithkuil
on Feb 20, 2014
|
parent
|
context
|
favorite
| on:
Redesigned Python.org
That's because there aren't unboxed primitive values in the language. Even a local integer variable contains a pointer to the integer.
This is orthogonal to whether a container is a list or an array though.
scott_s
on Feb 20, 2014
[–]
Yes, lists in Python are going to be implemented in C as arrays of PyObject pointers. Which is why numpy has their own arrays - they want arrays of int32, float64, etc.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This is orthogonal to whether a container is a list or an array though.