This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients barry, jkloth, larry, ncoghlan, serhiy.storchaka
Date 2014-01-07.11:52:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389095535.37.0.297693581124.issue20144@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a second patch; I think this is ready to go in

I cleaned up the node parsing a lot.  It now knows how to parse the following types of default values:
  * Number (this applies to both ints and floats)
  * String ('hello')
  * Attribute (sys.maxsize)
  * Named constant (None, True, False)
As long as I'm fixing this, I want to add support for any other values we're going to want.  Did I miss any?  Note that we can't really support container types, because initializing them on the C side isn't practical.

Also, the tests don't exercise all of the above possible node types, just because I couldn't remember builtins that used those types.  We'll fill in the remaining tests as we port new functions to Argument Clinic.

If I can get a quick LGTM review, I'll check this in.
History
Date User Action Args
2014-01-07 11:52:15larrysetrecipients: + larry, barry, ncoghlan, jkloth, serhiy.storchaka
2014-01-07 11:52:15larrysetmessageid: <1389095535.37.0.297693581124.issue20144@psf.upfronthosting.co.za>
2014-01-07 11:52:15larrylinkissue20144 messages
2014-01-07 11:52:14larrycreate