File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1111,7 +1111,7 @@ cdef class FinitePolyExtElement(FiniteRingElement):
1111
1111
integer_representation = deprecated_function_alias(33941 , to_integer)
1112
1112
1113
1113
def to_bytes (self , byteorder = " big" ):
1114
- """
1114
+ r """
1115
1115
Return an array of bytes representing an integer.
1116
1116
1117
1117
Internally relies on the python ``int. to_bytes( ) `` method.
Original file line number Diff line number Diff line change @@ -7164,16 +7164,15 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
7164
7164
raise ValueError (" algorithm must be one of: 'pari' or 'gmp' (alias: 'mpir')" )
7165
7165
7166
7166
def to_bytes (self , length = 1 , byteorder = " big" , is_signed = False ):
7167
- """
7167
+ r """
7168
7168
Return an array of bytes representing an integer.
7169
7169
7170
7170
Internally relies on the python ``int. to_bytes( ) `` method.
7171
7171
7172
7172
INPUT:
7173
7173
7174
7174
- ``length`` -- positive integer ( default: ``1``) ; integer is represented in
7175
- ``length`` bytes. ``OverflowError`` is raised if the integer is not representable
7176
- with the given length.
7175
+ ``length`` bytes
7177
7176
7178
7177
- ``byteorder`` -- str ( default: ``"big"``) ; determines the byte order of
7179
7178
the output; can only be ``"big"`` or ``"little"``
@@ -7185,9 +7184,11 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
7185
7184
7186
7185
- Bytes representing ``self``
7187
7186
7188
- .. TODO:: It should be possible to convert straight from the gmp type in cython.
7189
- This could be significantly faster, but I am unsure of the fastest and cleanest
7190
- way to do this.
7187
+ .. TODO::
7188
+
7189
+ It should be possible to convert straight from the gmp type in cython.
7190
+ This could be significantly faster, but I am unsure of the fastest and cleanest
7191
+ way to do this.
7191
7192
7192
7193
EXAMPLES::
7193
7194
You can’t perform that action at this time.
0 commit comments