Commit Graph

27 Commits

Author SHA1 Message Date
Randall C. O'Reilly 691b7e025e major fix: create an import alias for package name conflicts -- e.g., adding goplot font package conflicts with image/font.. added pkgconflict test case 2021-08-29 02:55:02 -07:00
Randall C. O'Reilly 7c8a930907 support pass-through of nil value for slices and maps -- otherwise causes immediate error in generated boilerplate for nil values passed for these. also fix gopy: comment parsing. 2020-09-11 03:00:49 -07:00
Randall C. O'Reilly 87be7f7b22 bind: add no-warn flag; use underlying type for Named types for struct fields; use overall package name for DecRef etc.
Fixes #219
Fixes #220
Fixes #221
2020-03-26 08:30:42 +01:00
Cosmos Nicolaou 35472c0b14
gopy,gopyh,bind: allow for deletion of handles from the map in gopyh
- add support for deleting gopyh handles
- add support for checking arguments' type

Fixes #217.
2020-02-18 22:59:10 +01:00
Randall C. O'Reilly 9e491ab3da most of PR review comments addressed -- few more to tackle tmrw. haven't changed import paths yet b/c still working out of my dir -- will do that as a last step. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly e381500a36 verified building on py2 and most tests work except for a few minor diffs in output -- calling it good enough for now. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly ad11d2281e tried to support method callbacks but couldn't get it to work outside of small test case.. not sure what the issues are. updated readme 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 1787e368e5 put all externals in go.py module for efficiency; added slice, map methods; most of GoGi now working. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 1276af3ee0 more consistent use of isPyCompat methods, getting more of gi working with pyPkgId fixes. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 3f14cf967f swap order of embedded structs so python always sees parent before child. use Embed method on all struct method calls to get proper virtual function calling. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly d8e2df870b nearly working on gi -- many more edge cases etc fixed -- needs go imports pass.. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly c4787d0cb8 added maps, arrays, and fixed some handle issues. only callback methods missing now! 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly ae71a5b83f global "go" package with standard Slice types and the go.GoClass and go.nil. all working for emergent/leabra python script. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly cf18fcbf00 major reorg to support multi-packages in one .so all working -- emergent mostly working. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 42a57a9826 major cleanup: id is now always used as identifier -- replaces pyname -- computed simply. everything always scoped by pkg name in prep for integrated multi-package output. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 60a01ab038 after much experimentation, realized no way around limits of var handle registry being diff for each .so compiled library: need to now make mega-libraries. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly d8e3ff78f9 added pkg command, does full recursive generate for entire package -- figured out how to navigate python packages finally.. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly f9eb65ceb9 few more tweaks: leabra/leabra and leabra/deep now working 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 849847c8d4 major progress -- handling most things in emer now except emer itself.. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 3c4cffd8dd almost clean on etensor -- failing on *[]float64 not recognized as pointer type.. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 24e505f408 basic mechanics of multi-package working -- need to be able to import multiple packages easily in python -- look into install etc 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 5aa404702f more progress on slices, basic named types 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 89231ef2da start on slices; use GoHandle and CGoHandle types for all handles -- and now can switch to int64 instead of string keys as py wrapper makes string less important. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly e1b8e53da3 cleanup, start on slices etc. 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly d81b4710eb generalized handle code beyond pointer -- working for full structs -- always need to convert back and forth to / from pointer for handle 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly e85863e9ea fully functional for go pointers to structs 2019-08-24 10:31:16 +02:00
Randall C. O'Reilly 8d44f401d4 py wrapper that puts methods in a class all in place now, and makefile working. build side is good. 2019-08-24 10:31:16 +02:00