@@ -104,12 +104,10 @@ public abstract class ErrorMessages {
104
104
public static final String CAN_ONLY_CONCAT_S_NOT_P_TO_S = "can only concatenate %s (not \" %p\" ) to %s" ;
105
105
public static final String CAN_ONLY_JOIN_ITERABLE = "can only join an iterable" ;
106
106
public static final String CANNOT_ASSIGN_TO = "cannot assign to %s" ;
107
- public static final String CANNOT_BE_INTEPRETED_AS_INT = "%s cannot be interpreted as int (type %p)" ;
108
107
public static final String CANNOT_BE_INTEPRETED_AS_LONG = "%s cannot be interpreted as long (type %p)" ;
109
108
public static final String CANNOT_BE_NEGATIVE = "%s cannot be negative" ;
110
109
public static final String CANNOT_CALL_CTOR_OF = "cannot call constructor of %s" ;
111
110
public static final String CANNOT_CLOSE_EXPORTED_PTRS_EXIST = "cannot close exported pointers exist" ;
112
- public static final String CANNOT_CONERT_DICT_UPDATE_SEQ = "cannot convert dictionary update sequence element #%d to a sequence" ;
113
111
public static final String CANNOT_CONVERT_DICT_UPDATE_SEQ = "cannot convert dictionary update sequence element #%d to a sequence" ;
114
112
public static final String CANNOT_CONVERT_FLOAT_F_TO_INT = "cannot convert float %f to integer" ;
115
113
public static final String CANNOT_CONVERT_OBJ_TO_C_STRING = "Cannot convert object of type %p to C string." ;
@@ -139,7 +137,6 @@ public abstract class ErrorMessages {
139
137
public static final String CANNOT_SPECIFY_MEM_LIMIT = "Cannot specify memory limit with FORMAT_RAW" ;
140
138
public static final String CANNOT_SPECIFY_PREST_AND_FILTER_CHAIN = "Cannot specify both preset and filter chain" ;
141
139
public static final String CANNOT_USE_TO_INITIALIZE_ARRAY = "cannot use a %p to initialize an array with typecode '%s'" ;
142
- public static final String CANT_APPLY_THIS_S_TO_P_OBJECT = "can't apply this %s to %p object" ;
143
140
public static final String CANT_CONCAT_S_TO_P = "can't concat %s to %p" ;
144
141
public static final String CANT_CONVERT_TO_FLOAT = "can't convert %s to float" ;
145
142
public static final String CANT_CONVERT_TO_STR_EXPLICITELY = "Can't convert '%p' object to str implicitly" ;
@@ -181,7 +178,6 @@ public abstract class ErrorMessages {
181
178
public static final String DESC_S_FOR_S_DOESNT_APPLY_TO_S = "descriptor '%s' for '%s' objects doesn't apply to '%s' object" ;
182
179
public static final String DESCRIPTOR_REQUIRES_OBJ = "descriptor '%s' requires a '%s' object but received a '%p'" ;
183
180
public static final String DICT_CHANGED_DURING_COMPARISON = "dictionary changed during comparison operation" ;
184
- public static final String DICT_KEYS_CHANGED_DURING_ITERATION = "dictionary keys changed during iteration" ;
185
181
public static final String CHANGED_SIZE_DURING_ITERATION = "%s changed size during iteration" ;
186
182
public static final String DICT_MUST_BE_SET_TO_DICT = "__dict__ must have been set to a dictionary, not a '%p'" ;
187
183
public static final String DICT_OF_P_OBJECTS_HAS_NO_ATTR = "'%p' dict of '%p' object has no attribute '__setitem__'" ;
@@ -237,7 +233,6 @@ public abstract class ErrorMessages {
237
233
public static final String GENERATOR_ALREADY_EXECUTING = "generator already executing" ;
238
234
public static final String GETTING_THER_SOURCE_NOT_SUPPORTED_FOR_P = "getting the source is not supported for '%p'" ;
239
235
public static final String GLOBALS_MUST_BE_DICT = "%s() globals must be a dict, not %p" ;
240
- public static final String GOT_INVALID_CODESTRING = "got an invalid codestring trying to create a function code object" ;
241
236
public static final String GOT_MULTIPLE_VALUES_FOR_ARG = "%s() got multiple values for argument '%s'" ;
242
237
public static final String GOT_SOME_POS_ONLY_ARGS_PASSED_AS_KEYWORD = "%s() got some positional-only arguments passed as keyword arguments: '%s'" ;
243
238
public static final String GOT_UNEXPECTED_KEYWORD_ARG = "%s() got an unexpected keyword argument '%s'" ;
@@ -380,16 +375,13 @@ public abstract class ErrorMessages {
380
375
public static final String NONLOCAL_AND_GLOBAL = "name '%s' is nonlocal and global" ;
381
376
public static final String NONLOCAL_AT_MODULE_LEVEL = "nonlocal declaration not allowed at module level" ;
382
377
public static final String NON_HEX_DIGIT_FOUND = "Non-hexadecimal digit found" ;
383
- public static final String NON_STRING_IN_CODE_SLOT = "non-string found in code slot" ;
384
378
public static final String NOT_A_ZIP_FILE = "not a Zip file: '%s'" ;
385
379
public static final String NOT_ALL_ARGS_CONVERTED_DURING_FORMATTING = "not all arguments converted during %s formatting" ;
386
- public static final String NOT_ALLOWED_S_S_FORMAT_SPECIFIERS_S = "%s not allowed %s%s format specifier%s" ;
387
380
public static final String NOT_ENOUGH_ARGS_FOR_FORMAT_STRING = "not enough arguments for format string" ;
388
381
public static final String NOT_ENOUGH_VALUES_TO_UNPACK = "not enough values to unpack (expected %d, got %d)" ;
389
382
public static final String NOT_SUPPORTED_BETWEEN_INSTANCES = "'%s' not supported between instances of '%p' and '%p'" ;
390
383
public static final String NUMBER_S_CANNOT_FIT_INTO_INDEXSIZED_INT = "number %s cannot fit into index-sized integer" ;
391
384
public static final String OBJ_INDEX_MUST_BE_INT_OR_SLICES = "%s indices must be integers or slices, not %p" ;
392
- public static final String OBJ_CANNOT_BE_INTERPRETED_AS_INT = "%s cannot be interpreted as int (type %p)" ;
393
385
public static final String OBJ_CANNOT_BE_INTERPRETED_AS_INTEGER = "'%p' object cannot be interpreted as an int" ;
394
386
public static final String OBJ_DOES_NOT_SUPPORT_INDEXING = "'%s' object does not support indexing" ;
395
387
public static final String OBJ_DOES_NOT_SUPPORT_ITEM_ASSIGMENT = "'%s' object does not support item assignment" ;
@@ -420,7 +412,6 @@ public abstract class ErrorMessages {
420
412
public static final String PYTHON_INT_TOO_LARGE_TO_CONV_TO = "Python int too large to convert to %s" ;
421
413
public static final String PYTHON_INT_TOO_LARGE_TO_CONV_TO_C_TYPE = "Python int too large to convert to %s-byte C type" ;
422
414
public static final String RANGE_OUT_OF_BOUNDS = "range index out of range" ;
423
- public static final String RANGE_DOES_NOT_SUPPORT = "range does not support %s, %s, %s" ;
424
415
public static final String RAW_FORMAT_NOT_SUPPORTED = "RAW format unsupported" ;
425
416
public static final String READ_BYTE_OUT_OF_RANGE = "read byte out of range" ;
426
417
public static final String READ_WRITE_BYTELIKE_OBJ = "read-write bytes-like object" ;
@@ -434,13 +425,11 @@ public abstract class ErrorMessages {
434
425
public static final String C_REQUIRES_INT_IN_BYTE_RANGE_OR_SINGLE_BYTE = "%%c requires an integer in range(256) or a single byte" ;
435
426
public static final String REQUIRES_OBJ_THAT_IMPLEMENTS_S = " %%r requires an object that implements %s" ;
436
427
public static final String REQUIRES_STRING_AS_LEFT_OPERAND = "'in <string>' requires string as left operand, not %P" ;
437
- public static final String RESULT_TOO_MANY_ITEMS = "%s result has too many items" ;
438
428
public static final String RETURN_OUTSIDE_FUNC = "'return' outside function" ;
439
429
public static final String S_RETURNED_BASE_WITH_UNSUITABLE_LAYOUT = "%s returned base with unsuitable layout ('%p')" ;
440
430
public static final String RETURNED_NON_FLOAT = "%p.%s returned non-float (type %p)" ;
441
431
public static final String RETURNED_NON_INT = "%s returned a non-int (type %p)" ;
442
432
public static final String S_RETURNED_NON_CLASS = "%s returned a non-class ('%p')" ;
443
- public static final String P_S_RETURNED_NON_INT = "%p.%s returned a non int (type %p)" ;
444
433
public static final String RETURNED_NON_INTEGER = "%s returned a non-integer" ;
445
434
public static final String RETURNED_NON_INTEGRAL = "%s returned non-Integral (type %p)" ;
446
435
public static final String RETURNED_NON_LONG = "%p.%s returned a non long (type %p)" ;
@@ -495,7 +484,6 @@ public abstract class ErrorMessages {
495
484
public static final String TUPLE_ASSIGN_OUT_OF_BOUNDS = "tuple assignment index out of range" ;
496
485
public static final String TUPLE_OUT_OF_BOUNDS = "tuple index out of range" ;
497
486
public static final String TUPLE_OR_STRUCT_TIME_ARG_REQUIRED = "Tuple or struct_time argument required" ;
498
- public static final String TWO_STARRED_EXPRESSION_IN_ASSIGMENT = "two starred expressions in assignment" ;
499
487
public static final String TYPE_DOES_NOT_PROVIDE_BASES = "type does not provide bases" ;
500
488
public static final String TYPE_DOESNT_DEFINE_METHOD = "type %p doesn't define %s method" ;
501
489
public static final String TYPE_IS_NOT_ACCEPTABLE_BASE_TYPE = "type '%p' is not an acceptable base type" ;
@@ -544,11 +532,14 @@ public abstract class ErrorMessages {
544
532
public static final String POW_BASE_NOT_INVERTIBLE = "base is not invertible for the given modulus" ;
545
533
public static final String POW_ZERO_CANNOT_RAISE_TO_NEGATIVE_POWER = "0.0 cannot be raised to a negative power" ;
546
534
public static final String S_ALIGNMENT_FLAG_NOT_ALLOWED_FOR_COMPLEX_FMT = "'%c' alignment flag is not allowed in complex format specifier" ;
535
+ public static final String EQUALS_ALIGNMENT_FLAG_NOT_ALLOWED_FOR_STRING_FMT = "'=' alignment not allowed in string format specifier" ;
547
536
public static final String ZERO_PADDING_NOT_ALLOWED_FOR_COMPLEX_FMT = "Zero padding is not allowed in complex format specifier" ;
548
537
public static final String POW_THIRD_ARG_CANNOT_BE_ZERO = "pow() 3rd argument cannot be 0" ;
549
538
public static final String CANNOT_ENCODE_DOCSTR = "'utf-8' codec can't encode docstring '%s'" ;
550
539
public static final String PRECISION_NOT_ALLOWED_FOR_INT = "Precision not allowed in integer format specifier" ;
551
540
public static final String SIGN_NOT_ALLOWED_WITH_C_FOR_INT = "Sign not allowed with integer format specifier 'c'" ;
541
+ public static final String ALTERNATE_NOT_ALLOWED_WITH_C_FOR_INT = "Alternate form (#) not allowed with integer format specifier 'c'" ;
542
+ public static final String ALTERNATE_NOT_ALLOWED_WITH_STRING_FMT = "Alternate form (#) not allowed in string format specifier" ;
552
543
public static final String CAPI_LOAD_ERROR = "Could not load C API from %s." ;
553
544
public static final String NATIVE_ACCESS_NOT_ALLOWED = "Cannot run any C extensions because native access is not allowed." ;
554
545
public static final String HPY_LOAD_ERROR = "Could not load HPy C API from %s." ;
0 commit comments