MCPcopy Create free account
hub / github.com/gawel/pyquery / __setattr__

Method __setattr__

pyquery/pyquery.py:1506–1511  ·  view source on GitHub ↗
(self, name, func)

Source from the content-addressed store, hash-verified

1504
1505 """
1506 def __setattr__(self, name, func):
1507 def fn(self, *args, **kwargs):
1508 func.__globals__['this'] = self
1509 return func(*args, **kwargs)
1510 fn.__name__ = name
1511 setattr(PyQuery, name, fn)
1512 fn = Fn()
1513
1514 ########

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected