On Thu, Feb 21, 2008 at 2:19 PM, Matt Wilson <[EMAIL PROTECTED]> wrote:
>
>  Thanks Roger!
>
>  I had written something fairly similar already.  I really wish there
>  was some validator decorator that would coerce the values into lists
>  for me.  Likewise, I wish the kwargs object was a special dictionary
>  that supported a "get_as_list" method.
>
>  IMHO, the python world should rethink making strings iterable.  I
>  would prefer that you had to cast a string into some "iterable string"
>  type before iterating across it.

They did, for Python 3000. In fact, Guido implemented it.  Then he
found out that it broke a LOT of things--not just in terms of
backwards compatibility of source code, but it in terms of how one
designs for strings.

The gory details are here:

http://mail.python.org/pipermail/python-3000/2006-April/000759.html

Guido's last message on the topic sums it up:

http://mail.python.org/pipermail/python-3000/2006-April/000883.html

"This change just isn't going to happen.  It's pushing up the daisies.
It's joined
the choir invisible. THIS IS AN EX-PROPOSAL!"

:-)
-- 
Tim Lesher <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to