Пример #1
0
 def is_in_session(self,word):
     """Check whether a word is in the session list."""
     warnings.warn("Dict.is_in_session is deprecated, "\
                   "please use Dict.is_added",
                   category=DeprecationWarning,stacklevel=2)
     self._check_this()
     word = EnchantStr(word)
     return _e.dict_is_in_session(self._this,word.encode())
Пример #2
0
 def is_in_session(self, word):
     """Check whether a word is in the session list."""
     warnings.warn("Dict.is_in_session is deprecated, "\
                   "please use Dict.is_added",
                   category=DeprecationWarning,stacklevel=2)
     self._check_this()
     word = EnchantStr(word)
     return _e.dict_is_in_session(self._this, word.encode())