-
Notifications
You must be signed in to change notification settings - Fork 1
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
__builtins__ not defined #55
Comments
Comment by trotterdylan Check out builtin_types.go |
Comment by selik Would it be reasonable to add plain Python implementations to builtin.py instead? For example:
|
Comment by trotterdylan Yeah, I'm OK with that. |
Comment by meadori 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. |
Comment by trotterdylan 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. |
Comment by selik I defined a |
Comment by trotterdylan Oh that's right. The way things work right now there's a grumpy.Builtins *Dict that contains all the builtins. The |
Comment by selik Ideally there should be a
|
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: