thorwhalen / umpyre

Materials for python coaching
MIT License
1 stars 0 forks source link

Dir and (correct) delegation #11

Open thorwhalen opened 3 years ago

thorwhalen commented 3 years ago

See creek and py2store base.py:

    def __dir__(self):
        return list(set(dir(self.__class__)).union(self.stream.__dir__()))  # to forward dir to delegated stream as well