From: Samuele P. <ped...@bl...> - 2004-02-16 11:52:48
|
At 16:44 05.01.2004 +0100, Samuele Pedroni wrote: >if > >- a sized chunk of new-style classes features were implemented still not a sized chunk but I have bootstrapped the effort: Jython 2.2aNewstyle on java1.4.0_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> object <type 'object'> >>> type <type 'type'> >>> type(type) <type 'type'> >>> object.__class__ <type 'type'> >>> isinstance(type,object) 1 >>> isinstance(object,type) 1 >>> issubclass(type,object) 1 >>> issubclass(object,type) 0 >>> type([]) <type 'list'> >>> object.__str__(type) "<type 'type'>" >>> object.__str__() Traceback (innermost last): File "<console>", line 1, in ? TypeError: descriptor '__str__' of 'object' object needs an argument >>> object.x Traceback (innermost last): File "<console>", line 1, in ? AttributeError: type object 'object' has no attribute 'x' >>> type.__new__() Traceback (innermost last): File "<console>", line 1, in ? TypeError: type.__new__(): not enough arguments >>> type.__new__([]) Traceback (innermost last): File "<console>", line 1, in ? TypeError: type.__new__(X): X is not a type object (list) >>> type.__new__(object) Traceback (innermost last): File "<console>", line 1, in ? TypeError: type.__new__(object): object is not a subtype of type >>> type.__new__(type) Traceback (innermost last): File "<console>", line 1, in ? TypeError: type() takes exactly 1 (or...) arguments >>> type.__new__(type,[]) <type 'list'> >>> object.__new__(type,[]) Traceback (innermost last): File "<console>", line 1, in ? TypeError: object.__new__(type) is not safe, use type.__new__() >- we would (be able to) make releases more often >- patches would have a sane turnaround > >would (more) people consider contributing code? > >how much: too/otherwise busy VS. what is there is good enough for what I >need VS. the code base is too unwelcoming VS. the project admin does not >tutor/inspire/give the good example, play a role OTOH? > >regards. |