Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
e1750612
Commit
e1750612
authored
Jan 31, 2018
by
rna
Committed by
Andreas Schmidt
Feb 09, 2018
Browse files
Add __repr__ call for PrrtCodingConfiguration.
parent
a067f46c
Pipeline
#1911
failed with stages
in 1 minute and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/prrt.pyx
View file @
e1750612
...
...
@@ -98,6 +98,9 @@ cdef class PrrtCodingConfiguration:
if
self
.
_c_config
!=
NULL
:
cprrt
.
PrrtCodingParams_destroy
(
self
.
_c_config
)
def
__repr__
(
self
):
return
"PrrtCodingConfiguration(n={},k={},n_cycle=[{}])"
.
format
(
self
.
n
,
self
.
k
,
","
.
join
(
map
(
str
,
self
.
n_cycle
)))
cdef
copy
(
self
,
cprrt
.
PrrtCodingParams
*
other
):
cprrt
.
PrrtCodingParams_destroy
(
self
.
_c_config
)
self
.
_c_config
=
other
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment