Home
last modified time | relevance | path

Searched refs:to_python (Results 1 – 25 of 473) sorted by relevance

12345678910>>...19

/dports/www/py-formencode/FormEncode-1.3.0/formencode/tests/
H A Dtest_subclassing.py48 self.assertEqual(cv.to_python('0'), 0)
50 cv.to_python('1')
56 self.assertEqual(cv.to_python('2'), 2)
58 cv.to_python('3')
65 cv.to_python('4')
71 self.assertEqual(cv.to_python('5'), 5)
142 self.assertEqual(nov.to_python('0'), 0)
144 nov.to_python('1')
159 nov.to_python('42')
175 nov.to_python('42')
[all …]
H A Dtest_validators.py17 return validator.to_python(value)
137 result = iv.to_python(value)
207 dc.to_python('20/12/150')
214 dc.to_python('oh/happy/day')
383 tc.to_python('25:30:15')
390 tc.to_python('20:75:15')
397 tc.to_python('20:30:75')
404 tc.to_python('20:30:zx')
538 self.validator.to_python(u'@名前.例')
568 self.validator.to_python('!!1000')
[all …]
H A Dtest_subclassing_old.py63 self.assertEqual(cv.to_python('0'), 0)
65 cv.to_python('1')
71 self.assertEqual(cv.to_python('2'), 2)
73 cv.to_python('3')
80 cv.to_python('4')
86 self.assertEqual(cv.to_python('5'), 5)
172 nov.to_python('1')
187 nov.to_python('42')
203 nov.to_python('42')
277 self.validator.to_python('3')
[all …]
H A Dtest_compound.py21 self.validator.to_python, 1)
44 self.assertEqual(self.validator.to_python(3), 1)
51 self.assertEqual(clone.to_python(3), 1)
68 self.assertEqual(self.validator.to_python(2), 'b')
76 self.validator.to_python(3)
84 self.assertEqual(clone.to_python(2), 'b')
99 self.assertEqual(self.validator.to_python(1), 3)
106 self.assertEqual(clone.to_python(1), 3)
H A Dtest_schema.py60 actual = self.schema.to_python(self.input)
77 print repr(self.schema.to_python(self.input))
184 s.to_python({})
226 def to_python(self, value, state): member in test_state_manipulation.MyValidator
246 s.to_python(new_dict, state)
282 self.schema.to_python({})
323 data = self.int_schema.to_python(params)
332 data = self.string_schema.to_python(params)
341 data = self.foreach_schema.to_python(params)
346 data = self.set_schema.to_python(params)
[all …]
/dports/deskutils/calibre/calibre-src-5.34.0/src/pyj/
H A Dviewer-main.pyj17 from qt import from_python, to_python
323 to_python.reload_book()
341 to_python.toggle_toc()
370 to_python.open_url(url)
372 to_python.quit()
388 to_python.view_image(name)
390 to_python.copy_image(name)
394 to_python.quit()
404 to_python.print_book()
406 to_python.clear_history()
[all …]
/dports/devel/py-pythran/pythran-0.11.0/pythran/pythonic/types/
H A Dslice.hpp560 return ::to_python(types::none_type{}); in convert()
562 return ::to_python((T)b); in convert()
568 return PySlice_New(::to_python(v.lower), ::to_python(v.upper), in convert()
575 return PySlice_New(::to_python(v.lower), ::to_python(v.upper), in convert()
583 return PySlice_New(::to_python(v.lower), ::to_python(v.upper), in convert()
584 ::to_python(v.step)); in convert()
586 return PySlice_New(::to_python(v.lower), in convert()
589 ::to_python(v.step)); in convert()
596 return PySlice_New(::to_python(v.lower), ::to_python(v.upper), in convert()
597 ::to_python(v.step)); in convert()
[all …]
/dports/math/py-mathics/Mathics3-2.2.0/mathics/builtin/numbers/
H A Dnumbertheory.py54 py_n = n.to_python()
340 nums = expr.to_python()
410 py_n, py_b = n.to_python(), b.to_python()
546 py_n = temp_n.to_python()
552 py_b = temp_b.to_python()
577 py_n = temp_n.to_python()
658 result = n.to_python()
1011 py_n = n.to_python()
1013 py_int = interval.to_python()
1112 py_m = m.to_python()
[all …]
/dports/math/py-mathics/Mathics3-2.2.0/mathics/builtin/files_io/
H A Dfilesystem.py80 py_name = name.to_python()
194 py_dest = dest.to_python()
535 py_n = n.to_python()
541 py_name = name.to_python()
606 path = pathname.to_python()
640 py_name = name.to_python()
858 path = filename.to_python()
1173 py_name = name.to_python()
1481 py_text = text.to_python()
1487 py_n = n.to_python()
[all …]
/dports/www/py-django-configurations/django-configurations-2.2/configurations/
H A Dvalues.py111 def to_python(self, value): member in Value
134 def to_python(self, value): member in BooleanValue
167 def to_python(self, value): member in CastingMixin
183 def to_python(self, value): member in PositiveIntegerValue
235 def to_python(self, value): member in SequenceValue
272 def to_python(self, value): member in SingleNestedSequenceValue
312 def to_python(self, value): member in SetValue
326 def to_python(self, value): member in DictValue
351 self.to_python(self.default)
353 def to_python(self, value): member in ValidationMixin
[all …]
/dports/devel/py-types-Flask/types-Flask-1.1.6/flask-stubs/json/
H A Dtag.pyi9 def to_python(self, value: Any) -> None: ...
16 def to_python(self, value: Any): ...
27 def to_python(self, value: Any): ...
38 def to_python(self, value: Any): ...
44 def to_python(self, value: Any): ...
50 def to_python(self, value: Any): ...
56 def to_python(self, value: Any): ...
/dports/devel/pytype/pytype-2021.9.9/pytype/typeshed/stubs/Flask/flask/json/
H A Dtag.pyi9 def to_python(self, value: Any) -> None: ...
16 def to_python(self, value: Any): ...
27 def to_python(self, value: Any): ...
38 def to_python(self, value: Any): ...
44 def to_python(self, value: Any): ...
50 def to_python(self, value: Any): ...
56 def to_python(self, value: Any): ...
/dports/www/py-django-netfields/django-netfields-1.2.4/netfields/
H A Dfields.py44 return [self.to_python(v) for v in value]
45 return self.to_python(value)
47 def to_python(self, value): member in _NetAddressField
81 return str(self.to_python(value))
139 def to_python(self, value): member in InetAddressField
140 value = super(InetAddressField, self).to_python(value)
177 return self.to_python(value)
179 def to_python(self, value): member in MACAddressField
192 return text_type(self.to_python(value))
/dports/devel/py-jedi/jedi-0.18.0/jedi/third_party/typeshed/third_party/2and3/flask/json/
H A Dtag.pyi13 def to_python(self, value: Any) -> None: ...
20 def to_python(self, value: Any): ...
31 def to_python(self, value: Any): ...
42 def to_python(self, value: Any): ...
48 def to_python(self, value: Any): ...
54 def to_python(self, value: Any): ...
60 def to_python(self, value: Any): ...
/dports/devel/py-mongokit/mongokit-0.9.1.1/tests/
H A Dtest_custom_types.py50 def to_python(self, value): member in CustomTypesTestCase.test_custom_type.CustomDate
90 def to_python(self, value): member in CustomTypesTestCase.test_custom_type2.CustomPrice
130 def to_python(self, value): member in CustomTypesTestCase.test_custom_type_nested.CustomDate
167 def to_python(self, value): member in CustomTypesTestCase.test_custom_type_nested_in_list.CustomDate
210 def to_python(self, value): member in CustomTypesTestCase.test_bad_custom_types.CustomDate
235 def to_python(self, value): member in CustomTypesTestCase.test_bad_custom_type_bad_python_type.CustomDate
263 def to_python(self, value): member in CustomTypesTestCase.test_custom_type_bad_python.CustomDate
288 def to_python(self, value): member in CustomTypesTestCase.test_custom_type_bad_python.CustomDate
327 def to_python(self, value): member in CustomTypesTestCase.test_custom_type_bad_python.CustomDate
350 def to_python(self, value): member in CustomTypesTestCase.test_custom_type_nested_list.CustomPrice
[all …]
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/flask/json/
H A Dtag.py81 def to_python(self, value): member in JSONTag
113 def to_python(self, value): member in TagDict
142 def to_python(self, value): member in TagTuple
168 def to_python(self, value): member in TagBytes
186 def to_python(self, value): member in TagMarkup
200 def to_python(self, value): member in TagUUID
214 def to_python(self, value): member in TagDateTime
301 return self.tags[key].to_python(value[key])
/dports/comms/gnuradio/gnuradio-3.8.4.0/gr-digital/python/digital/
H A Dqa_packet_headerparser_b.py66 msg1 = pmt.to_python(sink.get_message(0))
67 msg2 = pmt.to_python(sink.get_message(1))
68 msg3 = pmt.to_python(sink.get_message(2))
95 msg = pmt.to_python(sink.get_message(i))
132 msg1 = pmt.to_python(sink.get_message(0))
133 msg2 = pmt.to_python(sink.get_message(1))
167 msg = pmt.to_python(sink.get_message(0))
169 msg = pmt.to_python(sink.get_message(1))
/dports/www/py-dj32-django-modelcluster/django-modelcluster-5.2/modelcluster/
H A Dqueryset.py30 typed_value = field.to_python(value)
37 match_value = field.to_python(match_value)
53 match_value = field.to_python(value)
75 match_value = field.to_python(value)
86 match_value = field.to_python(value)
97 match_value = field.to_python(value)
108 match_value = field.to_python(value)
125 match_value = field.to_python(value)
147 match_value = field.to_python(value)
169 start_val = field.to_python(range_val[0])
[all …]
/dports/www/py-django-modelcluster/django-modelcluster-5.2/modelcluster/
H A Dqueryset.py30 typed_value = field.to_python(value)
37 match_value = field.to_python(match_value)
53 match_value = field.to_python(value)
75 match_value = field.to_python(value)
86 match_value = field.to_python(value)
97 match_value = field.to_python(value)
108 match_value = field.to_python(value)
125 match_value = field.to_python(value)
147 match_value = field.to_python(value)
169 start_val = field.to_python(range_val[0])
[all …]
/dports/devel/py-pythran/pythran-0.11.0/pythran/pythonic/include/builtins/pythran/
H A Dis_none.hpp122 struct to_python<types::true_type> : to_python<bool> { struct
125 struct to_python<types::false_type> : to_python<bool> { struct
/dports/graphics/vigra/vigra-8acd73a/vigranumpy/src/core/
H A Dpythonaccumulator.hxx68 python::object to_python(signed char t) const { return python::object(t); } in to_python() function
70 python::object to_python(signed int t) const { return python::object(t); } in to_python() function
78 python::object to_python(float t) const { return python::object(t); } in to_python() function
79 python::object to_python(double t) const { return python::object(t); } in to_python() function
83 python::object to_python(TinyVector<T, N> const & t) const in to_python() function
92 python::object to_python(MultiArrayView<1, T, Stride> const & t) const in to_python() function
99 python::object to_python(Matrix<T> const & t) const in to_python() function
105 python::object to_python(std::pair<T1, T2> const & t) const in to_python() function
107 return python::make_tuple(to_python(t.first), to_python(t.second)); in to_python()
113 result = to_python(get<TAG>(a)); in exec()
[all …]
/dports/www/py-wagtail/wagtail-2.14.2/wagtail/core/tests/
H A Dtest_jinja2.py73 stream_value = stream_block.to_python([
91 stream_value = stream_block.to_python([
123 struct_value = block.to_python({'title': 'Bonjour', 'body': 'monde <i>italique</i>'})
145 stream_value = block.to_python([
205 bound_block = block.bind(block.to_python('some <em>evil</em> HTML'))
235 bound_block = block.bind(block.to_python('some <em>evil</em> HTML'))
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/third_party/oauth2client/tests/contrib/django_util/
H A Dtest_django_models.py49 self.field.to_python(self.pickle_str), client.Credentials)
53 self.field.to_python(self.jsonpickle_str), client.Credentials)
57 self.field.to_python(self.credentials), client.Credentials)
60 self.assertIsNone(self.field.to_python(None))
68 self.assertEqual(self.field.to_python(None), None)
/dports/security/py-oauth2client/oauth2client-4.1.3/tests/contrib/django_util/
H A Dtest_django_models.py49 self.field.to_python(self.pickle_str), client.Credentials)
53 self.field.to_python(self.jsonpickle_str), client.Credentials)
57 self.field.to_python(self.credentials), client.Credentials)
60 self.assertIsNone(self.field.to_python(None))
68 self.assertEqual(self.field.to_python(None), None)
/dports/www/py-flask/Flask-2.0.2/src/flask/json/
H A Dtag.py79 def to_python(self, value: t.Any) -> t.Any: member in JSONTag
111 def to_python(self, value: t.Any) -> t.Any: member in TagDict
140 def to_python(self, value: t.Any) -> t.Any: member in TagTuple
166 def to_python(self, value: t.Any) -> t.Any: member in TagBytes
184 def to_python(self, value: t.Any) -> t.Any: member in TagMarkup
198 def to_python(self, value: t.Any) -> t.Any: member in TagUUID
212 def to_python(self, value: t.Any) -> t.Any: member in TagDateTime
304 return self.tags[key].to_python(value[key])

12345678910>>...19