python - why built in function next(iter_obj) when we have method iter_obj.next() -


this question has answer here:

i'm new python ,and trying figure out why 2 ways? specific reason? 1 better?

i've tried searching not able find it.

the simplest answer justification similar next(x) len(x). fredrik lund summarises guido's response on topic in this article.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -