Home
last modified time | relevance | path

Searched refs:self (Results 326 - 350 of 3802) sorted by relevance

1...<<11121314151617181920>>...153

/third_party/python/Lib/collections/
H A D__init__.py60 def __reversed__(self):
61 yield from reversed(self._mapping)
65 def __reversed__(self):
66 for key in reversed(self._mapping):
67 yield (key, self._mapping[key])
71 def __reversed__(self):
72 for key in reversed(self._mapping):
73 yield self._mapping[key]
85 # The internal self.__map dict maps keys to links in a doubly linked list.
88 # The sentinel is in self
[all...]
/third_party/python/Lib/test/
H A Dtest_gdb.py148 def get_stack_trace(self, source=None, script=None,
256 def get_gdb_repr(self, source,
273 gdb_output = self.get_stack_trace(source, breakpoint=BREAKPOINT_FN,
280 # Match '#0 builtin_id(self=..., v=...)'
281 r'#0\s+builtin_id\s+\(self\=.*,\s+v=\s*(.*?)?\)'
289 self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output))
292 def assertEndsWith(self, actual, exp_end):
294 self.assertTrue(actual.endswith(exp_end),
297 def assertMultilineMatches(self, actual, pattern):
300 self
[all...]
H A Dtest__osx_support.py18 def setUp(self):
19 self.maxDiff = None
20 self.prog_name = 'bogus_program_xxxx'
21 self.temp_path_dir = os.path.abspath(os.getcwd())
22 self.env = self.enterContext(os_helper.EnvironmentVarGuard())
27 if cv in self.env:
28 self.env.unset(cv)
30 def add_expected_saved_initial_values(self, config_vars, expected_vars):
37 def test__find_executable(self)
[all...]
H A Dtest_class.py74 def __hash__(self, *args):
75 return hash(id(self))
78 def __str__(self, *args):
82 def __repr__(self, *args):
86 def __int__(self, *args):
90 def __index__(self, *args):
94 def __float__(self, *args):
98 def __eq__(self, *args):
102 def __ne__(self, *args):
106 def __lt__(self, *arg
[all...]
H A Dtest_filecmp.py12 def setUp(self):
13 self.name = os_helper.TESTFN
14 self.name_same = os_helper.TESTFN + '-same'
15 self.name_diff = os_helper.TESTFN + '-diff'
17 for name in [self.name, self.name_same, self.name_diff]:
21 with open(self.name_diff, 'a+', encoding="utf-8") as output:
23 self.dir = tempfile.gettempdir()
25 def tearDown(self)
[all...]
H A Dtest_httplib.py29 # Self-signed cert file for self-signed.pythontest.net
55 def __init__(self, text, fileclass=io.BytesIO, host=None, port=None):
58 self.text = text
59 self.fileclass = fileclass
60 self.data = b''
61 self.sendall_calls = 0
62 self.file_closed = False
63 self.host = host
64 self.port = port
66 def sendall(self, dat
[all...]
H A Dtest_hashlib.py114 def _conditional_import_module(self, module_name):
119 if self._warn_on_extension_import and module_name in builtin_hashes:
123 def __init__(self, *args, **kwargs):
125 for algorithm in self.supported_hash_names:
128 _blake2 = self._conditional_import_module('_blake2')
132 self.constructors_to_test = {}
136 self.constructors_to_test[algorithm] = set()
140 for algorithm, constructors in self.constructors_to_test.items():
148 _hashlib = self._conditional_import_module('_hashlib')
149 self
[all...]
/third_party/node/deps/v8/tools/mb/
H A Dmb_test.py19 def __init__(self, win32=False):
20 super(FakeMBW, self).__init__()
24 self.chromium_src_dir = 'c:\\fake_src'
25 self.default_config = 'c:\\fake_src\\tools\\mb\\mb_config.pyl'
26 self.default_isolate_map = ('c:\\fake_src\\testing\\buildbot\\'
28 self.platform = 'win32'
29 self.executable = 'c:\\python\\python.exe'
30 self.sep = '\\'
32 self.chromium_src_dir = '/fake_src'
33 self
[all...]
/third_party/python/Lib/tkinter/
H A Dfiledialog.py58 def __init__(self, master, title=None):
59 if title is None: title = self.title
60 self.master = master
61 self.directory = None
63 self.top = Toplevel(master)
64 self.top.title(title)
65 self.top.iconname(title)
66 _setup_dialog(self.top)
68 self.botframe = Frame(self
[all...]
H A Ddnd.py123 def __init__(self, source, event):
131 root.__dnd = self
132 self.root = root
133 self.source = source
134 self.target = None
135 self.initial_button = button = event.num
136 self.initial_widget = widget = event.widget
137 self.release_pattern = "<B%d-ButtonRelease-%d>" % (button, button)
138 self.save_cursor = widget['cursor'] or ""
139 widget.bind(self
[all...]
/third_party/python/Lib/
H A Dpickle.py98 def __init__(self, value):
99 self.value = value
133 GLOBAL = b'c' # push self.find_class(modname, name); 2 string args
205 def __init__(self, file_write):
206 self.file_write = file_write
207 self.current_frame = None
209 def start_framing(self):
210 self.current_frame = io.BytesIO()
212 def end_framing(self):
213 if self
[all...]
H A Dprofile.py48 def __init__(self, profiler):
49 self.profiler = profiler
51 def run(self, statement, filename, sort):
52 prof = self.profiler()
58 self._show(prof, filename, sort)
60 def runctx(self, statement, globals, locals, filename, sort):
61 prof = self.profiler()
67 self._show(prof, filename, sort)
69 def _show(self, prof, filename, sort):
106 self
[all...]
H A Dpathlib.py53 def __init__(self):
54 self.join = self.sep.join
56 def parse_parts(self, parts):
58 sep = self.sep
59 altsep = self.altsep
67 drv, root, rel = self.splitroot(part)
85 drv = self.splitroot(part)[0]
94 def join_parsed_parts(self, drv, root, parts, drv2, root2, parts2):
103 if drv2 == drv or self
[all...]
H A Dconfigparser.py172 def __init__(self, msg=''):
173 self.message = msg
174 Exception.__init__(self, msg)
176 def __repr__(self):
177 return self.message
185 def __init__(self, section):
186 Error.__init__(self, 'No section: %r' % (section,))
187 self.section = section
188 self.args = (section, )
199 def __init__(self, sectio
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_hyperparser.py10 def __init__(self, text):
11 self.text = text
12 self.indentwidth = 8
13 self.tabwidth = 8
14 self.prompt_last_line = '>>>'
15 self.num_context_lines = 50, 500, 1000
51 def setUp(self):
52 self.text.insert('insert', self.code)
54 def tearDown(self)
[all...]
H A Dtest_config.py53 def test_get(self):
55 parser.read_string(self.config)
56 eq = self.assertEqual
59 self.assertIs(parser.Get('one', 'one', type='bool'), False)
60 self.assertIs(parser.Get('one', 'two', type='bool'), True)
63 self.assertIs(parser.Get('two', 'two', type='bool'), True)
64 self.assertIs(parser.Get('two', 'three', type='bool'), False)
71 self.assertIsNone(parser.Get('not', 'exist'))
74 def test_get_option_list(self):
76 parser.read_string(self
[all...]
/third_party/node/deps/v8/tools/
H A Dgrokdump.py80 def __init__(self, fields):
81 self.fields = fields
82 self.is_flexible = False
85 self.is_flexible = True
87 if not self.is_flexible:
88 self.ctype = Descriptor._GetCtype(fields)
89 self.size = ctypes.sizeof(self.ctype)
91 def Read(self, memory, offset):
92 if self
[all...]
/third_party/icu/icu4c/source/python/icutools/databuilder/
H A Drequest_types.py22 def __init__(self, **kwargs):
25 self.name = None
28 self.category = None
30 self._set_fields(kwargs)
32 def _set_fields(self, kwargs):
34 if hasattr(self, key):
39 setattr(self, key, value)
43 def apply_file_filter(self, filter):
50 def flatten(self, config, all_requests, common_vars):
51 return [self]
[all...]
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/
H A Drequest_types.py22 def __init__(self, **kwargs):
25 self.name = None
28 self.category = None
30 self._set_fields(kwargs)
32 def _set_fields(self, kwargs):
34 if hasattr(self, key):
39 setattr(self, key, value)
43 def apply_file_filter(self, filter):
50 def flatten(self, config, all_requests, common_vars):
51 return [self]
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Ddoctransformer.py87 def __init__(self):
88 self.blockStack = [ None ]
92 self.transformStack = [ True ]
95 self.vuStack = [ False ]
99 self.para = []
103 self.lastTitle = False
107 self.leadIndent = 0
110 self.hangIndent = 0
113 self.lineNumber = 0
116 self
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_unicode.py10 def test_encoding3(self):
12 j = self.dumps(u)
13 self.assertEqual(j, '"\\u03b1\\u03a9"')
15 def test_encoding4(self):
17 j = self.dumps([u])
18 self.assertEqual(j, '["\\u03b1\\u03a9"]')
20 def test_encoding5(self):
22 j = self.dumps(u, ensure_ascii=False)
23 self.assertEqual(j, '"{0}"'.format(u))
25 def test_encoding6(self)
[all...]
/third_party/python/Tools/demo/
H A Dredemo.py10 def __init__(self, master):
11 self.master = master
13 self.promptdisplay = Label(self.master, anchor=W,
15 self.promptdisplay.pack(side=TOP, fill=X)
17 self.regexdisplay = Entry(self.master)
18 self.regexdisplay.pack(fill=X)
19 self.regexdisplay.focus_set()
21 self
[all...]
H A Dspreadsheet.py37 def __init__(self):
38 self.cells = {} # {(x, y): cell, ...}
39 self.ns = dict(
40 cell = self.cellvalue,
41 cells = self.multicellvalue,
45 def cellvalue(self, x, y):
46 cell = self.getcell(x, y)
48 return cell.recalc(self.ns)
52 def multicellvalue(self, x1, y1, x2, y2):
60 seq.append(self
[all...]
/third_party/python/Lib/idlelib/
H A Dcodecontext.py11 For EditorWindows, <<toggle-code-context>> is bound to CodeContext(self).
49 def __init__(self, editwin):
53 self.text is the editor window text widget.
55 self.context displays the code context text above the editor text.
57 self.topvisible is the number of the top text line displayed.
58 self.info is a list of (line number, indent level, line text,
60 self.info[0] is initialized with a 'dummy' line which
63 self.t1 and self.t2 are two timer events on the editor text widget to
66 self
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_sslproto.py29 def setUp(self):
31 self.loop = asyncio.new_event_loop()
32 self.set_event_loop(self.loop)
34 def ssl_protocol(self, *, waiter=None, proto=None):
38 ssl_proto = sslproto.SSLProtocol(self.loop, proto, sslcontext, waiter,
40 self.assertIs(ssl_proto._app_transport.get_protocol(), proto)
41 self.addCleanup(ssl_proto._app_transport.close)
44 def connection_made(self, ssl_proto, *, do_handshake=None):
55 def test_handshake_timeout_zero(self)
[all...]

Completed in 15 milliseconds

1...<<11121314151617181920>>...153