Commit 4c743cb6 authored by Dong-hee,Na's avatar Dong-hee,Na

implementation of dictionary's recursive printing (format)

parent 79b6133a
...@@ -34,9 +34,8 @@ Box* dictRepr(BoxedDict* self) { ...@@ -34,9 +34,8 @@ Box* dictRepr(BoxedDict* self) {
int status = Py_ReprEnter((PyObject*)self); int status = Py_ReprEnter((PyObject*)self);
std::vector<char> chars; std::vector<char> chars;
if(status != 0) if (status != 0) {
{ if (status < 0)
if(status < 0)
return boxString(llvm::StringRef(&chars[0], chars.size())); return boxString(llvm::StringRef(&chars[0], chars.size()));
chars.push_back('{'); chars.push_back('{');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment