Asparuh Krastev
3d857d6c44
Generate const documentation.
...
Fixes #340 .
2023-10-26 13:51:49 +03:00
Justin Israel
ac5c077a97
main,bind: extended gopy:name control, auto PEP8 naming, and property docstring support
...
This commit provides an option to automatically rename functions, methods, and properties to PEP-style snake_case when generating code.
2021-03-26 09:16:11 +01:00
Justin Israel
8ab2cac131
main,bind,_examples: use absolute package imports and make configurable
...
This CL fixes an issue with the way python import statements are generated using an realtive current directory approach that is no longer compatible with python3. The default behavior has been updated to default to a dot-relative absolute package import for "go" and compiled extension, and a configuration option has been exposed from the CLI flags down to the bind package.
A refactor of configuration options was added to avoid further expanding the number of arguments being passed through the system.
Fixes go-python/gopy#239
2021-03-17 22:02:07 +01:00
Randall C. O'Reilly
668e31d12c
add support for Enum types in Python, based on const values of the same type in Go. Also generates the raw const values at global package scope, as accessed in Go.
2020-09-15 05:08:47 -07:00
Sebastien Binet
c29e95e5ce
bind: use python case for booleans
...
Fixes #207 .
2019-12-30 16:54:23 +01:00
Randall C. O'Reilly
697577b7f4
python callback fully implemented -- one last thing is dealing with return values properly..
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
782d3b74c8
more fixes to exclude various things -- excluding python keywords for example. gi now loads and tries to run - might work on linux, but mac requires main thread for loop.
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
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
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
247472fc52
dealing with interface{} and py2go now handles * indirection uniformly; interface methods don't create symbols, but turns out nil obj is ok..
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
f8ffa3eefa
slices all working..
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
b1541e1795
variables and constants get / set functions, and more bind code cleanup
2019-08-24 10:31:16 +02:00