Searched refs:suite (Results 1 - 25 of 51) sorted by path

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
H A Dgraminit.h47 #define suite 300 macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
H A D__init__.py48 suite = additional_tests()
55 suite.addTests(loader.loadTestsFromModule(module))
56 return suite
59 suite = unittest.TestSuite()
61 suite.addTest(doctest.DocTestSuite(mod))
62 suite.addTest(TestPyTest('test_pyjson'))
63 suite.addTest(TestCTest('test_cjson'))
64 return suite
67 suite = test_suite()
69 runner.run(suite)
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/pydoc_data/
H A Dtopics.py20 'class': u'\nClass definitions\n*****************\n\nA class definition defines a class object (see section The standard\ntype hierarchy):\n\n classdef ::= "class" classname [inheritance] ":" suite\n inheritance ::= "(" [expression_list] ")"\n classname ::= identifier\n\nA class definition is an executable statement. It first evaluates the\ninheritance list, if present. Each item in the inheritance list\nshould evaluate to a class object or class type which allows\nsubclassing. The class\'s suite is then executed in a new execution\nframe (see section Naming and binding), using a newly created local\nnamespace and the original global namespace. (Usually, the suite\ncontains only function definitions.) When the class\'s suite finishes\nexecution, its execution frame is discarded but its local namespace is\nsaved. [4] A class object is then created using the inheritance list\nfor the base classes and the saved local namespace for the attribute\ndictionary. The class name is bound to this class object in the\noriginal local namespace.\n\n**Programmer\'s note:** Variables defined in the class definition are\nclass variables; they are shared by all instances. To create instance\nvariables, they can be set in a method with "self.name = value". Both\nclass and instance variables are accessible through the notation\n""self.name"", and an instance variable hides a class variable with\nthe same name when accessed in this way. Class variables can be used\nas defaults for instance variables, but using mutable values there can\nlead to unexpected results. For *new-style class*es, descriptors can\nbe used to create instance variables with different implementation\ndetails.\n\nClass definitions, like function definitions, may be wrapped by one or\nmore *decorator* expressions. The evaluation rules for the decorator\nexpressions are the same as for functions. The result must be a class\nobject, which is then bound to the class name.\n\n-[ Footnotes ]-\n\n[1] The exception is propagated to the invocation stack unless\n there is a "finally" clause which happens to raise another\n exception. That new exception causes the old one to be lost.\n\n[2] Currently, control "flows off the end" except in the case of\n an exception or the execution of a "return", "continue", or\n "break" statement.\n\n[3] A string literal appearing as the first statement in the\n function body is transformed into the function\'s "__doc__"\n attribute and therefore the function\'s *docstring*.\n\n[4] A string literal appearing as the first statement in the class\n body is transformed into the namespace\'s "__doc__" item and\n therefore the class\'s *docstring*.\n',
22 'compound': u'\nCompound statements\n*******************\n\nCompound statements contain (groups of) other statements; they affect\nor control the execution of those other statements in some way. In\ngeneral, compound statements span multiple lines, although in simple\nincarnations a whole compound statement may be contained in one line.\n\nThe "if", "while" and "for" statements implement traditional control\nflow constructs. "try" specifies exception handlers and/or cleanup\ncode for a group of statements. Function and class definitions are\nalso syntactically compound statements.\n\nCompound statements consist of one or more \'clauses.\' A clause\nconsists of a header and a \'suite.\' The clause headers of a\nparticular compound statement are all at the same indentation level.\nEach clause header begins with a uniquely identifying keyword and ends\nwith a colon. A suite is a group of statements controlled by a\nclause. A suite can be one or more semicolon-separated simple\nstatements on the same line as the header, following the header\'s\ncolon, or it can be one or more indented statements on subsequent\nlines. Only the latter form of suite can contain nested compound\nstatements; the following is illegal, mostly because it wouldn\'t be\nclear to which "if" clause a following "else" clause would belong:\n\n if test1: if test2: print x\n\nAlso note that the semicolon binds tighter than the colon in this\ncontext, so that in the following example, either all or none of the\n"print" statements are executed:\n\n if x < y < z: print x; print y; print z\n\nSummarizing:\n\n compound_stmt ::= if_stmt\n | while_stmt\n | for_stmt\n | try_stmt\n | with_stmt\n | funcdef\n | classdef\n | decorated\n suite ::= stmt_list NEWLINE | NEWLINE INDENT statement+ DEDENT\n statement ::= stmt_list NEWLINE | compound_stmt\n stmt_list ::= simple_stmt (";" simple_stmt)* [";"]\n\nNote that statements always end in a "NEWLINE" possibly followed by a\n"DEDENT". Also note that optional continuation clauses always begin\nwith a keyword that cannot start a statement, thus there are no\nambiguities (the \'dangling "else"\' problem is solved in Python by\nrequiring nested "if" statements to be indented).\n\nThe formatting of the grammar rules in the following sections places\neach clause on a separate line for clarity.\n\n\nThe "if" statement\n==================\n\nThe "if" statement is used for conditional execution:\n\n if_stmt ::= "if" expression ":" suite\
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A Dparsermodule.c190 PyDoc_STR("Determines if this ST object was created from a suite.")},
487 * a statement suite, respectively. The return is a Python truth value.
595 * suite ('exec' form). The real work is done by parser_do_parse() above.
610 return (parser_do_parse(args, kw, "s:suite", PyST_SUITE));
944 VALIDATER(parameters); VALIDATER(suite); variable
1056 * 'class' NAME ['(' testlist ')'] ':' suite
1091 * 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
1105 /* ... 'else' ':' suite */
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
H A Dast.c191 case suite:
895 /* funcdef: 'def' NAME parameters ':' suite */
2742 /* suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT */
2748 REQ(n, suite);
2808 /* if_stmt: 'if' test ':' suite ('elif' test ':' suite)*
2809 ['else' ':' suite]
2928 /* while_stmt: 'while' test ':' suite ['else' ':' suite] */
2975 /* for_stmt: 'for' exprlist 'in' testlist ':' suite ['els
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
H A Dexample.py25 ast = parser.suite(source)
H A Dtest_parser.py14 st = parser.suite(t)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
H A Dgraminit.h47 #define suite 300 macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
H A Dpycodegen.py417 test, suite = node.tests[i]
426 self.visit(suite)
H A Dtransformer.py127 """Return a modified parse tree for the given suite text."""
128 return self.transform(parser.suite(text))
249 # funcdef: [decorators] 'def' NAME parameters ':' suite
295 # classdef: 'class' NAME ['(' [testlist] ')'] ':' suite
507 # if: test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
522 # 'while' test ':' suite ['else' ':' suite]
535 # 'for' exprlist 'in' exprlist ':' suite ['els
558 def suite(self, nodelist): member in class:Transformer
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
H A D__init__.py1 """Test suite for distutils.
3 This test suite consists of a collection of test modules in the
25 suite = unittest.TestSuite()
31 suite.addTest(module.test_suite())
32 return suite
H A Dtest_dist.py430 suite = unittest.TestSuite()
431 suite.addTest(unittest.makeSuite(DistributionTestCase))
432 suite.addTest(unittest.makeSuite(MetadataTestCase))
433 return suite
H A Dtest_sysconfig.py76 suite = unittest.TestSuite()
77 suite.addTest(unittest.makeSuite(SysconfigTestCase))
78 return suite
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Ddoctest.py2280 Convert doctest tests for a module to a unittest test suite.
2322 suite = unittest.TestSuite()
2323 suite.addTest(SkipDocTestCase())
2324 return suite
2331 suite = unittest.TestSuite()
2341 suite.addTest(DocTestCase(test, **options))
2343 return suite
2389 """A unittest suite for one or more doctest files.
2444 suite = unittest.TestSuite()
2453 suite
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/
H A Dtest_email.py3515 def suite(): function
3516 suite = unittest.TestSuite()
3518 suite.addTest(unittest.makeSuite(testclass))
3519 return suite
3529 unittest.main(defaultTest='suite')
H A Dtest_email_codecs.py67 def suite():
68 suite = unittest.TestSuite()
69 suite.addTest(unittest.makeSuite(TestEmailAsianCodecs))
70 return suite
80 unittest.main(defaultTest='suite')
65 def suite(): function
H A Dtest_email_codecs_renamed.py67 def suite():
68 suite = unittest.TestSuite()
69 suite.addTest(unittest.makeSuite(TestEmailAsianCodecs))
70 return suite
80 unittest.main(defaultTest='suite')
65 def suite(): function
H A Dtest_email_renamed.py3283 def suite(): function
3284 suite = unittest.TestSuite()
3286 suite.addTest(unittest.makeSuite(testclass))
3287 return suite
3297 unittest.main(defaultTest='suite')
H A Dtest_email_torture.py4 # standard Python test suite since it requires several meg of email messages
125 def suite():
126 suite = unittest.TestSuite()
128 suite.addTest(unittest.makeSuite(testclass))
129 return suite
140 unittest.main(defaultTest='suite')
122 def suite(): function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/
H A Dlog.py174 st = parser.suite(fp.read())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
H A D__init__.py48 suite = additional_tests()
55 suite.addTests(loader.loadTestsFromModule(module))
56 return suite
59 suite = unittest.TestSuite()
61 suite.addTest(doctest.DocTestSuite(mod))
62 suite.addTest(TestPyTest('test_pyjson'))
63 suite.addTest(TestCTest('test_cjson'))
64 return suite
67 suite = test_suite()
69 runner.run(suite)
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
H A Dfixer_util.py253 if node.type == syms.suite and len(node.children) > 2:
261 ### The following functions are to find bindings in a suite
265 if node.type == syms.suite:
269 suite = Node(syms.suite, [node])
270 suite.parent = parent
271 return suite
362 # i+3 is the colon, i+4 is the suite
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
H A Dfix_metaclass.py9 we normalize those into having a suite.
29 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
33 if node.type == syms.suite:
46 """ one-line classes don't get a suite in the parse tree so we add
50 if node.type == syms.suite:
54 # !%@#! oneliners have no suite node, we have to fake one up
59 raise ValueError("No class suite and no ':'!")
61 # move everything into a suite node
62 suite = Node(syms.suite, [])
[all...]
H A Dfix_tuple_params.py38 ['->' any] ':' suite=any+ >
51 suite = results["suite"]
54 # TODO(cwinter): suite-cleanup
55 if suite[0].children[1].type == token.INDENT:
57 indent = suite[0].children[1].value
93 line.parent = suite[0]
95 # TODO(cwinter) suite-cleanup
99 elif is_docstring(suite[0].children[start]):
104 line.parent = suite[
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/pydoc_data/
H A Dtopics.py20 'class': u'\nClass definitions\n*****************\n\nA class definition defines a class object (see section *The standard\ntype hierarchy*):\n\n classdef ::= "class" classname [inheritance] ":" suite\n inheritance ::= "(" [expression_list] ")"\n classname ::= identifier\n\nA class definition is an executable statement. It first evaluates the\ninheritance list, if present. Each item in the inheritance list\nshould evaluate to a class object or class type which allows\nsubclassing. The class\'s suite is then executed in a new execution\nframe (see section *Naming and binding*), using a newly created local\nnamespace and the original global namespace. (Usually, the suite\ncontains only function definitions.) When the class\'s suite finishes\nexecution, its execution frame is discarded but its local namespace is\nsaved. [4] A class object is then created using the inheritance list\nfor the base classes and the saved local namespace for the attribute\ndictionary. The class name is bound to this class object in the\noriginal local namespace.\n\n**Programmer\'s note:** Variables defined in the class definition are\nclass variables; they are shared by all instances. To create instance\nvariables, they can be set in a method with ``self.name = value``.\nBoth class and instance variables are accessible through the notation\n"``self.name``", and an instance variable hides a class variable with\nthe same name when accessed in this way. Class variables can be used\nas defaults for instance variables, but using mutable values there can\nlead to unexpected results. For *new-style class*es, descriptors can\nbe used to create instance variables with different implementation\ndetails.\n\nClass definitions, like function definitions, may be wrapped by one or\nmore *decorator* expressions. The evaluation rules for the decorator\nexpressions are the same as for functions. The result must be a class\nobject, which is then bound to the class name.\n\n-[ Footnotes ]-\n\n[1] The exception is propagated to the invocation stack only if there\n is no ``finally`` clause that negates the exception.\n\n[2] Currently, control "flows off the end" except in the case of an\n exception or the execution of a ``return``, ``continue``, or\n ``break`` statement.\n\n[3] A string literal appearing as the first statement in the function\n body is transformed into the function\'s ``__doc__`` attribute and\n therefore the function\'s *docstring*.\n\n[4] A string literal appearing as the first statement in the class\n body is transformed into the namespace\'s ``__doc__`` item and\n therefore the class\'s *docstring*.\n',
23 'compound': u'\nCompound statements\n*******************\n\nCompound statements contain (groups of) other statements; they affect\nor control the execution of those other statements in some way. In\ngeneral, compound statements span multiple lines, although in simple\nincarnations a whole compound statement may be contained in one line.\n\nThe ``if``, ``while`` and ``for`` statements implement traditional\ncontrol flow constructs. ``try`` specifies exception handlers and/or\ncleanup code for a group of statements. Function and class\ndefinitions are also syntactically compound statements.\n\nCompound statements consist of one or more \'clauses.\' A clause\nconsists of a header and a \'suite.\' The clause headers of a\nparticular compound statement are all at the same indentation level.\nEach clause header begins with a uniquely identifying keyword and ends\nwith a colon. A suite is a group of statements controlled by a\nclause. A suite can be one or more semicolon-separated simple\nstatements on the same line as the header, following the header\'s\ncolon, or it can be one or more indented statements on subsequent\nlines. Only the latter form of suite can contain nested compound\nstatements; the following is illegal, mostly because it wouldn\'t be\nclear to which ``if`` clause a following ``else`` clause would belong:\n\n if test1: if test2: print x\n\nAlso note that the semicolon binds tighter than the colon in this\ncontext, so that in the following example, either all or none of the\n``print`` statements are executed:\n\n if x < y < z: print x; print y; print z\n\nSummarizing:\n\n compound_stmt ::= if_stmt\n | while_stmt\n | for_stmt\n | try_stmt\n | with_stmt\n | funcdef\n | classdef\n | decorated\n suite ::= stmt_list NEWLINE | NEWLINE INDENT statement+ DEDENT\n statement ::= stmt_list NEWLINE | compound_stmt\n stmt_list ::= simple_stmt (";" simple_stmt)* [";"]\n\nNote that statements always end in a ``NEWLINE`` possibly followed by\na ``DEDENT``. Also note that optional continuation clauses always\nbegin with a keyword that cannot start a statement, thus there are no\nambiguities (the \'dangling ``else``\' problem is solved in Python by\nrequiring nested ``if`` statements to be indented).\n\nThe formatting of the grammar rules in the following sections places\neach clause on a separate line for clarity.\n\n\nThe ``if`` statement\n====================\n\nThe ``if`` statement is used for conditional execution:\n\n if_stmt ::= "if" expression ":" suite\
[all...]

Completed in 249 milliseconds

123