hoytak / treedict

TreeDict is a fast, flexible and full-featured hierarchical python container that makes simple and sophisticated bookkeeping easy.
http://www.stat.washington.edu/~hoytak/code/treedict/
Other
30 stars 9 forks source link

Python-only version #1

Open majorz opened 13 years ago

majorz commented 13 years ago

Some environments like Google App Engine does not support C extensions and some operating systems come without pre-installed compiler. How about a fall-back version to Python only implementation for such systems?

hoytak commented 13 years ago

Thanks for the comment.

I do hope to get a binary distribution package up for windows as soon as I can spend the time to learn how to do distribution packages for windows. I'll see about doing that in the next few days.

As for a python fallback version, I agree that it would be a good idea and possibly one I should have engineered in from the start. Unfortunately, it would be a major amount of work to code a python-only version that passes all the unit tests and still has reasonable speed. There's a number of low-level operations implemented in C such as object hashing or locking branches when iterators are accessing them (to mimic the behavior of dict). I'll still see about it, though, and I'm open to suggestions.