[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Python dynamic attribute creation
From:       Andre Alexander Bell <post () andre-bell ! de>
Date:       2010-06-30 9:01:54
Message-ID: 4C2B0802.7000105 () andre-bell ! de
[Download RAW message or body]

On 06/29/2010 06:46 PM, WANG Cong wrote:
> On 06/29/10 17:48, Andre Alexander Bell <post@andre-bell.de> wrote:
>>>>> var a
>>>>> a
>> -> should raise an variable 'unset' exception
>>
>> Keep in mind that the module you are writing in is just an object as is
>> any function or method. So using local variables therein you are doing
>> exactly what you want to abandon from the OOP part.
>>
> 
> Hmm, this looks really appealing.

I actually very much prefer Python's implementation with direct
assignment, just because it's short and comprehensible.

Regards


Andre

-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic