Opened 13 years ago

Closed 10 years ago

## #6880 closed defect (worksforme)

# docstrings and @cached_method -- if you used cached_method then docstring displays wrong file, etc.

Reported by: | William Stein | Owned by: | tba |
---|---|---|---|

Priority: | minor | Milestone: | sage-duplicate/invalid/wontfix |

Component: | documentation | Keywords: | |

Cc: | Merged in: | ||

Authors: | Reviewers: | Simon King | |

Report Upstream: | N/A | Work issues: | |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

If you used the `@cached_method`

decorator when defining a function in the Sage library, then get help about it (either in the notebook or command line), the File: field lis as follows:

File: /.../local/lib/python2.6/site-packages/sage/misc/cachefunc.py

That's of course technically right, but very wrong/misleading for the user, who maybe wants to know more. We should add specialized code to IPython and the notebook to correct for this.

### Change History (3)

### comment:1 Changed 10 years ago by

Report Upstream: | → N/A |
---|---|

Reviewers: | → Simon King |

Status: | new → needs_review |

### comment:2 Changed 10 years ago by

Milestone: | sage-5.1 → sage-duplicate/invalid/wontfix |
---|---|

Status: | needs_review → positive_review |

### comment:3 Changed 10 years ago by

Resolution: | → worksforme |
---|---|

Status: | positive_review → closed |

**Note:**See TracTickets for help on using tickets.

This problem has already been fixed (by some work in sage.misc.sageinspect - sorry, I am too lazy to look up the ticket number). For example:

Hence, we can close this.