Lines Matching full:docstring
67 """new docstring"""
73 """original docstring"""
77 """new docstring"""
126 self.assertEqual(newgettersub.__class__.spam.__doc__, "new docstring")
129 self.assertEqual(newgetter.__class__.spam.__doc__, "new docstring")
309 """Trying to copy this docstring will raise an exception"""
340 # Historical behavior: A docstring from a getter always raises.
367 "Docstring of `property` subclass is ignored")
374 """Getter docstring"""
382 "Getter overrides explicit property docstring (%s)" % ps.__name__)
385 … self.assertEqual(doc, "Getter docstring", "Getter docstring is not picked-up (%s)" % ps.__name__)
389 "Getter overrides explicit property docstring (%s)" % ps.__name__)
410 Property tries to provide the best docstring it finds for its instances.
411 If a user-provided docstring is available, it is preserved on copies.
412 If no docstring is available during property creation, the property
413 will utilize the docstring from the getter if available.
469 # Issue 25757: subclasses of property lose docstring
511 """this docstring is ignored"""
523 """another ignored docstring"""
540 """a docstring"""
544 """a new docstring"""
546 self.assertEqual(Foo.spam.__doc__, "a new docstring")
550 """a docstring"""
555 """a new docstring"""
557 self.assertEqual(Foo.spam.__doc__, "a new docstring")