Home
last modified time | relevance | path

Searched refs:newstyle (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_index.py6 class newstyle: class
16 self.o = newstyle()
17 self.n = newstyle()
97 self.o = newstyle()
98 self.n = newstyle()
99 self.o2 = newstyle()
100 self.n2 = newstyle()
239 n = newstyle()
/external/libchrome/third_party/jinja2/
Dext.py181 def _install(self, translations, newstyle=None): argument
188 self._install_callables(gettext, ngettext, newstyle)
190 def _install_null(self, newstyle=None): argument
194 newstyle
197 def _install_callables(self, gettext, ngettext, newstyle=None): argument
198 if newstyle is not None:
199 self.environment.newstyle_gettext = newstyle
/external/python/jinja/src/jinja2/
Dext.py192 def _install(self, translations, newstyle=None): argument
201 self._install_callables(gettext, ngettext, newstyle)
203 def _install_null(self, newstyle=None): argument
205 lambda x: x, lambda s, p, n: s if n == 1 else p, newstyle
208 def _install_callables(self, gettext, ngettext, newstyle=None): argument
209 if newstyle is not None:
210 self.environment.newstyle_gettext = newstyle
/external/python/cpython2/Lib/test/
Dtest_index.py12 class newstyle(object): class
27 self.n = newstyle()
76 self.n = newstyle()
78 self.n2 = newstyle()
244 n = newstyle()
Dtest_inspect.py111 class newstyle(object): pass class
112 self.assertTrue(inspect.isclass(newstyle))
553 def _classify_test(self, newstyle): argument
557 if newstyle:
625 if newstyle:
/external/python/jinja/docs/
Dextensions.rst44 .. method:: jinja2.Environment.install_gettext_translations(translations, newstyle=False)
53 .. method:: jinja2.Environment.install_null_translations(newstyle=False)
61 .. method:: jinja2.Environment.install_gettext_callables(gettext, ngettext, newstyle=False)
67 If ``newstyle`` is activated, the callables are wrapped to work like
68 newstyle callables. See :ref:`newstyle-gettext` for more information.
138 ``env.newstyle_gettext = True`` or passing ``newstyle=True`` to
164 The advantages of newstyle gettext are:
Dtemplates.rst1679 If :ref:`newstyle-gettext` calls are activated, using placeholders is
/external/python/cpython2/Include/
Dintobject.h73 PyAPI_FUNC(PyObject*) _PyInt_Format(PyIntObject* v, int base, int newstyle);
Dlongobject.h124 PyAPI_FUNC(PyObject *) _PyLong_Format(PyObject *aa, int base, int addL, int newstyle);
/external/python/jinja/tests/
Dtest_ext.py93 newstyle_i18n_env.install_gettext_callables(gettext, ngettext, newstyle=True)
473 newstyle=True,
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp758 auto newstyle = As<PythonCallable>(globals.GetItem("NewStyle")); in TEST_F() local
759 ASSERT_THAT_EXPECTED(newstyle, llvm::Succeeded()); in TEST_F()
760 arginfo = newstyle.get().GetArgInfo(); in TEST_F()
/external/python/cpython2/Objects/
Dintobject.c1188 _PyInt_Format(PyIntObject *v, int base, int newstyle) in _PyInt_Format() argument
1231 if (newstyle) { in _PyInt_Format()
Dlongobject.c1455 _PyLong_Format(PyObject *aa, int base, int addL, int newstyle) in _PyLong_Format() argument
1590 if (newstyle) { in _PyLong_Format()
/external/python/jinja/
DCHANGES.rst598 - Babel extraction can now properly extract newstyle gettext calls.
599 - Using the variable ``num`` in newstyle gettext for something else
617 - Support for newstyle gettext translations which result in a nicer
/external/python/cpython2/Doc/
Dglossary.rst579 More information can be found in :ref:`newstyle`.
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1150 of new-style classes. Please see https://www.python.org/doc/newstyle/ for