emidln
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
102 ms·
- 901.▲
- 902.▲
- 903.▲
- 904.▲
- 905.▲
- 906.▲
- 907.▲
- 908.▲
- 909.▲
- 910.▲
- 911.▲
- 912.▲
- 913.▲
- 914.▲
- 915.▲
I'm not saying you should do this, but you can have an anonymous class like this: type('', (dict,), {'__init__': lambda self, *args, **kwargs: not super(self.__class__,self).__init__(*args, **kwargs) and setattr(self,'__dict__',self)}) - 916.▲
- 917.▲
- 918.▲
- 919.▲
- 920.▲
- 921.▲
- 922.▲
- 923.▲
- 924.▲
- 925.▲
- 926.▲
- 927.▲
- 928.▲
- 929.▲
- 930.▲
More ›