Python "object" as root object

Aaron Bentley aaron.bentley at utoronto.ca
Thu May 26 14:40:13 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John A Meinel wrote:
| John A Meinel wrote:
|
|> Since you seem to be okay adding it, I will submit a patch. :)
|>
|> John
|> =:->
|>
| As promised. Really this is just:
| grep -rn "^class.*[^)]:" *
| and
| sed -e 's/(^class.*[^)]):/\1(object):/'

I believe that objects which inherit from 'object' are supposed to do
object.__init__(self) in their constructor, although I think CPython
lets you get away without doing that.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCldG90F+nu1YWqI0RAlQFAJkBl7zr+xYVqElKjHS1/l09GoO/kQCfT3i5
tMorlAppe/Zf511cHfOvGrY=
=KxR2
-----END PGP SIGNATURE-----




More information about the bazaar mailing list