Skip to content

Commit 9677da3

Browse files
committed
README.rst: use tuples in description and examples
1 parent c526823 commit 9677da3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ of this package is to make them available through a generic python
1414
interface. The package consists of a single module containing a single
1515
function that returns a dict of dicts, ``conway_polynomials.database()``.
1616
The dictionary's format is ``{p => {n => coefficients}}``, where ``p``
17-
represents your prime and ``n`` your degree. The list of coefficients
17+
represents your prime and ``n`` your degree. The tuple of coefficients
1818
is returned in ascending order; that is, the first coefficient (at
1919
index zero) is for the constant (degree zero) term.
2020

@@ -36,13 +36,13 @@ degree n=5::
3636
>>> import conway_polynomials
3737
>>> cpdb = conway_polynomials.database()
3838
>>> cpdb[2][5]
39-
[1, 0, 2, 0, 0, 5]
39+
(1, 0, 2, 0, 0, 5)
4040

4141
The result is cached, so subsequent computations should be fast even
4242
if you call the function again::
4343

4444
>>> conway_polynomials.database()[5][5]
45-
[3, 4, 0, 0, 0, 1]
45+
(3, 4, 0, 0, 0, 1)
4646

4747
Testing
4848
=======

0 commit comments

Comments
 (0)