No project description provided
Project description
Abstract Message
Usage:
from message_local.Message import Message
class SpecialMessage(Message):
def __init__(self, message_content: str, message_importance: int):
super().__init__(message_content, message_importance) # now you got self.message_content and self.message_importance
def send(self, recipient: str):
print("Message sent to " + recipient)
def was_read(self):
return True
def importance(self):
return 5
def display(self):
print("Message displayed")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
message-local-0.0.1.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for message_local-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b06ab18aad1d729486df24cdf8619517c5791b2932c943d07f32fdfdc55fcde |
|
MD5 | 497160cc7031b1534bb6c7c4e945d07b |
|
BLAKE2b-256 | 0ed3e54c6c5dbd94db7336dcd36c7ea7f1f0a868b55e2cdd5f14b35d09b71b5d |