I'm trying to implement flyweight pattern in python3 for a word processor, that has a character class which stores the unicode of a character, and a flyweight factory class that returns the flyweight object for the character. Is there a way to find the memory saved by the flyweight pattern in python just like in Java?
Need help with the flyweight implementation in python3 for creating a Word processor.