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 r.david.murray
Recipients r.david.murray, rabbidous, terry.reedy
Date 2011-08-13.15:44:02
SpamBayes Score 9.448761e-09
Marked as misclassified No
Message-id <1313250243.7.0.532702360625.issue12723@psf.upfronthosting.co.za>
In-reply-to
Content
A bit of both, I think.  The current function is actually 'getvalue' and is responsible for retrieving the value, validating its type, and converting to that type (the current ones do both in the same operation).  It feels to me like a cleaner interface to decouple retrieval and validation/conversion, so that the validation function gets passed a string and returns the desired type.  But in that case, having the string dialog take the validation/coercion function makes the name of the askstring function just wrong.

So, I still think the cleaner API is to expose the class and let the application subclass to provide the validation function.
History
Date User Action Args
2011-08-13 15:44:03r.david.murraysetrecipients: + r.david.murray, terry.reedy, rabbidous
2011-08-13 15:44:03r.david.murraysetmessageid: <1313250243.7.0.532702360625.issue12723@psf.upfronthosting.co.za>
2011-08-13 15:44:03r.david.murraylinkissue12723 messages
2011-08-13 15:44:02r.david.murraycreate