Re: str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread Bengt Richter
On Sat, 26 Mar 2005 04:10:21 GMT, Ron_Adam <[EMAIL PROTECTED]> wrote: >On Fri, 25 Mar 2005 18:06:11 -0500, "George Sakkis" ><[EMAIL PROTECTED]> 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),

Re: str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread Ron_Adam
On Fri, 25 Mar 2005 18:06:11 -0500, "George Sakkis" <[EMAIL PROTECTED]> 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 --

Re: str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread Robert Kern
George Sakkis wrote: "Larry Bates" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Once it is in everyone is hesitant to take it out for fear of breaking someone's code that uses it (no matter how obscure). Putting in new methods should be difficult and require lots of review for that r

Re: str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread George Sakkis
"Larry Bates" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Once it is in everyone is hesitant to take it out for fear of > breaking someone's code that uses it (no matter how obscure). > Putting in new methods should be difficult and require lots > of review for that reason and so

Re: str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread Larry Bates
Once it is in everyone is hesitant to take it out for fear of breaking someone's code that uses it (no matter how obscure). Putting in new methods should be difficult and require lots of review for that reason and so we don't have language bloat. Larry Bates George Sakkis wrote: > "M.E.Farmer" <

str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread George Sakkis
"M.E.Farmer" <[EMAIL PROTECTED]> wrote: > > [snipped] > > Be sure to study up on string methods, it will save you time and > sanity. > Py> dir('') > ['__add__', '__class__', '__contains__', '__delattr__', '__doc__', > '__eq__', '__ge__', '__getattribute__', '__getitem__', '__getslice__', > '__gt__'