str vs dict API size (was 'Re: left padding zeroes on a string...')
radam2 at tampabay.rr.com
Sat Mar 26 05:10:21 CET 2005
On Fri, 25 Mar 2005 18:06:11 -0500, "George Sakkis"
<gsakkis at rutgers.edu> wrote:
>I'm getting off-topic here, but it strikes me that strings have so many methods (some of which are
>of arguable utility, e.g. swapcase), while proposing two useful methods (http://tinyurl.com/5nv66)
>for dicts -- a builtin with a considerably smaller API than str -- meets so much resistance. Any
I did a quick check.
We need more tuple methods! jk ;)
Looks like the data types, strings, int an float; have more methods
than dict, list, and tuple. I would expect that because there is more
ways to manipulate data than is needed to manage containers.
More information about the Python-list