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 larry, zach.ware
Date 2014-01-10.11:48:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389354528.5.0.508802313775.issue20172@psf.upfronthosting.co.za>
In-reply-to
Content
1)
When I wrote that I hadn't considered that people would want custom subclasses of ints.  I assumed they'd be using custom converter *functions*, which of course means they'd use 'O&'.  I can think of how to reword the text but for now I assume your approach for REGSAM is fine; certainly I approve of using the correct type in the generated code.

However, I doubt doc_default, py_default, and c_default should all be exactly the same.  And the 'key_name' parameter seems a little awkward.

Here's something you could consider: I don't think it's documented yet (I'm going as fast as I can over here, honest) but now you can use simple constants as Python defaults.  So maybe you can use REGSAM like this:
    arg: REGSAM(c_default='KEY_READ') = winreg.KEY_READ

and then REGSAM could simply be an empty ("pass") subclass of int_converter.

2)
No convenient way yet.  Let me think about it.
History
Date User Action Args
2014-01-10 11:48:48larrysetrecipients: + larry, zach.ware
2014-01-10 11:48:48larrysetmessageid: <1389354528.5.0.508802313775.issue20172@psf.upfronthosting.co.za>
2014-01-10 11:48:48larrylinkissue20172 messages
2014-01-10 11:48:48larrycreate