Python "object" as root object
mbp at sourcefrog.net
Thu May 26 03:15:37 BST 2005
On 25 May 2005, John A Meinel <john at arbash-meinel.com> wrote:
> John A Meinel wrote:
> >Since you seem to be okay adding it, I will submit a patch. :)
> As promised. Really this is just:
> grep -rn "^class.*[^)]:" *
> sed -e 's/(^class.*[^)]):/\1(object):/'
> (though I used vim for the last part, so my syntax may be a little off).
> It might just be easier for you to do it, it only takes a couple of seconds.
(It seems that method decorators like classmethod and staticmethod do
work ok with old-style classes though.)
More information about the bazaar