Deprecate self

Jeremy Hylton jeremy at digicool.com
Thu Apr 19 00:25:12 EDT 2001


>>>>> "RD" == Rainer Deyke <root at rainerdeyke.com> writes:

  RD> def f():
  RD>   class C:
  RD>     pass
  RD>   C()

  RD> This is, incidentially, the idiom I had to use extensively to
  RD> deal with the lack of nested scoping in Python.  More generally,
  RD> you write a class for which subclasses don't make sense.

It's former lack of nested scopes, I believe ;-).

Jeremy





More information about the Python-list mailing list