$P1 = new ResizablePMCArray
$P2 = new String
$P2 = "42"
push $P1, $P2
$P3 = pop $P1
dies with "pop_pmc() not implemented in class 'ResizablePMCArray'\n
(Literal \ there, also)
> dies with "pop_pmc() not implemented in class 'ResizablePMCArray'\n
and shift, unshift, freeze, thaw and probably some more.
> (Literal \ there, also)
Yep - fixed. But these messages will become real_exceptions finally. Classes
definitely will need a lot of cleanup.
For the exception thingy: We'll probably need some error message
customization:
A typical Python message ...
>>> t=()
>>> t.append(1)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'tuple' object has no attribute 'append'
... WRT attributes will not read nicely for a Perler's eye.
leo