> there are subtle issues like
>
>   ('hello %s'
>    'world' % 42)

Thank goodness the % formatting operator is going away.  Having the same 
precendence as the modulo-operation has not been a good thing.


Raymond
--- Begin Message ---
On 4/10/07, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
Thanks for the reminder.  I expect to write two:

* PEP to eliminate __del__ in favor of weakref idioms

* PEP on simpler alternative to abstract-base-classes
suggesting an occasional method special attribute
(so for instance a __getitem__ method can tell you
whether it thinks it is a sequence or mapping).

Here's that I think might not need a PEP:

* Eliminate implicit string concatenation:   "abc" "def"
in favor of an explicit + operation.  That simplifies
the grammar just a bit and the compiler already is
smart enough to do constant fold this operation at
compile time.  When there are multi-line concats, I think
the parenthesis serves us much better than a trailing \
which is ugly and relies on having no trailing whitespace.
Replace:
   'hello         ' \
   'world         '
With:
   ('hello        ' +
    'world        ')

That needs a PEP too; there are subtle issues like

  ('hello %s'
   'world' % 42)

--
--Guido van Rossum (home page: http://www.python.org/~guido/)

--- End Message ---
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to