When I search for it using this command python -m pydoc file. seek
python -m pydoc file. seek
Brings this back to me
No Python documentation found for 'file.seek'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
I have been learning Python for a short time From the book learn python the hard way There is a drill that tells me to search for file.seek using pydoc
I am trying to find an answer to help me solve my problem and I expect to find an answer here
For
python -m pydoc file.seekto succeed, the file must be found in a search path. As the message says,Use help() to get the interactive help utility.In this case the file cannot be found. That is the issue. Let's try the command on a file that can be found and contains a function that exists.
So, for
python -m pydoc os.lseekthe module and function that we are looking for help on must exist.