Re: [Rest2web-develop] None and Defaults
Brought to you by:
mjfoord
|
From: Michael F. <mi...@pc...> - 2005-08-16 19:48:26
|
Hello Nicola,
-----Original Message-----
>From: "Nicola Larosa"<ni...@te...>
>Sent: 16/08/05 20:05:46
>To: "res...@li..."<res...@li...>
>Subject: Re: [Rest2web-develop] None and Defaults
>> What about attribute access - we leaving it in ?
>
>I'd like to keep it, yes, but...
>
>
>> Lots of Section attributes clash with possible key names - 'defaults',
>> 'sections', 'scalars', etc
>
>...this is unacceptable. At the very least they could be renamed with
>double underscore before and after, or even better they should be separated
>in an appropriate namespace somehow. That's also true of ConfigObj parameters.
>
This is exactly why attribute access is bad.
The object namespace is the RIGHT place. These *are* public attributes of the section. Are you going to move section methods to another namespace as well ? (a rhetorical question).
All the private attributes/methods already start with a single underscore.
>Let's decide on an approach and I'll do the dirty work, promised. :-)
>
I'm -1 on moving/removing Section/ConfigObj attributes.
I don't *mind* leaving attribute access in - but I don't like it especially.
Best Regards,
Fuzzyman
http://www.voidspace.org.uk/python
>--
>Nicola Larosa - ni...@te...
>
>Python is the best thing I've seen in 30 years of computing for
>pedogogical and productive purposes. Only when I want speed do I
>see a need for something else. -- Chuck Allison, June 2005
>
>
>
>-------------------------------------------------------
>SF.Net email is Sponsored by the Better Software Conference & EXPO
>
> >
[Message truncated. Tap Edit->Mark for Download to get remaining portion.]
|