-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added __add__ and friends to NamedStream + test cases for add and radd
- Makes ns + "something" work (= add) but "something" + ns still fails because it uses the str.__add__() and not the ns.__radd__() method - I don't quite understand why I had to add __add__ in the first place because the getattr() hack can get at the self.name.__add__ but the add test failed and passes with the explicit NamedStream.__add__ added.
- Loading branch information
Showing
2 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters