builtin: add dir builtin by sbinet · Pull Request #20 · go-python/gpython
Repository navigation
builtin: add dir builtin - #20
Open
sbinet wants to merge 1 commit into main from issue-12
Open
builtin: add dir builtin #20 sbinet wants to merge 1 commit into main from issue-12
Conversation
sbinet commented Aug 30, 2018
Copy link Copy Markdown
Member
Fixes #12 .
builtin: add dir builtin
2b22f72
Fixes #12.
sbinet commented Aug 30, 2018
Copy link Copy Markdown
Member
Author
|
this is a WIP. @ncw , for |
ncw commented Sep 3, 2018
Copy link Copy Markdown
Collaborator
|
The way I've done that in the past, eg for implementing locals() is to implement them as InternalMethods. Eg here is where the magic is... Lines 1578 to 1600 in eaa7d28
This is where the other magic is!
That is the only way I could find to avoid using global variables etc. It might be too limiting eventually. |
drew-512 commented Jan 29, 2022
Copy link Copy Markdown
Contributor
|
@sbinet after the |
drew-512 commented Feb 14, 2022
Copy link Copy Markdown
Contributor
|
@sbinet lmk if this is worth adding/improving so we can work towards a cleared PR section. Also, any suggestions on the next version/tag? I think we're worthy of a 0.1 or 1.0 -- open to discussion. |
sbinet commented Feb 15, 2022
Copy link Copy Markdown
Member
Author
|
in order to get the nice discoverability look and feel of CPython into gpython, having a working but as we survived w/o it for almost 4 years, I don't think cleaning up this PR should be a blocker for the next tagged version of gpython. |