pvande/pystache — comment on commit e06bed513dd380bb7760a2bf69af2f7bc0edf405
File:  line 0
By cjerdonek:

I'm preparing/thinking about merging this into pystache's go-forward [development branch](https://github.com/defunkt/pystache/tree/development). But before I do that, I wanted to hear from you about the state of the code as of this commit -- if you can still remember anything or have further thoughts.

I understand you feel it's [not Pythonic enough, etc](https://github.com/defunkt/pystache/issues/38#issuecomment-2892268), which is fine. This will just be a starting point. What's important is that it looks like this will at least advance the parsing logic a fair bit from where it is now in terms of compliance.

My questions are as follows:

(1) When I run the spec tests (`python tests/test_spec.py`) on this commit, I see two spec-test failures (see the bottom of this comment for the two failures). Are those to be expected -- is there an explanation for those?

(2) Also, when I run `nosetests` with no arguments, I'm seeing 33 failures on the other unit tests. Do you know the background on those -- was there a reason you weren't able to get those unit tests to pass?

(3) Any other thoughts -- was there anything you were in the middle of or struggled with or had thoughts on improving?

Thanks a lot.

======================================================================
FAIL: Interpolated lambdas should only be called once.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_spec.py", line 35, in test
self.assertEquals(pystache.render(template, data), expected)
AssertionError: u'1 == 2 == 3' != '1 == 1 == 1'

======================================================================
FAIL: Lambdas used for sections should receive the raw section string.
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_spec.py", line 35, in test
self.assertEquals(pystache.render(template, data), expected)
AssertionError: u'' != ''

----------------------------------------------------------------------
Ran 82 tests in 0.375s

FAILED (failures=2)