On 4/27/2016 7:07 PM, Ben Finney wrote:
I would say the latter is more Pythonic, because it:
* Better conveys the intention (“set the value of the ‘self.key’
attribute”).
* Uses the built-in mechanisms of Python (don't invoke magic attributes,
instead use the system that makes use of them behind the scenes).
* Expresses that intention more concisely (fewer terms).
* Expresses that intention more clearly (less syntactic noise).
In short, my original code before I turned it into a separate
dictionary. *sigh*
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list