Home
last modified time | relevance | path

Searched refs:self (Results 1301 - 1325 of 3472) sorted by relevance

1...<<51525354555657585960>>...139

/third_party/python/Lib/test/
H A Dtest_buffer.py768 def setUp(self):
770 self.sizeof_void_p = get_sizeof_void_p()
772 def verify(self, result, *, obj,
789 self.assertGreater(ndim, 0)
801 stride0 = self.sizeof_void_p
806 self.assertIs(result.obj, obj)
807 self.assertEqual(result.nbytes, expected_len)
808 self.assertEqual(result.itemsize, itemsize)
809 self.assertEqual(result.format, fmt)
810 self
[all...]
H A Dtest_grp.py11 def check_value(self, value):
14 self.assertEqual(len(value), 4)
15 self.assertEqual(value[0], value.gr_name)
16 self.assertIsInstance(value.gr_name, str)
17 self.assertEqual(value[1], value.gr_passwd)
18 self.assertIsInstance(value.gr_passwd, str)
19 self.assertEqual(value[2], value.gr_gid)
20 self.assertIsInstance(value.gr_gid, int)
21 self.assertEqual(value[3], value.gr_mem)
22 self
[all...]
H A Dtest_dictcomps.py9 def test_basics(self):
13 self.assertEqual(actual, expected)
17 self.assertEqual(actual, expected)
19 def test_scope_isolation(self):
25 self.assertEqual(actual, expected)
26 self.assertEqual(k, "Local Variable")
35 self.assertEqual(k, "Local Variable")
36 self.assertEqual(actual, expected)
38 def test_scope_isolation_from_global(self):
42 self
[all...]
/third_party/python/Objects/stringlib/
H A Dtransmogrify.h16 return_self(PyObject *self) in return_self() argument
19 if (STRINGLIB_CHECK_EXACT(self)) { in return_self()
20 Py_INCREF(self); in return_self()
21 return self; in return_self()
24 return STRINGLIB_NEW(STRINGLIB_STR(self), STRINGLIB_LEN(self)); in return_self()
38 stringlib_expandtabs_impl(PyObject *self, int tabsize) in stringlib_expandtabs_impl() argument
48 e = STRINGLIB_STR(self) + STRINGLIB_LEN(self); in stringlib_expandtabs_impl()
49 for (p = STRINGLIB_STR(self); in stringlib_expandtabs_impl()
106 pad(PyObject *self, Py_ssize_t left, Py_ssize_t right, char fill) pad() argument
147 stringlib_ljust_impl(PyObject *self, Py_ssize_t width, char fillchar) stringlib_ljust_impl() argument
171 stringlib_rjust_impl(PyObject *self, Py_ssize_t width, char fillchar) stringlib_rjust_impl() argument
195 stringlib_center_impl(PyObject *self, Py_ssize_t width, char fillchar) stringlib_center_impl() argument
222 stringlib_zfill_impl(PyObject *self, Py_ssize_t width) stringlib_zfill_impl() argument
279 stringlib_replace_interleave(PyObject *self, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) stringlib_replace_interleave() argument
350 stringlib_replace_delete_single_character(PyObject *self, char from_c, Py_ssize_t maxcount) stringlib_replace_delete_single_character() argument
394 stringlib_replace_delete_substring(PyObject *self, const char *from_s, Py_ssize_t from_len, Py_ssize_t maxcount) stringlib_replace_delete_substring() argument
446 stringlib_replace_single_character_in_place(PyObject *self, char from_c, char to_c, Py_ssize_t maxcount) stringlib_replace_single_character_in_place() argument
493 stringlib_replace_substring_in_place(PyObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) stringlib_replace_substring_in_place() argument
545 stringlib_replace_single_character(PyObject *self, char from_c, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) stringlib_replace_single_character() argument
609 stringlib_replace_substring(PyObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) stringlib_replace_substring() argument
678 stringlib_replace(PyObject *self, const char *from_s, Py_ssize_t from_len, const char *to_s, Py_ssize_t to_len, Py_ssize_t maxcount) stringlib_replace() argument
[all...]
/third_party/python/Modules/_sqlite/
H A Dconnection.c109 #define clinic_state() (pysqlite_get_state_by_type(Py_TYPE(self)))
119 static void _pysqlite_drop_unused_cursor_references(pysqlite_Connection* self);
123 static void connection_close(pysqlite_Connection *self);
127 new_statement_cache(pysqlite_Connection *self, pysqlite_state *state, in new_statement_cache() argument
142 args[1] = (PyObject *)self; // Borrowed ref. in new_statement_cache()
176 pysqlite_connection_init_impl(pysqlite_Connection *self, PyObject *database, in pysqlite_connection_init_impl() argument
192 if (self->initialized) { in pysqlite_connection_init_impl()
193 PyTypeObject *tp = Py_TYPE(self); in pysqlite_connection_init_impl()
194 tp->tp_clear((PyObject *)self); in pysqlite_connection_init_impl()
195 connection_close(self); in pysqlite_connection_init_impl()
296 connection_traverse(pysqlite_Connection *self, visitproc visit, void *arg) connection_traverse() argument
321 connection_clear(pysqlite_Connection *self) connection_clear() argument
335 free_callback_contexts(pysqlite_Connection *self) free_callback_contexts() argument
343 connection_close(pysqlite_Connection *self) connection_close() argument
359 connection_dealloc(pysqlite_Connection *self) connection_dealloc() argument
381 pysqlite_connection_cursor_impl(pysqlite_Connection *self, PyObject *factory) pysqlite_connection_cursor_impl() argument
435 blobopen_impl(pysqlite_Connection *self, const char *table, const char *col, sqlite3_int64 row, int readonly, const char *name) blobopen_impl() argument
498 pysqlite_connection_close_impl(pysqlite_Connection *self) pysqlite_connection_close_impl() argument
552 pysqlite_connection_commit_impl(pysqlite_Connection *self) pysqlite_connection_commit_impl() argument
589 pysqlite_connection_rollback_impl(pysqlite_Connection *self) pysqlite_connection_rollback_impl() argument
904 _pysqlite_drop_unused_cursor_references(pysqlite_Connection* self) _pysqlite_drop_unused_cursor_references() argument
1001 pysqlite_connection_create_function_impl(pysqlite_Connection *self, PyTypeObject *cls, const char *name, int narg, PyObject *func, int deterministic) pysqlite_connection_create_function_impl() argument
1153 create_window_function_impl(pysqlite_Connection *self, PyTypeObject *cls, const char *name, int num_params, PyObject *aggregate_class) create_window_function_impl() argument
1212 pysqlite_connection_create_aggregate_impl(pysqlite_Connection *self, PyTypeObject *cls, const char *name, int n_arg, PyObject *aggregate_class) pysqlite_connection_create_aggregate_impl() argument
1389 pysqlite_connection_set_authorizer_impl(pysqlite_Connection *self, PyTypeObject *cls, PyObject *callable) pysqlite_connection_set_authorizer_impl() argument
1432 pysqlite_connection_set_progress_handler_impl(pysqlite_Connection *self, PyTypeObject *cls, PyObject *callable, int n) pysqlite_connection_set_progress_handler_impl() argument
1468 pysqlite_connection_set_trace_callback_impl(pysqlite_Connection *self, PyTypeObject *cls, PyObject *callable) pysqlite_connection_set_trace_callback_impl() argument
1519 pysqlite_connection_enable_load_extension_impl(pysqlite_Connection *self, int onoff) pysqlite_connection_enable_load_extension_impl() argument
1555 pysqlite_connection_load_extension_impl(pysqlite_Connection *self, const char *extension_name) pysqlite_connection_load_extension_impl() argument
1580 pysqlite_check_thread(pysqlite_Connection* self) pysqlite_check_thread() argument
1595 pysqlite_connection_get_isolation_level(pysqlite_Connection* self, void* unused) pysqlite_connection_get_isolation_level() argument
1606 pysqlite_connection_get_total_changes(pysqlite_Connection* self, void* unused) pysqlite_connection_get_total_changes() argument
1615 pysqlite_connection_get_in_transaction(pysqlite_Connection* self, void* unused) pysqlite_connection_get_in_transaction() argument
1627 pysqlite_connection_set_isolation_level(pysqlite_Connection* self, PyObject* isolation_level, void *Py_UNUSED(ignored)) pysqlite_connection_set_isolation_level() argument
1651 pysqlite_connection_call(pysqlite_Connection *self, PyObject *args, PyObject *kwargs) pysqlite_connection_call() argument
1686 pysqlite_connection_execute_impl(pysqlite_Connection *self, PyObject *sql, PyObject *parameters) pysqlite_connection_execute_impl() argument
1719 pysqlite_connection_executemany_impl(pysqlite_Connection *self, PyObject *sql, PyObject *parameters) pysqlite_connection_executemany_impl() argument
1751 pysqlite_connection_executescript(pysqlite_Connection *self, PyObject *script_obj) pysqlite_connection_executescript() argument
1838 pysqlite_connection_interrupt_impl(pysqlite_Connection *self) pysqlite_connection_interrupt_impl() argument
1866 pysqlite_connection_iterdump_impl(pysqlite_Connection *self) pysqlite_connection_iterdump_impl() argument
1923 pysqlite_connection_backup_impl(pysqlite_Connection *self, pysqlite_Connection *target, int pages, PyObject *progress, const char *name, double sleep) pysqlite_connection_backup_impl() argument
2029 pysqlite_connection_create_collation_impl(pysqlite_Connection *self, PyTypeObject *cls, const char *name, PyObject *callable) pysqlite_connection_create_collation_impl() argument
2092 serialize_impl(pysqlite_Connection *self, const char *name) serialize_impl() argument
2147 deserialize_impl(pysqlite_Connection *self, Py_buffer *data, const char *name) deserialize_impl() argument
2203 pysqlite_connection_enter_impl(pysqlite_Connection *self) pysqlite_connection_enter_impl() argument
2226 pysqlite_connection_exit_impl(pysqlite_Connection *self, PyObject *exc_type, PyObject *exc_value, PyObject *exc_tb) pysqlite_connection_exit_impl() argument
2281 setlimit_impl(pysqlite_Connection *self, int category, int limit) setlimit_impl() argument
2307 getlimit_impl(pysqlite_Connection *self, int category) getlimit_impl() argument
[all...]
/third_party/node/deps/v8/third_party/inspector_protocol/
H A Dcode_generator.py357 def __init__(self, config):
358 self.config = config
359 self.json_api = {"domains": []}
360 self.imported_domains = []
361 self.exported_domains = []
362 self.generate_domains = self.read_protocol_file(config.protocol.path)
365 self.generate_domains = [rule.domain for rule in config.protocol.options]
366 self.exported_domains = [rule.domain for rule in config.protocol.options
370 self
[all...]
/third_party/glslang/
H A Dupdate_glslang_sources.py73 def __init__(self, json):
79 self._json = json
80 self.name = json['name']
81 self.site = json['site']
82 self.subrepo = json['subrepo']
83 self.subdir = json['subdir'] if ('subdir' in json) else '.'
84 self.commit = json['commit']
86 def GetUrl(self):
88 host = SITE_TO_HOST[self.site]
91 subrepo=self
[all...]
/third_party/nghttp2/tests/
H A Dend_to_end.py59 def setUp(self):
61 self.client = '%s/src/spdycat' % build_dir
62 self.stdout = 'No output'
64 def call(self, path, args):
65 full_args = [self.client,'http://localhost:%d%s' % (_PORT, path)] + args
68 self.stdout, self.stderr = p.communicate()
73 def testSimpleRequest(self):
74 self.assertEquals(0, self
[all...]
/third_party/mesa3d/src/util/
H A Ddriconf_static.py39 def __init__(self, xml):
40 self.cname = cname('option')
41 self.name = xml.attrib['name']
42 self.value = xml.attrib['value']
45 def __init__(self, xml):
46 self.cname = cname('application')
47 self.name = xml.attrib['name']
48 self.executable = xml.attrib.get('executable', None)
49 self.executable_regexp = xml.attrib.get('executable_regexp', None)
50 self
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_build_clib.py19 def setUp(self):
21 self._backup_CONFIG_VARS = dict(sysconfig._CONFIG_VARS)
23 def tearDown(self):
26 sysconfig._CONFIG_VARS.update(self._backup_CONFIG_VARS)
28 def test_check_library_dist(self):
29 pkg_dir, dist = self.create_dist()
33 self.assertRaises(DistutilsSetupError, cmd.check_library_list, 'foo')
36 self.assertRaises(DistutilsSetupError, cmd.check_library_list,
41 self.assertRaises(DistutilsSetupError, cmd.check_library_list,
45 self
[all...]
/third_party/python/Lib/test/libregrtest/
H A Dwin_utils.py26 def __init__(self):
31 self._values = []
32 self._load = None
33 self._running = _overlapped.CreateEvent(None, True, False, None)
34 self._stopped = _overlapped.CreateEvent(None, True, False, None)
36 _thread.start_new_thread(self._update_load, (), {})
38 def _update_load(self,
43 while _wait(self._running, 1000):
44 self._calculate_load()
46 _signal(self
[all...]
/third_party/node/deps/openssl/openssl/util/perl/TLSProxy/
H A DNewSessionTicket.pm24 my $self = $class->SUPER::new(
32 $self->{ticket_lifetime_hint} = 0;
33 $self->{ticket} = "";
35 return $self;
40 my $self = shift;
42 my $ticket_lifetime_hint = unpack('N', $self->data);
43 my $ticket_len = unpack('n', $self->data);
44 my $ticket = substr($self->data, 6, $ticket_len);
46 $self->ticket_lifetime_hint($ticket_lifetime_hint);
47 $self
[all...]
/third_party/python/Lib/distutils/command/
H A Dinstall_scripts.py27 def initialize_options(self):
28 self.install_dir = None
29 self.force = 0
30 self.build_dir = None
31 self.skip_build = None
33 def finalize_options(self):
34 self.set_undefined_options('build', ('build_scripts', 'build_dir'))
35 self.set_undefined_options('install',
41 def run(self):
42 if not self
[all...]
/third_party/openssl/util/perl/TLSProxy/
H A DNewSessionTicket.pm24 my $self = $class->SUPER::new(
32 $self->{ticket_lifetime_hint} = 0;
33 $self->{ticket} = "";
35 return $self;
40 my $self = shift;
42 my $ticket_lifetime_hint = unpack('N', $self->data);
43 my $ticket_len = unpack('n', $self->data);
44 my $ticket = substr($self->data, 6, $ticket_len);
46 $self->ticket_lifetime_hint($ticket_lifetime_hint);
47 $self
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dmock_idle.py12 self.called - increment call number even if no args, kwds passed.
13 self.args - capture positional arguments.
14 self.kwds - capture keyword arguments.
15 self.result - return or raise value set in __init__.
16 self.return_self - return self instead, to mock query class return.
22 def __init__(self, result=None, return_self=False):
23 self.called = 0
24 self.result = result
25 self
[all...]
/third_party/node/deps/v8/third_party/jinja2/
H A Dsandbox.py133 def __init__(self, args, kwargs):
134 self._args = args
135 self._kwargs = kwargs
136 self._last_index = 0
138 def __getitem__(self, key):
140 idx = self._last_index
141 self._last_index += 1
143 return self._args[idx]
147 return self._kwargs[key]
149 def __iter__(self)
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A Dsandbox.py114 def __init__(self, args, kwargs):
115 self._args = args
116 self._kwargs = kwargs
117 self._last_index = 0
119 def __getitem__(self, key):
121 idx = self._last_index
122 self._last_index += 1
124 return self._args[idx]
128 return self._kwargs[key]
130 def __iter__(self)
[all...]
/third_party/skia/third_party/externals/jinja2/
H A Dsandbox.py133 def __init__(self, args, kwargs):
134 self._args = args
135 self._kwargs = kwargs
136 self._last_index = 0
138 def __getitem__(self, key):
140 idx = self._last_index
141 self._last_index += 1
143 return self._args[idx]
147 return self._kwargs[key]
149 def __iter__(self)
[all...]
/third_party/typescript/tests/issues_cookbook_tests/
H A Dautotest_sdk.py25 def run_command(self, cmd, path):
30 def get_stderr(self, result):
36 def remove_ansi_colors(self, text):
48 def __init__(self, project_path='', expected_path='') -> None:
49 self.project_path = project_path.replace('\\', '/')
50 self.expected_path = expected_path.replace('\\', '/')
52 def get_sdk_result(self):
56 result = self.utils.run_command(install_cmd, self.project_path)
57 log = result.stdout.decode() + self
[all...]
/third_party/python/Lib/distutils/
H A Dfilelist.py29 def __init__(self, warn=None, debug_print=None):
32 self.allfiles = None
33 self.files = []
35 def set_allfiles(self, allfiles):
36 self.allfiles = allfiles
38 def findall(self, dir=os.curdir):
39 self.allfiles = findall(dir)
41 def debug_print(self, msg):
51 def append(self, item):
52 self
[all...]
/base/update/packaging_tools/
H A Dimage_class.py40 def __init__(self, target_package_images_dir,
44 self.target_package_images_dir = target_package_images_dir
45 self.full_img_list = full_img_list
46 self.full_img_name_list = full_img_name_list
47 self.verse_script = verse_script
48 self.full_image_path_list = full_image_path_list
49 self.no_zip = no_zip
51 def update_full_image(self):
59 for idx, each_name in enumerate(self.full_img_list):
60 full_image_content = self
[all...]
/third_party/jinja2/
H A Dloaders.py55 def __init__(self, path):
56 self.path = path
58 def get_source(self, environment, template):
59 path = join(self.path, template)
75 self, environment: "Environment", template: str
94 if not self.has_source_access:
96 f"{type(self).__name__} cannot provide access to the source"
100 def list_templates(self) -> t.List[str]:
108 self,
125 source, filename, uptodate = self
[all...]
H A Dlexer.py258 self, message: str, cls: t.Type[TemplateSyntaxError] = TemplateSyntaxError
260 self.message = message
261 self.error_class = cls
263 def __call__(self, lineno: int, filename: str) -> "te.NoReturn":
264 raise self.error_class(self.message, lineno, filename)
272 def __str__(self) -> str:
273 return describe_token(self)
275 def test(self, expr: str) -> bool:
282 if self
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/tools/
H A Dexpect.py75 def check_return_code_is_zero(self, status):
85 def check_return_code_is_nonzero(self, status):
94 def check_no_output_on_stdout(self, status):
103 def check_no_output_on_stderr(self, status):
118 def check_no_generated_files(self, status):
133 def verify_binary_length_and_header(self, binary, spv_version=0x10000):
202 def verify_object_file_preamble(self,
218 return self.verify_binary_length_and_header(binary, spv_version)
226 def verify_assembly_file_preamble(self, filename):
248 def check_object_file_preamble(self, statu
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
H A Dexpect.py75 def check_return_code_is_zero(self, status):
85 def check_return_code_is_nonzero(self, status):
94 def check_no_output_on_stdout(self, status):
103 def check_no_output_on_stderr(self, status):
118 def check_no_generated_files(self, status):
133 def verify_binary_length_and_header(self, binary, spv_version=0x10000):
202 def verify_object_file_preamble(self,
218 return self.verify_binary_length_and_header(binary, spv_version)
226 def verify_assembly_file_preamble(self, filename):
248 def check_object_file_preamble(self, statu
[all...]

Completed in 13 milliseconds

1...<<51525354555657585960>>...139