2011/5/30 Alexandre Conrad <alexandre.con...@gmail.com>:
> 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  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to