diff options
Diffstat (limited to 'doc/source/f2py/string_session.dat')
-rw-r--r-- | doc/source/f2py/string_session.dat | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/doc/source/f2py/string_session.dat b/doc/source/f2py/string_session.dat index cbae6b784..e8f7854d9 100644 --- a/doc/source/f2py/string_session.dat +++ b/doc/source/f2py/string_session.dat @@ -1,19 +1,22 @@ >>> import mystring ->>> print mystring.foo.__doc__ -foo - Function signature: - foo(a,b,c,d) -Required arguments: - a : input string(len=5) - b : in/output rank-0 array(string(len=5),'c') - c : input string(len=-1) - d : in/output rank-0 array(string(len=-1),'c') +>>> print(mystring.foo.__doc__) +foo(a,b,c,d) ->>> import numpy ->>> a=numpy.array('123') ->>> b=numpy.array('123') ->>> c=numpy.array('123') ->>> d=numpy.array('123') ->>> mystring.foo(a,b,c,d) +Wrapper for ``foo``. + +Parameters +---------- +a : input string(len=5) +b : in/output rank-0 array(string(len=5),'c') +c : input string(len=-1) +d : in/output rank-0 array(string(len=-1),'c') + +>>> from numpy import array +>>> a = array(b'123\0\0') +>>> b = array(b'123\0\0') +>>> c = array(b'123') +>>> d = array(b'123') +>>> mystring.foo(a, b, c, d) A=123 B=123 C=123 @@ -23,5 +26,5 @@ Required arguments: B=B23 C=C23 D=D23 ->>> a.tostring(),b.tostring(),c.tostring(),d.tostring() -('123', 'B23', '123', 'D23') +>>> a[()], b[()], c[()], d[()] +(b'123', b'B23', b'123', b'D2') |