We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generally this section is misleading.
I understand what writer wanted to say but its not correct.
map() returns an iterator not list. Therefore in text on few places is mentioned that map() returns list.
Therefore use case for map over list comprehension is let's say bit different and with map can be more memory efficient.
I'm just pointing out, so that section can be bit adjusted, but rest standing.
The text was updated successfully, but these errors were encountered:
Generator expressions are lazy and (AFAIK) accepted anywhere a map object would be:
map
>>> ' '.join(map(str, range(5))) == ' '.join(str(i) for i in range(5)) True
Sorry, something went wrong.
No branches or pull requests
Generally this section is misleading.
I understand what writer wanted to say but its not correct.
map() returns an iterator not list. Therefore in text on few places is mentioned that map()
returns list.
Therefore use case for map over list comprehension is let's say bit different and with map
can be more memory efficient.
I'm just pointing out, so that section can be bit adjusted, but rest standing.
The text was updated successfully, but these errors were encountered: