Is it bad practise to write __all__ like that
markferg at gmail.com
Thu Jul 28 15:22:52 CEST 2011
I've not really got the hang of decorators yet, so I was wondering why one
might use your approach rather than just using Karim's original method?
I only really use python for smallish, utility programs, so I suppose I
haven't come across an issue complex enough to see a clear advantage in
using decorators. I'm still looking for that 'a ha!' moment when it all
becomes clear to me. Could it be that simple examples of decorators end up
being overkill for the problem they are solving, elegant though the code may
For anyone else, what was itch that decorators solved, such that they became
an additional tool in the their kit bag?
On 28 July 2011 14:00, Karim <karim.liateni at free.fr> wrote:
> On 07/28/2011 02:29 PM, Thomas Rachel wrote:
>> __all__ = AllList()
> Hello Thomas,
> Very beautiful and elegant code. Having both at the same time an instance
> and a method...
> With this 'small' topic, you taught me something today on property
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list