Idiosyncratic python

paul.hermeneutic at gmail.com paul.hermeneutic at gmail.com
Thu Sep 24 08:50:05 EDT 2015


> A lot of our in base weird python comes from heavily C-wired people:
>
> The classic
> for i in range(len(alist)):
>   print alist[i]
>
> with its twin brother
>
> i=0
> while i < len(alist):
>   print alist[i]
>   i += 1
>
> And the even more annoying
>
> result = Result()
> getResult(result)
>
> JM

Please follow up with good ways to write these. I hear that creating one
really good way is a Python maxim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150924/533ce150/attachment.html>


More information about the Python-list mailing list