diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-03 02:38:44 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-03 02:38:44 (GMT) |
commit | 5df1108de262d8c181d4fad75f81ad309ce968e1 (patch) | |
tree | 4dafd5682d219ebb19c21cf64f5f9d11ede98706 /Python/import.c | |
parent | 3bb1a6f990d5e7f86e9c33b3283e69408343eddd (diff) | |
download | cpython-5df1108de262d8c181d4fad75f81ad309ce968e1.zip cpython-5df1108de262d8c181d4fad75f81ad309ce968e1.tar.gz cpython-5df1108de262d8c181d4fad75f81ad309ce968e1.tar.bz2 |
Add signatures to the docstring of functions added to imp by PEP 3147
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 1dbe544..e721498 100644 --- a/Python/import.c +++ b/Python/import.c @@ -3534,7 +3534,8 @@ imp_cache_from_source(PyObject *self, PyObject *args, PyObject *kws) } PyDoc_STRVAR(doc_cache_from_source, -"Given the path to a .py file, return the path to its .pyc/.pyo file.\n\ +"cache_from_source(path, [debug_override]) -> path\n\ +Given the path to a .py file, return the path to its .pyc/.pyo file.\n\ \n\ The .py file does not need to exist; this simply returns the path to the\n\ .pyc/.pyo file calculated as if the .py file were imported. The extension\n\ @@ -3569,7 +3570,8 @@ imp_source_from_cache(PyObject *self, PyObject *args, PyObject *kws) } PyDoc_STRVAR(doc_source_from_cache, -"Given the path to a .pyc./.pyo file, return the path to its .py file.\n\ +"source_from_cache(path) -> path\n\ +Given the path to a .pyc./.pyo file, return the path to its .py file.\n\ \n\ The .pyc/.pyo file does not need to exist; this simply returns the path to\n\ the .py file calculated to correspond to the .pyc/.pyo file. If path\n\ |