Ticket #5529 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

[with patch, positive review] bring documentation of classical.py to 100%

Reported by: mvngu Owned by: tba
Priority: minor Milestone: sage-3.4.1
Component: documentation Keywords: classical.py, doctest
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

As the subject says.

Attachments

trac_5529_doc.patch Download (26.4 KB) - added by mvngu 4 years ago.
5529-new.patch Download (13.5 KB) - added by jhpalmieri 4 years ago.
apply this on top of the other patch

Change History

Changed 4 years ago by mvngu

comment:1 Changed 4 years ago by mvngu

  • Summary changed from bring documentation of classical.py to 100% to [with patch, needs review] bring documentation of classical.py to 100%

The patch trac_5529_doc.patch should bring the documentation coverage of sage.crypto.classical.py to 100%... woo hoo...

comment:2 Changed 4 years ago by jhpalmieri

Looks good, mostly. I've made a few small changes and a few bigger ones. The small changes: I changed "EXAMPLE::" to "EXAMPLES::" several times. I changed "\mathbb{Z}" to "\mathbf{Z}" since this is the Sage style: try latex(ZZ). One line wasn't indented quite far enough, and I did a little minor rewording.

The more major changes: in the reference manual, methods which begin with an underscore don't appear. For the most part, this doesn't bother me, but __init__ methods often have important documentation, so for this file, I moved the docs for the __init__ methods up a level to documentation for the class. This way it appears in the reference manual (as the first thing for the class) and also when you run sage and type HillCryptosystem?, for example.

I give mvngu's part of this a positive review, so only my patch needs reviewing.

Changed 4 years ago by jhpalmieri

apply this on top of the other patch

comment:3 Changed 4 years ago by mvngu

  • Summary changed from [with patch, needs review] bring documentation of classical.py to 100% to [with patch, positive review] bring documentation of classical.py to 100%

The patch 5529-new.patch applies fine against Sage 3.4, all doctests passed even with -long option. Rebuilding the HTML version of the reference manual, I see that documentation of many _init__ methods are now visible. So positive review for jhpalmieri's part.

comment:4 Changed 4 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged both patches in Sage 3.4.1.alpha0.

Cheers,

Michael

Note: See TracTickets for help on using tickets.