On Thu, Dec 25, 2008 at 6:22 PM, Matthew Dubins
<[email protected]> wrote:
> Each type does contain its own parsing method. It's just that, as it
> stands, one method is being used to shunt off the data to the correct
> parsing method.
>
Not really. You have all of the parsing methods in a single class. Is
it possible for each data class to have a parse method?
class DOB(object):
def parse(...):
pass
There are many pros and cons do this way of doing things. Google
polymorphism and possibly duck typing to see some interesting
discussions.
--
David
http://www.traceback.org
--
http://mail.python.org/mailman/listinfo/python-list