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

Improve doctest coverage of misc/fpickle.pyx #12192

Open
saraedum opened this issue Dec 19, 2011 · 16 comments
Open

Improve doctest coverage of misc/fpickle.pyx #12192

saraedum opened this issue Dec 19, 2011 · 16 comments

Comments

@saraedum
Copy link
Member

I introduced some functions without doctests in #11716. This ticket tries to add the missing doctests to the these and other functions in that file.

This is part of doctest meta-ticket #12024.

Depends on #11819

Component: doctest coverage

Keywords: sd35

Work Issues: author needs to check the rebase

Author: Julian Rüth

Branch/Commit: u/saraedum/ticket/12192 @ c6ae8c9

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/12192

@saraedum
Copy link
Member Author

Author: Julian Rueth

@saraedum
Copy link
Member Author

comment:1

With the patch, -coverage gives:
SCORE devel/sage/sage/misc/fpickle.pyx: 100% (9 of 9)

@saraedum
Copy link
Member Author

Attachment: trac_12192.patch.gz

added docstrings

@saraedum
Copy link
Member Author

comment:2

I also moved call_pickled_function to where it belongs imho.

@saraedum
Copy link
Member Author

Changed keywords from none to sd35

@tscrim
Copy link
Collaborator

tscrim commented Oct 21, 2012

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Oct 21, 2012

comment:5

A few things:

  • Add fpickle documentation by modifying misc.rst.

  • Remove the second colon : from pickle_code().

  • Use automatic trac linking :trac:`11716`.

  • Use ``None`` in code format in the documentation (only place I see this not used it in unpickleMethod() inputs)

Thanks.

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@saraedum
Copy link
Member Author

Branch: u/saraedum/ticket/12192

@nbruin
Copy link
Contributor

nbruin commented Feb 26, 2014

comment:10

See #11845. Pickling involving python code objects are problematic, because python code objects do not give the same portability guarantees that proper pickling requires. It can still be very useful, though, and the code on that ticket is a bit more robust in the face of closures etc. Perhaps evaluate how much of #11845 we want and merge these two tickets?


New commits:

1208e1dTrac 12192: add docstrings to functions in misc/fpickle.pyx. cleaned up some implementations.
62aaf9aFixed docstring in misc/fpickle.py (adressed reviewer comments).

@nbruin
Copy link
Contributor

nbruin commented Feb 26, 2014

Commit: 62aaf9a

@saraedum
Copy link
Member Author

comment:11

Replying to @nbruin:

See #11845. Pickling involving python code objects are problematic, because python code objects do not give the same portability guarantees that proper pickling requires. It can still be very useful, though, and the code on that ticket is a bit more robust in the face of closures etc. Perhaps evaluate how much of #11845 we want and merge these two tickets?

Sorry, to be honest I don't understand. This just adds doctests to existing code. How are these related?

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@rwst
Copy link

rwst commented May 9, 2014

Work Issues: rebase

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 29, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

c6ae8c9Merge branch 'develop' into t/12192/ticket/12192

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 29, 2016

Changed commit from 62aaf9a to c6ae8c9

@saraedum
Copy link
Member Author

Changed work issues from rebase to author needs to check the rebase

@saraedum
Copy link
Member Author

Changed author from Julian Rueth to Julian Rüth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants