http://codereview.appspot.com/2013042/diff/1/2 File lib2to3/pytree.py (right): http://codereview.appspot.com/2013042/diff/1/2#newcode221 lib2to3/pytree.py:221: The next two methods are actually not used in ...
15 years, 12 months ago
(2010-08-20 12:17:09 UTC)
#2
It looks good. There are just some idomatic code issues. http://codereview.appspot.com/2013042/diff/1/6 File lib2to3/btm_matcher.py (right): http://codereview.appspot.com/2013042/diff/1/6#newcode11 ...
15 years, 12 months ago
(2010-08-20 19:41:12 UTC)
#3
15 years, 11 months ago
(2010-08-27 20:31:22 UTC)
#6
LGTM.
http://codereview.appspot.com/2013042/diff/1/8
File lib2to3/fixer_base.py (right):
http://codereview.appspot.com/2013042/diff/1/8#newcode68
lib2to3/fixer_base.py:68: self.pattern, self.pattern_tree = \
On 2010/08/27 20:16:16, gboutsioukis wrote:
> On 2010/08/20 19:41:12, Benjamin wrote:
> > Split into several statements.
>
> Splitting this statement introduces some overhead, as the pattern will have to
> be compiled again. The best solution would be to split compile_pattern into
two
> methods, and feed the pattern tree to the second, but isn't some ugliness
> preferable?
What? Can't you write:
compiler = PatternCompiler()
self.pattern, self.pattern_tree = compiler.compile_pattern(self.PATTERN,
with_tree=True)
Issue 2013042: 2to3 BottomMatcher patch
Created 15 years, 12 months ago by gboutsioukis
Modified 2 hours, 15 minutes ago
Reviewers: mvloewis, Benjamin, mdjr.1877
Base URL: http://svn.python.org/view/*checkout*/sandbox/trunk/2to3/
Comments: 42