Skip to content
New issue

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

bpo-39455: Update linecache.rst #18184

Open
wants to merge 5 commits into
base: master
from

Conversation

@opensource-assist
Copy link
Contributor

opensource-assist commented Jan 25, 2020

Updated the documentation for the linecache module to include the functions getlines and updatecache.

https://bugs.python.org/issue39455

syncing
…linecache

Update linecache.rst
@opensource-assist opensource-assist changed the title Updated linecache.rst [3.9]Updated linecache.rst Jan 25, 2020
@opensource-assist opensource-assist changed the title [3.9]Updated linecache.rst [3.9] Updated linecache.rst Jan 25, 2020
@opensource-assist opensource-assist changed the title [3.9] Updated linecache.rst bpo-39455: Update linecache.rst Jan 25, 2020
.. function:: updatecache(filename, module_globals=None)

Update a cache entry and return its list of lines.
If something's wrong, print a message, discard the cache entry, and return an empty list.

This comment has been minimized.

Copy link
@eamanu

eamanu Jan 26, 2020

Contributor

It would be great if you can detail what is the meaning of the filename and module_globals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.