Skip to content

Commit 1ff2b5c

Browse files
committed
added tuple in readme
1 parent afc879e commit 1ff2b5c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ type pyobj =
130130
| Pytuple of pyobj list
131131
| Pylist of pyobj list
132132
| Pynone
133-
| Namedarg of (string * pyobj)
133+
| Namedarg of (string * pyobj)
134134
```
135135

136136
Main type representing python values, which are passed as arguments of functions and returned from functions. `Pyref` allows us to use python objects, we explain that later on.
@@ -179,7 +179,7 @@ val get : pycallable -> string -> pyobj list -> pyobj
179179

180180
Example : `get time "sleep" [Pyint 2]` (equivalent in python : `time.sleep(2)`)
181181

182-
Sister functions : `get_string`, `get_int`, `get_float`, `get_bool`, `get_bytes` and `get_list`. They call `get` and try to do pattern matching over the result to return the desired type, they fail with a `Wrong_Pytype` if the result was not from the expected type. For example, `get_string` doesn't return a `pyobj`, but a `string`.
182+
Sister functions : `get_string`, `get_int`, `get_float`, `get_bool`, `get_bytes`, `get_tuple` and `get_list`. They call `get` and try to do pattern matching over the result to return the desired type, they fail with a `Wrong_Pytype` if the result was not from the expected type. For example, `get_string` doesn't return a `pyobj`, but a `string`.
183183

184184
</br>
185185
```ocaml
@@ -197,7 +197,7 @@ val attr : pycallable -> string -> pyobj
197197

198198
Example : `attr sys "argv"` (equivalent in python : `sys.argv`)
199199

200-
Sister functions : `attr_string`, `attr_int`, `attr_float`, `attr_bool`, `attr_bytes` and `attr_list`. They call `attr` and try to do pattern matching over the result to return the desired type, they fail with a `Wrong_Pytype` if the result was not from the expected type.
200+
Sister functions : `attr_string`, `attr_int`, `attr_float`, `attr_bool`, `attr_bytes`, `attr_tuple` and `attr_list`. They call `attr` and try to do pattern matching over the result to return the desired type, they fail with a `Wrong_Pytype` if the result was not from the expected type.
201201

202202
</br>
203203
```ocaml

0 commit comments

Comments
 (0)