-
Notifications
You must be signed in to change notification settings - Fork 646
__builtins__ not defined #50
Comments
Check out builtin_types.go |
I am working through several of these now starting with |
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 #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
|
I added a Go implementation of |
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: