-
When creating parser methods, do we consider all properties of the objects? @ht-thomas |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@kallyas the parsing action is directed by the key that is passed to the parsing method. There are many keys that map to the same parsing method. For example, all those keys in that case statement map to the message parsing method which constructs a message object. You should also know that parsing methods are responsible for parsing every object that appears in the module they are parsing. For example, |
Beta Was this translation helpful? Give feedback.
@kallyas the parsing action is directed by the key that is passed to the parsing method. There are many keys that map to the same parsing method. For example, all those keys in that case statement map to the message parsing method which constructs a message object.
You should also know that parsing methods are responsible for parsing every object that appears in the module they are parsing. For example,
_parse_message
is responsible for parsing the message object, MessageID object and others found in themessage.py
module