diff options
author | Marion <marion.zepf@gmail.com> | 2013-09-13 21:20:43 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-09-13 21:20:43 (GMT) |
commit | c300faeae404de755dfec661863f3b567bea9672 (patch) | |
tree | d6e6b1f01815dbfebe062c200a5376a73d5dba2a /util | |
parent | b1ed9f3f6f7f3dbf56588c5243093b547ddb18a1 (diff) |
remove obsolete TODOs in the code
Diffstat (limited to 'util')
-rw-r--r-- | util/codegen.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/codegen.py b/util/codegen.py index 2390daf..9678ae5 100644 --- a/util/codegen.py +++ b/util/codegen.py @@ -68,7 +68,7 @@ class SourceGenerator(NodeVisitor): """ UNARYOP_SYMBOLS = {Invert: "~", Not: "not", UAdd: "+", USub: "-"} - # TODO avoid turning (-1)**2 into -1**2 + # TODO use parentheses around expressions only where necessary BINOP_SYMBOLS = {Add: "+", Sub: "-", Mult: "*", Div: "/", Mod: "%", LShift: "<<", RShift:">>", BitOr: "|", BitXor: "^", BitAnd: "&", FloorDiv: "//", Pow: "**"} @@ -220,7 +220,6 @@ class SourceGenerator(NodeVisitor): paren_or_comma() self.write('**') self.visit(node.kwargs) - # TODO wtf??? self.write(have_args and '):' or ':') self.body(node.body) @@ -416,7 +415,6 @@ class SourceGenerator(NodeVisitor): if idx: self.write(', ') self.visit(item) - # TODO wtf??? self.write(idx and ')' or ',)') def sequence_visit(left, right): |