Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding some docs
  • Loading branch information
kellrott committed May 24, 2019
commit f85056c5800670cba9b982d1a193a21523ead9bb
1 change: 1 addition & 0 deletions py/dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func (a StringDict) M__repr__() (Object, error) {
return String(out.String()), nil
}

// Returns a list of keys from the dict
func (d StringDict) M__iter__() (Object, error) {
Comment thread
kellrott marked this conversation as resolved.
o := make([]Object, 0, len(d))
for k := range d {
Expand Down