Re: property and virtuality

2005-04-01 Thread boisgera
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > My problem is about properties and the virtuality of the methods. I > would like to create a property whose get and set methods > are virtual. I had the same problems in Delphi before and the solution > was the

Re: PEP 246 revision

2005-03-13 Thread boisgera
> >Have you read the BDFL's "Python Optional Typechecking Redux" ? > > Yes. > > >(http://www.artima.com/weblogs/viewpost.jsp?thread=89161) > >It's usage of adapt assumes that "a class is a protocol", so I > >guess that it does not work with the new version of PEP 246. > > Why not? There's nothin

PEP 246 revision

2005-03-02 Thread boisgera
I had a look at the new reference implementation of PEP 246 (Object Adaptation) and I feel uneasy with one specific point of this new version. I don't fully understand why it checks if *the type of* the protocol has a method "__adapt__": ... # (c) then check if protocol.__adapt__ exists