Searched refs:failobj (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython2/Lib/email/ |
D | message.py | 354 def get(self, name, failobj=None): argument 364 return failobj 370 def get_all(self, name, failobj=None): argument 385 return failobj 492 def _get_params_preserve(self, failobj, header): argument 498 return failobj 513 def get_params(self, failobj=None, header='content-type', unquote=True): argument 529 return failobj 535 def get_param(self, param, failobj=None, header='content-type', argument 562 return failobj [all …]
|
/external/python/cpython2/Lib/plat-riscos/ |
D | riscosenviron.py | 40 def get(self, key, failobj=None): argument 45 return failobj
|
/external/python/cpython2/Lib/ |
D | UserDict.py | 91 def get(self, key, failobj=None): argument 93 return failobj 95 def setdefault(self, key, failobj=None): argument 97 self[key] = failobj
|
D | os.py | 446 def get(self, key, failobj=None): argument 447 return self.data.get(key.upper(), failobj)
|
/external/python/cpython2/Doc/library/ |
D | email.message.rst | 256 .. method:: get(name[, failobj]) 259 :meth:`__getitem__` except that optional *failobj* is returned if the 265 .. method:: get_all(name[, failobj]) 268 no such named headers in the message, *failobj* is returned (defaults to 371 .. method:: get_params([failobj[, header[, unquote]]]) 381 Optional *failobj* is the object to return if there is no 389 .. method:: get_param(param[, failobj[, header[, unquote]]]) 393 header or if there is no such parameter, then *failobj* is returned 474 .. method:: get_filename([failobj]) 480 neither is found, or the header is missing, then *failobj* is returned. [all …]
|
/external/python/cpython2/Objects/ |
D | dictobject.c | 1968 PyObject *failobj = Py_None; in dict_get() local 1973 if (!PyArg_UnpackTuple(args, "get", 1, 2, &key, &failobj)) in dict_get() 1987 val = failobj; in dict_get() 1997 PyObject *failobj = Py_None; in dict_setdefault() local 2002 if (!PyArg_UnpackTuple(args, "setdefault", 1, 2, &key, &failobj)) in dict_setdefault() 2017 failobj) == 0) in dict_setdefault() 2018 val = failobj; in dict_setdefault()
|
/external/python/cpython2/Lib/email/test/ |
D | test_email_renamed.py | 929 self.assertIs(self._au.get_param('foo', failobj=missing, 972 self.assertIs(self._im.get_param('foo', failobj=missing,
|
D | test_email.py | 1020 self.assertIs(self._au.get_param('foo', failobj=missing, 1062 self.assertIs(self._im.get_param('foo', failobj=missing,
|