bslatkin / effectivepython

Effective Python: Second Edition — Source Code and Errata for the Book
https://effectivepython.com
2.2k stars 710 forks source link

Item36-Page138-help function #97

Closed forrestgao closed 1 month ago

forrestgao commented 3 years ago

Whenever you find yourself dealing with tricky iteration code, it’s worth looking at the itertools documentation again to see if there’s anything in there for you to use (see help(itertools)).

help(itertools) should be: help('itertools')

bslatkin commented 1 month ago

Thank you for the report! My assumption is that the itertools module is already imported, so this is calling the help function on that module object.