FEEDBACK WANTED: Type/class unification

Niki Spahiev spahievi at vega.bg
Thu Aug 2 22:22:41 CEST 2001


8/2/2001, 17:07:32, Steve Holden wrote:

SH> "William Tanksley" <wtanksle at dolphin.openprojects.net> wrote ...
SH> [ ... ]
>>
>> Oops, I just realised that using 'class' as a variable name can't possibly
>> work: the parser can't currently disambiguate
>>
>> class = myClass
>>
>> from a class declaration, since both start with the token "class".
>>
SH> I've spent a couple of minutes trying to remember if I ever wrote

SH>     self = something

SH> Nope, don't remember that. Which isn't to say it might not be meaningful in
SH> some context I haven't imagined.


class some(other):

      def me1(*arg):
          other.me1(*arg)
          self = arg[0]
          self.foo = bar

-- 
Best regards,
 Niki Spahiev





More information about the Python-list mailing list