2011/5/30 Alexandre Conrad <[email protected]>:
> selected_parser = "parser1"
> parser = parsers[selected_parser]
> parser = Parser()
> ...

I meant to have a capital P on the second line of course:

selected_parser = "parser1"
Parser = parsers[selected_parser]
parser = Parser()

or just (less readable though):

parser = parsers[selected_parser]()

-- 
Alex | twitter.com/alexconrad
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to