Comment 1 for bug 769831

Revision history for this message
roberto (roberto-unbit) wrote :

Instead of being rude, you can follow the "Open Source Way" and send a patch.
You have made a rant not a bug report :(

By the way, this is the correct syntax if you want to generate valid yaml for uWSGI:

yaml.dump({'uwsgi':{'opt1': 'val1', 'opt2': 'val2'}}, default_flow_style=False)

There is truly no need to support other object type in addition to strings, as we are talking about
options value (no multiline strings, no numbers, nor array or dictionary).

You only need to define a "uwsgi yaml dictionary" in your file. The uWSGI parser will use it ignoring all the rest.

Finally: gotos are not bad in C (someone call them a stylish trick to increase readability). You will find tons of them in Python sources too.