Lines Matching refs:format
21 formatargvalues() - format an argument spec
766 raise ValueError('wrapper loop when unwrapping {!r}'.format(f))
901 raise TypeError('{!r} is a built-in module'.format(object))
909 raise TypeError('{!r} is a built-in class'.format(object))
921 'code object was expected, got {}'.format(
1313 raise TypeError('{!r} is not a code object'.format(co))
1472 argument is an optional function to format the sequence of arguments."""
1491 s = "{} and {}".format(*names)
1493 tail = ", {} and {}".format(*names[-2:])
1597 raise TypeError("{!r} is not a Python function".format(func))
1647 'code_context={!r}, index={!r}, positions={!r})'.format(
1686 raise TypeError('{!r} is not a frame or traceback object'.format(frame))
1719 'code_context={!r}, index={!r}, positions={!r})'.format(
1889 raise TypeError("{!r} is not a Python generator".format(generator))
1981 msg = 'partial object {!r} has incorrect arguments'.format(partial)
2105 extended signature format.
2191 raise ValueError("{!r} builtin has invalid signature".format(obj))
2266 raise ValueError("{!r} builtin has invalid signature".format(obj)) from None
2324 "function".format(func))
2328 raise ValueError("no signature found for builtin {!r}".format(func))
2344 raise TypeError('{!r} is not a Python function'.format(func))
2449 raise TypeError('{!r} is not a callable object'.format(obj))
2482 'attribute'.format(sig))
2591 'no signature found for builtin type {!r}'.format(obj))
2603 msg = 'no signature found for {!r}'.format(obj)
2616 msg = 'no signature found for builtin function {!r}'.format(obj)
2619 raise ValueError('callable {!r} is not supported by signature'.format(obj))
2694 msg = msg.format(self._kind.description)
2703 msg = 'name must be a str, not a {}'.format(type(name).__name__)
2716 msg = msg.format(self._kind.description)
2719 name = 'implicit{}'.format(name[1:])
2725 raise ValueError('{!r} is not a valid parameter name'.format(name))
2779 formatted = '{}: {}'.format(formatted,
2784 formatted = '{} = {}'.format(formatted, repr(self._default))
2786 formatted = '{}={}'.format(formatted, repr(self._default))
2796 return '<{} "{}">'.format(self.__class__.__name__, self)
2938 args.append('{}={!r}'.format(arg, value))
2939 return '<{} ({})>'.format(self.__class__.__name__, ', '.join(args))
2995 msg = msg.format(top_kind.description,
3014 msg = 'duplicate parameter name: {!r}'.format(name)
3107 msg = msg.format(arg=param.name)
3126 msg = msg.format(arg=param.name)
3152 'multiple values for argument {arg!r}'.format(
3183 format(arg=param_name)) from None
3192 format(arg=param.name))
3202 'got an unexpected keyword argument {arg!r}'.format(
3230 return '<{} {}>'.format(self.__class__.__name__, self)
3269 rendered = '({})'.format(', '.join(result))
3273 rendered += ' -> {}'.format(anno)
3305 msg = "Failed to import {} ({}: {})".format(mod_name,
3322 print('Target: {}'.format(target))
3323 print('Origin: {}'.format(getsourcefile(module)))
3324 print('Cached: {}'.format(module.__cached__))
3326 print('Loader: {}'.format(repr(module.__loader__)))
3328 print('Submodule search path: {}'.format(module.__path__))
3335 print('Line: {}'.format(lineno))