Skip to content
Merged
Show file tree
Hide file tree
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
set: modify year of the copyright and return value of the function
  • Loading branch information
DoDaek committed Sep 15, 2019
commit ca6e4118a82bf5b9a2554473ee058e0db1fb70a8
2 changes: 1 addition & 1 deletion py/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *Set) M__and__(other Object) (Object, error) {
ret := NewSet()
b, ok := other.(*Set)
if !ok {
return nil, TypeError
return nil, ExceptionNewf(TypeError, "unsupported operand type(s) for &: '%s' and '%s'", s.Type().Name, other.Type().Name)
}
for i := range b.items {
if _, ok := s.items[i]; ok {
Expand Down
2 changes: 1 addition & 1 deletion py/tests/set.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 The go-python Authors. All rights reserved.
# Copyright 2019 The go-python Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

Expand Down