Home
last modified time | relevance | path

Searched refs:from_param (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython3/Lib/ctypes/test/
Dtest_parameters.py28 def from_param(cls, value): member in SimpleTypesTestCase.test_subclasses.CVOIDP
30 from_param = classmethod(from_param) variable in SimpleTypesTestCase.test_subclasses.CVOIDP
33 def from_param(cls, value): member in SimpleTypesTestCase.test_subclasses.CCHARP
35 from_param = classmethod(from_param) variable in SimpleTypesTestCase.test_subclasses.CCHARP
37 self.assertEqual(CVOIDP.from_param("abc"), "abcabc")
38 self.assertEqual(CCHARP.from_param("abc"), "abcabcabcabc")
45 def from_param(cls, value): member in SimpleTypesTestCase.test_subclasses_c_wchar_p.CWCHARP
47 from_param = classmethod(from_param) variable in SimpleTypesTestCase.test_subclasses_c_wchar_p.CWCHARP
49 self.assertEqual(CWCHARP.from_param("abc"), "abcabcabc")
58 self.assertIs(c_char_p.from_param(s)._obj, s)
[all …]
Dtest_bytes.py13 c_char.from_param(b"x")
14 self.assertRaises(TypeError, c_char.from_param, "x")
15 self.assertIn('xbd', repr(c_char.from_param(b"\xbd")))
25 c_wchar.from_param("x")
26 self.assertRaises(TypeError, c_wchar.from_param, b"x")
Dtest_prototypes.py193 c_wchar_p.from_param("123")
Dtest_as_parameter.py202 c_int.from_param(a)
Dtest_numbers.py97 self.assertEqual(ArgType, type(t.from_param(0)))
/external/python/cpython2/Lib/ctypes/test/
Dtest_parameters.py29 def from_param(cls, value): member in SimpleTypesTestCase.test_subclasses.CVOIDP
31 from_param = classmethod(from_param) variable in SimpleTypesTestCase.test_subclasses.CVOIDP
34 def from_param(cls, value): member in SimpleTypesTestCase.test_subclasses.CCHARP
36 from_param = classmethod(from_param) variable in SimpleTypesTestCase.test_subclasses.CCHARP
38 self.assertEqual(CVOIDP.from_param("abc"), "abcabc")
39 self.assertEqual(CCHARP.from_param("abc"), "abcabcabcabc")
46 def from_param(cls, value): member in SimpleTypesTestCase.test_subclasses_c_wchar_p.CWCHARP
48 from_param = classmethod(from_param) variable in SimpleTypesTestCase.test_subclasses_c_wchar_p.CWCHARP
50 self.assertEqual(CWCHARP.from_param("abc"), "abcabcabc")
59 self.assertIs(c_char_p.from_param(s)._obj, s)
[all …]
Dtest_prototypes.py190 c_wchar_p.from_param(u"123")
Dtest_as_parameter.py198 c_int.from_param(a)
Dtest_numbers.py97 self.assertEqual(ArgType, type(t.from_param(0)))
/external/python/cpython3/Lib/ctypes/
D__init__.py265 POINTER(c_wchar).from_param = c_wchar_p.from_param
267 POINTER(c_char).from_param = c_char_p.from_param
/external/python/cpython2/Lib/ctypes/
D__init__.py268 POINTER(c_wchar).from_param = c_wchar_p.from_param
270 POINTER(c_char).from_param = c_char_p.from_param
/external/llvm/bindings/python/llvm/
Dcommon.py60 def from_param(self): member in LLVMObject
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/python/llvm/
Dcommon.py60 def from_param(self): member in LLVMObject
/external/python/setuptools/setuptools/command/
Dinstall_scripts.py47 cmd = writer.command_spec_class.best().from_param(exec_param)
Deasy_install.py1983 def from_param(cls, param): member in CommandSpec
2088 cmd = cls.command_spec_class.best().from_param(executable)
2143 cmd = cls.command_spec_class.best().from_param(executable)
/external/clang/bindings/python/clang/
Dcindex.py406 def from_param(self): member in Diagnostic
539 def from_param(self): member in BaseEnumeration
1630 def from_param(self): member in StorageClass
1673 def from_param(self): member in AccessSpecifier
1763 def from_param(self): member in RefQualifierKind
2028 def from_param(self): member in ClangObject
2232 def from_param(self): member in CodeCompletionResults
/external/python/setuptools/setuptools/tests/
Dtest_easy_install.py731 cmd_new = ei.CommandSpec.from_param(cmd)
747 cmd = ei.CommandSpec.from_param('/usr/bin/env my-python')
/external/python/cpython2/Doc/library/
Dctypes.rst428 to implement a :meth:`from_param` class method for them to be able to use them
429 in the :attr:`argtypes` sequence. The :meth:`from_param` class method receives
1576 :meth:`from_param` class method of the items in the :attr:`argtypes`
1583 types, but each item must have a :meth:`from_param` method which returns a
2096 .. method:: from_param(obj)
/external/python/cpython3/Doc/library/
Dctypes.rst439 to implement a :meth:`from_param` class method for them to be able to use them
440 in the :attr:`argtypes` sequence. The :meth:`from_param` class method receives
1545 :meth:`from_param` class method of the items in the :attr:`argtypes`
1552 types, but each item must have a :meth:`from_param` method which returns a
2024 .. method:: from_param(obj)
/external/python/cpython2/Misc/
DHISTORY500 foreign function argtypes sequence as long as they provide a from_param
/external/python/cpython3/Misc/
DHISTORY17884 foreign function argtypes sequence as long as they provide a from_param