-
Notifications
You must be signed in to change notification settings - Fork 18
__builtins__ not defined #18
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
Comments
Check out builtin_types.go |
Would it be reasonable to add plain Python implementations to builtin.py instead? For example:
|
Yeah, I'm OK with that. |
I can see two reason for doing it in the Go runtime:
We should probably review builtins on a case-by-case basis to determine whether Python or the Go-based runtime is more suitable. |
Yep, I think that's a good summary. Long term I expect we'll want all builtins to be written in Go for reason google#1 but short term I think it's fine to write some in Python. |
I defined a |
Oh that's right. The way things work right now there's a grumpy.Builtins *Dict that contains all the builtins. The |
Ideally there should be a
|
google#50 opened @selik commented on 5 Jan 2017
I'm aware that not all builtins have been written yet. I tried to take a look at what has been written so far:
I think there's some low-hanging fruit in writing plain Python implementations for a few builtins like
sum
,map
, etc. Where's the right place to write those?The text was updated successfully, but these errors were encountered: