-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for array type #2
Comments
I did some more research about this the last days come up with the following additional information: The type is imported using array and can then be used as array.array. A poor implementation could look like the following snippet but as the comment already says it is incomplete type Array types.List
var _ types.Callable = &Array{}
func (*Array) Call(args ...interface{}) (interface{}, error) {
// TODO: make fully functional
// args[0] contains a type like B or H which is not taken into account
return args[1].(*types.List), nil
} |
Hi, thanks for opening this issue. I also think it would be nice to support this type (surely as much as I'd like to support many other types from the standard library, which are still missing... well, one step at a time). While I'm not much used to manipulating I think that your suggestion already goes in the right direction. Let's try to build additional ideas and opinions on top of it. We surely need a new Rather than making the new So, the full task to do here would be: to support the unpickling of Python's Contributions are very welcome, so I ask you, @SuperSandro2000: would you like, feel confident, and have time to carry on with this task? Or at least a part of it? I can provide help and guidance if necessary, and of course a final review. Please, be honest and feel no pressure! Liebe Grüße! |
Fixes nlpodyssey#2. Signed-off-by: Sebastien Binet <[email protected]>
Fixes nlpodyssey#2. Signed-off-by: Sebastien Binet <[email protected]>
Fixes nlpodyssey#2. Signed-off-by: Sebastien Binet <[email protected]>
I know it's a bit late in the game, but: does #9 work for you, @SuperSandro2000 ? |
the only possible issue is the support for |
It would be nice if basic python array types would be supported.
REDUCE requires a Callable object: &types.GenericClass{Module:"array", Name:"array"}
The text was updated successfully, but these errors were encountered: