(self)
| 44 | setattr(self, meth, val) |
| 45 | |
| 46 | def __repr__(self): |
| 47 | cls = self.__class__ |
| 48 | tpl = '{mod}.{cls}({args})' |
| 49 | return tpl.format(mod=cls.__module__, cls=cls.__name__, args=self.stream) |
| 50 | |
| 51 | def write(self,data): |
| 52 | warn('IOStream is deprecated since IPython 5.0, use sys.{stdin,stdout,stderr} instead', |