def get_foreign_struct(namespace, name):
 get_foreign_module(namespace)
 try:
  return ForeignStruct.get(namespace, name)
 except KeyError:
  raise ForeignError(('Foreign %s.%s not supported' % (namespace, name)))

def get_foreign_struct ( namespace , name ) : get_foreign_module ( namespace ) try : return ForeignStruct . get ( namespace , name ) except KeyError : raise ForeignError ( ( 'Foreign %s.%s not supported' % ( namespace , name ) ) )
returns a foreignstruct implementation or raises foreignerror .