Python design failures (was Re: Let's Talk About Lambda Functions!)
JB
jb at hotmail.com
Mon Jul 29 12:48:44 EDT 2002
Aahz wrote:
> In article <3d455445_9 at news.newsgroups.com>, JB
> <jb at hotmail.com> wrote:
>>Tim Peters wrote:
>>>
>>> two language features are mentioned as being "failed
>>> experiments" that only compatibility prevents throwing
>>> away:
>>>
>>> `back ticks`
>>> lambda
>>
>>(1) Why are back ticks a failure? I love them.
>
> If you're using backticks frequently, you're probably not
> programming
> Pythonically. There's already repr() to produce the same
> result as backticks, and backticks have the problem that
> in many fonts they're nearly indistinguishable from single
> quotes.
I do not understand this. I use __repr__ *and* backticks.
For example
class AnyClass:
defr __repr__(self):
...
a = AnyClass()
myfile.write(`a`)
I use this construction rather frequently. What is wrong
with it?
--
JB
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
More information about the Python-list
mailing list