@@ -154,7 +154,7 @@ Options:
154154
155155# ## From the `python` shell
156156
157- NOTE: following not yet working:
157+ NOTE: following not yet working in new version :
158158
159159` gopy` comes with a little ` python` module allowing to wrap and compile ` go`
160160packages directly from the ` python` interactive shell:
@@ -180,7 +180,7 @@ $ ls out
180180hi.so
181181
182182$ cd out
183- $ python2
183+ $ python3
184184>>> import hi
185185>>> dir(hi)
186186[' Add' , ' Concat' , ' Hello' , ' Hi' , ' NewPerson' , ' Person' , ' __doc__' , ' __file__' , ' __name__' , ' __package__' ]
@@ -193,44 +193,8 @@ hello you from go
193193You can also run:
194194
195195` ` ` sh
196- go test -v -run=TestBind
197- === RUN TestBind
198- processing " Add" ...
199- processing " Concat" ...
200- processing " Hello" ...
201- processing " Hi" ...
202- processing " NewPerson" ...
203- processing " Person" ...
204- processing " Add" ...
205- processing " Concat" ...
206- processing " Hello" ...
207- processing " Hi" ...
208- processing " NewPerson" ...
209- processing " Person" ...
210- github.com/go-python/gopy/_examples/hi
211- _/home/binet/dev/go/root/tmp/gopy-431003574
212- --- hi.Hi ()...
213- hi from go
214- --- hi.Hello(' you' )...
215- hello you from go
216- --- hi.Add(1, 41)...
217- 42
218- --- hi.Concat(' 4' , ' 2' )...
219- 42
220- --- doc(hi.Person):
221- Person is a simple struct
222-
223- --- p = hi.Person ()...
224- < hi.Person object at 0x7fc46cc330f0>
225- [' Age' , ' Name' , ' __class__' , ' __delattr__' , ' __doc__' , ' __format__' , ' __getattribute__' , ' __hash__' , ' __init__' , ' __new__' , ' __reduce__' , ' __reduce_ex__' , ' __repr__' , ' __setattr__' , ' __sizeof__' , ' __str__' , ' __subclasshook__' ]
226- --- p.Name: None
227- --- p.Age: None
228- --- doc(p):
229- Person is a simple struct
230-
231- --- PASS: TestBind (2.13s)
232- PASS
233- ok github.com/go-python/gopy 2.135s
196+ go test -v -run=TestHi
197+ ...
234198` ` `
235199
236200# # Binding generation using Docker (for cross-platform builds)
@@ -257,10 +221,7 @@ To know what features are supported on what backends, please refer to the
257221
258222# # Limitations
259223
260- - wrap ` go` structs into ` python` classes ** [DONE]**
261- - better pythonization: turn ` go` ` errors` into ` python` exceptions ** [DONE]**
262- - wrap arrays and slices into types implementing ` tp_as_sequence` ** [DONE]**
263- - Windows only supported with the ` cffi` backend
224+ - Windows completely untested, likely needs something special.
264225
265226# # Contribute
266227
0 commit comments