Do pythons like sugar?
Afanasiy
abelikov72 at hotmail.com
Thu Jan 9 05:47:13 EST 2003
More information about the Python-list mailing list
Thu Jan 9 05:47:13 EST 2003
- Previous message (by thread): Do pythons like sugar?
- Next message (by thread): Do pythons like sugar?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 09 Jan 2003 03:25:41 -0700, some Dalke wrote: >Afanasiy wrote: >>>A few languages provide syntax sugar for dealing with >>>this by allowing you to localize the class scope. >>> >>>Does Python? eg. `with self do:` > >> So the answer is a definitive no? I want to do things as I have them, >> I don't want to change my design just to be able to type 'self' less. > >It's a definite no. From previous accounts, said sugar is hiding >rat poison. It's advantages are slight to its disadvantages. Eg, >for your case it would have hid a poor implementation rather than >yield a better one. You don't know what I am doing. My design is perfect. In my situation, your way is wrong. I am not looking to hide a poor implementation. That's a rude assumption. >> Is there any tricky one-liner that brings object members in scope? > >Yes but I won't tell. You shouldn't use it. Excellent, thanks.
- Previous message (by thread): Do pythons like sugar?
- Next message (by thread): Do pythons like sugar?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list