Categories

pytst 0.96 : warning, API changes

OK, I should have done this waaaaaaay before. Anyway, I’ve made those changes to the API :

  • TST.almost(string,maximum_distance,filter,action) has been renamed to TST.close_match(string,maximum_distance,filter,action)
  • TST.common_prefix(string,filter,action) has been renamed to TST.prefix_match(string,filter,action)
  • walk now takes an optional parameter : TST.walk(filter,action,start=None). If start is provided, the walk starts there, giving you all entries in the tree whose key begins with the given string.
  • The NullFilter class is removed, since it is useless. Just pass None if you don’t want any filter.

I’m sorry if the migration poses any problems, all the more so that I’m the first who has to refactor some code :) . The method names were very bad, common_prefix was especially confusing. This should be the last API change, the 1.0 version is close now.

Download pytst 0.96 here.