Class design for parser object

J

James Saker

I've been working on a Python class object for APRS (Automatic Position
Reporting System - a digital mode used by amateur radio operators) and have
been going through David Mertz's Text Processing in Python book to help in
the construction of the parser component of the class.

I was curious if there was a good reference on the most pythonic design of
parsing objects. For instance, should one parse raw or formatted data upon
initialization and return a boolean indicating success/failure, or require
multiple steps to instantiate then parse and test? Are there generally found
public methods in parsing objects that would serve as a good model?

Thanks -

Jamie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,311
Members
47,981
Latest member
satome

Latest Threads

Top