[pypy-dev] special methods
Michael Hudson
micahel at gmail.com
Thu Mar 29 19:26:37 CEST 2007
On 29/03/07, Armin Rigo <arigo at tunes.org> wrote:
> Hi Christian,
>
> On Thu, Mar 29, 2007 at 07:16:36PM +0200, Christian Tismer wrote:
> > Shortly put: anything that needs to seriously change the annotator
> > should not be considered. Some syntactic sugar does not hurt.
> >
> > You think even that makes no sense, right? At least it should not
> > hurt...
>
> I think it hurts because it's obscure to describe: "you can write str(x)
> and x.__str__() will be called, but if you write str([x]) then
> x.__str__() will not be called"...
Well, if you write str([x]) then x.__str__() will certainly not be called :-)
Cheers,
mwh
(str([x]) will call x.__repr__())
(sorry)
More information about the pypy-dev
mailing list