Пример #1
0
 def _free_dict_data(self, dict):
     """Free the underlying pointer for a dict."""
     self._check_this()
     _e.broker_free_dict(self._this, dict)
     self._live_dicts[dict] -= 1
     if self._live_dicts[dict] == 0:
         del self._live_dicts[dict]
Пример #2
0
 def test_UnicodeTag(self):
     """Test that unicode language tags are accepted"""
     d1 = self.broker._request_dict_data(raw_unicode("en_US"))
     self.assertTrue(d1)
     _e.broker_free_dict(self.broker._this,d1)
     d1 = Dict(raw_unicode("en_US"))
     self.assertTrue(d1)
Пример #3
0
 def _free_dict_data(self,dict):
     """Free the underlying pointer for a dict."""
     self._check_this()
     _e.broker_free_dict(self._this,dict)
     self._live_dicts[dict] -= 1
     if self._live_dicts[dict] == 0:
         del self._live_dicts[dict]
Пример #4
0
 def _free_dict(self,dict):
     """Free memory associated with a dictionary.
     
     This method frees system resources associated with a Dict object.
     It is equivalent to calling the object's 'free' method.  Once this
     method has been called on a dictionary, it must not be used again.
     """
     self._check_this()
     _e.broker_free_dict(self._this,dict._this)
     dict._this = None
     dict._broker = None
Пример #5
0
 def _free_dict(self, dict):
     """Free memory associated with a dictionary.
     
     This method frees system resources associated with a Dict object.
     It is equivalent to calling the object's 'free' method.  Once this
     method has been called on a dictionary, it must not be used again.
     """
     self._check_this()
     _e.broker_free_dict(self._this, dict._this)
     dict._this = None
     dict._broker = None