Can I mark variables as transient so they won't be pickled?

前端 未结 2 1407
甜味超标
甜味超标 2020-12-30 04:09

Let\'s say I have a class:

class Thing(object):
    cachedBar = None

    def __init__(self, foo):
        self.foo = foo

    def bar(self):
        if not          


        
2条回答
提交回复
热议问题