Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from abc import ABCMeta, abstractmethod
- class IStream(metaclass=ABCMeta):
- @abstractmethod
- def leer(self, bytes_maximos=-1):
- pass
- @abstractmethod
- def escribir(self, datos):
- pass
- class SocketStream(IStream):
- def leer(self, bytes_maximos=-1):
- # Operaciones de lectura
- pass
- def escribir(self, datos):
- # Operaciones de escritura
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement