Skip to content

set: Implement initialization set with sequence #100

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

Merged
merged 4 commits into from
Sep 29, 2019
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
Remove comment
  • Loading branch information
SanggiHong committed Sep 29, 2019
commit b64c1d23669da7a7f3ac4cb0436b05cfc8d5674b
2 changes: 0 additions & 2 deletions py/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ func SetNew(metatype *Type, args Tuple, kwargs StringDict) (Object, error) {
return SequenceSet(iterable)
}
return NewSet(), nil
// FIXME should be able to initialise from an iterable!
// return NewSetFromItems(iterable.(Tuple)), nil
}

var FrozenSetType = NewType("frozenset", "frozenset() -> empty frozenset object\nfrozenset(iterable) -> frozenset object\n\nBuild an immutable unordered collection of unique elements.")
Expand Down