This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python] StdStringPrinter misleading?


El vie, 03-04-2009 a las 13:06 -0600, Tom Tromey escribiÃ:
> Phil> And an additional len parameter to string:
> Phil> return self.val['_M_dataplus']['_M_p'].string(encoding, len)
> 
> I guess you added the new argument between 'encoding' and 'errors'?
> 
> Normally I would say great -- as a general rule I think we should
> order positional arguments according to expected frequency of use.

Agreed.

> However in this particular case, there's already Python APIs using the
> "encoding, errors" sorting; so I would tend to put length last, and
> then access it via a keyword argument.

Are we already at a point were we should be cautious about changing the
API because it is already being used out there?
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]