Distinguishing attribute name from varible name to make codes clear and definite
Denis McMahon
denismfmcmahon at gmail.com
Thu Aug 21 10:23:38 EDT 2014
On Thu, 21 Aug 2014 22:13:32 +0800, luofeiyu wrote:
> I feel that self.x and x will be confused in the following codes.
Then don't call them self.x and x, call them self.internal_x and param_x,
or any other pair of different names.
You are the one who chooses what names to use in your code.
--
Denis McMahon, denismfmcmahon at gmail.com
More information about the Python-list
mailing list