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 andreas-h, lukasz.langa, r.david.murray
Date 2015-06-22.17:05:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434992733.04.0.906919997808.issue24488@psf.upfronthosting.co.za>
In-reply-to
Content
In python3 you will get an error: "TypeError: option values must be strings".  So, this is an infelicity in the configparser API.  Or, rather, I presume it is a design decision (ie: python shouldn't guess what string format you want the value to have in the file).

I'll leave it up to Lukaz to decide if this should be closed, or if there is an acceptable feature request here.  But your solution is to call str on your boolean values when you store them.
History
Date User Action Args
2015-06-22 17:05:33r.david.murraysetrecipients: + r.david.murray, lukasz.langa, andreas-h
2015-06-22 17:05:33r.david.murraysetmessageid: <1434992733.04.0.906919997808.issue24488@psf.upfronthosting.co.za>
2015-06-22 17:05:32r.david.murraylinkissue24488 messages
2015-06-22 17:05:32r.david.murraycreate