uWSGI has no yaml support.
Bug #769831 reported by
m.br
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uWSGI Ubuntu package |
Invalid
|
Undecided
|
Unassigned |
Bug Description
While uWSGI claims yaml support, it really doesn't. Actually, its supposed "YAML support" is a bad joke - looking at http://
This bites people in the ass pretty quickly, as they discover they can't use exec with multiline strings (using |) or even use the output of a simple python yaml.dump({'opt1': 'val1', 'opt2': 'val2'}) as a configuration file.
The file also deserves a stylistic award for using goto twice in less than 200 very simple lines.
To post a comment you must log in.
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.