learnpython.org - an online interactive Python tutorial
Dan Stromberg
drsalists at gmail.com
Fri Apr 22 19:48:39 EDT 2011
On Thu, Apr 21, 2011 at 11:38 PM, harrismh777 <harrismh777 at charter.net>wrote:
>
> Yes. And you have managed to point out a serious flaw in the overall logic
> and consistency of Python, IMHO.
>
> Strings should auto-type-promote to numbers if appropriate.
Please no. It's a little more convenient sometimes when you're coding, but
it adds bugs that aren't worth the small benefit.
Explicit is better than implicit.
http://www.python.org/dev/peps/pep-0020/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110422/7637c612/attachment-0001.html>
More information about the Python-list
mailing list