def test_setting_all_short_connectors(self): po = ParseOptions() po.all_short_connectors = True self.assertEqual(po.all_short_connectors, True) self.assertEqual(clg.parse_options_get_all_short_connectors(po._po), 1) po.all_short_connectors = False self.assertEqual(po.all_short_connectors, False) self.assertEqual(clg.parse_options_get_all_short_connectors(po._po), 0)
def all_short_connectors(self): """ If true, then all connectors have length restrictions imposed on them -- they can be no farther than short_length apart. This is used when parsing in \"panic\" mode, for example. """ return clg.parse_options_get_all_short_connectors(self._obj) == 1
def parse_options_get_all_short_connectors(*args) -> "int" : return _clinkgrammar.parse_options_get_all_short_connectors(*args)
def parse_options_get_all_short_connectors(*args): return _clinkgrammar.parse_options_get_all_short_connectors(*args)
def fget(self): return clg.parse_options_get_all_short_connectors(self._po) == 1
def parse_options_get_all_short_connectors(opts: 'Parse_Options') -> "int": return _clinkgrammar.parse_options_get_all_short_connectors(opts)