On Nov 25, 10:49 pm, Chris Rebert <c...@rebertia.com> wrote: > On Wed, Nov 25, 2009 at 6:35 PM, The Music Guy > > <fearsomedragon...@gmail.com> wrote: > > Hello all, > > > I just posted to my blog about a feature that I'd like to see added to > > Python. Before I go through the trouble of learning how to write a PEP or > > how to extend the Python interpreter, I want to know what people in the > > community have to say about it. > > >http://alphaios.blogspot.com/2009/11/python-string-inferred-names-wor... > > > As far as I know, a feature like this does not appear in any existing PEPs. > > (If it does I would appreciate it if someone could tell me what PEP it is.) > > > Please give and comments you may have, but I request that you be > > constructive if you must criticize...thank you! > > Ugly, Perlish, and as you even admit, entirely unnecessary. > And you'd need to wait at least a year > anyway:http://www.python.org/dev/peps/pep-3003/ > > Cheers, > Chris > --http://blog.rebertia.com
Like I said, lots of things in Python are "unnecessary," but that doesn't make them "useless," and it certainly doesn't mean they shouldn't exist. My proposed feature is not useless; I think it would make a lot of code easier. As for it being ugly...well, that's really a matter of opinion and experience. How ugly it looks to you will be a product of how well you think it can be used, and how well you use it yourself. When I first looked at decorators, I thought they were not only ugly but confusing. Now that I understand them, however, I hardly consider them "ugly," and see them as a shining example of Python's abilities. (By the way, decorators are another example of a feature that is "entirely unnecessary," but still very useful.) As for the wait, that's to be expected. I'm willing to wait. -- http://mail.python.org/mailman/listinfo/python-list