You’re not supposed to use arbitrary Python, it’s highly discouraged. We have a linter that keeps you from doing things you’re not supposed to do (like this), but it slows things down, so it’s not part of the “standard” GYP run that developers normally use. It can run as a pre-commit script or test on the bot or something else. Used as we’re using it, GYP basically is simple JSON, except the rules about commas are looser and # introduces comments.
On Tue, Feb 5, 2013 at 2:47 PM, Ryosuke Niwa <rn...@webkit.org> wrote: > On Tue, Feb 5, 2013 at 6:09 AM, Mark Mentovai <m...@chromium.org> wrote: > >> The parser (and the grammar) works the way it does because it’s just >> Python >> > > This works great for people who like Python syntax but not for someone > like myself who dislikes Python syntax. > > I also find it particularly annoying that people can use whatever Python > constructs they want to use in GYP. It dramatically reduces language > portability because you need to support quite a few Python constructs and > quirks in order to correctly parse GYP. > > I personally would have much preferred for it be a simple JSON file. > > - R. Niwa > >
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev