10 Aug
2016
10 Aug
'16
3:55 a.m.
On Wed, Aug 10, 2016 at 1:33 PM, chagg@foxmail.com <chagg@foxmail.com> wrote:
class ComputeCellsAPI(compute_api.API) 的create函数定义如下,调用的是compute_api.API的create函数,并没有进入cells的调度。
看create函数的时候,记住python的多态特性。
def create(self, *args, **kwargs): """We can use the base functionality, but I left this here just for completeness. """ return super(ComputeCellsAPI, self).create(*args, **kwargs)