[Erp5-dev] showDict - why reference, if name _might_ suggest copy?

Łukasz Nowak lukasz.nowak at ventis.com.pl
Wed Jun 27 12:15:28 CEST 2007


Hello,

I've spotted little error why playing on developer site. Reading
function name 'showDict' I assume that it will return copy of object
dict, and modified it - well, it was little disaster, but it is normal
on developer site ;)

I'm only asking about naming convention - shall be showDict[1] renamed
to getDict for returning reference, or shall it return copy of dict when
named showDict?

Luke

[1]http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?revision=14978&view=markup#showDict

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''



More information about the Erp5-dev mailing list