|
From: Michael F. <fuz...@vo...> - 2006-01-30 22:33:00
|
Fuzzyman wrote:
[snip..]
> Done. :-)
>
> I'll set about implementing :
>
> as_bool
> as_int
> as_float
>
>
Uhmm... that was embarrassingly easy, rename ``istrue`` to ``as_bool``
and new section methods :
def as_int(self, key):
return int(self[key])
def as_float(self, key):
return float(self[key])
Have I missed anything (they ought to raise a ValueError for invalid
values).
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
> I'm part way through adding unicode support. Things like checking the
> compiled (ascii) regular expressions handle unicode fine and fuller BOM
> support make this not-quite-trivial-but-not-too-bad.
>
> All the best,
>
>
> Fuzzyman
> http://www.voidspace.org.uk/python/index.shtml
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
>
|