diff @pyobject/dummy.m @ 365:087e7bc3697f

Do not automatically convert Python strings to Octave strings (fixes issue #65) * python_to_octave.cc (pytave::pyobj_to_octvalue): Drop conversion of bytes and unicode objects. * __py_struct_from_dict__.cc (F__py_string_value__): New function. * @pyobject/char.m: Define outside class definition, use __py_string_value__. * @pyobject/pyobject.m: Delete previous pyobject.char definition. * @pyobject/methods.m: Apply char conversion to __name__ attribute. * @py/py.m, @pyobject/cell.m, @pyobject/dummy.m, @pyobject/subsasgn.m, @pyobject/subsref.m, pyargs.m, pycall.cc, pyeval.cc: Adapt examples and tests to changes.
author Mike Miller <mtmiller@octave.org>
date Thu, 25 Aug 2016 14:06:56 -0700
parents 15c20ab4b80a
children 750a86973625
line wrap: on
line diff
--- a/@pyobject/dummy.m	Thu Aug 25 12:11:02 2016 -0700
+++ b/@pyobject/dummy.m	Thu Aug 25 14:06:56 2016 -0700
@@ -140,7 +140,8 @@
 ##   @result{} ans =
 ##       @{
 ##         [1,1] =  42
-##         [1,2] = hello
+##               = [pyobject ...]
+##                 hello
 ##               = [pyobject ...]
 ##                 <module 'sys' (built-in)>
 ##       @}
@@ -152,7 +153,7 @@
 ## For example:
 ## @example
 ## @group
-## pycall ("repr", sysmodule)
+## char (pycall ("repr", sysmodule))
 ##   @result{} <module 'sys' (built-in)>
 ## @end group
 ## @end example