Message245638
| Author |
andreas-h |
| Recipients |
andreas-h |
| Date |
2015年06月22日.16:45:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1434991517.36.0.491167534114.issue24488@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Not sure if this is by design (or if I'm doing something utterly stupid), but I often create a ConfigParser object for my application and then pass this around (or make it global).
So when I do something like
cfg.set("input_filter", "include_filtered", True)
and then
cfg.getboolean("input_filter", "include_filtered")
I receive an error (AttributeError: 'bool' object has no attribute 'lower').
Wouldn't it be more sensible if getboolean would return the raw value in case the raw value is already a boolean?
If not, which would be the best way forward for me? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年06月22日 16:45:17 | andreas-h | set | recipients:
+ andreas-h |
| 2015年06月22日 16:45:17 | andreas-h | set | messageid: <1434991517.36.0.491167534114.issue24488@psf.upfronthosting.co.za> |
| 2015年06月22日 16:45:17 | andreas-h | link | issue24488 messages |
| 2015年06月22日 16:45:17 | andreas-h | create |
|