def spawn_raw(function, *args, **kwargs):
 if (not callable(function)):
  raise TypeError('function must be callable')
 hub = get_hub()
 if kwargs:
  function = _functools_partial(function, *args, **kwargs)
  g = RawGreenlet(function, hub)
  hub.loop.run_callback(g.switch)
 else:
  g = RawGreenlet(function, hub)
  hub.loop.run_callback(g.switch, *args)
 return g

def spawn_raw ( function , * args , ** kwargs ) : if ( not callable ( function ) ) : raise TypeError ( 'function must be callable' ) hub = get_hub ( ) if kwargs : function = _functools_partial ( function , * args , ** kwargs ) g = RawGreenlet ( function , hub ) hub . loop . run_callback ( g . switch ) else : g = RawGreenlet ( function , hub ) hub . loop . run_callback ( g . switch , * args ) return g
create a new :class:greenlet .