facebook/tornado — pull request #498 by mckoss (2012-04-26 00:47:40+00:00)
Title: fix bug setting options programatically

Previously, if you set an option in code:

options.my_option = value

this would overwrite the _Options attribute with a non _Option value. This would break subsequent retrieval of the option. This code change adds a parallel __setattr__ to the existing __getattr__.

I also fixed a bug with the root type - 'str' should have been 'basesting' - since we return a _unicode() converted string - which fails when you try to set the value back again.