File-Server icon indicating copy to clipboard operation
File-Server copied to clipboard

Use the abc package for abstract Python classes

Open danthedaniel opened this issue 6 years ago • 1 comments

Python allows for abstract classes that define methods which must be implemented (with tools located in the abc package). This might be useful for the Packet class.

danthedaniel avatar Apr 05 '18 02:04 danthedaniel

Absolutely, thanks. This should also be used in HubProcessor, file_server/web/endpoints/, and file_server/file/snapshot.py

https://docs.python.org/3.6/library/abc.html

nicole-mcg avatar Apr 05 '18 02:04 nicole-mcg