From: brian z. <bz...@us...> - 2005-02-28 06:09:34
|
Update of /cvsroot/jython/sandbox/jt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14733 Modified Files: list.expose Added Files: float.expose long.expose Log Message: added float, long; updated list --- NEW FILE: float.expose --- # setup type_name: float type_class: PyFloat # exposed methods expose_unary: __abs__ __float__ __int__ \ __long__ __neg__ __pos__ expose_binary: __add__ __div__ __divmod__ \ __floordiv__ __mod__ __mul__ \ __radd__ __rdiv__ __rfloordiv__ __rmod__ \ __rmul__ __rsub__ __rtruediv__ \ __sub__ __truediv__ expose_vanilla_cmp expose_vanilla_pow expose_new_immutable: expose_meth: :b __nonzero__ expose_meth: __repr__ return new PyString(self.float_toString()); expose_meth: __str__ return new PyString(self.float_toString()); expose_meth: __hash__ return Py.newFloat(self.float_hashCode()); # TODO # (__coerce__, __doc__) # # (( __rdivmod__, __rpow__ )) --- NEW FILE: long.expose --- # setup type_name: long type_class: PyLong # exposed methods expose_unary: __abs__ __float__ __hex__ __int__ __invert__ \ __long__ __neg__ __oct__ __pos__ expose_binary: __add__ __and__ __div__ __divmod__ \ __floordiv__ __lshift__ __mod__ __mul__ __or__ \ __radd__ __rdiv__ __rfloordiv__ __rmod__ \ __rmul__ __rshift__ __rsub__ __rtruediv__ \ __sub__ __truediv__ __xor__ expose_vanilla_cmp expose_vanilla_pow expose_new_immutable: expose_meth: __repr__ return new PyString(self.long_toString()); expose_meth: __str__ return new PyString(self.long_toString()); expose_meth: __hash__ return Py.newInteger(self.long_hashCode()); # TODO # (__coerce__, __doc__) # # (( __rand__, __rdivmod__, __rlshift__, __ror__, __rrshift__, __rxor__, __rpow__ )) Index: list.expose =================================================================== RCS file: /cvsroot/jython/sandbox/jt/list.expose,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** list.expose 22 Feb 2005 04:09:42 -0000 1.1 --- list.expose 28 Feb 2005 06:09:24 -0000 1.2 *************** *** 12,18 **** expose_meth: :- reverse expose_meth: :- sort o? ! #expose_binary: __ne__ __eq__ __add__ ! #expose_vanilla_cmp: expose_meth: :i __len__ expose_meth: __hash__ `ideleg`(hashCode); --- 12,23 ---- expose_meth: :- reverse expose_meth: :- sort o? ! expose_binary: __ne__ __eq__ __contains__ expose_meth: :i __len__ + expose_meth: __add__ o + expose_meth: __iadd__ o + expose_meth: __imul__ o + expose_meth: __reduce__ + expose_meth: __mul__ o + expose_meth: __rmul__ o expose_meth: __hash__ `ideleg`(hashCode); *************** *** 23,26 **** `void; expose_new_mutable: ! expose_index_getitem: ! expose_meth: :b __nonzero__ --- 28,31 ---- `void; expose_new_mutable: ! #expose_index_getitem: ! #expose_meth: :b __nonzero__ |