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
bob
bob.core
Commits
b5b85d14
Commit
b5b85d14
authored
Nov 30, 2015
by
Manuel Günther
Browse files
Fixed last issue with __repr__ functions
parent
cd6298fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/core/random/discrete.cpp
View file @
b5b85d14
...
@@ -354,10 +354,10 @@ static PyObject* PyBoostDiscrete_Repr(PyBoostDiscreteObject* self) {
...
@@ -354,10 +354,10 @@ static PyObject* PyBoostDiscrete_Repr(PyBoostDiscreteObject* self) {
auto
prob_str_
=
make_safe
(
prob_str
);
auto
prob_str_
=
make_safe
(
prob_str
);
return
PyString_FromFormat
(
return
PyString_FromFormat
(
"%s(dtype='%s' , probabilities=%
U
)"
,
"%s(dtype='%s' , probabilities=%
s
)"
,
Py_TYPE
(
self
)
->
tp_name
,
Py_TYPE
(
self
)
->
tp_name
,
PyBlitzArray_TypenumAsString
(
self
->
type_num
),
PyBlitzArray_TypenumAsString
(
self
->
type_num
),
prob_str
PyString_AS_STRING
(
prob_str
)
);
);
}
}
...
...
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