Home
last modified time | relevance | path

Searched refs:__doc__ (Results 1 – 25 of 250) sorted by relevance

12345678910

/third_party/python/Lib/test/
Dtest_property.py107 self.assertEqual(sub.__class__.spam.__doc__, "SubClass.getter")
113 self.assertEqual(base.__class__.spam.__doc__, "BaseClass.getter")
118 self.assertEqual(base.__class__.spam.__doc__, "spam spam spam")
119 self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam")
126 self.assertEqual(newgettersub.__class__.spam.__doc__, "new docstring")
129 self.assertEqual(newgetter.__class__.spam.__doc__, "new docstring")
158 self.assertEqual(p.__doc__, 'basic')
159 p.__doc__ = 'extended'
160 self.assertEqual(p.__doc__, 'extended')
173 self.assertEqual(sub.__class__.spam.__doc__, 'Eggs')
[all …]
Dtest_dynamicclassattribute.py124 self.assertEqual(sub.__class__.__dict__['spam'].__doc__, "SubClass.getter")
130 self.assertEqual(base.__class__.__dict__['spam'].__doc__, "BaseClass.getter")
135 self.assertEqual(base.__class__.__dict__['spam'].__doc__, "spam spam spam")
136 self.assertEqual(sub.__class__.__dict__['spam'].__doc__, "spam spam spam")
143 self.assertEqual(newgettersub.__class__.__dict__['spam'].__doc__, "new docstring")
146 self.assertEqual(newgetter.__class__.__dict__['spam'].__doc__, "new docstring")
218 print('\n',spam.__doc__)
233 Foo.__dict__['spam'].__doc__,
254 Foo.__dict__['spam'].__doc__,
267 FooSub.__dict__['spam'].__doc__,
[all …]
Dtest_funcattrs.py354 self.assertEqual(self.b.__doc__, None)
356 self.b.__doc__ = docstr
357 self.F.a.__doc__ = docstr
358 self.assertEqual(self.b.__doc__, docstr)
359 self.assertEqual(self.fi.a.__doc__, docstr)
363 self.b.__doc__ = "The docstring"
364 del self.b.__doc__
365 self.assertEqual(self.b.__doc__, None)
Dtest_capi.py57 self.assertEqual(inst.testfunction.__doc__, testfunction.__doc__)
58 self.assertEqual(InstanceMethod.testfunction.__doc__, testfunction.__doc__)
139 self.assertEqual(_testcapi.no_docstring.__doc__, None)
142 self.assertEqual(_testcapi.docstring_empty.__doc__, None)
145 self.assertEqual(_testcapi.docstring_no_signature.__doc__,
149 self.assertEqual(_testcapi.docstring_with_invalid_signature.__doc__,
156 self.assertEqual(_testcapi.docstring_with_invalid_signature2.__doc__,
165 self.assertEqual(_testcapi.docstring_with_signature.__doc__,
169 self.assertEqual(_testcapi.docstring_with_signature_but_no_doc.__doc__, None)
173 self.assertEqual(_testcapi.docstring_with_signature_and_extra_newlines.__doc__,
[all …]
Dtest_module.py32 self.assertEqual(foo.__doc__, ModuleType.__doc__)
54 self.assertEqual(foo.__doc__, None)
66 self.assertEqual(foo.__doc__, "foodoc")
76 self.assertEqual(foo.__doc__, "foodoc\u1234")
89 self.assertEqual(foo.__doc__, "foodoc")
Dtest_contextlib.py211 self.assertEqual(baz.__doc__, "Whee!")
216 self.assertEqual(baz.__doc__, "Whee!")
280 cm_docstring = closing.__doc__
282 self.assertEqual(obj.__doc__, cm_docstring)
406 cm_docstring = mycontext.__doc__
408 self.assertEqual(obj.__doc__, cm_docstring)
567 cm_docstring = self.exit_stack.__doc__
569 self.assertEqual(obj.__doc__, cm_docstring)
603 self.assertIsNone(wrapper[1].__doc__, _exit.__doc__)
981 cm_docstring = self.redirect_stream.__doc__
[all …]
Dtest_contextlib_async.py275 self.assertEqual(baz.__doc__, "Whee!")
281 self.assertEqual(baz.__doc__, "Whee!")
326 cm_docstring = aclosing.__doc__
328 self.assertEqual(obj.__doc__, cm_docstring)
451 self.assertIsNone(wrapper[1].__doc__, _exit.__doc__)
/third_party/python/Lib/
Dio.py88 __doc__ = _io._IOBase.__doc__ variable in IOBase
91 __doc__ = _io._RawIOBase.__doc__ variable in RawIOBase
94 __doc__ = _io._BufferedIOBase.__doc__ variable in BufferedIOBase
97 __doc__ = _io._TextIOBase.__doc__ variable in TextIOBase
Dsched.py36 Event.time.__doc__ = ('''Numeric type compatible with the return value of the
38 Event.priority.__doc__ = ('''Events scheduled for the same time will be executed
40 Event.sequence.__doc__ = ('''A continually increasing sequence number that
42 Event.action.__doc__ = ('''Executing the event means executing
44 Event.argument.__doc__ = ('''argument is a sequence holding the positional
46 Event.kwargs.__doc__ = ('''kwargs is a dictionary holding the keyword
Dsndhdr.py40 SndHeaders.filetype.__doc__ = ("""The value for type indicates the data type
43 SndHeaders.framerate.__doc__ = ("""The sampling_rate will be either the actual
45 SndHeaders.nchannels.__doc__ = ("""The number of channels or 0 if it cannot be
47 SndHeaders.nframes.__doc__ = ("""The value for frames will be either the number
49 SndHeaders.sampwidth.__doc__ = ("""Either the sample size in bits or
Dtypes.py171 self.__doc__ = doc or fget.__doc__
196 fdoc = fget.__doc__ if self.overwrite_doc else None
197 result = type(self)(fget, self.fset, self.fdel, fdoc or self.__doc__)
202 result = type(self)(self.fget, fset, self.fdel, self.__doc__)
207 result = type(self)(self.fget, self.fset, fdel, self.__doc__)
Ddis.py197 _Instruction.opname.__doc__ = "Human readable name for operation"
198 _Instruction.opcode.__doc__ = "Numeric code for operation"
199 _Instruction.arg.__doc__ = "Numeric argument to operation (if any), otherwise None"
200 _Instruction.argval.__doc__ = "Resolved arg value (if known), otherwise same as arg"
201 _Instruction.argrepr.__doc__ = "Human readable description of operation argument"
202 _Instruction.offset.__doc__ = "Start index of operation within bytecode sequence"
203 _Instruction.starts_line.__doc__ = "Line started by this opcode (if any), otherwise None"
204 _Instruction.is_jump_target.__doc__ = "True if other code jumps to here, otherwise False"
DcProfile.py22 run.__doc__ = _pyprofile.run.__doc__
23 runctx.__doc__ = _pyprofile.runctx.__doc__
Ddecimal.py4 from _decimal import __doc__
9 from _pydecimal import __doc__
/third_party/node/tools/inspector_protocol/markupsafe/
D__init__.py109 join.__doc__ = text_type.join.__doc__
113 split.__doc__ = text_type.split.__doc__
117 rsplit.__doc__ = text_type.rsplit.__doc__
121 splitlines.__doc__ = text_type.splitlines.__doc__
174 func.__doc__ = orig.__doc__
/third_party/skia/third_party/externals/markupsafe/
D__init__.py109 join.__doc__ = text_type.join.__doc__
113 split.__doc__ = text_type.split.__doc__
117 rsplit.__doc__ = text_type.rsplit.__doc__
121 splitlines.__doc__ = text_type.splitlines.__doc__
174 func.__doc__ = orig.__doc__
/third_party/python/Lib/email/
D_policybase.py100 if cls.__doc__ and cls.__doc__.startswith('+'):
101 cls.__doc__ = _append_doc(cls.__bases__[0].__doc__, cls.__doc__)
103 if attr.__doc__ and attr.__doc__.startswith('+'):
107 attr.__doc__ = _append_doc(doc, attr.__doc__)
/third_party/python/Tools/importbench/
Dimportbench.py93 benchmark_wo_bytecode.__doc__ = benchmark_wo_bytecode.__doc__.format(name)
127 writing_bytecode_benchmark.__doc__ = (
128 writing_bytecode_benchmark.__doc__.format(name))
157 using_bytecode_benchmark.__doc__ = (
158 using_bytecode_benchmark.__doc__.format(name))
182 if b.__doc__ == options.benchmark:
199 print(benchmark.__doc__, "[", end=' ')
208 new_results[benchmark.__doc__] = results
212 benchmark_name = benchmark.__doc__
/third_party/python/Lib/urllib/
Dparse.py254 _DefragResultBase.__doc__ = """
261 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
263 _DefragResultBase.fragment.__doc__ = """
269 _SplitResultBase.__doc__ = """
276 _SplitResultBase.scheme.__doc__ = """Specifies URL scheme for the request."""
278 _SplitResultBase.netloc.__doc__ = """
282 _SplitResultBase.path.__doc__ = """
286 _SplitResultBase.query.__doc__ = """
292 _SplitResultBase.fragment.__doc__ = """
297 _ParseResultBase.__doc__ = """
[all …]
/third_party/markupsafe/
D__init__.py123 join.__doc__ = str.join.__doc__
130 split.__doc__ = str.split.__doc__
137 rsplit.__doc__ = str.rsplit.__doc__
142 splitlines.__doc__ = str.splitlines.__doc__
/third_party/python/Tools/demo/
Deiffel.py55 if func.__doc__:
56 method.__doc__ = func.__doc__
79 self.__doc__ = func.__doc__
/third_party/python/Lib/idlelib/idle_test/
Dtest_calltip.py64 if List.__doc__ is not None:
97 if textwrap.TextWrapper.__doc__ is not None:
141 f.__doc__ = 'a'*300
160 f.__doc__ = 'a\n' * 15
175 doc = '\ndoc' if t1.__doc__ is not None else ''
181 doc = '\ndoc' if TC.__doc__ is not None else ''
190 doc = '\ndoc' if TC.__doc__ is not None else ''
/third_party/protobuf/python/google/protobuf/internal/
D_parameterized.py254 BoundParamTest.__doc__ = '%s(%s)' % (
256 if test_method.__doc__:
257 BoundParamTest.__doc__ += '\n%s' % (test_method.__doc__,)
/third_party/python/Lib/concurrent/futures/
Dthread.py178 submit.__doc__ = _base.Executor.submit.__doc__
236 shutdown.__doc__ = _base.Executor.shutdown.__doc__
/third_party/googletest/googlemock/scripts/generator/
Dgmock_gen.py29 gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__)

12345678910