<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
On 04/21/2015 04:50 AM, Tal Einat wrote:<br>
</div>
<blockquote
cite="mid:CALWZvp6ZzG-d88+acKL3YHMu=4r1odi8iAFC42O7FEU6D=Umbw@mail.gmail.com"
type="cite">
<pre wrap="">As for the default set of accepted types for various convertors, if we
could choose any syntax we liked, something like "accept=+{NoneType}"
would be much better IMO.
</pre>
</blockquote>
<br>
In theory Argument Clinic could use any syntax it likes. In
practice, under the covers we tease out one or two bits of
non-Python syntax, then run ast.parse over it. Saved us a lot of
work.<br>
<br>
"s: accept={str,NoneType}" is a legal Python parameter declaration;
"s: accept+={NoneType}" is not. If I could figure out a clean way
to hack in support for += I'll support it. Otherwise you'll be
forced to spell it out.<br>
<br>
<br>
<i>/arry</i><br>
</body>
</html>