[EuroPython] Re: [Pyobjc-dev] A question of concience

Dinu Gherman gherman@darwin.in-berlin.de
Wed, 9 Jul 2003 11:54:40 +0200


Just van Rossum:

> Ronald Oussoren wrote:
>
>> There is one problem with this change: backward compatibility. If
>> we'd apply this change, we might break code that currently uses
>> methods like getNumberOfRows:columns:. The current users might also
>> use code that wouldn't break, like this:
>>   rows, cols = obj.getNumberOfRows_columns_()[1:]
>>
>> I'd rather not break backward compatibility, but this change would
>> increase the useability of PyObjC. Any opinions?
>
> +1 on the breakage. Hey, we're only at 1.0b1 ;-) The fact we didn't 
> hear
> complains about this before seems to indicate these kinds of methods
> aren't being used much yet.

In fact, for RegexPlor I'm using the following without even having
run into getNumberOfRows_columns_:

   cols = mat.numberOfColumns()
   rows = mat.numberOfRows()

As long as everything is nicely documented: go ahead!

Dinu

--
Dinu C. Gherman
......................................................................
"I hope we get to the bottom of the answer. It's what I'm interested
to know." (George W. Bush, 26 Apr. 2000)