MCPcopy Index your code
hub / github.com/python/cpython / PyMethodsTest

Class PyMethodsTest

Lib/test/picklecommon.py:374–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373# For test_py_methods
374class PyMethodsTest:
375 @staticmethod
376 def cheese():
377 return "cheese"
378 @classmethod
379 def wine(cls):
380 assert cls is PyMethodsTest
381 return "wine"
382 def biscuits(self):
383 assert isinstance(self, PyMethodsTest)
384 return "biscuits"
385 class Nested:
386 "Nested class"
387 @staticmethod
388 def ketchup():
389 return "ketchup"
390 @classmethod
391 def maple(cls):
392 assert cls is PyMethodsTest.Nested
393 return "maple"
394 def pie(self):
395 assert isinstance(self, PyMethodsTest.Nested)
396 return "pie"
397
398# For test_c_methods
399class Subclass(tuple):

Callers 1

test_py_methodsMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_py_methodsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…