Skip to content

Commit 6925a6d

Browse files
author
Release Manager
committed
Trac #34797: some formatting for NOTE:: blocks
mostly in pyx files URL: https://trac.sagemath.org/34797 Reported by: chapoton Ticket author(s): Frédéric Chapoton Reviewer(s): David Coudert
2 parents 446b620 + 8169b3a commit 6925a6d

File tree

11 files changed

+33
-28
lines changed

11 files changed

+33
-28
lines changed

src/sage/geometry/newton_polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def __pow__(self, exp, ignored=None):
272272
273273
This Newton polygon scaled by a factor ``exp``.
274274
275-
NOTE::
275+
.. NOTE::
276276
277277
If ``self`` is the Newton polygon of a polynomial `f`, then
278278
``self^exp`` is the Newton polygon of `f^{exp}`.

src/sage/libs/linkages/padics/relaxed/flint.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ cdef inline void digit_smallest(cdigit res, cdigit carry, cdigit a, PowComputer_
259259
- ``a`` -- a ``cdigit``, the digit to reduce
260260
- ``prime_pow`` -- the PowComputer for the ring
261261
262-
NOTE::
262+
.. NOTE::
263263
264264
This function assumes that ``a`` is always reduced in the
265265
usual sense, that is belongs to the range `[0, p-1]`.
@@ -383,7 +383,7 @@ cdef inline void element_get_slice(fmpz_poly_t res, fmpz_poly_t x, slong start,
383383
- ``start`` -- an integer, the start position of the slice
384384
- ``length`` -- an integer, the length of the slice
385385
386-
NOTE::
386+
.. NOTE::
387387
388388
The function only sets up a pointer to the requested slice
389389
(the slice is not copied). Hence any future modification

src/sage/misc/latex_standalone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _repr_(self):
346346
347347
It contains the first few and last few lines of the content.
348348
349-
NOTE::
349+
.. NOTE::
350350
351351
Use ``print(t)`` or ``str(t)`` to show or get the full content.
352352

src/sage/rings/padics/factory.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2949,12 +2949,12 @@ def ZpLF(p, prec=None, *args, **kwds):
29492949
29502950
See documentation for :func:`Zp` for a description of the input parameters.
29512951
2952-
NOTE:
2952+
.. NOTE::
29532953
2954-
The precision is tracked using automatic differentiation
2955-
techniques (see [CRV2018]_ and [CRV2014]_).
2956-
Floating point `p`-adic numbers are used for the computation
2957-
of the differential (which is then not exact).
2954+
The precision is tracked using automatic differentiation
2955+
techniques (see [CRV2018]_ and [CRV2014]_).
2956+
Floating point `p`-adic numbers are used for the computation
2957+
of the differential (which is then not exact).
29582958
29592959
EXAMPLES::
29602960

src/sage/rings/padics/local_generic_element.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,10 @@ cdef class LocalGenericElement(CommutativeRingElement):
737737
738738
The square root or the list of all square roots of this element.
739739
740-
NOTE:
740+
.. NOTE::
741741
742-
The square root is chosen (resp. the square roots are ordered) in
743-
a deterministic way, which is compatible with change of precision.
742+
The square root is chosen (resp. the square roots are ordered) in
743+
a deterministic way, which is compatible with change of precision.
744744
745745
EXAMPLES::
746746

src/sage/rings/padics/padic_capped_absolute_element.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ cdef class pAdicCappedAbsoluteElement(CAElement):
320320
this valuation (and beyond) to see if they can contribute to the
321321
series.
322322
323-
NOTE::
323+
.. NOTE::
324324
325325
The function does not check that its argument ``self`` is
326326
1 in the residue field. If this assumption is not fulfilled

src/sage/rings/padics/padic_fixed_mod_element.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ cdef class pAdicFixedModElement(FMElement):
389389
this valuation (and beyond) to see if they can contribute to the
390390
series.
391391
392-
NOTE::
392+
.. NOTE::
393393
394394
The function does not check that its argument ``self`` is
395395
1 in the residue field. If this assumption is not fulfilled
@@ -459,7 +459,7 @@ cdef class pAdicFixedModElement(FMElement):
459459
- ``aprec`` -- an integer, the precision to which to compute the
460460
exponential
461461
462-
NOTE::
462+
.. NOTE::
463463
464464
The function does not check that its argument ``self`` is
465465
the disk of convergence of ``exp``. If this assumption is not
@@ -523,7 +523,7 @@ cdef class pAdicFixedModElement(FMElement):
523523
method. See :meth:`log` for more details about the possible
524524
algorithms.
525525
526-
NOTE::
526+
.. NOTE::
527527
528528
The function does not check that its argument ``self`` is
529529
the disk of convergence of ``exp``. If this assumption is not

src/sage/rings/padics/padic_generic_element.pyx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,10 @@ cdef class pAdicGenericElement(LocalGenericElement):
20042004
- ``self`` -- a p-adic element
20052005
- ``p`` -- a prime (default: None). If specified, will make sure that p==self.parent().prime()
20062006
2007-
NOTE: The optional argument p is used for consistency with the valuation methods on integer and rational.
2007+
.. NOTE::
2008+
2009+
The optional argument p is used for consistency with the valuation
2010+
methods on integer and rational.
20082011
20092012
OUTPUT:
20102013
@@ -2126,8 +2129,10 @@ cdef class pAdicGenericElement(LocalGenericElement):
21262129
- ``self`` -- a p-adic element
21272130
- ``p`` -- a prime (default: ``None``). If specified, will make sure that ``p == self.parent().prime()``
21282131
2129-
NOTE: The optional argument p is used for consistency with the valuation methods on integer and rational.
2132+
.. NOTE::
21302133
2134+
The optional argument p is used for consistency with the valuation
2135+
methods on integer and rational.
21312136
21322137
OUTPUT:
21332138
@@ -2456,7 +2461,7 @@ cdef class pAdicGenericElement(LocalGenericElement):
24562461
this valuation (and beyond) to see if they can contribute to the
24572462
series.
24582463
2459-
NOTE::
2464+
.. NOTE::
24602465
24612466
The function does not check that its argument ``self`` is
24622467
1 in the residue field. If this assumption is not fulfilled

src/sage/rings/tate_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ def precision_cap(self):
11471147
"""
11481148
Return the precision cap of this Tate algebra.
11491149
1150-
NOTE::
1150+
.. NOTE::
11511151
11521152
The precision cap is the truncation precision
11531153
used for arithmetic operations computed by

src/sage/rings/tate_algebra_element.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,9 +1715,9 @@ cdef class TateAlgebraElement(CommutativeAlgebraElement):
17151715
the precision at which the result is computed, if ``None``,
17161716
the result is truncated according to the cap of the parent
17171717
1718-
NOTE:
1718+
.. NOTE::
17191719
1720-
The ``n``-th root is computed as `\exp(\frac 1 n \log(f))`.
1720+
The ``n``-th root is computed as `\exp(\frac 1 n \log(f))`.
17211721
17221722
EXAMPLES::
17231723
@@ -3318,7 +3318,7 @@ cdef class TateAlgebraElement(CommutativeAlgebraElement):
33183318
33193319
- ``divisors`` -- a series, or a list of series
33203320
3321-
NOTE::
3321+
NOTE:
33223322
33233323
The condition on the remainder is that it has
33243324

0 commit comments

Comments
 (0)