From: <fwi...@us...> - 2006-06-09 18:27:32
|
Revision: 2812 Author: fwierzbicki Date: 2006-06-09 11:27:27 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/jython/?rev=2812&view=rev Log Message: ----------- Added unicode type to gexpose. Added some methods for test_descr work. Modified Paths: -------------- trunk/sandbox/jt/gexpose-defs trunk/sandbox/jt/gexpose.py trunk/sandbox/jt/str.expose trunk/sandbox/jt/tuple.expose trunk/sandbox/jt/unicode.expose Added Paths: ----------- trunk/sandbox/jt/super.derived Modified: trunk/sandbox/jt/gexpose-defs =================================================================== --- trunk/sandbox/jt/gexpose-defs 2006-06-09 18:22:26 UTC (rev 2811) +++ trunk/sandbox/jt/gexpose-defs 2006-06-09 18:27:27 UTC (rev 2812) @@ -184,6 +184,8 @@ return Py.newBoolean(`deleg`(`name,`deleg_prefix)); define: sdeleg: name deleg_prefix return new PyString(`deleg`(`name,`deleg_prefix)); +define: udeleg: name deleg_prefix + return new PyUnicode(`deleg`(`name,`deleg_prefix)); define: void: return Py.None; define: expose_new Modified: trunk/sandbox/jt/gexpose.py =================================================================== --- trunk/sandbox/jt/gexpose.py 2006-06-09 18:22:26 UTC (rev 2811) +++ trunk/sandbox/jt/gexpose.py 2006-06-09 18:27:27 UTC (rev 2812) @@ -258,7 +258,7 @@ for dv in dfls[rng-1-dflc:]: new_body_bindings["arg%d" % j] = dv j += 1 - for deleg_templ_name in ('void','deleg','vdeleg','rdeleg','ideleg','ldeleg','bdeleg','sdeleg'): + for deleg_templ_name in ('void','deleg','vdeleg','rdeleg','ideleg','ldeleg','bdeleg','sdeleg', 'udeleg'): deleg_templ = self.get_aux(deleg_templ_name) new_body_bindings[deleg_templ_name] = deleg_templ.tbind(new_body_bindings) body_jt = proto_body_jt.tbind(new_body_bindings) @@ -293,6 +293,7 @@ ":l" : "`ldeleg;", ":b" : "`bdeleg;", ":s" : "`sdeleg;", + ":u" : "`udeleg;", ":-" : "`vdeleg; `void; ", ":o" : "`rdeleg;" }.get(retk, None) Modified: trunk/sandbox/jt/str.expose =================================================================== --- trunk/sandbox/jt/str.expose 2006-06-09 18:22:26 UTC (rev 2811) +++ trunk/sandbox/jt/str.expose 2006-06-09 18:27:27 UTC (rev 2812) @@ -6,9 +6,14 @@ expose_meth: :b __contains__ o expose_meth: :i __len__ expose_meth: __add__ o +expose_meth: __getitem__ o +expose_meth: __getslice__ ooo? +expose_meth: __iter__ expose_meth: __mul__ o expose_meth: __reduce__ expose_meth: __rmul__ o +expose_meth: __str__ +expose_meth: __unicode__ expose_meth: __hash__ `ideleg`(hashCode); expose_meth: __repr__ Added: trunk/sandbox/jt/super.derived =================================================================== --- trunk/sandbox/jt/super.derived (rev 0) +++ trunk/sandbox/jt/super.derived 2006-06-09 18:27:27 UTC (rev 2812) @@ -0,0 +1,4 @@ +base_class: PySuper +want_dict: true +ctr: +incl: object Modified: trunk/sandbox/jt/tuple.expose =================================================================== --- trunk/sandbox/jt/tuple.expose 2006-06-09 18:22:26 UTC (rev 2811) +++ trunk/sandbox/jt/tuple.expose 2006-06-09 18:27:27 UTC (rev 2812) @@ -9,6 +9,8 @@ expose_meth: __reduce__ expose_meth: __mul__ o expose_meth: __rmul__ o +expose_meth: __getitem__ o +expose_meth: __getslice__ ooo? expose_meth: __hash__ `ideleg`(hashCode); expose_meth: __repr__ Modified: trunk/sandbox/jt/unicode.expose =================================================================== --- trunk/sandbox/jt/unicode.expose 2006-06-09 18:22:26 UTC (rev 2811) +++ trunk/sandbox/jt/unicode.expose 2006-06-09 18:27:27 UTC (rev 2812) @@ -6,19 +6,23 @@ expose_meth: :b __contains__ o expose_meth: :i __len__ expose_meth: __add__ o +expose_meth: __getslice__ ooo? +expose_meth: __iter__ expose_meth: __mul__ o expose_meth: __rmul__ o +expose_meth: __str__ +expose_meth: __unicode__ expose_meth: __hash__ `ideleg`(hashCode); expose_meth: __repr__ `sdeleg`(toString); -expose_meth: :s capitalize -expose_meth: :s center i +expose_meth: :u capitalize +expose_meth: :u center i expose_meth: :i count s i? i? -expose_meth: :s decode s? s? -expose_meth: :s encode s? s? +expose_meth: :u decode s? s? +expose_meth: :u encode s? s? expose_meth: :b endswith s i? i? -expose_meth: :s expandtabs i? +expose_meth: :u expandtabs i? expose_meth: :i find s i? i? expose_meth: :i index s i? i? expose_meth: :b isalnum @@ -31,24 +35,24 @@ expose_meth: :b istitle expose_meth: :b isunicode expose_meth: :b isupper -expose_meth: :s join o -expose_meth: :s ljust i -expose_meth: :s lower -expose_meth: :s lstrip S? -expose_meth: :s replace s s i? +expose_meth: :u join o +expose_meth: :u ljust i +expose_meth: :u lower +expose_meth: :u lstrip S? +expose_meth: :u replace s s i? expose_meth: :i rfind s i? i? expose_meth: :i rindex s i? i? -expose_meth: :s rjust i -expose_meth: :s rstrip S? +expose_meth: :u rjust i +expose_meth: :u rstrip S? expose_meth: :o split S? i? -expose_meth: :o splitlines o? +expose_meth: :o splitlines b? expose_meth: :b startswith s i? i? -expose_meth: :s strip S? -expose_meth: :s swapcase -expose_meth: :s title -expose_meth: :s translate s s? -expose_meth: :s upper -expose_meth: :s zfill i +expose_meth: :u strip S? +expose_meth: :u swapcase +expose_meth: :u title +expose_meth: :u translate s s? +expose_meth: :u upper +expose_meth: :u zfill i expose_new_immutable: #TODO #expose_index_getitem: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |