/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_argparse.py | 550 argument_signatures = [Sig('-x', nargs=1)]
561 argument_signatures = [Sig('-x', nargs=3)]
573 Sig('-w', nargs='?'),
574 Sig('-x', nargs='?', const=42),
575 Sig('-y', nargs='?', default='spam'),
576 Sig('-z', nargs='?', type=int, const='42', default='84'),
596 Sig('-x', nargs='*'),
597 Sig('-y', nargs='*', default='spam'),
615 Sig('-x', nargs='+'),
616 Sig('-y', nargs [all...] |
H A D | pystone.py | 261 nargs = len(sys.argv) - 1
variable 262 if nargs > 1:
263 error("%d arguments are too many;" % nargs)
264 elif nargs == 1:
|
H A D | test_optparse.py | 279 "option -b: 'nargs' must not be supplied for action 'count'",
280 ["-b"], {'action': 'count', 'nargs': 2})
892 action="store", nargs=3, type="float", dest="point")
916 self.parser.add_option("-p", "--point", action="store", nargs=3,
918 self.parser.add_option("-f", "--foo", action="append", nargs=2,
1173 nargs = int(opt[1:])
1175 if len(rargs) < nargs:
1176 self.fail("Expected %d arguments for %s option." % (nargs, opt))
1178 dest.append(tuple(rargs[0:nargs]))
1179 parser_.largs.append(nargs)
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
H A D | argparse.py | 17 'integers', metavar='int', nargs='+', type=int,
444 if action.nargs == 0:
544 if action.nargs == 0:
575 if action.nargs is None:
577 elif action.nargs == OPTIONAL:
579 elif action.nargs == ZERO_OR_MORE:
581 elif action.nargs == ONE_OR_MORE:
583 elif action.nargs == REMAINDER:
585 elif action.nargs == PARSER:
588 formats = ['%s' for _ in range(action.nargs)]
[all...] |
H A D | optparse.py | 456 nargs : int
472 'nargs',
702 if self.nargs is None:
703 self.nargs = 1
704 elif self.nargs is not None:
706 "'nargs' must not be supplied for action %r" % self.action,
774 if self.nargs == 1:
1496 nargs = option.nargs
1497 if len(rargs) < nargs [all...] |
H A D | inspect.py | 754 nargs = co.co_argcount
756 args = list(names[:nargs])
760 for i in range(nargs):
795 varargs = co.co_varnames[nargs]
796 nargs = nargs + 1
799 varkw = co.co_varnames[nargs]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | argparse.py | 17 'integers', metavar='int', nargs='+', type=int,
442 if action.nargs == 0:
542 if action.nargs == 0:
573 if action.nargs is None:
575 elif action.nargs == OPTIONAL:
577 elif action.nargs == ZERO_OR_MORE:
579 elif action.nargs == ONE_OR_MORE:
581 elif action.nargs == REMAINDER:
583 elif action.nargs == PARSER:
586 formats = ['%s' for _ in range(action.nargs)]
[all...] |
H A D | optparse.py | 455 nargs : int
471 'nargs',
701 if self.nargs is None:
702 self.nargs = 1
703 elif self.nargs is not None:
705 "'nargs' must not be supplied for action %r" % self.action,
773 if self.nargs == 1:
1495 nargs = option.nargs
1496 if len(rargs) < nargs [all...] |
H A D | inspect.py | 751 nargs = co.co_argcount
753 args = list(names[:nargs])
757 for i in range(nargs):
792 varargs = co.co_varnames[nargs]
793 nargs = nargs + 1
796 varkw = co.co_varnames[nargs]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Rsa2048Sha256Sign/ |
H A D | Rsa2048Sha256GenerateKeys.py | 47 group.add_argument("-o", "--output", dest='OutputFile', type=argparse.FileType('wb'), metavar='filename', nargs='*', help="specify the output private key filename in PEM format")
48 group.add_argument("-i", "--input", dest='InputFile', type=argparse.FileType('rb'), metavar='filename', nargs='*', help="specify the input private key filename in PEM format")
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/ |
H A D | astgen.py | 48 self.nargs = len(self.argnames)
135 if self.nargs == 1:
186 fmt = COMMA.join(["%s"] * self.nargs)
191 if self.nargs == 1:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
H A D | liolib.c | 425 int nargs = lua_gettop(L) - 1;
local 429 if (nargs == 0) { /* no arguments? */
434 luaL_checkstack(L, nargs+LUA_MINSTACK, "too many arguments");
436 for (n = first; nargs-- && success; n++) {
515 int nargs = lua_gettop(L) - arg;
local 517 for (; nargs--; arg++) {
|
H A D | ldo.c | 535 LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) { argument 539 luai_userstateresume(L, nargs); 542 api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs); 543 status = luaD_rawrunprotected(L, resume, L->top - nargs);
|
H A D | lapi.c | 889 LUA_API void lua_callk (lua_State *L, int nargs, int nresults, int ctx, argument 895 api_checknelems(L, nargs+1); 897 checkresults(L, nargs, nresults); 898 func = L->top - (nargs+1); 928 LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, argument 936 api_checknelems(L, nargs+1); 938 checkresults(L, nargs, nresults); 946 c.func = L->top - (nargs+1); /* function to be called */
|
/device/linaro/bootloader/edk2/BaseTools/Scripts/ |
H A D | ConvertUni.py | 124 parser.add_argument('source', nargs='+',
|
H A D | PatchCheck.py | 597 parser.add_argument('patches', nargs='*',
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
H A D | getargs.c | 1546 int i, len, nargs, nkeywords;
local 1571 nargs = PyTuple_GET_SIZE(args);
1573 if (nargs + nkeywords > len) {
1580 nargs + nkeywords);
1603 if (i < nargs) {
1614 else if (i < nargs)
|
H A D | ast.c | 1986 int i, nargs, nkeywords, ngens;
local 1993 nargs = 0;
2000 nargs++;
2007 if (ngens > 1 || (ngens && (nargs || nkeywords))) {
2013 if (nargs + nkeywords + ngens > 255) {
2018 args = asdl_seq_new(nargs + ngens, c->c_arena);
2024 nargs = 0;
2044 asdl_seq_SET(args, nargs++, e);
2050 asdl_seq_SET(args, nargs++, e);
|
H A D | ceval.c | 3205 int i, j, nargs, found;
local 3209 nargs = co->co_argcount;
3211 nargs++;
3213 nargs++;
3226 for (j = 0; j < nargs; j++) {
3947 err_args(PyObject *func, int flags, int nargs)
argument 3953 nargs);
3958 nargs);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
H A D | getargs.c | 1546 int i, len, nargs, nkeywords;
local 1571 nargs = PyTuple_GET_SIZE(args);
1573 if (nargs + nkeywords > len) {
1580 nargs + nkeywords);
1603 if (i < nargs) {
1614 else if (i < nargs)
|
H A D | ast.c | 1981 int i, nargs, nkeywords, ngens;
local 1988 nargs = 0;
1995 nargs++;
2002 if (ngens > 1 || (ngens && (nargs || nkeywords))) {
2008 if (nargs + nkeywords + ngens > 255) {
2013 args = asdl_seq_new(nargs + ngens, c->c_arena);
2019 nargs = 0;
2039 asdl_seq_SET(args, nargs++, e);
2045 asdl_seq_SET(args, nargs++, e);
|
H A D | ceval.c | 3190 int i, j, nargs, found;
local 3194 nargs = co->co_argcount;
3196 nargs++;
3198 nargs++;
3211 for (j = 0; j < nargs; j++) {
3925 err_args(PyObject *func, int flags, int nargs)
argument 3931 nargs);
3936 nargs);
|
/device/linaro/bootloader/edk2/StdLib/Include/Lua/ |
H A D | lua.h | 251 LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, int ctx,
257 LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
H A D | itertoolsmodule.c | 1823 Py_ssize_t nargs, npools, repeat=1;
local 1847 nargs = 0;
1849 nargs = PyTuple_GET_SIZE(args);
1850 if ((size_t)nargs > PY_SSIZE_T_MAX/sizeof(Py_ssize_t)/repeat) {
1855 npools = nargs * repeat;
1867 for (i=0; i < nargs ; ++i) {
1876 PyObject *pool = PyTuple_GET_ITEM(pools, i - nargs);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
H A D | itertoolsmodule.c | 1792 Py_ssize_t nargs, npools, repeat=1;
local 1815 nargs = (repeat == 0) ? 0 : PyTuple_GET_SIZE(args);
1816 npools = nargs * repeat;
1828 for (i=0; i < nargs ; ++i) {
1837 PyObject *pool = PyTuple_GET_ITEM(pools, i - nargs);
|