MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / newfn

Function newfn

starrynet/log.py:161–166  ·  view source on GitHub ↗

Generated function. Closure-ish.

(*args)

Source from the content-addressed store, hash-verified

159 newfn( 'a', 1, 'b' )"""
160
161 def newfn(*args):
162 "Generated function. Closure-ish."
163 if len(args) == 1:
164 return fn(*args)
165 args = ' '.join(str(arg) for arg in args)
166 return fn(args)
167
168 # Fix newfn's name and docstring
169 setattr(newfn, '__name__', fn.__name__)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected