|
|
|
|
|
by jph00
689 days ago
|
|
I wrote a few things with each of FT and htpy, and looked at the resulting code -- I felt like the htpy approach was slightly less neat personally. htpy has the benefit that '.' and '#' can have special meanings, but the downside of needing to use both __getitem__ and __call__. I didn't feel like that was a tradeoff I wanted to make. I actually originally wrote FT for a different purpose (XML for language model input) so id and class attributes weren't of any interest at all at that time! Also, I was able to implement FT using just 2 lines of code -- it felt like a very natural data structure that was a good fit with Python. Having said all that, I think htpy is really nifty and elegant. :D |
|