[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

Larry Hastings report at bugs.python.org
Mon Dec 10 16:12:25 CET 2012


Larry Hastings added the comment:

Ah.  In that case, may I rewrite your critique as

"[...] some lines may end with a semicolon, some lines may not, some assignment signs ("=") permit spaces around them, some don't."

The semicolon is optional, permitted explicitly so you can copy-and-paste the original C variable declarations in and you don't have to go hunting for semicolons.  The spaces are permitted on those lines for the same reason; they aren't on the "flag" lines because of how flags are parsed.

I concede that this is inconsistent.  If this inconsistency bothers you, I invite you to propose a different (and presumably more consistent) syntax for the DSL.  I happen to think the current syntax has a motley "practicality beats purity" charm, but then I would, wouldn't I.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16612>
_______________________________________


More information about the Python-bugs-list mailing list