[Python-Dev] A question for the Python Secret Police (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 10 Aug 2000 13:29:38 +1200 (NZST)


Jack Jansen <jack@oratrix.nl>:

Is the following morally allowed: class Foo(Foo):

Well, the standard admonitions against 'import *' apply. Whether using 'import *' or not, though, in the interests of clarity I think I would write it as

class Foo(package1.mod.Foo):

On the other hand, the funkiness factor of it does have a certain appeal!

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+