gratuitous new features in 2.0

Robin Becker robin at jessikat.fsnet.co.uk
Fri Aug 25 03:24:44 EDT 2000


In article <slrn8qbdro.4aa.nascheme at cranky.arctrix.com>, Neil
Schemenauer <nascheme at enme.ucalgary.ca> writes
>Andrew Kuchling <akuchlin at mems-exchange.org> wrote:
>>Agreed; there is a small (but apparently growing) number of people
>>unhappy with the unprecedented slew of added features to 2.0.  I'm
>>particularly irked by weird special cases, like the .setdefault(key,
>>default_value) method of dictionaries that was recently added.
>
>My beef is with the new syntax for print.  I don't like new
>syntax unless absolutely necessary.  What would have been wrong
>with:
>
>    write(sys.stderr, "foo", "bar", "baz")
>
>instead of:
>
>    print >>sys.stderr, "foo", "bar", "baz"
>
>Yuck, it looks like C++ or Perl.  I'm with Andrew on the
>setdefault() method as well.
>
>  nas
here here, I hate the >> construct, why not 

        print in stderr items,.... 
        print + stderr items,.......
        print[stderr] items,.....
        print to stderr items,.....

I would prefer a writeln(stderr,item,.....), but then I can already do
that myself.

Adding the special case seems very poor design.
-- 
Robin Becker



More information about the Python-list mailing list