Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Strong Types and Their Impact on Testing. Parent comment
Sure you can.
>> from array import array >> a = array('i') >> a.append(3) >> a array('i', [3]) >> a.append('Hello') TypeError: an integer is required
There are no comments on this comment yet.
Sure you can.
The default "list" type just happens to be an heterogeneous list.