Skip to content

Commit

Permalink
Properly output frozenset object in pycdas
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace314159 committed Feb 14, 2023
1 parent f00921d commit 80e835e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pycdas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ void output_object(PycRef<PycObject> obj, PycModule* mod, int indent,
iputs(indent, "}\n");
}
break;
case PycObject::TYPE_FROZENSET:
{
iputs(indent, "frozenset({\n");
for (const auto& val : obj.cast<PycSet>()->values())
output_object(val, mod, indent + 1, flags);
iputs(indent, "})\n");
}
break;
case PycObject::TYPE_NONE:
iputs(indent, "None\n");
break;
Expand Down

0 comments on commit 80e835e

Please sign in to comment.