Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 2nd, 2005, 04:25 PM
James Saker
Guest
 
Posts: n/a
Default Class design for parser object


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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles