Re: Some suggestion for python classes

Jaap Vermeulen (jaap@sequent.com)
Tue, 11 May 93 12:01:10 PDT

| write super(self).doit(how). (Adding a new built-in function is also

That would be fine. Thanks.

| This will be fixed for classes when I fix the __name__ attribute. For
| instances, I don't see how it can be fixed, since instances don't have
| names when they are created. (If you write "x = C().init()", the

I was thinking about prepending the name with 'class' or 'instance',
but I can do without the instance name just fine (since I can override
it).

As an example:

>>> class foo: pass

>>> foo
<class foo at 63a08>
>>> foo()
<instance foo at 83948>
>>>

Thanks,

-Jaap-

--
Jaap Vermeulen					+--------------------------+
						| Sequent Computer Systems |
	Internet : jaap@sequent.com		| Beaverton, Oregon	   |
	Uucp	 : ...uunet!sequent!jaap	+--------------------------+