[pypy-dev] gdbm

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Nov 16 17:38:25 CET 2010


On 04:27 pm, drsalists at gmail.com wrote:
>On Tue, Nov 16, 2010 at 4:17 AM, Antonio Cuni <anto.cuni at gmail.com> 
>wrote:
>>Sounds fine, do you feel like implementing it? :-)
>>
>>Moreover, I also agree with amaury that your code is very similar to 
>>the
>>one in the current dbm.py, so we should maybe try to refactor things 
>>to
>>share common parts between the twos.
>I'd be happy to.
>
>Would sharing based on inheritance or a more functional approach be
>preferred?

No, avoid inheritance where possible.  Composition is preferred.

As for "functional", I don't really know what approach you're describing 
with that word.

Jean-Paul



More information about the Pypy-dev mailing list