| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) YEAR ORGANIZATION |
| 3 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 4 |
# |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 8 |
"POT-Creation-Date: 2022-11-28 09:29-0400\n" |
| 9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 10 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 11 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 12 |
"MIME-Version: 1.0\n" |
| 13 |
"Content-Type: text/plain; charset=cp1252\n" |
| 14 |
"Content-Transfer-Encoding: 8bit\n" |
| 15 |
"Generated-By: pygettext.py 1.5\n" |
| 16 |
|
| 17 |
|
| 18 |
#: __init__.py:274 __main__.py:171 |
| 19 |
msgid "The file {filename} does not exist." |
| 20 |
msgstr "" |
| 21 |
|
| 22 |
#: __init__.py:357 |
| 23 |
msgid "The available languages are:" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#: __init__.py:385 |
| 27 |
msgid "{include}: Unrecognized value." |
| 28 |
msgstr "" |
| 29 |
|
| 30 |
#: __init__.py:386 |
| 31 |
msgid "The allowed values are:" |
| 32 |
msgstr "" |
| 33 |
|
| 34 |
#: about_warnings.py:88 |
| 35 |
msgid "Warning issued on line `{line}` of code block {filename}." |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#: about_warnings.py:92 |
| 39 |
msgid "Warning issued on line `{line}` of file '{filename}'." |
| 40 |
msgstr "" |
| 41 |
|
| 42 |
#: about_warnings.py:137 |
| 43 |
msgid "" |
| 44 |
"The source is unavailable.\n" |
| 45 |
"If you used `exec`, consider using `friendly_exec` instead." |
| 46 |
msgstr "" |
| 47 |
|
| 48 |
#: base_formatters.py:194 base_formatters.py:200 |
| 49 |
msgid "I have no suggestion to offer." |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#: base_formatters.py:198 |
| 53 |
msgid "I have no suggestion to offer; try `why()`." |
| 54 |
msgstr "" |
| 55 |
|
| 56 |
#: config.py:42 |
| 57 |
msgid "" |
| 58 |
"Are you using a regular Python console instead of a Friendly console?\n" |
| 59 |
"If so, to continue, try: `start_console(local_vars=locals())`.\n" |
| 60 |
"You will need to import `start_console` if you have not already done so.\n" |
| 61 |
msgstr "" |
| 62 |
|
| 63 |
#: config.py:76 config.py:189 console_helpers.py:43 |
| 64 |
msgid "Nothing to show: no exception recorded." |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#: config.py:81 console_helpers.py:306 |
| 68 |
msgid "Invalid index value." |
| 69 |
msgstr "" |
| 70 |
|
| 71 |
#: config.py:315 |
| 72 |
msgid "" |
| 73 |
"An exception occurred before friendly-traceback was imported.\n" |
| 74 |
"Some information is available." |
| 75 |
msgstr "" |
| 76 |
|
| 77 |
#: console_helpers.py:49 |
| 78 |
msgid "Friendly-traceback is already disabled." |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
#: console_helpers.py:59 |
| 82 |
msgid "Friendly-traceback is already enabled." |
| 83 |
msgstr "" |
| 84 |
|
| 85 |
#: console_helpers.py:109 functions_help.py:15 |
| 86 |
msgid "Shows a list of recorded traceback messages." |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#: console_helpers.py:111 functions_help.py:17 |
| 90 |
msgid "You can also use `history.clear()` and `history.pop()`." |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#: console_helpers.py:121 |
| 94 |
msgid "Nothing to delete: no exception recorded." |
| 95 |
msgstr "" |
| 96 |
|
| 97 |
#: console_helpers.py:128 |
| 98 |
msgid "There is no such history item." |
| 99 |
msgstr "" |
| 100 |
|
| 101 |
#: console_helpers.py:172 console_helpers.py:176 |
| 102 |
msgid "{exception} is not an exception." |
| 103 |
msgstr "" |
| 104 |
|
| 105 |
#: console_helpers.py:270 |
| 106 |
msgid "The default web browser cannot be used for searching." |
| 107 |
msgstr "" |
| 108 |
|
| 109 |
#: console_helpers.py:280 |
| 110 |
msgid "" |
| 111 |
"Invalid argument for `www()`.\n" |
| 112 |
"Valid arguments are integer values or one of `{sites}`.\n" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#: console_helpers.py:478 |
| 116 |
msgid "The following methods of the Friendly object should also be available as functions." |
| 117 |
msgstr "" |
| 118 |
|
| 119 |
#: core.py:125 |
| 120 |
msgid "More lines not shown." |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#: core.py:127 core.py:166 |
| 124 |
msgid "Python exception:" |
| 125 |
msgstr "" |
| 126 |
|
| 127 |
#: core.py:180 |
| 128 |
msgid "" |
| 129 |
"The exception includes the following note:\n" |
| 130 |
msgstr "" |
| 131 |
|
| 132 |
#: core.py:184 |
| 133 |
msgid "" |
| 134 |
"The exception includes the following notes:\n" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#: core.py:204 |
| 138 |
msgid "" |
| 139 |
"Warning: improperly formed exception.\n" |
| 140 |
"I suspect that a custom exception has been raised\n" |
| 141 |
"with a non-string value used as a message.\n" |
| 142 |
"This can occur if a `__repr__` or a `__str__` method\n" |
| 143 |
"raises an exception or does not return a string.\n" |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#: core.py:255 |
| 147 |
msgid "" |
| 148 |
"The encoding of the file was not valid.\n" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#: core.py:335 core.py:356 |
| 152 |
msgid "" |
| 153 |
"{filename} is not a regular Python file whose contents can be analyzed.\n" |
| 154 |
msgstr "" |
| 155 |
|
| 156 |
#: core.py:339 |
| 157 |
msgid "" |
| 158 |
"If you used `exec`, consider using `friendly_exec` instead.\n" |
| 159 |
msgstr "" |
| 160 |
|
| 161 |
#: core.py:344 |
| 162 |
msgid "" |
| 163 |
"Exception raised on line `{linenumber}` of code block {filename}.\n" |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#: core.py:348 |
| 167 |
msgid "" |
| 168 |
"Exception raised on line `{linenumber}` of file '{filename}'.\n" |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#: core.py:384 |
| 172 |
msgid "" |
| 173 |
"Execution stopped on line `{linenumber}` of code block {filename}.\n" |
| 174 |
msgstr "" |
| 175 |
|
| 176 |
#: core.py:388 |
| 177 |
msgid "" |
| 178 |
"Execution stopped on line `{linenumber}` of file '{filename}'.\n" |
| 179 |
msgstr "" |
| 180 |
|
| 181 |
#: core.py:412 |
| 182 |
msgid "Code block {filename}, line `{line}`" |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#: core.py:416 |
| 186 |
msgid "File '{filename}', line `{line}`" |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#: core.py:430 |
| 190 |
msgid "" |
| 191 |
"The entire content of `{filename}` is not available.\n" |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#: core.py:444 |
| 195 |
msgid "" |
| 196 |
"Python could not understand the code in the code block {filename}\n" |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#: core.py:448 |
| 200 |
msgid "" |
| 201 |
"Python could not understand the code in the file\n" |
| 202 |
"'{filename}'\n" |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#: core.py:453 |
| 206 |
msgid "" |
| 207 |
"at the location indicated.\n" |
| 208 |
msgstr "" |
| 209 |
|
| 210 |
#: core.py:689 |
| 211 |
msgid "" |
| 212 |
"Unfortunately, no additional information is available:\n" |
| 213 |
"the content of file '<stdin>' is not accessible.\n" |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#: debug_helper.py:41 |
| 217 |
msgid "Fatal error - aborting" |
| 218 |
msgstr "" |
| 219 |
|
| 220 |
#: debug_helper.py:42 |
| 221 |
msgid "Please report this issue." |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#: frame_info.py:85 |
| 225 |
msgid "" |
| 226 |
"Problem: source of `{filename}` is not available\n" |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#: ft_console.py:30 |
| 230 |
msgid "Use exit() or Ctrl-Z plus Return to exit." |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#: ft_console.py:32 |
| 234 |
msgid "Use exit() or Ctrl-D to exit." |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#: ft_console.py:33 |
| 238 |
msgid "Type 'Friendly' for help on special functions/methods." |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#: ft_gettext.py:82 |
| 242 |
msgid "" |
| 243 |
"Please report this example to\n" |
| 244 |
"https://github.com/friendly-traceback/friendly-traceback/issues/new\n" |
| 245 |
"If you are using a REPL, use `www('bug')` to do so.\n" |
| 246 |
"\n" |
| 247 |
msgstr "" |
| 248 |
|
| 249 |
#: ft_gettext.py:90 |
| 250 |
msgid "" |
| 251 |
"Friendly-traceback does not know the cause of this error.\n" |
| 252 |
msgstr "" |
| 253 |
|
| 254 |
#: ft_gettext.py:96 |
| 255 |
msgid "" |
| 256 |
"No information is known about this exception.\n" |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#: ft_gettext.py:98 |
| 260 |
msgid "" |
| 261 |
"If you are using the Friendly console, use `www()` to\n" |
| 262 |
"do an Internet search for this particular case.\n" |
| 263 |
msgstr "" |
| 264 |
|
| 265 |
#: ft_gettext.py:107 |
| 266 |
msgid "" |
| 267 |
"Internal error for Friendly.\n" |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#: functions_help.py:10 |
| 271 |
msgid "Disable friendly-traceback and restore previous exception hook." |
| 272 |
msgstr "" |
| 273 |
|
| 274 |
#: functions_help.py:13 |
| 275 |
msgid "Enable friendly-traceback as an exception hook" |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#: functions_help.py:14 |
| 279 |
msgid "Shows all the information about the last traceback." |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#: functions_help.py:18 |
| 283 |
msgid "Sets the language to be used." |
| 284 |
msgstr "" |
| 285 |
|
| 286 |
#: functions_help.py:19 |
| 287 |
msgid "Shows the paths corresponding to synonyms used." |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#: functions_help.py:20 |
| 291 |
msgid "Shows the generic meaning of a given exception." |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#: functions_help.py:21 |
| 295 |
msgid "Shows where an exception was raised." |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#: functions_help.py:22 |
| 299 |
msgid "Shows the likely cause of the exception." |
| 300 |
msgstr "" |
| 301 |
|
| 302 |
#: functions_help.py:23 |
| 303 |
msgid "Opens a web browser at a useful location." |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#: functions_help.py:24 |
| 307 |
msgid "Suggestion sometimes added to a friendly traceback." |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#: functions_help.py:25 |
| 311 |
msgid "Shows a normal Python traceback." |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#: functions_help.py:26 |
| 315 |
msgid "Shows a simplified Python traceback." |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#: functions_help.py:27 |
| 319 |
msgid "Returns the current value used for items to include by default." |
| 320 |
msgstr "" |
| 321 |
|
| 322 |
#: functions_help.py:30 |
| 323 |
msgid "Sets the items to show by default when an exception is raised." |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#: functions_help.py:33 |
| 327 |
msgid "Returns the language currently used." |
| 328 |
msgstr "" |
| 329 |
|
| 330 |
#: functions_help.py:34 |
| 331 |
msgid "Sets the formatter to use for display." |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#: functions_help.py:35 |
| 335 |
msgid "Use True (default) or False to enable debugging methods." |
| 336 |
msgstr "" |
| 337 |
|
| 338 |
#: info_generic.py:43 |
| 339 |
msgid "" |
| 340 |
"A warning of type `{name}` is a subclass of `{parent}`.\n" |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#: info_generic.py:47 |
| 344 |
msgid "" |
| 345 |
"An exception of type `{name}` is a subclass of `{parent}`.\n" |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#: info_generic.py:50 |
| 349 |
msgid "Nothing more specific is known about `{name}`." |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#: info_generic.py:54 |
| 353 |
msgid "" |
| 354 |
"The inheritance is as follows:\n" |
| 355 |
"\n" |
| 356 |
" {tree}\n" |
| 357 |
msgstr "" |
| 358 |
|
| 359 |
#: info_generic.py:97 |
| 360 |
msgid "" |
| 361 |
"Most built-in exceptions defined by Python are derived from `Exception`.\n" |
| 362 |
"All user-defined exceptions should also be derived from this class.\n" |
| 363 |
msgstr "" |
| 364 |
|
| 365 |
#: info_generic.py:105 |
| 366 |
msgid "" |
| 367 |
"`BaseException` is the base class for all built-in exceptions.\n" |
| 368 |
"It is not meant to be directly inherited by user-defined classes.\n" |
| 369 |
msgstr "" |
| 370 |
|
| 371 |
#: info_generic.py:113 |
| 372 |
msgid "" |
| 373 |
"`ArithmeticError` is the base class for those built-in exceptions\n" |
| 374 |
"that are raised for various arithmetic errors.\n" |
| 375 |
msgstr "" |
| 376 |
|
| 377 |
#: info_generic.py:121 |
| 378 |
msgid "" |
| 379 |
"In Python, the keyword `assert` is used in statements of the form\n" |
| 380 |
"`assert condition`, to confirm that `condition` is not `False`,\n" |
| 381 |
"nor equivalent to `False` such as an empty list, etc.\n" |
| 382 |
"\n" |
| 383 |
"If `condition` is `False` or equivalent, an `AssertionError` is raised.\n" |
| 384 |
msgstr "" |
| 385 |
|
| 386 |
#: info_generic.py:131 |
| 387 |
msgid "" |
| 388 |
"An `AttributeError` occurs when the code contains something like\n" |
| 389 |
" `object.x`\n" |
| 390 |
"and `x` is not a method or attribute (variable) belonging to `object`.\n" |
| 391 |
msgstr "" |
| 392 |
|
| 393 |
#: info_generic.py:140 |
| 394 |
msgid "" |
| 395 |
"An `EOFError` is raised when the `input()` function hits\n" |
| 396 |
"an end-of-file condition (EOF) without reading any data.\n" |
| 397 |
msgstr "" |
| 398 |
|
| 399 |
#: info_generic.py:148 |
| 400 |
msgid "" |
| 401 |
"A `FileNotFoundError` exception indicates that you\n" |
| 402 |
"are trying to open a file that cannot be found by Python.\n" |
| 403 |
"This could be because you misspelled the name of the file.\n" |
| 404 |
msgstr "" |
| 405 |
|
| 406 |
#: info_generic.py:157 |
| 407 |
msgid "" |
| 408 |
"An `ImportError` exception indicates that a certain object could not\n" |
| 409 |
"be imported from a module or package. Most often, this is\n" |
| 410 |
"because the name of the object is not spelled correctly.\n" |
| 411 |
msgstr "" |
| 412 |
|
| 413 |
#: info_generic.py:166 |
| 414 |
msgid "" |
| 415 |
"An `IndentationError` occurs when a given line of code is\n" |
| 416 |
"not indented (aligned vertically with other lines) as expected.\n" |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#: info_generic.py:174 |
| 420 |
msgid "" |
| 421 |
"An `IndexError` occurs when you try to get an item from a list,\n" |
| 422 |
"a tuple, or a similar object (sequence), and use an index which\n" |
| 423 |
"does not exist; typically, this happens because the index you give\n" |
| 424 |
"is greater than the length of the sequence.\n" |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#: info_generic.py:184 |
| 428 |
msgid "" |
| 429 |
"A `KeyError` is raised when a value is not found as a\n" |
| 430 |
"key in a Python dict or in a similar object.\n" |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#: info_generic.py:192 |
| 434 |
msgid "" |
| 435 |
"`LookupError` is the base class for the exceptions that are raised\n" |
| 436 |
"when a key or index used on a mapping or sequence is invalid.\n" |
| 437 |
"It can also be raised directly by codecs.lookup().\n" |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#: info_generic.py:201 |
| 441 |
msgid "" |
| 442 |
"Like the name indicates, a `MemoryError` occurs when Python\n" |
| 443 |
"runs out of memory. This can happen if you create an object\n" |
| 444 |
"that is too big, like a list with too many items.\n" |
| 445 |
msgstr "" |
| 446 |
|
| 447 |
#: info_generic.py:210 |
| 448 |
msgid "" |
| 449 |
"A `ModuleNotFoundError` exception indicates that you\n" |
| 450 |
"are trying to import a module that cannot be found by Python.\n" |
| 451 |
"This could be because you misspelled the name of the module\n" |
| 452 |
"or because it is not installed on your computer.\n" |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#: info_generic.py:220 |
| 456 |
msgid "" |
| 457 |
"A `NameError` exception indicates that a variable or\n" |
| 458 |
"function name is not known to Python.\n" |
| 459 |
"Most often, this is because there is a spelling mistake.\n" |
| 460 |
"However, sometimes it is because the name is used\n" |
| 461 |
"before being defined or given a value.\n" |
| 462 |
msgstr "" |
| 463 |
|
| 464 |
#: info_generic.py:231 |
| 465 |
msgid "" |
| 466 |
"An `OSError` exception is usually raised by the Operating System\n" |
| 467 |
"to indicate that an operation is not allowed or that\n" |
| 468 |
"a resource is not available.\n" |
| 469 |
msgstr "" |
| 470 |
|
| 471 |
#: info_generic.py:240 |
| 472 |
msgid "" |
| 473 |
"An `OverflowError` is raised when the result of an arithmetic operation\n" |
| 474 |
"is too large to be handled by the computer's processor.\n" |
| 475 |
msgstr "" |
| 476 |
|
| 477 |
#: info_generic.py:248 |
| 478 |
msgid "" |
| 479 |
"A `RecursionError` is raised when a function calls itself,\n" |
| 480 |
"directly or indirectly, too many times.\n" |
| 481 |
"It almost always indicates that you made an error in your code\n" |
| 482 |
"and that your program would never stop.\n" |
| 483 |
msgstr "" |
| 484 |
|
| 485 |
#: info_generic.py:258 |
| 486 |
msgid "" |
| 487 |
"A `RuntimeError` is raised when an error is detected that doesn't fall in any\n" |
| 488 |
"of the more specific exception types defined by Python.\n" |
| 489 |
msgstr "" |
| 490 |
|
| 491 |
#: info_generic.py:266 |
| 492 |
msgid "" |
| 493 |
"`StopIteration` is raised to indicate that an iterator has no more\n" |
| 494 |
"item to provide when its `__next__` method is called by\n" |
| 495 |
"the `next()` builtin function.\n" |
| 496 |
msgstr "" |
| 497 |
|
| 498 |
#: info_generic.py:275 |
| 499 |
msgid "" |
| 500 |
"A `SyntaxError` occurs when Python cannot understand your code.\n" |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#: info_generic.py:280 |
| 504 |
msgid "" |
| 505 |
"A `TabError` indicates that you have used both spaces\n" |
| 506 |
"and tab characters to indent your code.\n" |
| 507 |
"This is not allowed in Python.\n" |
| 508 |
"Indenting your code means to have block of codes aligned vertically\n" |
| 509 |
"by inserting either spaces or tab characters at the beginning of lines.\n" |
| 510 |
"Python's recommendation is to always use spaces to indent your code.\n" |
| 511 |
msgstr "" |
| 512 |
|
| 513 |
#: info_generic.py:292 |
| 514 |
msgid "" |
| 515 |
"A `TypeError` is usually caused by trying\n" |
| 516 |
"to combine two incompatible types of objects,\n" |
| 517 |
"by calling a function with the wrong type of object,\n" |
| 518 |
"or by trying to do an operation not allowed on a given type of object.\n" |
| 519 |
msgstr "" |
| 520 |
|
| 521 |
#: info_generic.py:302 |
| 522 |
msgid "" |
| 523 |
"A `ValueError` indicates that a function or an operation\n" |
| 524 |
"received an argument of the right type, but an inappropriate value.\n" |
| 525 |
msgstr "" |
| 526 |
|
| 527 |
#: info_generic.py:310 |
| 528 |
msgid "" |
| 529 |
"In Python, variables that are used inside a function are known as \n" |
| 530 |
"local variables. Before they are used, they must be assigned a value.\n" |
| 531 |
"A variable that is used before it is assigned a value is assumed to\n" |
| 532 |
"be defined outside that function; it is known as a `global`\n" |
| 533 |
"(or sometimes `nonlocal`) variable. You cannot assign a value to such\n" |
| 534 |
"a global variable inside a function without first indicating to\n" |
| 535 |
"Python that this is a global variable, otherwise you will see\n" |
| 536 |
"an `UnboundLocalError`.\n" |
| 537 |
msgstr "" |
| 538 |
|
| 539 |
#: info_generic.py:324 |
| 540 |
msgid "" |
| 541 |
"A `ZeroDivisionError` occurs when you are attempting to divide a value\n" |
| 542 |
"by zero either directly or by using some other mathematical operation.\n" |
| 543 |
msgstr "" |
| 544 |
|
| 545 |
#: info_generic.py:332 |
| 546 |
msgid "" |
| 547 |
"`UserWarning` is the default class for `warnings.warn()`.\n" |
| 548 |
msgstr "" |
| 549 |
|
| 550 |
#: info_generic.py:337 |
| 551 |
msgid "" |
| 552 |
"`SyntaxWarning` often indicates that your code will likely not give the result you expect.\n" |
| 553 |
msgstr "" |
| 554 |
|
| 555 |
#: info_generic.py:344 |
| 556 |
msgid "" |
| 557 |
"`DeprecationWarning` indicates that some feature will not be available in a future version.\n" |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#: info_generic.py:351 |
| 561 |
msgid "" |
| 562 |
"`RuntimeWarning` often indicates some not recommended runtime features.\n" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#: info_generic.py:358 |
| 566 |
msgid "" |
| 567 |
"`FutureWarning` is the base category for features that will likely be deprecated\n" |
| 568 |
"in future Python versions.\n" |
| 569 |
msgstr "" |
| 570 |
|
| 571 |
#: info_generic.py:366 |
| 572 |
msgid "" |
| 573 |
"`UnicodeWarning` is the base category for warnings related to unicode.\n" |
| 574 |
msgstr "" |
| 575 |
|
| 576 |
#: info_generic.py:371 |
| 577 |
msgid "" |
| 578 |
"`BytesWarning` is the base category for warnings related to bytes and bytearray.\n" |
| 579 |
msgstr "" |
| 580 |
|
| 581 |
#: info_generic.py:378 |
| 582 |
msgid "" |
| 583 |
"`Warning` is the base class of all warning category classes.\n" |
| 584 |
msgstr "" |
| 585 |
|
| 586 |
#: info_variables.py:69 |
| 587 |
msgid "a complex number" |
| 588 |
msgstr "" |
| 589 |
|
| 590 |
#: info_variables.py:70 |
| 591 |
msgid "a dictionary (`dict`)" |
| 592 |
msgstr "" |
| 593 |
|
| 594 |
#: info_variables.py:71 |
| 595 |
msgid "a number (`float`)" |
| 596 |
msgstr "" |
| 597 |
|
| 598 |
#: info_variables.py:72 |
| 599 |
msgid "a `frozenset`" |
| 600 |
msgstr "" |
| 601 |
|
| 602 |
#: info_variables.py:73 |
| 603 |
msgid "an integer (`int`)" |
| 604 |
msgstr "" |
| 605 |
|
| 606 |
#: info_variables.py:74 |
| 607 |
msgid "a `list`" |
| 608 |
msgstr "" |
| 609 |
|
| 610 |
#: info_variables.py:75 |
| 611 |
msgid "a variable equal to `None` (`NoneType`)" |
| 612 |
msgstr "" |
| 613 |
|
| 614 |
#: info_variables.py:76 |
| 615 |
msgid "a `set`" |
| 616 |
msgstr "" |
| 617 |
|
| 618 |
#: info_variables.py:77 info_variables.py:78 |
| 619 |
msgid "a string (`str`)" |
| 620 |
msgstr "" |
| 621 |
|
| 622 |
#: info_variables.py:79 |
| 623 |
msgid "a `tuple`" |
| 624 |
msgstr "" |
| 625 |
|
| 626 |
#: info_variables.py:357 |
| 627 |
msgid "" |
| 628 |
"Friendly warning: you have redefined the python builtin `{name}`.\n" |
| 629 |
msgstr "" |
| 630 |
|
| 631 |
#: info_variables.py:531 |
| 632 |
msgid "Object too large to be processed by Python." |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#: info_variables.py:535 |
| 636 |
msgid "Unable to compute." |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#: info_variables.py:594 |
| 640 |
msgid "" |
| 641 |
"A type hint found for `{name}` in the {scope} scope.\n" |
| 642 |
"Perhaps you had used a colon instead of an equal sign and wrote\n" |
| 643 |
"\n" |
| 644 |
" {name} : {hint}\n" |
| 645 |
"\n" |
| 646 |
"instead of\n" |
| 647 |
"\n" |
| 648 |
" {name} = {hint}\n" |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#: path_info.py:213 |
| 652 |
msgid "The default directory is {dirname}." |
| 653 |
msgstr "" |
| 654 |
|
| 655 |
#: runtime_errors\attribute_error.py:32 runtime_errors\attribute_error.py:79 |
| 656 |
#: runtime_errors\attribute_error.py:117 |
| 657 |
msgid "" |
| 658 |
"Did you give your program the same name as a Python module?\n" |
| 659 |
msgstr "" |
| 660 |
|
| 661 |
#: runtime_errors\attribute_error.py:33 runtime_errors\attribute_error.py:80 |
| 662 |
msgid "" |
| 663 |
"I suspect that you used the name `{module}.py` for your program\n" |
| 664 |
"and that you also wanted to import a module with the same name\n" |
| 665 |
"from Python's standard library.\n" |
| 666 |
"If so, you should use a different name for your program.\n" |
| 667 |
msgstr "" |
| 668 |
|
| 669 |
#: runtime_errors\attribute_error.py:42 runtime_errors\import_error.py:63 |
| 670 |
msgid "" |
| 671 |
"You have a circular import.\n" |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#: runtime_errors\attribute_error.py:46 runtime_errors\attribute_error.py:88 |
| 675 |
msgid "" |
| 676 |
"You likely have a circular import.\n" |
| 677 |
msgstr "" |
| 678 |
|
| 679 |
#: runtime_errors\attribute_error.py:47 |
| 680 |
msgid "" |
| 681 |
"Python indicated that the module `{module}` was not fully imported.\n" |
| 682 |
msgstr "" |
| 683 |
|
| 684 |
#: runtime_errors\attribute_error.py:48 runtime_errors\attribute_error.py:89 |
| 685 |
msgid "" |
| 686 |
"This can occur if, during the execution of the code in module `{module}`\n" |
| 687 |
"an attempt is made to import the same module again.\n" |
| 688 |
msgstr "" |
| 689 |
|
| 690 |
#: runtime_errors\attribute_error.py:72 |
| 691 |
msgid "" |
| 692 |
"This should not happen:\n" |
| 693 |
"Python tells us that module `{module}` does not have an attribute named `{attribute}`.\n" |
| 694 |
"However, it does not appear that module `{module}` was imported.\n" |
| 695 |
msgstr "" |
| 696 |
|
| 697 |
#: runtime_errors\attribute_error.py:98 runtime_errors\attribute_error.py:106 |
| 698 |
#: runtime_errors\attribute_error.py:139 runtime_errors\attribute_error.py:405 |
| 699 |
#: runtime_errors\import_error.py:106 runtime_errors\key_error.py:184 |
| 700 |
#: runtime_errors\key_error.py:191 |
| 701 |
#: runtime_errors\module_not_found_error.py:136 |
| 702 |
#: runtime_errors\name_error.py:130 runtime_errors\unbound_local_error.py:54 |
| 703 |
#: syntax_errors\message_analyzer.py:459 |
| 704 |
#: syntax_errors\message_analyzer.py:1151 |
| 705 |
#: syntax_errors\statement_analyzer.py:1417 |
| 706 |
msgid "" |
| 707 |
"Did you mean `{name}`?\n" |
| 708 |
msgstr "" |
| 709 |
|
| 710 |
#: runtime_errors\attribute_error.py:99 |
| 711 |
msgid "" |
| 712 |
"Perhaps you meant to write `{module}.{correct}` instead of `{module}.{typo}`\n" |
| 713 |
msgstr "" |
| 714 |
|
| 715 |
#: runtime_errors\attribute_error.py:107 |
| 716 |
msgid "" |
| 717 |
"Instead of writing `{module}.{typo}`, perhaps you meant to write one of \n" |
| 718 |
"the following names which are attributes of module `{module}`:\n" |
| 719 |
"`{names}`\n" |
| 720 |
msgstr "" |
| 721 |
|
| 722 |
#: runtime_errors\attribute_error.py:118 |
| 723 |
msgid "" |
| 724 |
"You imported a module named `{module}` from `{mod_path}`.\n" |
| 725 |
"There is also a module named `{module}` in Python's standard library.\n" |
| 726 |
"Perhaps you need to rename your module.\n" |
| 727 |
msgstr "" |
| 728 |
|
| 729 |
#: runtime_errors\attribute_error.py:140 |
| 730 |
msgid "" |
| 731 |
"Perhaps you meant to use the attribute `{attribute}` of \n" |
| 732 |
"module `{mod_name}` instead of module `{module}`.\n" |
| 733 |
msgstr "" |
| 734 |
|
| 735 |
#: runtime_errors\attribute_error.py:146 |
| 736 |
msgid "Did you mean one of the following modules: `{names}`?" |
| 737 |
msgstr "" |
| 738 |
|
| 739 |
#: runtime_errors\attribute_error.py:149 |
| 740 |
msgid "" |
| 741 |
"Instead of the module `{module}`, perhaps you wanted to use\n" |
| 742 |
"the attribute `{attribute}` of one of the following modules:\n" |
| 743 |
"`{names}`.\n" |
| 744 |
msgstr "" |
| 745 |
|
| 746 |
#: runtime_errors\attribute_error.py:158 |
| 747 |
msgid "" |
| 748 |
"Python tells us that no object with name `{attribute}` is\n" |
| 749 |
"found in module `{module}`.\n" |
| 750 |
msgstr "" |
| 751 |
|
| 752 |
#: runtime_errors\attribute_error.py:179 |
| 753 |
msgid "" |
| 754 |
"`add_note()` is only allowed for Python version 3.11 and newer.\n" |
| 755 |
msgstr "" |
| 756 |
|
| 757 |
#: runtime_errors\attribute_error.py:180 |
| 758 |
msgid "" |
| 759 |
"You are using Python version {version}.\n" |
| 760 |
msgstr "" |
| 761 |
|
| 762 |
#: runtime_errors\attribute_error.py:197 |
| 763 |
msgid "" |
| 764 |
"You are attempting to access the attribute `{attr}`\n" |
| 765 |
"for a variable whose value is `None`." |
| 766 |
msgstr "" |
| 767 |
|
| 768 |
#: runtime_errors\attribute_error.py:222 |
| 769 |
msgid "" |
| 770 |
"The value of attribute `{attribute}` of objects of type `{obj_type}`\n" |
| 771 |
"cannot be changed.\n" |
| 772 |
"I have no further information.\n" |
| 773 |
msgstr "" |
| 774 |
|
| 775 |
#: runtime_errors\attribute_error.py:241 |
| 776 |
msgid "" |
| 777 |
"Object `{name}` uses an empty `__slots__` to prevent the modification\n" |
| 778 |
"of any of its attributes.\n" |
| 779 |
msgstr "" |
| 780 |
|
| 781 |
#: runtime_errors\attribute_error.py:247 |
| 782 |
msgid "" |
| 783 |
"Object `{name}` uses `__slots__` to specify which attributes can\n" |
| 784 |
"be changed. The value of attribute `{name}.{attribute}` cannot be changed.\n" |
| 785 |
msgstr "" |
| 786 |
|
| 787 |
#: runtime_errors\attribute_error.py:272 |
| 788 |
msgid "" |
| 789 |
"`{obj_name}` is a function. Perhaps you meant to write\n" |
| 790 |
"`{obj_name}({attribute})`\n" |
| 791 |
msgstr "" |
| 792 |
|
| 793 |
#: runtime_errors\attribute_error.py:276 |
| 794 |
msgid "" |
| 795 |
"Did you mean `{obj_name}({attribute})`?\n" |
| 796 |
msgstr "" |
| 797 |
|
| 798 |
#: runtime_errors\attribute_error.py:281 |
| 799 |
msgid "" |
| 800 |
"`{obj_name}` is a Python built-in function or method\n" |
| 801 |
"which does not have an attribute named `{attribute}.`\n" |
| 802 |
msgstr "" |
| 803 |
|
| 804 |
#: runtime_errors\attribute_error.py:300 |
| 805 |
msgid "" |
| 806 |
"An object of type `{obj_type}` has no attribute named `{attr}`.\n" |
| 807 |
"Unfortunately I cannot find such an object on the line where\n" |
| 808 |
"the problem occurs.\n" |
| 809 |
msgstr "" |
| 810 |
|
| 811 |
#: runtime_errors\attribute_error.py:328 |
| 812 |
msgid "" |
| 813 |
"An object of type `{obj_type}` has no attribute named `{attr}`.\n" |
| 814 |
"\n" |
| 815 |
"I cannot give additional information:\n" |
| 816 |
"I found one object of this type in the current scope\n" |
| 817 |
"but it does not appear to be the object causing the problem.\n" |
| 818 |
msgstr "" |
| 819 |
|
| 820 |
#: runtime_errors\attribute_error.py:337 |
| 821 |
msgid "" |
| 822 |
"An object of type `{obj_type}` has no attribute named `{attr}`.\n" |
| 823 |
"\n" |
| 824 |
"The following objects might be the cause of the problem: \n" |
| 825 |
"{names}.\n" |
| 826 |
msgstr "" |
| 827 |
|
| 828 |
#: runtime_errors\attribute_error.py:377 |
| 829 |
msgid "" |
| 830 |
"The object `{obj}` has no attribute named `{attr}`.\n" |
| 831 |
msgstr "" |
| 832 |
|
| 833 |
#: runtime_errors\attribute_error.py:381 |
| 834 |
msgid "" |
| 835 |
"Note that object `{obj}` uses `__slots__` which prevents\n" |
| 836 |
"the creation of new attributes.\n" |
| 837 |
msgstr "" |
| 838 |
|
| 839 |
#: runtime_errors\attribute_error.py:389 |
| 840 |
msgid "" |
| 841 |
"The following are some of its known attributes:\n" |
| 842 |
"`{names}`." |
| 843 |
msgstr "" |
| 844 |
|
| 845 |
#: runtime_errors\attribute_error.py:401 |
| 846 |
msgid "" |
| 847 |
"The object `{obj_name}` has no attribute named `{attribute}`.\n" |
| 848 |
msgstr "" |
| 849 |
|
| 850 |
#: runtime_errors\attribute_error.py:406 |
| 851 |
msgid "" |
| 852 |
"Perhaps you meant to write `{obj}.{correct}` instead of `{obj}.{typo}`\n" |
| 853 |
msgstr "" |
| 854 |
|
| 855 |
#: runtime_errors\attribute_error.py:412 runtime_errors\import_error.py:113 |
| 856 |
msgid "" |
| 857 |
"Did you mean one of the following: `{names}`?\n" |
| 858 |
msgstr "" |
| 859 |
|
| 860 |
#: runtime_errors\attribute_error.py:413 |
| 861 |
msgid "" |
| 862 |
"Instead of writing `{obj}.{typo}`, perhaps you meant to write one of \n" |
| 863 |
"the following names which are attributes of object `{obj}`:\n" |
| 864 |
"`{names}`\n" |
| 865 |
msgstr "" |
| 866 |
|
| 867 |
#: runtime_errors\attribute_error.py:438 |
| 868 |
#: syntax_errors\message_analyzer.py:1837 |
| 869 |
#: syntax_errors\message_analyzer.py:1850 |
| 870 |
msgid "" |
| 871 |
"Did you write a comma by mistake?\n" |
| 872 |
msgstr "" |
| 873 |
|
| 874 |
#: runtime_errors\attribute_error.py:439 |
| 875 |
msgid "" |
| 876 |
"`{obj_name}` is a tuple that contains a single item\n" |
| 877 |
"which does have `'{attribute}'` as an attribute.\n" |
| 878 |
"Perhaps you added a trailing comma by mistake at the end of the line\n" |
| 879 |
"where you defined `{obj_name}`.\n" |
| 880 |
msgstr "" |
| 881 |
|
| 882 |
#: runtime_errors\attribute_error.py:452 |
| 883 |
msgid "" |
| 884 |
"Did you mean `{str_content}.join({obj_name})`?\n" |
| 885 |
msgstr "" |
| 886 |
|
| 887 |
#: runtime_errors\attribute_error.py:453 |
| 888 |
msgid "" |
| 889 |
"The object `{obj_name}` has no attribute named `join`.\n" |
| 890 |
"Perhaps you wanted something like `{str_content}.join({obj_name})`.\n" |
| 891 |
msgstr "" |
| 892 |
|
| 893 |
#: runtime_errors\attribute_error.py:476 |
| 894 |
msgid "" |
| 895 |
"Did you mean `{known_builtin}({obj_name})`?\n" |
| 896 |
msgstr "" |
| 897 |
|
| 898 |
#: runtime_errors\attribute_error.py:479 |
| 899 |
msgid "" |
| 900 |
"The object `{obj_name}` has no attribute named `{attribute}`.\n" |
| 901 |
"Perhaps you can use the Python builtin function `{known_builtin}` instead:\n" |
| 902 |
"`{known_builtin}({obj_name})`." |
| 903 |
msgstr "" |
| 904 |
|
| 905 |
#: runtime_errors\attribute_error.py:508 |
| 906 |
msgid "" |
| 907 |
"Did you mean `{attr}`?\n" |
| 908 |
msgstr "" |
| 909 |
|
| 910 |
#: runtime_errors\attribute_error.py:509 |
| 911 |
msgid "" |
| 912 |
"The object `{name}` has no attribute named `{attribute}`.\n" |
| 913 |
msgstr "" |
| 914 |
|
| 915 |
#: runtime_errors\attribute_error.py:513 |
| 916 |
msgid "" |
| 917 |
"However, `{attr}` is an attribute of `{name}` with a similar meaning.\n" |
| 918 |
msgstr "" |
| 919 |
|
| 920 |
#: runtime_errors\attribute_error.py:517 |
| 921 |
msgid "" |
| 922 |
"However, `{name}` has the following attributes with similar meanings:\n" |
| 923 |
"`{attributes}`.\n" |
| 924 |
msgstr "" |
| 925 |
|
| 926 |
#: runtime_errors\attribute_error.py:526 |
| 927 |
msgid "" |
| 928 |
"Did you mean to separate object names by a comma?\n" |
| 929 |
msgstr "" |
| 930 |
|
| 931 |
#: runtime_errors\attribute_error.py:528 |
| 932 |
msgid "" |
| 933 |
"`{second}` is not an attribute of `{first}`.\n" |
| 934 |
"However, both `{first}` and `{second}` are known objects.\n" |
| 935 |
"Perhaps you wrote a period to separate these two objects, \n" |
| 936 |
"instead of using a comma.\n" |
| 937 |
msgstr "" |
| 938 |
|
| 939 |
#: runtime_errors\file_not_found_error.py:25 |
| 940 |
#: runtime_errors\file_not_found_error.py:36 |
| 941 |
msgid "" |
| 942 |
"In your program, the name of the\n" |
| 943 |
"file that cannot be found is `{filename}`.\n" |
| 944 |
msgstr "" |
| 945 |
|
| 946 |
#: runtime_errors\file_not_found_error.py:32 |
| 947 |
msgid "" |
| 948 |
"{directory}\n" |
| 949 |
"is not a valid directory.\n" |
| 950 |
msgstr "" |
| 951 |
|
| 952 |
#: runtime_errors\file_not_found_error.py:41 |
| 953 |
msgid "" |
| 954 |
"It was expected to be found in the\n" |
| 955 |
"`{directory}` directory.\n" |
| 956 |
msgstr "" |
| 957 |
|
| 958 |
#: runtime_errors\file_not_found_error.py:45 |
| 959 |
msgid "" |
| 960 |
"Did you mean `{similar}`?\n" |
| 961 |
msgstr "" |
| 962 |
|
| 963 |
#: runtime_errors\file_not_found_error.py:47 |
| 964 |
msgid "" |
| 965 |
"The file `{similar}` has a similar name.\n" |
| 966 |
msgstr "" |
| 967 |
|
| 968 |
#: runtime_errors\file_not_found_error.py:52 |
| 969 |
msgid "" |
| 970 |
"Perhaps you meant one of the following files with similar names:\n" |
| 971 |
msgstr "" |
| 972 |
|
| 973 |
#: runtime_errors\file_not_found_error.py:59 runtime_errors\name_error.py:157 |
| 974 |
msgid "" |
| 975 |
"I have no additional information for you.\n" |
| 976 |
msgstr "" |
| 977 |
|
| 978 |
#: runtime_errors\import_error.py:66 |
| 979 |
msgid "" |
| 980 |
"The object that could not be imported is `{name}`.\n" |
| 981 |
"The module or package where it was \n" |
| 982 |
"expected to be found is `{module}`.\n" |
| 983 |
msgstr "" |
| 984 |
|
| 985 |
#: runtime_errors\import_error.py:83 |
| 986 |
msgid "" |
| 987 |
"Python indicated that you have a circular import.\n" |
| 988 |
"This can occur if executing the code in module 'A'\n" |
| 989 |
"results in executing the code in module 'B' where\n" |
| 990 |
"an attempt to import a name from module 'A' is made\n" |
| 991 |
"before the execution of the code in module 'A' had been completed.\n" |
| 992 |
msgstr "" |
| 993 |
|
| 994 |
#: runtime_errors\import_error.py:95 |
| 995 |
msgid "" |
| 996 |
"Inconsistent state: `'{module}'` was apparently not imported.\n" |
| 997 |
"As a result, no further analysis can be done.\n" |
| 998 |
msgstr "" |
| 999 |
|
| 1000 |
#: runtime_errors\import_error.py:107 |
| 1001 |
msgid "" |
| 1002 |
"Perhaps you meant to import `{correct}` (from `{module}`) instead of `{typo}`\n" |
| 1003 |
msgstr "" |
| 1004 |
|
| 1005 |
#: runtime_errors\import_error.py:116 |
| 1006 |
msgid "" |
| 1007 |
"Instead of trying to import `{typo}` from `{module}`, \n" |
| 1008 |
"perhaps you meant to import one of \n" |
| 1009 |
"the following names which are found in module `{module}`:\n" |
| 1010 |
"`{candidates}`\n" |
| 1011 |
msgstr "" |
| 1012 |
|
| 1013 |
#: runtime_errors\import_error.py:134 |
| 1014 |
msgid "" |
| 1015 |
"The object that could not be imported is `{name}`.\n" |
| 1016 |
msgstr "" |
| 1017 |
|
| 1018 |
#: runtime_errors\import_error.py:186 |
| 1019 |
msgid "" |
| 1020 |
"The problem was likely caused by what is known as a 'circular import'.\n" |
| 1021 |
"First, Python imported and started executing the code in file\n" |
| 1022 |
" '{file}'.\n" |
| 1023 |
"which imports module `{last_module}`.\n" |
| 1024 |
"During this process, the code in another file,\n" |
| 1025 |
" '{last_file}'\n" |
| 1026 |
"was executed. However in this last file, an attempt was made\n" |
| 1027 |
"to import the original module `{last_module}`\n" |
| 1028 |
"a second time, before Python had completed the first import.\n" |
| 1029 |
msgstr "" |
| 1030 |
|
| 1031 |
#: runtime_errors\index_error.py:36 |
| 1032 |
msgid "" |
| 1033 |
"You have tried to assign a value to an item of an object\n" |
| 1034 |
"of type `{obj_type}` which I cannot identify.\n" |
| 1035 |
"The index you gave was not an allowed value.\n" |
| 1036 |
msgstr "" |
| 1037 |
|
| 1038 |
#: runtime_errors\index_error.py:46 |
| 1039 |
msgid "" |
| 1040 |
"You have tried to assign a value to index `{index}` of `{name}`,\n" |
| 1041 |
"{obj_type} of length `{length}`.\n" |
| 1042 |
msgstr "" |
| 1043 |
|
| 1044 |
#: runtime_errors\index_error.py:57 runtime_errors\index_error.py:145 |
| 1045 |
msgid "" |
| 1046 |
"The valid index values of `{name}` are integers ranging from\n" |
| 1047 |
"`{min}` to `{max}`.\n" |
| 1048 |
msgstr "" |
| 1049 |
|
| 1050 |
#: runtime_errors\index_error.py:62 runtime_errors\index_error.py:150 |
| 1051 |
msgid "" |
| 1052 |
"Remember: the first item of {obj_type} is not at index 1 but at index 0.\n" |
| 1053 |
msgstr "" |
| 1054 |
|
| 1055 |
#: runtime_errors\index_error.py:67 runtime_errors\index_error.py:155 |
| 1056 |
msgid "" |
| 1057 |
"`{name}` contains no item.\n" |
| 1058 |
msgstr "" |
| 1059 |
|
| 1060 |
#: runtime_errors\index_error.py:68 |
| 1061 |
msgid "" |
| 1062 |
"You have tried to assign a value to index `{index}` of `{name}`,\n" |
| 1063 |
"{obj_type} which contains no item.\n" |
| 1064 |
msgstr "" |
| 1065 |
|
| 1066 |
#: runtime_errors\index_error.py:80 |
| 1067 |
msgid "" |
| 1068 |
"You have tried to get an item of an object\n" |
| 1069 |
"of type `{obj_type}` which I cannot identify.\n" |
| 1070 |
"The index you gave was not an allowed value.\n" |
| 1071 |
msgstr "" |
| 1072 |
|
| 1073 |
#: runtime_errors\index_error.py:125 |
| 1074 |
msgid "" |
| 1075 |
"You have tried to get an item from `{name}`,\n" |
| 1076 |
"{obj_type} of length `{length}`, by using a value for the index\n" |
| 1077 |
"that I cannot determine but which is not allowed.\n" |
| 1078 |
msgstr "" |
| 1079 |
|
| 1080 |
#: runtime_errors\index_error.py:134 |
| 1081 |
msgid "" |
| 1082 |
"You have tried to get the item with index `{index}` of `{name}`,\n" |
| 1083 |
"{obj_type} of length `{length}`.\n" |
| 1084 |
msgstr "" |
| 1085 |
|
| 1086 |
#: runtime_errors\index_error.py:156 |
| 1087 |
msgid "" |
| 1088 |
"You have tried to get the item with index `{index}` of `{name}`,\n" |
| 1089 |
"{obj_type} which contains no item.\n" |
| 1090 |
msgstr "" |
| 1091 |
|
| 1092 |
#: runtime_errors\key_error.py:23 |
| 1093 |
msgid "" |
| 1094 |
"You tried to retrieve an item from an empty `dict`\n" |
| 1095 |
"or a similar object which I cannot identify.\n" |
| 1096 |
msgstr "" |
| 1097 |
|
| 1098 |
#: runtime_errors\key_error.py:29 |
| 1099 |
msgid "" |
| 1100 |
"`{name}` is an empty `dict`.\n" |
| 1101 |
msgstr "" |
| 1102 |
|
| 1103 |
#: runtime_errors\key_error.py:30 |
| 1104 |
msgid "" |
| 1105 |
"You tried to retrieve an item from `{name}` which is an empty `dict`.\n" |
| 1106 |
msgstr "" |
| 1107 |
|
| 1108 |
#: runtime_errors\key_error.py:49 |
| 1109 |
msgid "" |
| 1110 |
"You tried to retrieve an item from an empty ChainMap\n" |
| 1111 |
"or similar object which I cannot identify.\n" |
| 1112 |
msgstr "" |
| 1113 |
|
| 1114 |
#: runtime_errors\key_error.py:55 |
| 1115 |
msgid "" |
| 1116 |
"`{name}` is an empty `ChainMap`.\n" |
| 1117 |
msgstr "" |
| 1118 |
|
| 1119 |
#: runtime_errors\key_error.py:56 |
| 1120 |
msgid "" |
| 1121 |
"You tried to retrieve an item from `{name}` which is an empty `ChainMap`.\n" |
| 1122 |
msgstr "" |
| 1123 |
|
| 1124 |
#: runtime_errors\key_error.py:97 |
| 1125 |
msgid "" |
| 1126 |
"Missing key `{key}` in a `ChainMap` or in a similar object.\n" |
| 1127 |
msgstr "" |
| 1128 |
|
| 1129 |
#: runtime_errors\key_error.py:137 |
| 1130 |
msgid "" |
| 1131 |
"A `dict` or a similar object which I cannot identify\n" |
| 1132 |
"does not have `{key}` as a key.\n" |
| 1133 |
msgstr "" |
| 1134 |
|
| 1135 |
#: runtime_errors\key_error.py:144 |
| 1136 |
msgid "" |
| 1137 |
"The key `{key}` cannot be found in the dict `{name}`.\n" |
| 1138 |
msgstr "" |
| 1139 |
|
| 1140 |
#: runtime_errors\key_error.py:149 |
| 1141 |
msgid "" |
| 1142 |
"The key `{key}` cannot be found in `{name}`, an object of type `{obj_type}`.\n" |
| 1143 |
msgstr "" |
| 1144 |
|
| 1145 |
#: runtime_errors\key_error.py:159 |
| 1146 |
msgid "" |
| 1147 |
"`{name}` contains a string key which is identical to `str({key})`.\n" |
| 1148 |
"Perhaps you forgot to convert the key into a string.\n" |
| 1149 |
msgstr "" |
| 1150 |
|
| 1151 |
#: runtime_errors\key_error.py:163 |
| 1152 |
msgid "" |
| 1153 |
"Did you forget to convert `{key}` into a string?\n" |
| 1154 |
msgstr "" |
| 1155 |
|
| 1156 |
#: runtime_errors\key_error.py:172 |
| 1157 |
msgid "" |
| 1158 |
"`{key}` is a string.\n" |
| 1159 |
"There is a key of `{name}` whose string representation\n" |
| 1160 |
"is identical to `{key}`.\n" |
| 1161 |
msgstr "" |
| 1162 |
|
| 1163 |
#: runtime_errors\key_error.py:177 |
| 1164 |
msgid "" |
| 1165 |
"Did you convert `{key}` into a string by mistake?\n" |
| 1166 |
msgstr "" |
| 1167 |
|
| 1168 |
#: runtime_errors\key_error.py:185 |
| 1169 |
msgid "" |
| 1170 |
"`{name}` is a key of `{dict_}` which is similar to `{key}`.\n" |
| 1171 |
msgstr "" |
| 1172 |
|
| 1173 |
#: runtime_errors\key_error.py:193 |
| 1174 |
msgid "" |
| 1175 |
"`{name}` has some keys similar to `{key}` including:\n" |
| 1176 |
"`{names}`.\n" |
| 1177 |
msgstr "" |
| 1178 |
|
| 1179 |
#: runtime_errors\module_not_found_error.py:36 |
| 1180 |
msgid "" |
| 1181 |
"No additional information available since `{name}` cannot be imported.\n" |
| 1182 |
msgstr "" |
| 1183 |
|
| 1184 |
#: runtime_errors\module_not_found_error.py:47 |
| 1185 |
msgid "" |
| 1186 |
"Did you mean `from {name} import {rest}`?\n" |
| 1187 |
msgstr "" |
| 1188 |
|
| 1189 |
#: runtime_errors\module_not_found_error.py:50 |
| 1190 |
msgid "" |
| 1191 |
"`{rest}` is not a separate module but an object that is part of `{name}`.\n" |
| 1192 |
msgstr "" |
| 1193 |
|
| 1194 |
#: runtime_errors\module_not_found_error.py:60 |
| 1195 |
msgid "" |
| 1196 |
"Did you mean `import {name}.{attr}`?\n" |
| 1197 |
msgstr "" |
| 1198 |
|
| 1199 |
#: runtime_errors\module_not_found_error.py:63 |
| 1200 |
msgid "" |
| 1201 |
"Perhaps you meant `import {name}.{attr}`.\n" |
| 1202 |
"`{attr}` is a name similar to `{rest}` and is a module that\n" |
| 1203 |
"can be imported from `{name}`.\n" |
| 1204 |
msgstr "" |
| 1205 |
|
| 1206 |
#: runtime_errors\module_not_found_error.py:71 |
| 1207 |
msgid "" |
| 1208 |
"Did you mean `from {name} import {attr}`?\n" |
| 1209 |
msgstr "" |
| 1210 |
|
| 1211 |
#: runtime_errors\module_not_found_error.py:74 |
| 1212 |
msgid "" |
| 1213 |
"Perhaps you meant `from {name} import {attr}`.\n" |
| 1214 |
"`{attr}` is a name similar to `{rest}` and is an object that\n" |
| 1215 |
"can be imported from `{name}`.\n" |
| 1216 |
msgstr "" |
| 1217 |
|
| 1218 |
#: runtime_errors\module_not_found_error.py:81 |
| 1219 |
msgid "" |
| 1220 |
"Other objects with similar names that are part of\n" |
| 1221 |
" `{name}` include `{others}`.\n" |
| 1222 |
msgstr "" |
| 1223 |
|
| 1224 |
#: runtime_errors\module_not_found_error.py:87 |
| 1225 |
msgid "" |
| 1226 |
"`{rest}` cannot be imported from `{name}`.\n" |
| 1227 |
msgstr "" |
| 1228 |
|
| 1229 |
#: runtime_errors\module_not_found_error.py:96 |
| 1230 |
msgid "" |
| 1231 |
"The curses module is rarely installed with Python on Windows.\n" |
| 1232 |
msgstr "" |
| 1233 |
|
| 1234 |
#: runtime_errors\module_not_found_error.py:98 |
| 1235 |
msgid "" |
| 1236 |
"The curses module is often not installed with Python.\n" |
| 1237 |
msgstr "" |
| 1238 |
|
| 1239 |
#: runtime_errors\module_not_found_error.py:99 |
| 1240 |
msgid "" |
| 1241 |
"You have tried to import the curses module.\n" |
| 1242 |
msgstr "" |
| 1243 |
|
| 1244 |
#: runtime_errors\module_not_found_error.py:116 |
| 1245 |
msgid "" |
| 1246 |
"No module named `{name}` can be imported.\n" |
| 1247 |
"\n" |
| 1248 |
"Note that there is a module named `{name}` that is part of the\n" |
| 1249 |
"Python standard library. However, it might not be available\n" |
| 1250 |
"for your operating system, or it may to be installed separately.\n" |
| 1251 |
msgstr "" |
| 1252 |
|
| 1253 |
#: runtime_errors\module_not_found_error.py:129 |
| 1254 |
msgid "" |
| 1255 |
"No module named `{name}` can be imported.\n" |
| 1256 |
"Perhaps you need to install it.\n" |
| 1257 |
msgstr "" |
| 1258 |
|
| 1259 |
#: runtime_errors\module_not_found_error.py:138 |
| 1260 |
msgid "" |
| 1261 |
"The following existing modules have names that are similar \n" |
| 1262 |
"to the module you tried to import: `{names}`\n" |
| 1263 |
msgstr "" |
| 1264 |
|
| 1265 |
#: runtime_errors\module_not_found_error.py:143 |
| 1266 |
msgid "" |
| 1267 |
"`{name}` is an existing module that has a similar name.\n" |
| 1268 |
msgstr "" |
| 1269 |
|
| 1270 |
#: runtime_errors\name_error.py:20 |
| 1271 |
msgid "You are already using Python!" |
| 1272 |
msgstr "" |
| 1273 |
|
| 1274 |
#: runtime_errors\name_error.py:35 |
| 1275 |
msgid "" |
| 1276 |
"`{name}` is a name found in module `{mod}`.\n" |
| 1277 |
"Perhaps you forgot to write\n" |
| 1278 |
"\n" |
| 1279 |
" from {mod} import {name}\n" |
| 1280 |
msgstr "" |
| 1281 |
|
| 1282 |
#: runtime_errors\name_error.py:39 |
| 1283 |
msgid "" |
| 1284 |
"`{name}` is a name found in the following modules:\n" |
| 1285 |
"{modules}.\n" |
| 1286 |
"Perhaps you forgot to import `{name}` from one of these modules.\n" |
| 1287 |
msgstr "" |
| 1288 |
|
| 1289 |
#: runtime_errors\name_error.py:62 |
| 1290 |
msgid "" |
| 1291 |
"In your program, `{var_name}` is an unknown name\n" |
| 1292 |
"that exists in an enclosing scope,\n" |
| 1293 |
"but has not yet been assigned a value.\n" |
| 1294 |
msgstr "" |
| 1295 |
|
| 1296 |
#: runtime_errors\name_error.py:89 runtime_errors\name_error.py:173 |
| 1297 |
msgid "" |
| 1298 |
"In your program, no object with the name `{var_name}` exists.\n" |
| 1299 |
msgstr "" |
| 1300 |
|
| 1301 |
#: runtime_errors\name_error.py:126 |
| 1302 |
msgid "" |
| 1303 |
" Or did you mean `{name}`?\n" |
| 1304 |
msgstr "" |
| 1305 |
|
| 1306 |
#: runtime_errors\name_error.py:132 |
| 1307 |
msgid "" |
| 1308 |
"Did you use a colon instead of an equal sign?\n" |
| 1309 |
msgstr "" |
| 1310 |
|
| 1311 |
#: runtime_errors\name_error.py:153 |
| 1312 |
msgid "" |
| 1313 |
"Perhaps you meant to write `{name}` and also forgot to import it.\n" |
| 1314 |
msgstr "" |
| 1315 |
|
| 1316 |
#: runtime_errors\name_error.py:172 |
| 1317 |
msgid "" |
| 1318 |
"Did you mean `1j`?\n" |
| 1319 |
msgstr "" |
| 1320 |
|
| 1321 |
#: runtime_errors\name_error.py:176 |
| 1322 |
msgid "" |
| 1323 |
"However, sometimes `{name}` is intended to represent\n" |
| 1324 |
"the square root of `-1` which is written as `1j` in Python.\n" |
| 1325 |
msgstr "" |
| 1326 |
|
| 1327 |
#: runtime_errors\name_error.py:206 |
| 1328 |
msgid "" |
| 1329 |
"Did you mean `{word}`?\n" |
| 1330 |
msgstr "" |
| 1331 |
|
| 1332 |
#: runtime_errors\name_error.py:207 |
| 1333 |
msgid "" |
| 1334 |
"I suspect you meant to write the keyword `{word}` and made a typo.\n" |
| 1335 |
msgstr "" |
| 1336 |
|
| 1337 |
#: runtime_errors\name_error.py:215 |
| 1338 |
msgid "" |
| 1339 |
"`__debug__` is a constant.\n" |
| 1340 |
msgstr "" |
| 1341 |
|
| 1342 |
#: runtime_errors\name_error.py:216 |
| 1343 |
msgid "" |
| 1344 |
"`__debug__` is a constant that cannot be deleted.\n" |
| 1345 |
"In future Python versions, attempting to delete it will be a SyntaxError.\n" |
| 1346 |
msgstr "" |
| 1347 |
|
| 1348 |
#: runtime_errors\name_error.py:224 |
| 1349 |
msgid "" |
| 1350 |
"You must be a fan of PyConAu!\n" |
| 1351 |
msgstr "" |
| 1352 |
|
| 1353 |
#: runtime_errors\name_error.py:225 |
| 1354 |
msgid "" |
| 1355 |
"I am guessing that you tried to use (one of) the flipfloperators\n" |
| 1356 |
"shown during the second Lightning Talk session of PyConAu 2018,\n" |
| 1357 |
"but that you forgot to install the module from PyPI.\n" |
| 1358 |
"\n" |
| 1359 |
"#### Note that it is still a bad idea.\n" |
| 1360 |
msgstr "" |
| 1361 |
|
| 1362 |
#: runtime_errors\name_error.py:240 runtime_errors\name_error.py:286 |
| 1363 |
msgid "" |
| 1364 |
"Did you forget to import `{name}`?\n" |
| 1365 |
msgstr "" |
| 1366 |
|
| 1367 |
#: runtime_errors\name_error.py:243 |
| 1368 |
msgid "" |
| 1369 |
"The name `{name}` is not defined in your program.\n" |
| 1370 |
"Perhaps you forgot to import `{lowercase}` which is found\n" |
| 1371 |
"in Python's standard library.\n" |
| 1372 |
msgstr "" |
| 1373 |
|
| 1374 |
#: runtime_errors\name_error.py:252 |
| 1375 |
msgid "" |
| 1376 |
"Note that the name of the module is `{lowercase}` and not `{name}`.\n" |
| 1377 |
msgstr "" |
| 1378 |
|
| 1379 |
#: runtime_errors\name_error.py:261 |
| 1380 |
msgid "" |
| 1381 |
"There is a module named `{name}` that is part of the\n" |
| 1382 |
"Python standard library. However, it might not be available\n" |
| 1383 |
"for your operating system, or it may to be installed separately.\n" |
| 1384 |
msgstr "" |
| 1385 |
|
| 1386 |
#: runtime_errors\name_error.py:289 |
| 1387 |
msgid "" |
| 1388 |
"The name `{name}` is not defined in your program.\n" |
| 1389 |
"Perhaps you forgot to import `{name}` which is a known library.\n" |
| 1390 |
msgstr "" |
| 1391 |
|
| 1392 |
#: runtime_errors\name_error.py:299 |
| 1393 |
msgid "" |
| 1394 |
"Did you forget to import `{true_name}`?\n" |
| 1395 |
msgstr "" |
| 1396 |
|
| 1397 |
#: runtime_errors\name_error.py:304 |
| 1398 |
msgid "" |
| 1399 |
"The name `{name}` is not defined in your program.\n" |
| 1400 |
"Perhaps you forgot to write\n" |
| 1401 |
"\n" |
| 1402 |
" import {true_name} as {name}\n" |
| 1403 |
msgstr "" |
| 1404 |
|
| 1405 |
#: runtime_errors\name_error.py:323 |
| 1406 |
msgid "" |
| 1407 |
"The similar name `{name}` was found in the local scope.\n" |
| 1408 |
msgstr "" |
| 1409 |
|
| 1410 |
#: runtime_errors\name_error.py:324 |
| 1411 |
msgid "" |
| 1412 |
"The similar name `{name}` was found in the global scope.\n" |
| 1413 |
msgstr "" |
| 1414 |
|
| 1415 |
#: runtime_errors\name_error.py:325 |
| 1416 |
msgid "" |
| 1417 |
"The Python builtin `{name}` has a similar name.\n" |
| 1418 |
msgstr "" |
| 1419 |
|
| 1420 |
#: runtime_errors\name_error.py:334 runtime_errors\unbound_local_error.py:124 |
| 1421 |
msgid "" |
| 1422 |
"Instead of writing `{name}`, perhaps you meant one of the following:\n" |
| 1423 |
msgstr "" |
| 1424 |
|
| 1425 |
#: runtime_errors\name_error.py:339 runtime_errors\unbound_local_error.py:128 |
| 1426 |
msgid "* Local scope: " |
| 1427 |
msgstr "" |
| 1428 |
|
| 1429 |
#: runtime_errors\name_error.py:340 |
| 1430 |
msgid "* Global scope: " |
| 1431 |
msgstr "" |
| 1432 |
|
| 1433 |
#: runtime_errors\name_error.py:341 |
| 1434 |
msgid "* Python builtins: " |
| 1435 |
msgstr "" |
| 1436 |
|
| 1437 |
#: runtime_errors\name_error.py:405 |
| 1438 |
msgid "" |
| 1439 |
"Did you write `self` at the wrong place?\n" |
| 1440 |
msgstr "" |
| 1441 |
|
| 1442 |
#: runtime_errors\name_error.py:406 |
| 1443 |
msgid "" |
| 1444 |
"The {scope} object `{obj}`\n" |
| 1445 |
"has an attribute named `{unknown_name}`.\n" |
| 1446 |
"Perhaps you should have written `self.{unknown_name}(...`\n" |
| 1447 |
"instead of `{unknown_name}(self, ...`.\n" |
| 1448 |
msgstr "" |
| 1449 |
|
| 1450 |
#: runtime_errors\name_error.py:413 |
| 1451 |
msgid "" |
| 1452 |
"Did you forget to add `self.`?\n" |
| 1453 |
msgstr "" |
| 1454 |
|
| 1455 |
#: runtime_errors\name_error.py:414 |
| 1456 |
msgid "" |
| 1457 |
"A {scope} object, `{obj}`,\n" |
| 1458 |
"has an attribute named `{unknown_name}`.\n" |
| 1459 |
"Perhaps you should have written `self.{unknown_name}`\n" |
| 1460 |
"instead of `{unknown_name}`.\n" |
| 1461 |
msgstr "" |
| 1462 |
|
| 1463 |
#: runtime_errors\name_error.py:421 |
| 1464 |
msgid "" |
| 1465 |
"Did you forget to add `{name}.`?\n" |
| 1466 |
msgstr "" |
| 1467 |
|
| 1468 |
#: runtime_errors\name_error.py:422 |
| 1469 |
msgid "" |
| 1470 |
"The {scope} object `{name}`\n" |
| 1471 |
"has an attribute named `{unknown_name}`.\n" |
| 1472 |
"Perhaps you should have written `{name}.{unknown_name}`\n" |
| 1473 |
"instead of `{unknown_name}`.\n" |
| 1474 |
msgstr "" |
| 1475 |
|
| 1476 |
#: runtime_errors\os_error.py:19 |
| 1477 |
msgid "" |
| 1478 |
"I suspect that you are trying to connect to a server and\n" |
| 1479 |
"that a connection cannot be made.\n" |
| 1480 |
"\n" |
| 1481 |
"If that is the case, check for typos in the URL\n" |
| 1482 |
"and check your internet connectivity.\n" |
| 1483 |
msgstr "" |
| 1484 |
|
| 1485 |
#: runtime_errors\os_error.py:37 syntax_errors\message_analyzer.py:1922 |
| 1486 |
msgid "" |
| 1487 |
"Perhaps you need to double the backslash characters.\n" |
| 1488 |
msgstr "" |
| 1489 |
|
| 1490 |
#: runtime_errors\os_error.py:38 |
| 1491 |
msgid "" |
| 1492 |
"I suspect that you wrote a filename or path that contains\n" |
| 1493 |
"at least one backslash character, `\\`.\n" |
| 1494 |
"Python likely interpreted this as indicating the beginning of\n" |
| 1495 |
"what is known as an escape sequence.\n" |
| 1496 |
"To solve the problem, either write a so-called 'raw string'\n" |
| 1497 |
"by adding the letter `r` as a prefix in\n" |
| 1498 |
"front of the filename or path, or replace all single backslash\n" |
| 1499 |
"characters, `\\`, by double ones: `\\\\`.\n" |
| 1500 |
msgstr "" |
| 1501 |
|
| 1502 |
#: runtime_errors\runtime_error.py:48 |
| 1503 |
msgid "" |
| 1504 |
"While you were iterating over the items of `{name}` ({container_type})\n" |
| 1505 |
"in a `{for_while}` loop, you either tried to add or remove items from it.\n" |
| 1506 |
"Suggestion: start by making a copy of `{name}` and iterate over the items\n" |
| 1507 |
"of that copy if you want to change `{name}` inside a loop.\n" |
| 1508 |
"You might want to do this as follows:\n" |
| 1509 |
"\n" |
| 1510 |
" my_{name} = {name}.copy()\n" |
| 1511 |
" for item in my_{name}:\n" |
| 1512 |
" # Change {name}\n" |
| 1513 |
msgstr "" |
| 1514 |
|
| 1515 |
#: runtime_errors\runtime_error.py:59 |
| 1516 |
msgid "" |
| 1517 |
"While you were iterating over the items of a container ({container_type})\n" |
| 1518 |
"in a `{for_while}` loop, you either tried to add or remove items from it.\n" |
| 1519 |
"Suggestion: start by making a copy of the container and iterate over the items\n" |
| 1520 |
"of that copy if you want to change that container inside a loop.\n" |
| 1521 |
msgstr "" |
| 1522 |
|
| 1523 |
#: runtime_errors\type_error.py:55 |
| 1524 |
msgid "" |
| 1525 |
"Did you forget to convert the string `{name}` into {number_type}?\n" |
| 1526 |
msgstr "" |
| 1527 |
|
| 1528 |
#: runtime_errors\type_error.py:60 |
| 1529 |
msgid "" |
| 1530 |
"Perhaps you forgot to convert the string `{name}` into {number_type}.\n" |
| 1531 |
msgstr "" |
| 1532 |
|
| 1533 |
#: runtime_errors\type_error.py:72 |
| 1534 |
msgid "" |
| 1535 |
"You cannot use complex numbers with the modulo operator `%`.\n" |
| 1536 |
msgstr "" |
| 1537 |
|
| 1538 |
#: runtime_errors\type_error.py:89 runtime_errors\type_error.py:103 |
| 1539 |
msgid "" |
| 1540 |
"The arguments of `divmod` must be integers (`int`) or real (`float`) numbers.\n" |
| 1541 |
msgstr "" |
| 1542 |
|
| 1543 |
#: runtime_errors\type_error.py:94 runtime_errors\type_error.py:107 |
| 1544 |
msgid "" |
| 1545 |
"At least one of the arguments was a complex number.\n" |
| 1546 |
msgstr "" |
| 1547 |
|
| 1548 |
#: runtime_errors\type_error.py:124 |
| 1549 |
msgid "" |
| 1550 |
"The second argument of the function `getattr()` must be a string.\n" |
| 1551 |
msgstr "" |
| 1552 |
|
| 1553 |
#: runtime_errors\type_error.py:129 |
| 1554 |
msgid "" |
| 1555 |
"The second argument of the function `hasattr()` must be a string.\n" |
| 1556 |
msgstr "" |
| 1557 |
|
| 1558 |
#: runtime_errors\type_error.py:132 |
| 1559 |
msgid "" |
| 1560 |
"Some attribute of a function you called is expected to be a string.\n" |
| 1561 |
msgstr "" |
| 1562 |
|
| 1563 |
#: runtime_errors\type_error.py:153 runtime_errors\type_error.py:176 |
| 1564 |
msgid "" |
| 1565 |
"You tried to concatenate (add) two different types of objects:\n" |
| 1566 |
"{first} and {second}.\n" |
| 1567 |
msgstr "" |
| 1568 |
|
| 1569 |
#: runtime_errors\type_error.py:206 |
| 1570 |
msgid "" |
| 1571 |
"You tried to add two incompatible types of objects:\n" |
| 1572 |
"{first} and {second}.\n" |
| 1573 |
msgstr "" |
| 1574 |
|
| 1575 |
#: runtime_errors\type_error.py:214 |
| 1576 |
msgid "" |
| 1577 |
"You tried to subtract two incompatible types of objects:\n" |
| 1578 |
"{first} and {second}.\n" |
| 1579 |
msgstr "" |
| 1580 |
|
| 1581 |
#: runtime_errors\type_error.py:222 |
| 1582 |
msgid "" |
| 1583 |
"You tried to multiply two incompatible types of objects:\n" |
| 1584 |
"{first} and {second}.\n" |
| 1585 |
msgstr "" |
| 1586 |
|
| 1587 |
#: runtime_errors\type_error.py:230 |
| 1588 |
msgid "" |
| 1589 |
"You tried to divide two incompatible types of objects:\n" |
| 1590 |
"{first} and {second}.\n" |
| 1591 |
msgstr "" |
| 1592 |
|
| 1593 |
#: runtime_errors\type_error.py:238 |
| 1594 |
msgid "" |
| 1595 |
"You tried to perform the bitwise operation {operator}\n" |
| 1596 |
"on two incompatible types of objects:\n" |
| 1597 |
"{first} and {second}.\n" |
| 1598 |
msgstr "" |
| 1599 |
|
| 1600 |
#: runtime_errors\type_error.py:253 runtime_errors\type_error.py:860 |
| 1601 |
#: runtime_errors\type_error.py:968 syntax_errors\statement_analyzer.py:1287 |
| 1602 |
#: syntax_errors\statement_analyzer.py:1563 |
| 1603 |
msgid "" |
| 1604 |
"Did you mean `{line}`?\n" |
| 1605 |
msgstr "" |
| 1606 |
|
| 1607 |
#: runtime_errors\type_error.py:254 |
| 1608 |
msgid "" |
| 1609 |
"Outside of Python, `^` is often used to indicate exponentiation.\n" |
| 1610 |
msgstr "" |
| 1611 |
|
| 1612 |
#: runtime_errors\type_error.py:257 runtime_errors\type_error.py:863 |
| 1613 |
msgid "" |
| 1614 |
"Perhaps you meant `{line}`.\n" |
| 1615 |
msgstr "" |
| 1616 |
|
| 1617 |
#: runtime_errors\type_error.py:260 |
| 1618 |
msgid "" |
| 1619 |
"You tried to perform the bit shifting operation {operator}\n" |
| 1620 |
"on two incompatible types of objects:\n" |
| 1621 |
"{first} and {second}.\n" |
| 1622 |
msgstr "" |
| 1623 |
|
| 1624 |
#: runtime_errors\type_error.py:270 |
| 1625 |
msgid "" |
| 1626 |
"You tried to exponentiate (raise to a power)\n" |
| 1627 |
"using two incompatible types of objects:\n" |
| 1628 |
"{first} and {second}.\n" |
| 1629 |
msgstr "" |
| 1630 |
|
| 1631 |
#: runtime_errors\type_error.py:279 |
| 1632 |
msgid "" |
| 1633 |
"You tried to use the operator {operator}\n" |
| 1634 |
"using two incompatible types of objects:\n" |
| 1635 |
"{first} and {second}.\n" |
| 1636 |
"This operator is normally used only\n" |
| 1637 |
"for multiplication of matrices.\n" |
| 1638 |
msgstr "" |
| 1639 |
|
| 1640 |
#: runtime_errors\type_error.py:314 |
| 1641 |
msgid "" |
| 1642 |
"Complex numbers cannot be ordered.\n" |
| 1643 |
msgstr "" |
| 1644 |
|
| 1645 |
#: runtime_errors\type_error.py:315 |
| 1646 |
msgid "" |
| 1647 |
"You tried to do an order comparison ({operator})\n" |
| 1648 |
"between two complex numbers.\n" |
| 1649 |
msgstr "" |
| 1650 |
|
| 1651 |
#: runtime_errors\type_error.py:321 |
| 1652 |
msgid "" |
| 1653 |
"You tried to do an order comparison ({operator})\n" |
| 1654 |
"between two incompatible types of objects:\n" |
| 1655 |
"{first} and {second}.\n" |
| 1656 |
msgstr "" |
| 1657 |
|
| 1658 |
#: runtime_errors\type_error.py:349 |
| 1659 |
msgid "" |
| 1660 |
"`{iter}` is an iterator. You likely needed to write something like\n" |
| 1661 |
"\n" |
| 1662 |
" next({iter}())\n" |
| 1663 |
"\n" |
| 1664 |
"or use it in a `for` loop to get a number from it\n" |
| 1665 |
"before comparing it to {number}.\n" |
| 1666 |
msgstr "" |
| 1667 |
|
| 1668 |
#: runtime_errors\type_error.py:381 |
| 1669 |
msgid "Perhaps you meant to write `{operator}=` instead of `={operator}`" |
| 1670 |
msgstr "" |
| 1671 |
|
| 1672 |
#: runtime_errors\type_error.py:385 |
| 1673 |
msgid "" |
| 1674 |
"You tried to use the unary operator '{operator}'\n" |
| 1675 |
"with the following type of object: {obj}.\n" |
| 1676 |
"This operation is not defined for this type of object.\n" |
| 1677 |
msgstr "" |
| 1678 |
|
| 1679 |
#: runtime_errors\type_error.py:411 |
| 1680 |
msgid "" |
| 1681 |
"In Python, some objects are known as immutable:\n" |
| 1682 |
"once defined, their value cannot be changed.\n" |
| 1683 |
"You tried change part of such an immutable object: {obj},\n" |
| 1684 |
"most likely by using an indexing operation.\n" |
| 1685 |
msgstr "" |
| 1686 |
|
| 1687 |
#: runtime_errors\type_error.py:418 |
| 1688 |
msgid "" |
| 1689 |
"Did you mean to use a list?\n" |
| 1690 |
msgstr "" |
| 1691 |
|
| 1692 |
#: runtime_errors\type_error.py:419 |
| 1693 |
msgid "" |
| 1694 |
"Perhaps you meant to use a list instead.\n" |
| 1695 |
msgstr "" |
| 1696 |
|
| 1697 |
#: runtime_errors\type_error.py:432 |
| 1698 |
msgid "" |
| 1699 |
"Exceptions must be derived from `BaseException`.\n" |
| 1700 |
"It is recommended that user-defined exceptions derive from\n" |
| 1701 |
"`Exception`, a subclass of `BaseException`.\n" |
| 1702 |
msgstr "" |
| 1703 |
|
| 1704 |
#: runtime_errors\type_error.py:458 |
| 1705 |
msgid "" |
| 1706 |
"In an `except` statement, you must only have classes that derive from `BaseException`.\n" |
| 1707 |
msgstr "" |
| 1708 |
|
| 1709 |
#: runtime_errors\type_error.py:462 |
| 1710 |
msgid "" |
| 1711 |
"The following is not a valid classes: `{not_exception}`.\n" |
| 1712 |
msgstr "" |
| 1713 |
|
| 1714 |
#: runtime_errors\type_error.py:466 |
| 1715 |
msgid "" |
| 1716 |
"The following are not valid classes: `{not_exception}`.\n" |
| 1717 |
msgstr "" |
| 1718 |
|
| 1719 |
#: runtime_errors\type_error.py:503 |
| 1720 |
msgid "" |
| 1721 |
"You apparently have called the function `{fn_name}` with\n" |
| 1722 |
"{nb_given} positional argument(s) while it requires {nb_required}\n" |
| 1723 |
"such positional argument(s).\n" |
| 1724 |
msgstr "" |
| 1725 |
|
| 1726 |
#: runtime_errors\type_error.py:509 |
| 1727 |
msgid "" |
| 1728 |
"Perhaps you forgot `self` when defining `{fn_name}`.\n" |
| 1729 |
msgstr "" |
| 1730 |
|
| 1731 |
#: runtime_errors\type_error.py:529 |
| 1732 |
msgid "" |
| 1733 |
"You apparently have called the function '{fn_name}' with\n" |
| 1734 |
"fewer positional arguments than it requires ({nb_required} missing).\n" |
| 1735 |
msgstr "" |
| 1736 |
|
| 1737 |
#: runtime_errors\type_error.py:546 runtime_errors\type_error.py:934 |
| 1738 |
#: warning_parsers\syntax_warning.py:21 warning_parsers\syntax_warning.py:69 |
| 1739 |
msgid "" |
| 1740 |
"\n" |
| 1741 |
"Note: `NoneType` means that the object has a value of `None`.\n" |
| 1742 |
msgstr "" |
| 1743 |
|
| 1744 |
#: runtime_errors\type_error.py:553 warning_parsers\syntax_warning.py:27 |
| 1745 |
msgid "" |
| 1746 |
"Python indicates that you have an object of type `{obj_type}`,\n" |
| 1747 |
"followed by something surrounded by parentheses, `(...)`,\n" |
| 1748 |
"which Python took as an indication of a function call.\n" |
| 1749 |
"Either the object of type `{obj_type}` was meant to be a function,\n" |
| 1750 |
"or you forgot a comma before `(...)`.\n" |
| 1751 |
msgstr "" |
| 1752 |
|
| 1753 |
#: runtime_errors\type_error.py:580 |
| 1754 |
msgid "" |
| 1755 |
"The parenthesis `()` following `{obj_name}` are interpreted\n" |
| 1756 |
"by Python as a function call for `{obj_name}`.\n" |
| 1757 |
"However, `{obj_name}` is not a function but an object of type `{obj_type}`.\n" |
| 1758 |
msgstr "" |
| 1759 |
|
| 1760 |
#: runtime_errors\type_error.py:587 |
| 1761 |
msgid "" |
| 1762 |
"Because of the surrounding parenthesis, `{fn_call}` \n" |
| 1763 |
"is interpreted by Python as indicating a function call for \n" |
| 1764 |
"`{obj_name}`, which is an object of type `{obj_type}`\n" |
| 1765 |
"which cannot be called.\n" |
| 1766 |
"\n" |
| 1767 |
msgstr "" |
| 1768 |
|
| 1769 |
#: runtime_errors\type_error.py:600 |
| 1770 |
msgid "" |
| 1771 |
"However, `{fn_call}` is a `tuple`.\n" |
| 1772 |
"Either the object `{obj_name}` was meant to be a function\n" |
| 1773 |
"or you have a missing comma between the object `{obj_name}`\n" |
| 1774 |
"and the tuple `{fn_call}` and meant to write\n" |
| 1775 |
"`{obj_name}, {fn_call}`.\n" |
| 1776 |
msgstr "" |
| 1777 |
|
| 1778 |
#: runtime_errors\type_error.py:607 |
| 1779 |
msgid "" |
| 1780 |
"Did you forget a comma between `{obj_name}` and `{fn_call}`?\n" |
| 1781 |
msgstr "" |
| 1782 |
|
| 1783 |
#: runtime_errors\type_error.py:613 |
| 1784 |
msgid "" |
| 1785 |
"However, `{obj_name}` is a sequence.\n" |
| 1786 |
"Perhaps you meant to use `[]` instead of `()` and write\n" |
| 1787 |
"`{obj_name}[{slice}]`\n" |
| 1788 |
msgstr "" |
| 1789 |
|
| 1790 |
#: runtime_errors\type_error.py:618 |
| 1791 |
msgid "" |
| 1792 |
"Did you mean `{obj_name}[{slice}]`?\n" |
| 1793 |
msgstr "" |
| 1794 |
|
| 1795 |
#: runtime_errors\type_error.py:629 |
| 1796 |
msgid "" |
| 1797 |
"However, both `{obj_name}` and `{fn_call}` are numbers.\n" |
| 1798 |
"Perhaps you forgot a multiplication operator, `*`,\n" |
| 1799 |
"and meant to write `{obj_name} * {fn_call}`.\n" |
| 1800 |
msgstr "" |
| 1801 |
|
| 1802 |
#: runtime_errors\type_error.py:634 |
| 1803 |
msgid "" |
| 1804 |
"Did you mean `{obj_name} * {fn_call}`?\n" |
| 1805 |
msgstr "" |
| 1806 |
|
| 1807 |
#: runtime_errors\type_error.py:646 |
| 1808 |
msgid "" |
| 1809 |
"Did you forget to convert `{name}` into an integer?\n" |
| 1810 |
msgstr "" |
| 1811 |
|
| 1812 |
#: runtime_errors\type_error.py:647 |
| 1813 |
msgid "" |
| 1814 |
"Perhaps you forgot to convert `{name}` into an integer.\n" |
| 1815 |
msgstr "" |
| 1816 |
|
| 1817 |
#: runtime_errors\type_error.py:659 |
| 1818 |
msgid "" |
| 1819 |
"You can only multiply sequences, such as list, tuples,\n" |
| 1820 |
" strings, etc., by integers.\n" |
| 1821 |
msgstr "" |
| 1822 |
|
| 1823 |
#: runtime_errors\type_error.py:681 |
| 1824 |
msgid "" |
| 1825 |
"Did you forget to convert `{name1}` and `{name2}` into integers?\n" |
| 1826 |
msgstr "" |
| 1827 |
|
| 1828 |
#: runtime_errors\type_error.py:684 |
| 1829 |
msgid "" |
| 1830 |
"Perhaps you forgot to convert `{name1}` and `{name2}` into integers.\n" |
| 1831 |
msgstr "" |
| 1832 |
|
| 1833 |
#: runtime_errors\type_error.py:720 |
| 1834 |
msgid "" |
| 1835 |
"You wrote an object whose value is `None` where an integer was expected.\n" |
| 1836 |
msgstr "" |
| 1837 |
|
| 1838 |
#: runtime_errors\type_error.py:730 |
| 1839 |
msgid "" |
| 1840 |
"You wrote an object of type `{obj}` where an integer was expected.\n" |
| 1841 |
msgstr "" |
| 1842 |
|
| 1843 |
#: runtime_errors\type_error.py:740 |
| 1844 |
msgid "" |
| 1845 |
"Did you forget to convert `{names}` into integers?\n" |
| 1846 |
msgstr "" |
| 1847 |
|
| 1848 |
#: runtime_errors\type_error.py:743 |
| 1849 |
msgid "Perhaps you forgot to convert `{names}` into integers." |
| 1850 |
msgstr "" |
| 1851 |
|
| 1852 |
#: runtime_errors\type_error.py:766 |
| 1853 |
msgid "" |
| 1854 |
"In the expression `{line}`\n" |
| 1855 |
"what is included between the square brackets, `[...]`,\n" |
| 1856 |
"must be either an integer or a slice\n" |
| 1857 |
"(`start:stop` or `start:stop:step`) \n" |
| 1858 |
"and you have used {obj_type} instead.\n" |
| 1859 |
msgstr "" |
| 1860 |
|
| 1861 |
#: runtime_errors\type_error.py:777 |
| 1862 |
msgid "" |
| 1863 |
"Note: sometimes this exception is raised because what Python\n" |
| 1864 |
"interprets as indices was meant to be a separate list, and a comma\n" |
| 1865 |
"should have been written before the opening `[` of that list.\n" |
| 1866 |
msgstr "" |
| 1867 |
|
| 1868 |
#: runtime_errors\type_error.py:782 syntax_errors\statement_analyzer.py:1187 |
| 1869 |
#: syntax_errors\statement_analyzer.py:1559 |
| 1870 |
msgid "" |
| 1871 |
"Did you forget a comma?\n" |
| 1872 |
msgstr "" |
| 1873 |
|
| 1874 |
#: runtime_errors\type_error.py:817 |
| 1875 |
msgid "" |
| 1876 |
"Perhaps you have forgotten a comma between two identical lists\n" |
| 1877 |
"`{container}`. The second list had been interpreted as\n" |
| 1878 |
"the indexation of the first one by the index `{new_index}`\n" |
| 1879 |
msgstr "" |
| 1880 |
|
| 1881 |
#: runtime_errors\type_error.py:823 |
| 1882 |
msgid "" |
| 1883 |
"Perhaps you have forgotten a comma between the object `{container}`\n" |
| 1884 |
"and the list `{index}`. The list `{index}` had been interpreted as\n" |
| 1885 |
"the indexation of object `{container}` by the index `{new_index}`\n" |
| 1886 |
msgstr "" |
| 1887 |
|
| 1888 |
#: runtime_errors\type_error.py:828 |
| 1889 |
msgid "" |
| 1890 |
"Did you forget a comma before `{index}`?\n" |
| 1891 |
msgstr "" |
| 1892 |
|
| 1893 |
#: runtime_errors\type_error.py:887 |
| 1894 |
msgid "" |
| 1895 |
"When using a slice to extract a range of elements\n" |
| 1896 |
"from a sequence, that is something like\n" |
| 1897 |
"`[start:stop]` or `[start:stop:step]`\n" |
| 1898 |
"each of `start`, `stop`, `step` must be either an integer, `None`,\n" |
| 1899 |
"or possibly some other object having an `__index__` method.\n" |
| 1900 |
msgstr "" |
| 1901 |
|
| 1902 |
#: runtime_errors\type_error.py:904 |
| 1903 |
msgid "" |
| 1904 |
"Only hashable objects can be used\n" |
| 1905 |
"as elements of `set` or keys of `dict`.\n" |
| 1906 |
"Hashable objects are objects that do not change value\n" |
| 1907 |
"once they have been created." |
| 1908 |
msgstr "" |
| 1909 |
|
| 1910 |
#: runtime_errors\type_error.py:914 |
| 1911 |
msgid "" |
| 1912 |
"Instead of using {original}, consider using {replacement}.\n" |
| 1913 |
msgstr "" |
| 1914 |
|
| 1915 |
#: runtime_errors\type_error.py:940 warning_parsers\syntax_warning.py:75 |
| 1916 |
msgid "" |
| 1917 |
"Subscriptable objects are typically containers from which\n" |
| 1918 |
"you can retrieve item using the notation `[...]`.\n" |
| 1919 |
msgstr "" |
| 1920 |
|
| 1921 |
#: runtime_errors\type_error.py:952 warning_parsers\syntax_warning.py:79 |
| 1922 |
msgid "" |
| 1923 |
"Using this notation, you attempted to retrieve an item\n" |
| 1924 |
"from an object of type `{obj_type}` which is not allowed.\n" |
| 1925 |
msgstr "" |
| 1926 |
|
| 1927 |
#: runtime_errors\type_error.py:969 |
| 1928 |
msgid "" |
| 1929 |
"Perhaps you meant to write `{line}`.\n" |
| 1930 |
msgstr "" |
| 1931 |
|
| 1932 |
#: runtime_errors\type_error.py:972 |
| 1933 |
msgid "" |
| 1934 |
"Using this notation, you attempted to retrieve an item\n" |
| 1935 |
"from `{name}`, an object of type `{obj_type}`. This is not allowed.\n" |
| 1936 |
msgstr "" |
| 1937 |
|
| 1938 |
#: runtime_errors\type_error.py:1006 |
| 1939 |
msgid "" |
| 1940 |
"An iterable is an object capable of returning its members one at a time.\n" |
| 1941 |
"Python containers (`list, tuple, dict`, etc.) are iterables.\n" |
| 1942 |
"'{obj_name}' is not a container. A container is required here.\n" |
| 1943 |
msgstr "" |
| 1944 |
|
| 1945 |
#: runtime_errors\type_error.py:1021 |
| 1946 |
msgid "" |
| 1947 |
"An iterable is an object capable of returning its members one at a time.\n" |
| 1948 |
"Python containers (`list, tuple, dict`, etc.) are iterables.\n" |
| 1949 |
"An iterable is required here.\n" |
| 1950 |
msgstr "" |
| 1951 |
|
| 1952 |
#: runtime_errors\type_error.py:1036 runtime_errors\value_error.py:25 |
| 1953 |
msgid "" |
| 1954 |
"Unpacking is a convenient way to assign a name,\n" |
| 1955 |
"to each item of an iterable.\n" |
| 1956 |
msgstr "" |
| 1957 |
|
| 1958 |
#: runtime_errors\type_error.py:1040 |
| 1959 |
msgid "" |
| 1960 |
"An iterable is an object capable of returning its members one at a time.\n" |
| 1961 |
"Python containers (`list, tuple, dict`, etc.) are iterables,\n" |
| 1962 |
"but not objects of type `{obj_type}`.\n" |
| 1963 |
msgstr "" |
| 1964 |
|
| 1965 |
#: runtime_errors\type_error.py:1055 |
| 1966 |
msgid "" |
| 1967 |
"{function} does not accept a sequence as an argument.\n" |
| 1968 |
"Instead of writing `{line}`\n" |
| 1969 |
"perhaps you should use the `dict.fromkeys()` method: `{new_line}`.\n" |
| 1970 |
msgstr "" |
| 1971 |
|
| 1972 |
#: runtime_errors\type_error.py:1060 |
| 1973 |
msgid "" |
| 1974 |
"Perhaps you need to use the `dict.fromkeys()` method.\n" |
| 1975 |
msgstr "" |
| 1976 |
|
| 1977 |
#: runtime_errors\type_error.py:1098 runtime_errors\type_error.py:1122 |
| 1978 |
msgid "" |
| 1979 |
"Did you forget to call `{name}`?\n" |
| 1980 |
msgstr "" |
| 1981 |
|
| 1982 |
#: runtime_errors\type_error.py:1099 runtime_errors\type_error.py:1123 |
| 1983 |
msgid "" |
| 1984 |
"I suspect that you forgot to add parentheses to call `{name}`.\n" |
| 1985 |
"You might have meant to write:\n" |
| 1986 |
"`{line}`\n" |
| 1987 |
msgstr "" |
| 1988 |
|
| 1989 |
#: runtime_errors\type_error.py:1137 |
| 1990 |
msgid "" |
| 1991 |
"The function `vars` is used to list the content of the\n" |
| 1992 |
"`__dict__` attribute of an object.\n" |
| 1993 |
msgstr "" |
| 1994 |
|
| 1995 |
#: runtime_errors\type_error.py:1146 |
| 1996 |
msgid "" |
| 1997 |
"Object `{name}` uses `__slots__` instead of `__dict__`.\n" |
| 1998 |
msgstr "" |
| 1999 |
|
| 2000 |
#: runtime_errors\type_error.py:1150 |
| 2001 |
msgid "" |
| 2002 |
"`{name}`, the argument of `vars`, is an object without such an attribute.\n" |
| 2003 |
msgstr "" |
| 2004 |
|
| 2005 |
#: runtime_errors\type_error.py:1171 |
| 2006 |
msgid "" |
| 2007 |
"You have specified the value of argument `{argument}` more than once\n" |
| 2008 |
"when calling the function named `{function}`.\n" |
| 2009 |
msgstr "" |
| 2010 |
|
| 2011 |
#: runtime_errors\type_error.py:1192 |
| 2012 |
msgid "" |
| 2013 |
"This function has only one argument: `{arguments}`\n" |
| 2014 |
msgstr "" |
| 2015 |
|
| 2016 |
#: runtime_errors\type_error.py:1196 |
| 2017 |
msgid "" |
| 2018 |
"This function has the following arguments:\n" |
| 2019 |
"`{arguments}`\n" |
| 2020 |
msgstr "" |
| 2021 |
|
| 2022 |
#: runtime_errors\type_error.py:1206 |
| 2023 |
msgid "" |
| 2024 |
"I am guessing that you were trying to count the number of elements\n" |
| 2025 |
"produced by a generator expression. You first need to capture them\n" |
| 2026 |
"in a list:\n" |
| 2027 |
"\n" |
| 2028 |
msgstr "" |
| 2029 |
|
| 2030 |
#: runtime_errors\type_error.py:1228 |
| 2031 |
msgid "" |
| 2032 |
"You likely need to build a list first.\n" |
| 2033 |
msgstr "" |
| 2034 |
|
| 2035 |
#: runtime_errors\type_error.py:1264 |
| 2036 |
msgid "" |
| 2037 |
"You are attempting to subclass a module.\n" |
| 2038 |
"You likely forgot to import a class from that module.\n" |
| 2039 |
msgstr "" |
| 2040 |
|
| 2041 |
#: runtime_errors\type_error.py:1281 |
| 2042 |
msgid "" |
| 2043 |
"Did you mean `{new_line}`?\n" |
| 2044 |
msgstr "" |
| 2045 |
|
| 2046 |
#: runtime_errors\type_error.py:1282 |
| 2047 |
msgid "" |
| 2048 |
"You are attempting to subclass the module `{mod_name}`.\n" |
| 2049 |
"Perhaps you meant:\n" |
| 2050 |
"\n" |
| 2051 |
" {new_line}\n" |
| 2052 |
" ...\n" |
| 2053 |
"\n" |
| 2054 |
msgstr "" |
| 2055 |
|
| 2056 |
#: runtime_errors\type_error.py:1312 |
| 2057 |
msgid "" |
| 2058 |
"`{name}` is a `GenericAlias` used for type annotations.\n" |
| 2059 |
msgstr "" |
| 2060 |
|
| 2061 |
#: runtime_errors\unbound_local_error.py:31 |
| 2062 |
msgid "" |
| 2063 |
"You're trying to use the name `{name}` identified by Python as being\n" |
| 2064 |
"in the local scope of a function before having assigned it a value.\n" |
| 2065 |
msgstr "" |
| 2066 |
|
| 2067 |
#: runtime_errors\unbound_local_error.py:62 |
| 2068 |
msgid "" |
| 2069 |
"The name `{var_name}` exists in both the global and nonlocal scope.\n" |
| 2070 |
"This can be rather confusing and is not recommended.\n" |
| 2071 |
"Depending on which variable you wanted to refer to, you needed to add either\n" |
| 2072 |
"\n" |
| 2073 |
" global {var_name}\n" |
| 2074 |
"\n" |
| 2075 |
"or\n" |
| 2076 |
"\n" |
| 2077 |
" nonlocal {var_name}\n" |
| 2078 |
"\n" |
| 2079 |
"as the first line inside your function.\n" |
| 2080 |
msgstr "" |
| 2081 |
|
| 2082 |
#: runtime_errors\unbound_local_error.py:72 |
| 2083 |
msgid "" |
| 2084 |
"Did you forget to add either `global {var_name}` or \n" |
| 2085 |
"`nonlocal {var_name}`?\n" |
| 2086 |
msgstr "" |
| 2087 |
|
| 2088 |
#: runtime_errors\unbound_local_error.py:84 |
| 2089 |
msgid "" |
| 2090 |
"`{name}` is a Python builtin function.\n" |
| 2091 |
"You have tried to assign a value to `{name}` inside a function\n" |
| 2092 |
"while also using its original meaning in the function.\n" |
| 2093 |
"\n" |
| 2094 |
"Note that it is generally not a good idea to give a local variable\n" |
| 2095 |
"the same name as a Python builtin function (like `{name}`).\n" |
| 2096 |
msgstr "" |
| 2097 |
|
| 2098 |
#: runtime_errors\unbound_local_error.py:101 |
| 2099 |
msgid "" |
| 2100 |
"The name `{var_name}` exists in the {scope} scope.\n" |
| 2101 |
"Perhaps the statement\n" |
| 2102 |
"\n" |
| 2103 |
" {scope} {var_name}\n" |
| 2104 |
"\n" |
| 2105 |
"should have been included as the first line inside your function.\n" |
| 2106 |
msgstr "" |
| 2107 |
|
| 2108 |
#: runtime_errors\unbound_local_error.py:108 |
| 2109 |
msgid "" |
| 2110 |
"Did you forget to add `{scope} {var_name}`?\n" |
| 2111 |
msgstr "" |
| 2112 |
|
| 2113 |
#: runtime_errors\unbound_local_error.py:119 |
| 2114 |
msgid "The similar name `{name}` was found in the local scope. " |
| 2115 |
msgstr "" |
| 2116 |
|
| 2117 |
#: runtime_errors\value_error.py:72 runtime_errors\value_error.py:81 |
| 2118 |
msgid "" |
| 2119 |
"In this instance, there are more names ({nb_names})\n" |
| 2120 |
"than {length}, the length of the iterable.\n" |
| 2121 |
msgstr "" |
| 2122 |
|
| 2123 |
#: runtime_errors\value_error.py:87 |
| 2124 |
msgid "" |
| 2125 |
"In this instance, there are more names ({nb_names})\n" |
| 2126 |
"than the length of the iterable, {iter_type} of length {length}.\n" |
| 2127 |
msgstr "" |
| 2128 |
|
| 2129 |
#: runtime_errors\value_error.py:105 runtime_errors\value_error.py:115 |
| 2130 |
msgid "" |
| 2131 |
"In this instance, there are fewer names ({nb_names})\n" |
| 2132 |
"than the length of the iterable.\n" |
| 2133 |
msgstr "" |
| 2134 |
|
| 2135 |
#: runtime_errors\value_error.py:121 |
| 2136 |
msgid "" |
| 2137 |
"In this instance, there are fewer names ({nb_names})\n" |
| 2138 |
"than the length of the iterable, {iter_type} of length {length}.\n" |
| 2139 |
msgstr "" |
| 2140 |
|
| 2141 |
#: runtime_errors\value_error.py:137 |
| 2142 |
msgid "" |
| 2143 |
"`int()` expects an argument that looks like a number in base `{base}`\n" |
| 2144 |
"but you gave it an empty string.\n" |
| 2145 |
msgstr "" |
| 2146 |
|
| 2147 |
#: runtime_errors\value_error.py:143 |
| 2148 |
msgid "" |
| 2149 |
"`{value}` is an invalid argument for `int()` in base `{base}`.\n" |
| 2150 |
msgstr "" |
| 2151 |
|
| 2152 |
#: runtime_errors\value_error.py:159 |
| 2153 |
msgid "" |
| 2154 |
"The following characters are not allowed: `{invalid}`.\n" |
| 2155 |
msgstr "" |
| 2156 |
|
| 2157 |
#: runtime_errors\value_error.py:171 |
| 2158 |
msgid "" |
| 2159 |
"When base `0` is specified, `int()` expects the argument\n" |
| 2160 |
"to be an integer literal, written in\n" |
| 2161 |
"base 2 (`0b...`), 8 (`0o...`), 10, or 16 (`0x...`).\n" |
| 2162 |
msgstr "" |
| 2163 |
|
| 2164 |
#: runtime_errors\value_error.py:177 |
| 2165 |
msgid "" |
| 2166 |
"In base `{base}`, `int()` is most often use to convert a string\n" |
| 2167 |
"containing the digits `0` to `{max_n}` into an integer.\n" |
| 2168 |
msgstr "" |
| 2169 |
|
| 2170 |
#: runtime_errors\value_error.py:182 |
| 2171 |
msgid "" |
| 2172 |
"In base `11`, `int()` is most often use to convert a string\n" |
| 2173 |
"containing the digits `0` to `9` and the letter `'a'` into an integer.\n" |
| 2174 |
msgstr "" |
| 2175 |
|
| 2176 |
#: runtime_errors\value_error.py:187 |
| 2177 |
msgid "" |
| 2178 |
"In base `base`, `int()` is most often use to convert a string\n" |
| 2179 |
"containing the digits `0` to `9` and the letters\n" |
| 2180 |
"from `'a'` to `'{max_n}'` into an integer.\n" |
| 2181 |
msgstr "" |
| 2182 |
|
| 2183 |
#: runtime_errors\value_error.py:203 |
| 2184 |
msgid "" |
| 2185 |
"You need to convert `'{value}'` to a float first.\n" |
| 2186 |
msgstr "" |
| 2187 |
|
| 2188 |
#: runtime_errors\value_error.py:204 |
| 2189 |
msgid "" |
| 2190 |
"The string `'{value}'` needs to be first converted using `float()`\n" |
| 2191 |
"before the result can be converted into an integer using `int()`.\n" |
| 2192 |
msgstr "" |
| 2193 |
|
| 2194 |
#: runtime_errors\value_error.py:216 |
| 2195 |
msgid "" |
| 2196 |
"The argument `base` of `int()` must be either zero\n" |
| 2197 |
"or any integer from 2 to 36.\n" |
| 2198 |
msgstr "" |
| 2199 |
|
| 2200 |
#: runtime_errors\value_error.py:224 |
| 2201 |
msgid "" |
| 2202 |
"You wrote {base} which is not allowed.\n" |
| 2203 |
msgstr "" |
| 2204 |
|
| 2205 |
#: runtime_errors\value_error.py:235 |
| 2206 |
msgid "" |
| 2207 |
"Did you specify an invalid month?\n" |
| 2208 |
msgstr "" |
| 2209 |
|
| 2210 |
#: runtime_errors\value_error.py:236 |
| 2211 |
msgid "" |
| 2212 |
"I am guessing that you specify an invalid value for a month\n" |
| 2213 |
"in a `date` object. Valid values are integers, from 1 to 12.\n" |
| 2214 |
msgstr "" |
| 2215 |
|
| 2216 |
#: runtime_errors\value_error.py:253 |
| 2217 |
msgid "" |
| 2218 |
"The string `{string}` cannot be converted to a `float`\n" |
| 2219 |
"as it does not represent a number.\n" |
| 2220 |
msgstr "" |
| 2221 |
|
| 2222 |
#: runtime_errors\value_error.py:269 |
| 2223 |
msgid "" |
| 2224 |
"The name `{var}` is used both as the name of a class variable\n" |
| 2225 |
"and as a string item in the class `__slots__`;\n" |
| 2226 |
"this is not allowed.\n" |
| 2227 |
msgstr "" |
| 2228 |
|
| 2229 |
#: runtime_errors\value_error.py:281 |
| 2230 |
msgid "" |
| 2231 |
"The third argument of the function `pow()` cannot be zero.\n" |
| 2232 |
msgstr "" |
| 2233 |
|
| 2234 |
#: runtime_errors\value_error.py:310 |
| 2235 |
msgid "" |
| 2236 |
"I do not recognize this error message.\n" |
| 2237 |
"I am guessing that the problem is with the function `{name}`.\n" |
| 2238 |
msgstr "" |
| 2239 |
|
| 2240 |
#: runtime_errors\value_error.py:316 |
| 2241 |
msgid "" |
| 2242 |
"Its docstring is:\n" |
| 2243 |
"\n" |
| 2244 |
"{docstring}\n" |
| 2245 |
msgstr "" |
| 2246 |
|
| 2247 |
#: runtime_errors\value_error.py:320 |
| 2248 |
msgid "" |
| 2249 |
"I have no more information.\n" |
| 2250 |
msgstr "" |
| 2251 |
|
| 2252 |
#: runtime_errors\value_error.py:330 |
| 2253 |
msgid "" |
| 2254 |
"The value you gave for the time is not in the format you specified.\n" |
| 2255 |
"Make sure to use the same separator between items\n" |
| 2256 |
"(for example, between day and month) and keep the order the same\n" |
| 2257 |
"in both the data provided and the format you specified.\n" |
| 2258 |
"The following table might be useful:\n" |
| 2259 |
"https://docs.python.org/3/library/time.html#time.strftime\n" |
| 2260 |
"The following site might also be useful: https://www.strfti.me/\n" |
| 2261 |
msgstr "" |
| 2262 |
|
| 2263 |
#: runtime_errors\value_error.py:365 |
| 2264 |
msgid "" |
| 2265 |
"You have attempted to remove `{item}` from the list `{the_list}`.\n" |
| 2266 |
"However, `{the_list}` does not contain `{item}`.\n" |
| 2267 |
msgstr "" |
| 2268 |
|
| 2269 |
#: runtime_errors\value_error.py:370 |
| 2270 |
msgid "" |
| 2271 |
"You have attempted to remove an item from the list `{the_list}`.\n" |
| 2272 |
"However, `{the_list}` does not contain that item.\n" |
| 2273 |
msgstr "" |
| 2274 |
|
| 2275 |
#: runtime_errors\value_error.py:375 |
| 2276 |
msgid "" |
| 2277 |
"You have attempted to remove an item a list that does not contain such an item.\n" |
| 2278 |
msgstr "" |
| 2279 |
|
| 2280 |
#: runtime_errors\value_error.py:391 |
| 2281 |
msgid "" |
| 2282 |
"An explanation of `{exception}` already exists.\n" |
| 2283 |
"If you think that a better explanation can be given, please file an issue.\n" |
| 2284 |
msgstr "" |
| 2285 |
|
| 2286 |
#: runtime_errors\zero_division_error.py:20 |
| 2287 |
msgid "" |
| 2288 |
"Using the modulo operator, `%`, you are dividing by zero.\n" |
| 2289 |
msgstr "" |
| 2290 |
|
| 2291 |
#: runtime_errors\zero_division_error.py:21 |
| 2292 |
msgid "" |
| 2293 |
"You are dividing by zero.\n" |
| 2294 |
msgstr "" |
| 2295 |
|
| 2296 |
#: runtime_errors\zero_division_error.py:41 |
| 2297 |
#: runtime_errors\zero_division_error.py:73 |
| 2298 |
msgid "" |
| 2299 |
"You are dividing by the following term\n" |
| 2300 |
"\n" |
| 2301 |
" {expression}\n" |
| 2302 |
"\n" |
| 2303 |
"which is equal to zero.\n" |
| 2304 |
msgstr "" |
| 2305 |
|
| 2306 |
#: runtime_errors\zero_division_error.py:53 |
| 2307 |
#: runtime_errors\zero_division_error.py:127 |
| 2308 |
msgid "<'expression not found'>" |
| 2309 |
msgstr "" |
| 2310 |
|
| 2311 |
#: runtime_errors\zero_division_error.py:54 |
| 2312 |
msgid "" |
| 2313 |
"The following mathematical expression includes a division by zero:\n" |
| 2314 |
"\n" |
| 2315 |
" {expression}\n" |
| 2316 |
msgstr "" |
| 2317 |
|
| 2318 |
#: runtime_errors\zero_division_error.py:85 |
| 2319 |
#: runtime_errors\zero_division_error.py:120 |
| 2320 |
msgid "" |
| 2321 |
"Using the modulo operator, `%`, you are dividing by the following term\n" |
| 2322 |
"\n" |
| 2323 |
" {expression}\n" |
| 2324 |
"\n" |
| 2325 |
"which is equal to zero.\n" |
| 2326 |
msgstr "" |
| 2327 |
|
| 2328 |
#: runtime_errors\zero_division_error.py:93 |
| 2329 |
msgid "" |
| 2330 |
"The second argument of the `divmod()` function is zero.\n" |
| 2331 |
msgstr "" |
| 2332 |
|
| 2333 |
#: runtime_errors\zero_division_error.py:104 |
| 2334 |
msgid "" |
| 2335 |
"You are attempting to raise the number 0 to a negative power\n" |
| 2336 |
"which is equivalent to dividing by zero.\n" |
| 2337 |
msgstr "" |
| 2338 |
|
| 2339 |
#: runtime_errors\zero_division_error.py:128 |
| 2340 |
msgid "" |
| 2341 |
"The following mathematical expression includes a division by zero\n" |
| 2342 |
"done using the modulo operator:\n" |
| 2343 |
"\n" |
| 2344 |
" {expression}\n" |
| 2345 |
msgstr "" |
| 2346 |
|
| 2347 |
#: runtime_errors\zero_division_error.py:143 |
| 2348 |
msgid "" |
| 2349 |
"The second argument of the `divmod()` function is equal to zero.\n" |
| 2350 |
msgstr "" |
| 2351 |
|
| 2352 |
#: syntax_errors\analyze_syntax.py:29 |
| 2353 |
msgid "" |
| 2354 |
"Currently, I cannot guess the likely cause of this error.\n" |
| 2355 |
"Try to examine closely the line indicated as well as the line\n" |
| 2356 |
"immediately above to see if you can identify some misspelled\n" |
| 2357 |
"word, or missing symbols, like (, ), [, ], :, etc.\n" |
| 2358 |
"\n" |
| 2359 |
"Unless your code uses type annotations, which are beyond our scope,\n" |
| 2360 |
"if you think that this is something which should be handled\n" |
| 2361 |
"by friendly, please report this case to\n" |
| 2362 |
"https://github.com/friendly-traceback/friendly-traceback/issues\n" |
| 2363 |
"\n" |
| 2364 |
msgstr "" |
| 2365 |
|
| 2366 |
#: syntax_errors\analyze_syntax.py:72 |
| 2367 |
msgid "" |
| 2368 |
"Python told us that it expected a colon at the position indicated.\n" |
| 2369 |
"However, adding a colon or replacing something else by a colon\n" |
| 2370 |
"would not fix the problem.\n" |
| 2371 |
msgstr "" |
| 2372 |
|
| 2373 |
#: syntax_errors\analyze_syntax.py:86 |
| 2374 |
msgid "" |
| 2375 |
"Python gave us the following informative message\n" |
| 2376 |
"about the possible cause of the error:\n" |
| 2377 |
"\n" |
| 2378 |
" {message}\n" |
| 2379 |
"\n" |
| 2380 |
"However, I do not recognize this information and I have\n" |
| 2381 |
"to guess what caused the problem, but I might be wrong.\n" |
| 2382 |
"\n" |
| 2383 |
msgstr "" |
| 2384 |
|
| 2385 |
#: syntax_errors\error_in_def.py:19 syntax_errors\statement_analyzer.py:20 |
| 2386 |
msgid "" |
| 2387 |
"However, making such a change would still not correct\n" |
| 2388 |
"all the syntax errors in the code you wrote.\n" |
| 2389 |
msgstr "" |
| 2390 |
|
| 2391 |
#: syntax_errors\error_in_def.py:28 |
| 2392 |
msgid "" |
| 2393 |
"The correct syntax is:\n" |
| 2394 |
"\n" |
| 2395 |
" {async_}def name ( ... ):" |
| 2396 |
msgstr "" |
| 2397 |
|
| 2398 |
#: syntax_errors\error_in_def.py:80 |
| 2399 |
msgid "" |
| 2400 |
"A function needs a name.\n" |
| 2401 |
msgstr "" |
| 2402 |
|
| 2403 |
#: syntax_errors\error_in_def.py:81 |
| 2404 |
msgid "" |
| 2405 |
"You tried to define a function and did not use the correct syntax.\n" |
| 2406 |
msgstr "" |
| 2407 |
|
| 2408 |
#: syntax_errors\error_in_def.py:85 |
| 2409 |
msgid "" |
| 2410 |
"Functions and methods need a name.\n" |
| 2411 |
msgstr "" |
| 2412 |
|
| 2413 |
#: syntax_errors\error_in_def.py:86 |
| 2414 |
msgid "" |
| 2415 |
"You tried to define a function or method and did not use the correct syntax.\n" |
| 2416 |
msgstr "" |
| 2417 |
|
| 2418 |
#: syntax_errors\error_in_def.py:116 syntax_errors\error_in_def.py:147 |
| 2419 |
#: syntax_errors\message_analyzer.py:1111 |
| 2420 |
#: syntax_errors\message_analyzer.py:1669 |
| 2421 |
#: syntax_errors\statement_analyzer.py:1340 |
| 2422 |
#: syntax_errors\statement_analyzer.py:1359 |
| 2423 |
msgid "" |
| 2424 |
"Did you forget parentheses?\n" |
| 2425 |
msgstr "" |
| 2426 |
|
| 2427 |
#: syntax_errors\error_in_def.py:117 syntax_errors\error_in_def.py:148 |
| 2428 |
msgid "" |
| 2429 |
"Perhaps you forgot to include parentheses.\n" |
| 2430 |
"You might have meant to write\n" |
| 2431 |
"\n" |
| 2432 |
" {line}\n" |
| 2433 |
msgstr "" |
| 2434 |
|
| 2435 |
#: syntax_errors\error_in_def.py:175 |
| 2436 |
msgid "" |
| 2437 |
"A function definition statement must end with a colon.\n" |
| 2438 |
msgstr "" |
| 2439 |
|
| 2440 |
#: syntax_errors\error_in_def.py:181 syntax_errors\error_in_def.py:205 |
| 2441 |
msgid "" |
| 2442 |
"Did you forget to write a colon?\n" |
| 2443 |
msgstr "" |
| 2444 |
|
| 2445 |
#: syntax_errors\error_in_def.py:182 syntax_errors\message_analyzer.py:765 |
| 2446 |
msgid "" |
| 2447 |
"You wrote `{bad}` instead of a colon.\n" |
| 2448 |
msgstr "" |
| 2449 |
|
| 2450 |
#: syntax_errors\error_in_def.py:191 |
| 2451 |
msgid "" |
| 2452 |
"Did you write something by mistake after the colon?\n" |
| 2453 |
msgstr "" |
| 2454 |
|
| 2455 |
#: syntax_errors\error_in_def.py:192 |
| 2456 |
msgid "" |
| 2457 |
"A block of code must come after the colon.\n" |
| 2458 |
msgstr "" |
| 2459 |
|
| 2460 |
#: syntax_errors\error_in_def.py:193 |
| 2461 |
msgid "" |
| 2462 |
"Removing `{bad}`, might fix the problem.\n" |
| 2463 |
msgstr "" |
| 2464 |
|
| 2465 |
#: syntax_errors\error_in_def.py:225 |
| 2466 |
msgid "" |
| 2467 |
"You cannot use a Python keyword as a function name.\n" |
| 2468 |
msgstr "" |
| 2469 |
|
| 2470 |
#: syntax_errors\error_in_def.py:226 |
| 2471 |
msgid "" |
| 2472 |
"You tried to use the Python keyword `{kwd}` as a function name.\n" |
| 2473 |
msgstr "" |
| 2474 |
|
| 2475 |
#: syntax_errors\error_in_def.py:234 |
| 2476 |
msgid "" |
| 2477 |
"There are more syntax errors later in your code.\n" |
| 2478 |
msgstr "" |
| 2479 |
|
| 2480 |
#: syntax_errors\error_in_def.py:257 |
| 2481 |
msgid "" |
| 2482 |
"You wrote an invalid function name.\n" |
| 2483 |
msgstr "" |
| 2484 |
|
| 2485 |
#: syntax_errors\error_in_def.py:258 |
| 2486 |
msgid "" |
| 2487 |
"The name of a function must be a valid Python identifier,\n" |
| 2488 |
"that is a name that begins with a letter or an underscore character, `_`,\n" |
| 2489 |
"and which contains only letters, digits or the underscore character.\n" |
| 2490 |
msgstr "" |
| 2491 |
|
| 2492 |
#: syntax_errors\error_in_def.py:264 |
| 2493 |
msgid "" |
| 2494 |
"You attempted to use a string as a function name.\n" |
| 2495 |
msgstr "" |
| 2496 |
|
| 2497 |
#: syntax_errors\error_in_def.py:285 |
| 2498 |
msgid "" |
| 2499 |
"You forgot to name your function.\n" |
| 2500 |
msgstr "" |
| 2501 |
|
| 2502 |
#: syntax_errors\error_in_def.py:293 |
| 2503 |
msgid "" |
| 2504 |
"However, there are some other syntax errors in your code.\n" |
| 2505 |
msgstr "" |
| 2506 |
|
| 2507 |
#: syntax_errors\error_in_def.py:314 |
| 2508 |
msgid "" |
| 2509 |
"I am guessing that you tried to use the Python keyword\n" |
| 2510 |
"`{kwd}` as an argument in the definition of a function\n" |
| 2511 |
"where an identifier (variable name) was expected.\n" |
| 2512 |
msgstr "" |
| 2513 |
|
| 2514 |
#: syntax_errors\error_in_def.py:329 |
| 2515 |
msgid "" |
| 2516 |
"You cannot use dotted names as function arguments.\n" |
| 2517 |
msgstr "" |
| 2518 |
|
| 2519 |
#: syntax_errors\error_in_def.py:331 |
| 2520 |
msgid "" |
| 2521 |
"Perhaps you meant to write a comma.\n" |
| 2522 |
msgstr "" |
| 2523 |
|
| 2524 |
#: syntax_errors\error_in_def.py:332 syntax_errors\error_in_def.py:524 |
| 2525 |
#: syntax_errors\statement_analyzer.py:855 syntax_errors\syntax_utils.py:119 |
| 2526 |
msgid "" |
| 2527 |
"Did you mean to write a comma?\n" |
| 2528 |
msgstr "" |
| 2529 |
|
| 2530 |
#: syntax_errors\error_in_def.py:336 |
| 2531 |
msgid "" |
| 2532 |
"You cannot use dots in function names.\n" |
| 2533 |
msgstr "" |
| 2534 |
|
| 2535 |
#: syntax_errors\error_in_def.py:345 |
| 2536 |
msgid "" |
| 2537 |
"`/` indicates that the previous arguments in a function definition\n" |
| 2538 |
"are positional arguments.\n" |
| 2539 |
msgstr "" |
| 2540 |
|
| 2541 |
#: syntax_errors\error_in_def.py:351 |
| 2542 |
msgid "" |
| 2543 |
"Function definitions cannot include the symbol `/` in this Python version.\n" |
| 2544 |
msgstr "" |
| 2545 |
|
| 2546 |
#: syntax_errors\error_in_def.py:354 |
| 2547 |
msgid "" |
| 2548 |
"This symbol can only be used with Python versions 3.8.0 or newer.\n" |
| 2549 |
"You are using Python version {version}.\n" |
| 2550 |
msgstr "" |
| 2551 |
|
| 2552 |
#: syntax_errors\error_in_def.py:363 |
| 2553 |
msgid "" |
| 2554 |
"You have unspecified keyword arguments that appear before\n" |
| 2555 |
"the symbol `/`.\n" |
| 2556 |
msgstr "" |
| 2557 |
|
| 2558 |
#: syntax_errors\error_in_def.py:367 |
| 2559 |
msgid "" |
| 2560 |
"Keyword arguments must appear after the `/` symbol.\n" |
| 2561 |
msgstr "" |
| 2562 |
|
| 2563 |
#: syntax_errors\error_in_def.py:372 |
| 2564 |
msgid "" |
| 2565 |
"However, `*` indicates that the arguments\n" |
| 2566 |
"that follow must be keyword arguments.\n" |
| 2567 |
"When they are used together, `/` must appear before `*`.\n" |
| 2568 |
msgstr "" |
| 2569 |
|
| 2570 |
#: syntax_errors\error_in_def.py:377 |
| 2571 |
msgid "" |
| 2572 |
"`*` must appear after `/` in a function definition.\n" |
| 2573 |
msgstr "" |
| 2574 |
|
| 2575 |
#: syntax_errors\error_in_def.py:379 |
| 2576 |
msgid "" |
| 2577 |
"`*{name}` must appear after `/` in a function definition.\n" |
| 2578 |
msgstr "" |
| 2579 |
|
| 2580 |
#: syntax_errors\error_in_def.py:386 |
| 2581 |
msgid "" |
| 2582 |
"You can only use `/` once in a function definition.\n" |
| 2583 |
msgstr "" |
| 2584 |
|
| 2585 |
#: syntax_errors\error_in_def.py:400 |
| 2586 |
msgid "" |
| 2587 |
"You can only use `*` once in a function definition.\n" |
| 2588 |
msgstr "" |
| 2589 |
|
| 2590 |
#: syntax_errors\error_in_def.py:406 |
| 2591 |
msgid "" |
| 2592 |
"You have used it twice, with `*{first}` and `*{second}`.\n" |
| 2593 |
msgstr "" |
| 2594 |
|
| 2595 |
#: syntax_errors\error_in_def.py:414 |
| 2596 |
msgid "" |
| 2597 |
"It must either be used by itself, `*`,\n" |
| 2598 |
"or in the form `*{args}`, but not both.\n" |
| 2599 |
msgstr "" |
| 2600 |
|
| 2601 |
#: syntax_errors\error_in_def.py:423 |
| 2602 |
msgid "" |
| 2603 |
"`*{args}` must appear before `**{kwargs}`.\n" |
| 2604 |
msgstr "" |
| 2605 |
|
| 2606 |
#: syntax_errors\error_in_def.py:427 |
| 2607 |
msgid "" |
| 2608 |
"`**{kwargs}` must appear after the `*` operator.\n" |
| 2609 |
msgstr "" |
| 2610 |
|
| 2611 |
#: syntax_errors\error_in_def.py:441 |
| 2612 |
msgid "" |
| 2613 |
"You cannot use numbers as function arguments.\n" |
| 2614 |
msgstr "" |
| 2615 |
|
| 2616 |
#: syntax_errors\error_in_def.py:442 |
| 2617 |
msgid "" |
| 2618 |
"You used a number as an argument when defining a function.\n" |
| 2619 |
"You can only use identifiers (variable names) as function arguments.\n" |
| 2620 |
msgstr "" |
| 2621 |
|
| 2622 |
#: syntax_errors\error_in_def.py:454 |
| 2623 |
msgid "" |
| 2624 |
"You cannot use strings as function arguments.\n" |
| 2625 |
msgstr "" |
| 2626 |
|
| 2627 |
#: syntax_errors\error_in_def.py:455 |
| 2628 |
msgid "" |
| 2629 |
"You used a string as an argument when defining a function.\n" |
| 2630 |
"You can only use identifiers (variable names) as function arguments.\n" |
| 2631 |
msgstr "" |
| 2632 |
|
| 2633 |
#: syntax_errors\error_in_def.py:467 |
| 2634 |
msgid "" |
| 2635 |
"You cannot have explicit tuples as function arguments.\n" |
| 2636 |
msgstr "" |
| 2637 |
|
| 2638 |
#: syntax_errors\error_in_def.py:469 |
| 2639 |
msgid "" |
| 2640 |
"You can only use identifiers (variable names) as function arguments.\n" |
| 2641 |
"Assign any tuple to a parameter and unpack it\n" |
| 2642 |
"within the body of the function.\n" |
| 2643 |
msgstr "" |
| 2644 |
|
| 2645 |
#: syntax_errors\error_in_def.py:482 |
| 2646 |
msgid "" |
| 2647 |
"You cannot have explicit lists as function arguments.\n" |
| 2648 |
msgstr "" |
| 2649 |
|
| 2650 |
#: syntax_errors\error_in_def.py:483 syntax_errors\error_in_def.py:495 |
| 2651 |
msgid "" |
| 2652 |
"You can only use identifiers (variable names) as function arguments.\n" |
| 2653 |
msgstr "" |
| 2654 |
|
| 2655 |
#: syntax_errors\error_in_def.py:494 |
| 2656 |
msgid "" |
| 2657 |
"You cannot have any explicit dict or set as function arguments.\n" |
| 2658 |
msgstr "" |
| 2659 |
|
| 2660 |
#: syntax_errors\error_in_def.py:517 |
| 2661 |
msgid "" |
| 2662 |
"You cannot have operators as function arguments.\n" |
| 2663 |
msgstr "" |
| 2664 |
|
| 2665 |
#: syntax_errors\error_in_def.py:525 |
| 2666 |
msgid "" |
| 2667 |
"I suspect you made a typo and wrote `{op}` instead of a comma.\n" |
| 2668 |
"The following statement contains no syntax error:\n" |
| 2669 |
"\n" |
| 2670 |
" {new_statement}" |
| 2671 |
msgstr "" |
| 2672 |
|
| 2673 |
#: syntax_errors\error_in_def.py:537 |
| 2674 |
msgid "" |
| 2675 |
"Did you mean to write an equal sign?\n" |
| 2676 |
msgstr "" |
| 2677 |
|
| 2678 |
#: syntax_errors\error_in_def.py:538 |
| 2679 |
msgid "" |
| 2680 |
"I suspect you made a typo and wrote `{op}` instead of an equal sign.\n" |
| 2681 |
"The following statement contains no syntax error:\n" |
| 2682 |
"\n" |
| 2683 |
" {new_statement}" |
| 2684 |
msgstr "" |
| 2685 |
|
| 2686 |
#: syntax_errors\error_in_def.py:550 |
| 2687 |
msgid "" |
| 2688 |
"Did you mean to write `{op}`?\n" |
| 2689 |
msgstr "" |
| 2690 |
|
| 2691 |
#: syntax_errors\error_in_def.py:551 |
| 2692 |
msgid "" |
| 2693 |
"I suspect you made a typo and added `{op}` by mistake.\n" |
| 2694 |
"The following statement contains no syntax error:\n" |
| 2695 |
"\n" |
| 2696 |
" {new_statement}" |
| 2697 |
msgstr "" |
| 2698 |
|
| 2699 |
#: syntax_errors\error_in_def.py:567 |
| 2700 |
msgid "" |
| 2701 |
"You cannot use `{op}` as an argument.\n" |
| 2702 |
msgstr "" |
| 2703 |
|
| 2704 |
#: syntax_errors\error_in_def.py:571 |
| 2705 |
msgid "" |
| 2706 |
"I suspect you made a typo and wrote `{op}` by mistake.\n" |
| 2707 |
"If you replace it by a unique variable name, the result\n" |
| 2708 |
"will contain no syntax error.\n" |
| 2709 |
msgstr "" |
| 2710 |
|
| 2711 |
#: syntax_errors\error_in_def.py:579 |
| 2712 |
msgid "" |
| 2713 |
"I suspect you made a typo and wrote `{op}` by mistake,\n" |
| 2714 |
"perhaps instead of writing an identifier (variable name).\n" |
| 2715 |
msgstr "" |
| 2716 |
|
| 2717 |
#: syntax_errors\error_in_def.py:588 |
| 2718 |
msgid "" |
| 2719 |
"The `**` operator needs to be followed by an identifier (variable name).\n" |
| 2720 |
msgstr "" |
| 2721 |
|
| 2722 |
#: syntax_errors\error_in_def.py:611 |
| 2723 |
msgid "" |
| 2724 |
"Positional arguments must come before keyword arguments.\n" |
| 2725 |
msgstr "" |
| 2726 |
|
| 2727 |
#: syntax_errors\error_in_def.py:612 |
| 2728 |
msgid "" |
| 2729 |
"`{arg}` is a positional argument that appears after one or more\n" |
| 2730 |
"keyword arguments in your function definition.\n" |
| 2731 |
msgstr "" |
| 2732 |
|
| 2733 |
#: syntax_errors\indentation_error.py:11 |
| 2734 |
msgid "" |
| 2735 |
"Line `{number}` identified above is more indented than expected.\n" |
| 2736 |
msgstr "" |
| 2737 |
|
| 2738 |
#: syntax_errors\indentation_error.py:15 |
| 2739 |
msgid "" |
| 2740 |
"Line `{number}` identified above was expected to begin a new indented block.\n" |
| 2741 |
msgstr "" |
| 2742 |
|
| 2743 |
#: syntax_errors\indentation_error.py:20 |
| 2744 |
msgid "" |
| 2745 |
"Line `{number}` identified above is less indented than expected.\n" |
| 2746 |
msgstr "" |
| 2747 |
|
| 2748 |
#: syntax_errors\indentation_error.py:32 |
| 2749 |
msgid "" |
| 2750 |
"However, line {number}, which is identified as having a problem,\n" |
| 2751 |
"consists of a single string which is also the case\n" |
| 2752 |
"for the preceding line.\n" |
| 2753 |
"Perhaps you meant to include a continuation character, `\\`,\n" |
| 2754 |
"at the end of line {preceding}.\n" |
| 2755 |
msgstr "" |
| 2756 |
|
| 2757 |
#: syntax_errors\message_analyzer.py:22 |
| 2758 |
msgid "" |
| 2759 |
"You can only assign objects to identifiers (variable names).\n" |
| 2760 |
msgstr "" |
| 2761 |
|
| 2762 |
#: syntax_errors\message_analyzer.py:26 |
| 2763 |
#: syntax_errors\statement_analyzer.py:1685 |
| 2764 |
msgid "" |
| 2765 |
"You can only delete names of objects, or items in mutable containers\n" |
| 2766 |
"such as `list`, `set`, or `dict`.\n" |
| 2767 |
msgstr "" |
| 2768 |
|
| 2769 |
#: syntax_errors\message_analyzer.py:54 |
| 2770 |
msgid "of type `int`" |
| 2771 |
msgstr "" |
| 2772 |
|
| 2773 |
#: syntax_errors\message_analyzer.py:55 |
| 2774 |
msgid "of type `complex`" |
| 2775 |
msgstr "" |
| 2776 |
|
| 2777 |
#: syntax_errors\message_analyzer.py:56 |
| 2778 |
msgid "of type `float`" |
| 2779 |
msgstr "" |
| 2780 |
|
| 2781 |
#: syntax_errors\message_analyzer.py:57 |
| 2782 |
msgid "of type `str`" |
| 2783 |
msgstr "" |
| 2784 |
|
| 2785 |
#: syntax_errors\message_analyzer.py:58 |
| 2786 |
msgid "of type `dict`" |
| 2787 |
msgstr "" |
| 2788 |
|
| 2789 |
#: syntax_errors\message_analyzer.py:59 |
| 2790 |
msgid "of type `list`" |
| 2791 |
msgstr "" |
| 2792 |
|
| 2793 |
#: syntax_errors\message_analyzer.py:60 |
| 2794 |
msgid "of type `set`" |
| 2795 |
msgstr "" |
| 2796 |
|
| 2797 |
#: syntax_errors\message_analyzer.py:61 |
| 2798 |
msgid "of type `tuple`" |
| 2799 |
msgstr "" |
| 2800 |
|
| 2801 |
#: syntax_errors\message_analyzer.py:81 syntax_errors\message_analyzer.py:91 |
| 2802 |
msgid "" |
| 2803 |
"Did you mean `{num}`?\n" |
| 2804 |
msgstr "" |
| 2805 |
|
| 2806 |
#: syntax_errors\message_analyzer.py:82 |
| 2807 |
msgid "" |
| 2808 |
"Perhaps you meant to write the octal number `{num}`\n" |
| 2809 |
"and forgot the letter 'o', or perhaps you meant to write\n" |
| 2810 |
"a decimal integer and did not know that it could not start with zeros.\n" |
| 2811 |
msgstr "" |
| 2812 |
|
| 2813 |
#: syntax_errors\message_analyzer.py:92 |
| 2814 |
msgid "" |
| 2815 |
"Perhaps you meant to write the integer `{num}`\n" |
| 2816 |
"and did not know that it could not start with zeros.\n" |
| 2817 |
msgstr "" |
| 2818 |
|
| 2819 |
#: syntax_errors\message_analyzer.py:131 |
| 2820 |
msgid "" |
| 2821 |
"On the left-hand side of an equal sign, you have a\n" |
| 2822 |
"conditional expression instead of the name of a variable.\n" |
| 2823 |
"A conditional expression has the following form:\n" |
| 2824 |
"\n" |
| 2825 |
" variable = object if condition else other_object\n" |
| 2826 |
msgstr "" |
| 2827 |
|
| 2828 |
#: syntax_errors\message_analyzer.py:149 |
| 2829 |
msgid "" |
| 2830 |
"On the left-hand side of an equal sign, you have a\n" |
| 2831 |
"conditional expression instead of the name of a variable.\n" |
| 2832 |
" {expression} = ...\n" |
| 2833 |
" {mark}\n" |
| 2834 |
msgstr "" |
| 2835 |
|
| 2836 |
#: syntax_errors\message_analyzer.py:170 |
| 2837 |
msgid "" |
| 2838 |
"On the left-hand side of an equal sign, you have\n" |
| 2839 |
"an expression instead of the name of a variable.\n" |
| 2840 |
msgstr "" |
| 2841 |
|
| 2842 |
#: syntax_errors\message_analyzer.py:195 |
| 2843 |
msgid "" |
| 2844 |
"You wrote the expression\n" |
| 2845 |
"\n" |
| 2846 |
" {fn_call} = ...\n" |
| 2847 |
"where `{fn_call}`, on the left-hand side of the equal sign, either is\n" |
| 2848 |
"or includes a function call and is not simply the name of a variable.\n" |
| 2849 |
msgstr "" |
| 2850 |
|
| 2851 |
#: syntax_errors\message_analyzer.py:207 |
| 2852 |
msgid "" |
| 2853 |
"You wrote the expression\n" |
| 2854 |
"\n" |
| 2855 |
" {fn_call} = ...\n" |
| 2856 |
" {mark}\n" |
| 2857 |
"where `{fn_call}`, on the left-hand side of the equal sign, either is\n" |
| 2858 |
"or includes a function call and is not simply the name of a variable.\n" |
| 2859 |
msgstr "" |
| 2860 |
|
| 2861 |
#: syntax_errors\message_analyzer.py:228 |
| 2862 |
msgid "" |
| 2863 |
"On the left-hand side of an equal sign, you have a\n" |
| 2864 |
"generator expression instead of the name of a variable.\n" |
| 2865 |
msgstr "" |
| 2866 |
|
| 2867 |
#: syntax_errors\message_analyzer.py:246 syntax_errors\message_analyzer.py:372 |
| 2868 |
msgid "" |
| 2869 |
"You wrote an expression that has the f-string `{fstring}`\n" |
| 2870 |
"on the left-hand side of the equal sign.\n" |
| 2871 |
"An f-string should only appear on the right-hand side of an equal sign.\n" |
| 2872 |
msgstr "" |
| 2873 |
|
| 2874 |
#: syntax_errors\message_analyzer.py:290 |
| 2875 |
#: syntax_errors\message_analyzer.py:1018 |
| 2876 |
msgid "" |
| 2877 |
"You cannot assign a value to `{keyword}`.\n" |
| 2878 |
msgstr "" |
| 2879 |
|
| 2880 |
#: syntax_errors\message_analyzer.py:293 |
| 2881 |
msgid "" |
| 2882 |
"You cannot assign a value to the ellipsis symbol [`...`].\n" |
| 2883 |
msgstr "" |
| 2884 |
|
| 2885 |
#: syntax_errors\message_analyzer.py:294 |
| 2886 |
msgid "" |
| 2887 |
"The ellipsis symbol `...` is a constant in Python;you cannot assign it a different value.\n" |
| 2888 |
msgstr "" |
| 2889 |
|
| 2890 |
#: syntax_errors\message_analyzer.py:299 |
| 2891 |
msgid "" |
| 2892 |
"`{keyword}` is a constant in Python; you cannot assign it a different value.\n" |
| 2893 |
msgstr "" |
| 2894 |
|
| 2895 |
#: syntax_errors\message_analyzer.py:304 |
| 2896 |
#: syntax_errors\statement_analyzer.py:1049 |
| 2897 |
msgid "" |
| 2898 |
"You were trying to assign a value to the Python keyword `{keyword}`.\n" |
| 2899 |
"This is not allowed.\n" |
| 2900 |
"\n" |
| 2901 |
msgstr "" |
| 2902 |
|
| 2903 |
#: syntax_errors\message_analyzer.py:324 |
| 2904 |
msgid "" |
| 2905 |
"A for loop must have the form:\n" |
| 2906 |
"\n" |
| 2907 |
" for ... in sequence:\n" |
| 2908 |
"\n" |
| 2909 |
"where `...` must contain only identifiers (variable names)\n" |
| 2910 |
"and not literals like `{bad_token}`.\n" |
| 2911 |
msgstr "" |
| 2912 |
|
| 2913 |
#: syntax_errors\message_analyzer.py:381 |
| 2914 |
msgid "variable_name" |
| 2915 |
msgstr "" |
| 2916 |
|
| 2917 |
#: syntax_errors\message_analyzer.py:385 |
| 2918 |
msgid "" |
| 2919 |
"Perhaps you meant to write:\n" |
| 2920 |
"\n" |
| 2921 |
" {name} = {literal}\n" |
| 2922 |
"\n" |
| 2923 |
msgstr "" |
| 2924 |
|
| 2925 |
#: syntax_errors\message_analyzer.py:391 |
| 2926 |
msgid "Perhaps you meant to write `{name} = {literal}`" |
| 2927 |
msgstr "" |
| 2928 |
|
| 2929 |
#: syntax_errors\message_analyzer.py:410 |
| 2930 |
msgid "" |
| 2931 |
"You wrote an expression like\n" |
| 2932 |
"\n" |
| 2933 |
" {literal} = {name}\n" |
| 2934 |
"where `{literal}`, on the left-hand side of the equal sign,\n" |
| 2935 |
"is or includes an actual object {of_type}\n" |
| 2936 |
"and is not simply the name of a variable.\n" |
| 2937 |
msgstr "" |
| 2938 |
|
| 2939 |
#: syntax_errors\message_analyzer.py:420 |
| 2940 |
msgid "" |
| 2941 |
"It is possible that you used an equal sign `=` instead of a colon `:`\n" |
| 2942 |
"to assign values to keys in a dict.\n" |
| 2943 |
msgstr "" |
| 2944 |
|
| 2945 |
#: syntax_errors\message_analyzer.py:438 |
| 2946 |
msgid "" |
| 2947 |
"You wrote an expression that includes some mathematical operations\n" |
| 2948 |
"on the left-hand side of the equal sign which should be\n" |
| 2949 |
"only used to assign a value to a variable.\n" |
| 2950 |
msgstr "" |
| 2951 |
|
| 2952 |
#: syntax_errors\message_analyzer.py:460 |
| 2953 |
msgid "" |
| 2954 |
"Perhaps you meant to write `{name}` instead of `{original}`\n" |
| 2955 |
msgstr "" |
| 2956 |
|
| 2957 |
#: syntax_errors\message_analyzer.py:465 syntax_errors\message_analyzer.py:603 |
| 2958 |
#: syntax_errors\statement_analyzer.py:635 |
| 2959 |
msgid "" |
| 2960 |
"Perhaps you needed `==` instead of `=`.\n" |
| 2961 |
msgstr "" |
| 2962 |
|
| 2963 |
#: syntax_errors\message_analyzer.py:477 |
| 2964 |
msgid "" |
| 2965 |
"You wrote an expression that includes the `yield` keyword\n" |
| 2966 |
"on the left-hand side of the equal sign.\n" |
| 2967 |
"You cannot assign a value to such an expression.\n" |
| 2968 |
"Note that, like the keyword `return`,\n" |
| 2969 |
"`yield` can only be used inside a function.\n" |
| 2970 |
msgstr "" |
| 2971 |
|
| 2972 |
#: syntax_errors\message_analyzer.py:496 syntax_errors\message_analyzer.py:518 |
| 2973 |
msgid "" |
| 2974 |
"You are using the augmented assignment operator `:=` inside\n" |
| 2975 |
"a comprehension to assign a value to the iteration variable `{var}`.\n" |
| 2976 |
"This variable is meant to be used only inside the comprehension.\n" |
| 2977 |
"The augmented assignment operator is normally used to assign a value\n" |
| 2978 |
"to a variable so that the variable can be reused later.\n" |
| 2979 |
"This is not possible for variable `{var}`.\n" |
| 2980 |
msgstr "" |
| 2981 |
|
| 2982 |
#: syntax_errors\message_analyzer.py:535 |
| 2983 |
msgid "" |
| 2984 |
"The object named `{name}` is defined with type annotation\n" |
| 2985 |
"as a local variable. It cannot be declared to be a global variable.\n" |
| 2986 |
msgstr "" |
| 2987 |
|
| 2988 |
#: syntax_errors\message_analyzer.py:550 |
| 2989 |
msgid "" |
| 2990 |
"You cannot use the augmented assignment operator `:=`,\n" |
| 2991 |
"sometimes called the walrus operator, with literals like `{bad_token}`.\n" |
| 2992 |
"You can only assign objects to identifiers (variable names).\n" |
| 2993 |
msgstr "" |
| 2994 |
|
| 2995 |
#: syntax_errors\message_analyzer.py:561 |
| 2996 |
msgid "" |
| 2997 |
"You declared `{name}` as being both a global and nonlocal variable.\n" |
| 2998 |
"A variable can be global, or nonlocal, but not both at the same time.\n" |
| 2999 |
msgstr "" |
| 3000 |
|
| 3001 |
#: syntax_errors\message_analyzer.py:576 |
| 3002 |
msgid "" |
| 3003 |
"Python tells us that the {bracket} was never closed.\n" |
| 3004 |
msgstr "" |
| 3005 |
|
| 3006 |
#: syntax_errors\message_analyzer.py:579 |
| 3007 |
msgid "" |
| 3008 |
"The {bracket} was never closed.\n" |
| 3009 |
msgstr "" |
| 3010 |
|
| 3011 |
#: syntax_errors\message_analyzer.py:591 |
| 3012 |
msgid "" |
| 3013 |
"The Python keyword `break` can only be used inside a `for` loop or inside a `while` loop.\n" |
| 3014 |
msgstr "" |
| 3015 |
|
| 3016 |
#: syntax_errors\message_analyzer.py:604 |
| 3017 |
#: syntax_errors\statement_analyzer.py:636 |
| 3018 |
msgid "" |
| 3019 |
"You likely used an assignment operator `=` instead of an equality operator `==`.\n" |
| 3020 |
msgstr "" |
| 3021 |
|
| 3022 |
#: syntax_errors\message_analyzer.py:612 |
| 3023 |
msgid "" |
| 3024 |
"The following statement would not contain a syntax error:\n" |
| 3025 |
"\n" |
| 3026 |
" {new_statement}\n" |
| 3027 |
msgstr "" |
| 3028 |
|
| 3029 |
#: syntax_errors\message_analyzer.py:632 |
| 3030 |
msgid "" |
| 3031 |
"You cannot delete the constant `{constant}`.\n" |
| 3032 |
msgstr "" |
| 3033 |
|
| 3034 |
#: syntax_errors\message_analyzer.py:652 syntax_errors\message_analyzer.py:706 |
| 3035 |
msgid "" |
| 3036 |
"You cannot delete a Python expression.\n" |
| 3037 |
msgstr "" |
| 3038 |
|
| 3039 |
#: syntax_errors\message_analyzer.py:655 |
| 3040 |
msgid "" |
| 3041 |
"You cannot delete the expression `{expression}`.\n" |
| 3042 |
msgstr "" |
| 3043 |
|
| 3044 |
#: syntax_errors\message_analyzer.py:672 |
| 3045 |
msgid "" |
| 3046 |
"You attempted to delete a function call\n" |
| 3047 |
"\n" |
| 3048 |
" {line}\n" |
| 3049 |
"instead of deleting the function's name\n" |
| 3050 |
"\n" |
| 3051 |
" {correct}\n" |
| 3052 |
msgstr "" |
| 3053 |
|
| 3054 |
#: syntax_errors\message_analyzer.py:690 |
| 3055 |
msgid "" |
| 3056 |
"You cannot delete the literal `{literal}`.\n" |
| 3057 |
msgstr "" |
| 3058 |
|
| 3059 |
#: syntax_errors\message_analyzer.py:709 |
| 3060 |
msgid "" |
| 3061 |
"You cannot delete the named expression `{expression}`.\n" |
| 3062 |
msgstr "" |
| 3063 |
|
| 3064 |
#: syntax_errors\message_analyzer.py:725 |
| 3065 |
msgid "" |
| 3066 |
"The star operator `*` is interpreted to mean that\n" |
| 3067 |
"iterable unpacking is to be used to assign a name\n" |
| 3068 |
"to each item of an iterable, which does not make sense here.\n" |
| 3069 |
msgstr "" |
| 3070 |
|
| 3071 |
#: syntax_errors\message_analyzer.py:739 |
| 3072 |
msgid "" |
| 3073 |
"It looks like you surrounded a starred name by parentheses.\n" |
| 3074 |
"This was not considered a SyntaxError before Python version 3.9.\n" |
| 3075 |
msgstr "" |
| 3076 |
|
| 3077 |
#: syntax_errors\message_analyzer.py:758 |
| 3078 |
msgid "" |
| 3079 |
"Did you forget a colon?\n" |
| 3080 |
msgstr "" |
| 3081 |
|
| 3082 |
#: syntax_errors\message_analyzer.py:759 |
| 3083 |
msgid "" |
| 3084 |
"Python expected a colon at the position indicated.\n" |
| 3085 |
msgstr "" |
| 3086 |
|
| 3087 |
#: syntax_errors\message_analyzer.py:787 |
| 3088 |
msgid "" |
| 3089 |
"It looks like the error occurred as you were writing a Python dict.\n" |
| 3090 |
"Perhaps you wrote a dict key without writing the corresponding value.\n" |
| 3091 |
msgstr "" |
| 3092 |
|
| 3093 |
#: syntax_errors\message_analyzer.py:791 |
| 3094 |
#: syntax_errors\message_analyzer.py:1049 |
| 3095 |
#: syntax_errors\statement_analyzer.py:1753 |
| 3096 |
msgid "" |
| 3097 |
"Did you forget to write a dict value?\n" |
| 3098 |
msgstr "" |
| 3099 |
|
| 3100 |
#: syntax_errors\message_analyzer.py:798 |
| 3101 |
msgid "" |
| 3102 |
"The Python keyword `continue` can only be used inside a `for` loop or inside a `while` loop.\n" |
| 3103 |
msgstr "" |
| 3104 |
|
| 3105 |
#: syntax_errors\message_analyzer.py:810 |
| 3106 |
msgid "" |
| 3107 |
"You have defined a function repeating the argument\n" |
| 3108 |
"\n" |
| 3109 |
" {name}\n" |
| 3110 |
"Each argument should appear only once in a function definition.\n" |
| 3111 |
msgstr "" |
| 3112 |
|
| 3113 |
#: syntax_errors\message_analyzer.py:850 |
| 3114 |
msgid "" |
| 3115 |
"Did you forget to add `else`?\n" |
| 3116 |
msgstr "" |
| 3117 |
|
| 3118 |
#: syntax_errors\message_analyzer.py:851 |
| 3119 |
msgid "" |
| 3120 |
"An `else some_value` clause was expected after the `if` expression.\n" |
| 3121 |
msgstr "" |
| 3122 |
|
| 3123 |
#: syntax_errors\message_analyzer.py:863 |
| 3124 |
msgid "" |
| 3125 |
"You started writing a triple-quoted string but never wrote\n" |
| 3126 |
"the triple quotes needed to end the string.\n" |
| 3127 |
msgstr "" |
| 3128 |
|
| 3129 |
#: syntax_errors\message_analyzer.py:880 |
| 3130 |
msgid "" |
| 3131 |
"Did you forget a closing quote?\n" |
| 3132 |
msgstr "" |
| 3133 |
|
| 3134 |
#: syntax_errors\message_analyzer.py:881 |
| 3135 |
msgid "" |
| 3136 |
"You started writing a string with a single or double quote\n" |
| 3137 |
"but never ended the string with another quote on that line.\n" |
| 3138 |
msgstr "" |
| 3139 |
|
| 3140 |
#: syntax_errors\message_analyzer.py:894 |
| 3141 |
msgid "" |
| 3142 |
"Perhaps you meant to write the backslash character, `\\`\n" |
| 3143 |
"as the last character in the string and forgot that you\n" |
| 3144 |
"needed to escape it by writing two `\\` in a row.\n" |
| 3145 |
msgstr "" |
| 3146 |
|
| 3147 |
#: syntax_errors\message_analyzer.py:899 |
| 3148 |
msgid "" |
| 3149 |
"Did you forget to escape a backslash character?\n" |
| 3150 |
msgstr "" |
| 3151 |
|
| 3152 |
#: syntax_errors\message_analyzer.py:934 |
| 3153 |
#: syntax_errors\statement_analyzer.py:403 |
| 3154 |
msgid "" |
| 3155 |
"Perhaps you forgot to escape a quote character.\n" |
| 3156 |
msgstr "" |
| 3157 |
|
| 3158 |
#: syntax_errors\message_analyzer.py:935 |
| 3159 |
#: syntax_errors\statement_analyzer.py:404 |
| 3160 |
msgid "" |
| 3161 |
"I suspect that you were trying to use a quote character inside a string\n" |
| 3162 |
"that was enclosed in quotes of the same kind.\n" |
| 3163 |
"Perhaps you should have escaped the inner quote character:\n" |
| 3164 |
"\n" |
| 3165 |
" {new_line}\n" |
| 3166 |
" {mark}\n" |
| 3167 |
msgstr "" |
| 3168 |
|
| 3169 |
#: syntax_errors\message_analyzer.py:950 |
| 3170 |
msgid "" |
| 3171 |
"You wrote a `try` block which did not include an `except` nor a `finally` block.\n" |
| 3172 |
msgstr "" |
| 3173 |
|
| 3174 |
#: syntax_errors\message_analyzer.py:965 syntax_errors\message_analyzer.py:982 |
| 3175 |
msgid "" |
| 3176 |
"Perhaps you meant to write\n" |
| 3177 |
"\n" |
| 3178 |
" {new_statement}" |
| 3179 |
msgstr "" |
| 3180 |
|
| 3181 |
#: syntax_errors\message_analyzer.py:968 syntax_errors\message_analyzer.py:985 |
| 3182 |
msgid "Did you mean `{new_statement}`?" |
| 3183 |
msgstr "" |
| 3184 |
|
| 3185 |
#: syntax_errors\message_analyzer.py:975 |
| 3186 |
msgid "" |
| 3187 |
"Perhaps you meant to write either\n" |
| 3188 |
"\n" |
| 3189 |
" {new_statement}\n" |
| 3190 |
"\n" |
| 3191 |
"or\n" |
| 3192 |
"\n" |
| 3193 |
" {new_statement2}" |
| 3194 |
msgstr "" |
| 3195 |
|
| 3196 |
#: syntax_errors\message_analyzer.py:1020 |
| 3197 |
msgid "" |
| 3198 |
"You likely called a function using the Python keyword `{keyword}` as an argument:\n" |
| 3199 |
"\n" |
| 3200 |
" a_function({keyword}=something) \n" |
| 3201 |
"\n" |
| 3202 |
"which Python interpreted as trying to assign a value to a Python keyword.\n" |
| 3203 |
"\n" |
| 3204 |
msgstr "" |
| 3205 |
|
| 3206 |
#: syntax_errors\message_analyzer.py:1031 |
| 3207 |
msgid "" |
| 3208 |
"You likely called a function with a named argument:\n" |
| 3209 |
"\n" |
| 3210 |
" a_function(invalid=something) \n" |
| 3211 |
"\n" |
| 3212 |
"where `invalid` is not a valid variable name in Python\n" |
| 3213 |
"either because it starts with a number, or is a string,\n" |
| 3214 |
"or contains a period, etc.\n" |
| 3215 |
msgstr "" |
| 3216 |
|
| 3217 |
#: syntax_errors\message_analyzer.py:1045 |
| 3218 |
#: syntax_errors\statement_analyzer.py:1744 |
| 3219 |
msgid "" |
| 3220 |
"It looks like the error occurred as you were writing a Python dict.\n" |
| 3221 |
"Perhaps you forgot to write a value after a colon.\n" |
| 3222 |
msgstr "" |
| 3223 |
|
| 3224 |
#: syntax_errors\message_analyzer.py:1058 |
| 3225 |
msgid "" |
| 3226 |
"You have written an f-string whose content `{...}`\n" |
| 3227 |
"includes a backslash; this is not allowed.\n" |
| 3228 |
"Perhaps you can replace the part that contains a backslash by\n" |
| 3229 |
"some variable. For example, suppose that you have an f-string like:\n" |
| 3230 |
"\n" |
| 3231 |
" f\"{... 'hello\\n' ...}\"\n" |
| 3232 |
"\n" |
| 3233 |
"you could write this as\n" |
| 3234 |
"\n" |
| 3235 |
" hello = 'hello\\n'\n" |
| 3236 |
" f\"{... hello ...}\"\n" |
| 3237 |
msgstr "" |
| 3238 |
|
| 3239 |
#: syntax_errors\message_analyzer.py:1075 |
| 3240 |
msgid "" |
| 3241 |
"You have written an f-string which has an unmatched `}`.\n" |
| 3242 |
"If you want to print a single `}`, you need to write `}}` in the f-string;\n" |
| 3243 |
"otherwise, you need to add an opening `{`.\n" |
| 3244 |
msgstr "" |
| 3245 |
|
| 3246 |
#: syntax_errors\message_analyzer.py:1087 |
| 3247 |
msgid "" |
| 3248 |
"You have written an f-string which has an unmatched `{`.\n" |
| 3249 |
"If you want to print a single `{`, you need to write `{{` in the f-string;\n" |
| 3250 |
"otherwise, you need to add a closing `}`.\n" |
| 3251 |
msgstr "" |
| 3252 |
|
| 3253 |
#: syntax_errors\message_analyzer.py:1103 |
| 3254 |
#: syntax_errors\statement_analyzer.py:1312 |
| 3255 |
msgid "" |
| 3256 |
"I am guessing that you were writing a comprehension or a generator expression\n" |
| 3257 |
"and forgot to include parentheses around tuples.\n" |
| 3258 |
"As an example, instead of writing\n" |
| 3259 |
"\n" |
| 3260 |
" [i, i**2 for i in range(10)]\n" |
| 3261 |
"\n" |
| 3262 |
"you would need to write\n" |
| 3263 |
"\n" |
| 3264 |
" [(i, i**2) for i in range(10)]\n" |
| 3265 |
"\n" |
| 3266 |
msgstr "" |
| 3267 |
|
| 3268 |
#: syntax_errors\message_analyzer.py:1120 |
| 3269 |
msgid "" |
| 3270 |
"A `from __future__ import` statement changes the way Python\n" |
| 3271 |
"interprets the code in a file.\n" |
| 3272 |
"It must appear at the beginning of the file." |
| 3273 |
msgstr "" |
| 3274 |
|
| 3275 |
#: syntax_errors\message_analyzer.py:1136 |
| 3276 |
msgid "" |
| 3277 |
"The available features are `{names}`.\n" |
| 3278 |
msgstr "" |
| 3279 |
|
| 3280 |
#: syntax_errors\message_analyzer.py:1141 |
| 3281 |
msgid "" |
| 3282 |
"When using a `from __future__ import` statement,\n" |
| 3283 |
"you must import specific named features.\n" |
| 3284 |
msgstr "" |
| 3285 |
|
| 3286 |
#: syntax_errors\message_analyzer.py:1152 |
| 3287 |
msgid "" |
| 3288 |
"Instead of `{feature}`, perhaps you meant to import `{name}`.\n" |
| 3289 |
msgstr "" |
| 3290 |
|
| 3291 |
#: syntax_errors\message_analyzer.py:1157 |
| 3292 |
msgid "" |
| 3293 |
"`{feature}` is not a valid feature of module `__future__`.\n" |
| 3294 |
msgstr "" |
| 3295 |
|
| 3296 |
#: syntax_errors\message_analyzer.py:1182 |
| 3297 |
msgid "" |
| 3298 |
"You are using a generator expression, something of the form\n" |
| 3299 |
"\n" |
| 3300 |
" x for x in thing\n" |
| 3301 |
"\n" |
| 3302 |
"You must add parentheses enclosing that expression.\n" |
| 3303 |
msgstr "" |
| 3304 |
|
| 3305 |
#: syntax_errors\message_analyzer.py:1195 |
| 3306 |
msgid "" |
| 3307 |
"I suspect you wrote `from __future__ import braces` following\n" |
| 3308 |
"someone else's suggestion. This will never work.\n" |
| 3309 |
"\n" |
| 3310 |
"Unlike other programming languages, Python's code block are defined by\n" |
| 3311 |
"their indentation level, and not by using some curly braces, like `{...}`.\n" |
| 3312 |
msgstr "" |
| 3313 |
|
| 3314 |
#: syntax_errors\message_analyzer.py:1210 |
| 3315 |
#: syntax_errors\statement_analyzer.py:214 |
| 3316 |
msgid "" |
| 3317 |
"Did you use copy-paste?\n" |
| 3318 |
msgstr "" |
| 3319 |
|
| 3320 |
#: syntax_errors\message_analyzer.py:1211 |
| 3321 |
msgid "" |
| 3322 |
"Python indicates that you used the unicode character `{bad_character}`\n" |
| 3323 |
"which is not allowed.\n" |
| 3324 |
msgstr "" |
| 3325 |
|
| 3326 |
#: syntax_errors\message_analyzer.py:1237 |
| 3327 |
msgid "Python tells us that you have written an invalid number." |
| 3328 |
msgstr "" |
| 3329 |
|
| 3330 |
#: syntax_errors\message_analyzer.py:1238 |
| 3331 |
msgid "However, I think that the problem might be the following." |
| 3332 |
msgstr "" |
| 3333 |
|
| 3334 |
#: syntax_errors\message_analyzer.py:1272 |
| 3335 |
msgid "" |
| 3336 |
"I have no suggestion to offer to fix this problem.\n" |
| 3337 |
msgstr "" |
| 3338 |
|
| 3339 |
#: syntax_errors\message_analyzer.py:1281 |
| 3340 |
#: syntax_errors\statement_analyzer.py:768 |
| 3341 |
msgid "" |
| 3342 |
"The double star operator `**` is likely interpreted to mean that\n" |
| 3343 |
"dict unpacking is to be used which is not allowed or does not make sense here.\n" |
| 3344 |
msgstr "" |
| 3345 |
|
| 3346 |
#: syntax_errors\message_analyzer.py:1339 |
| 3347 |
msgid "" |
| 3348 |
"You cannot use the `*` operator to unpack the iteration variable\n" |
| 3349 |
"in a comprehension.\n" |
| 3350 |
msgstr "" |
| 3351 |
|
| 3352 |
#: syntax_errors\message_analyzer.py:1351 |
| 3353 |
#: syntax_errors\message_analyzer.py:1761 |
| 3354 |
#: syntax_errors\statement_analyzer.py:552 |
| 3355 |
msgid "" |
| 3356 |
"The following statement has no syntax error:\n" |
| 3357 |
"\n" |
| 3358 |
" {statement}\n" |
| 3359 |
msgstr "" |
| 3360 |
|
| 3361 |
#: syntax_errors\message_analyzer.py:1372 |
| 3362 |
msgid "" |
| 3363 |
"You have called a function repeating the same keyword argument (`{arg}`).\n" |
| 3364 |
"Each keyword argument should appear only once in a function call.\n" |
| 3365 |
msgstr "" |
| 3366 |
|
| 3367 |
#: syntax_errors\message_analyzer.py:1435 |
| 3368 |
msgid "" |
| 3369 |
"Python tells us that the closing `{closing}` on the last line shown\n" |
| 3370 |
"does not match the opening `{opening}` on line {lineno}.\n" |
| 3371 |
"\n" |
| 3372 |
msgstr "" |
| 3373 |
|
| 3374 |
#: syntax_errors\message_analyzer.py:1440 |
| 3375 |
msgid "" |
| 3376 |
"Python tells us that the closing `{closing}` on the last line shown\n" |
| 3377 |
"does not match the opening `{opening}`.\n" |
| 3378 |
"\n" |
| 3379 |
msgstr "" |
| 3380 |
|
| 3381 |
#: syntax_errors\message_analyzer.py:1454 |
| 3382 |
msgid "" |
| 3383 |
"Did you forget something after `*`?\n" |
| 3384 |
msgstr "" |
| 3385 |
|
| 3386 |
#: syntax_errors\message_analyzer.py:1455 |
| 3387 |
msgid "" |
| 3388 |
"Assuming you were defining a function, you need\n" |
| 3389 |
"to replace `*` by either `*arguments` or\n" |
| 3390 |
"by `*, named_argument=value`.\n" |
| 3391 |
msgstr "" |
| 3392 |
|
| 3393 |
#: syntax_errors\message_analyzer.py:1470 |
| 3394 |
msgid "" |
| 3395 |
"You assigned a value to the variable `{name}`\n" |
| 3396 |
"before declaring it as a global variable.\n" |
| 3397 |
msgstr "" |
| 3398 |
|
| 3399 |
#: syntax_errors\message_analyzer.py:1494 |
| 3400 |
msgid "" |
| 3401 |
"Did you forget to add `nonlocal`?\n" |
| 3402 |
msgstr "" |
| 3403 |
|
| 3404 |
#: syntax_errors\message_analyzer.py:1495 |
| 3405 |
msgid "" |
| 3406 |
"You assigned a value to the variable `{name}`\n" |
| 3407 |
"before declaring it as a nonlocal variable.\n" |
| 3408 |
msgstr "" |
| 3409 |
|
| 3410 |
#: syntax_errors\message_analyzer.py:1526 |
| 3411 |
msgid "" |
| 3412 |
"You are including the statement\n" |
| 3413 |
"\n" |
| 3414 |
" {newline}\n" |
| 3415 |
"\n" |
| 3416 |
"indicating that `{name}` is a variable defined outside a function.\n" |
| 3417 |
"You are also using the same `{name}` as an argument for that\n" |
| 3418 |
"function, thus indicating that it should be variable known only\n" |
| 3419 |
"inside that function, which is the contrary of what `global` implied.\n" |
| 3420 |
msgstr "" |
| 3421 |
|
| 3422 |
#: syntax_errors\message_analyzer.py:1543 |
| 3423 |
msgid "" |
| 3424 |
"You used `{name}` as a parameter for a function\n" |
| 3425 |
"before declaring it also as a nonlocal variable:\n" |
| 3426 |
"`{name}` cannot be both at the same time.\n" |
| 3427 |
msgstr "" |
| 3428 |
|
| 3429 |
#: syntax_errors\message_analyzer.py:1558 |
| 3430 |
msgid "" |
| 3431 |
"You used the variable `{name}`\n" |
| 3432 |
"before declaring it as a global variable.\n" |
| 3433 |
msgstr "" |
| 3434 |
|
| 3435 |
#: syntax_errors\message_analyzer.py:1581 |
| 3436 |
msgid "" |
| 3437 |
"Did you forget to write `nonlocal` first?\n" |
| 3438 |
msgstr "" |
| 3439 |
|
| 3440 |
#: syntax_errors\message_analyzer.py:1583 |
| 3441 |
msgid "" |
| 3442 |
"You used the variable `{name}`\n" |
| 3443 |
"before declaring it as a nonlocal variable.\n" |
| 3444 |
msgstr "" |
| 3445 |
|
| 3446 |
#: syntax_errors\message_analyzer.py:1607 |
| 3447 |
msgid "" |
| 3448 |
"You declared the variable `{name}` as being a\n" |
| 3449 |
"nonlocal variable but it cannot be found.\n" |
| 3450 |
msgstr "" |
| 3451 |
|
| 3452 |
#: syntax_errors\message_analyzer.py:1618 |
| 3453 |
msgid "" |
| 3454 |
"You used the nonlocal keyword at a module level.\n" |
| 3455 |
"The nonlocal keyword refers to a variable inside a function\n" |
| 3456 |
"given a value outside that function." |
| 3457 |
msgstr "" |
| 3458 |
|
| 3459 |
#: syntax_errors\message_analyzer.py:1633 |
| 3460 |
msgid "" |
| 3461 |
"In Python, you can define functions with only positional arguments\n" |
| 3462 |
"\n" |
| 3463 |
" def test(a, b, c): ...\n" |
| 3464 |
"\n" |
| 3465 |
"or only keyword arguments\n" |
| 3466 |
"\n" |
| 3467 |
" def test(a=1, b=2, c=3): ...\n" |
| 3468 |
"\n" |
| 3469 |
"or a combination of the two\n" |
| 3470 |
"\n" |
| 3471 |
" def test(a, b, c=3): ...\n" |
| 3472 |
"\n" |
| 3473 |
"but with the keyword arguments appearing after all the positional ones.\n" |
| 3474 |
"According to Python, you used positional arguments after keyword ones.\n" |
| 3475 |
msgstr "" |
| 3476 |
|
| 3477 |
#: syntax_errors\message_analyzer.py:1670 |
| 3478 |
#: syntax_errors\statement_analyzer.py:1360 |
| 3479 |
msgid "" |
| 3480 |
"I am guessing that you wanted to use an `except` statement\n" |
| 3481 |
"with multiple exception types. If that is the case, you must\n" |
| 3482 |
"surround them with parentheses.\n" |
| 3483 |
msgstr "" |
| 3484 |
|
| 3485 |
#: syntax_errors\message_analyzer.py:1682 |
| 3486 |
msgid "" |
| 3487 |
"In Python, you can call functions with only positional arguments\n" |
| 3488 |
"\n" |
| 3489 |
" test(1, 2, 3)\n" |
| 3490 |
"\n" |
| 3491 |
"or only keyword arguments\n" |
| 3492 |
"\n" |
| 3493 |
" test(a=1, b=2, c=3)\n" |
| 3494 |
"\n" |
| 3495 |
"or a combination of the two\n" |
| 3496 |
"\n" |
| 3497 |
" test(1, 2, c=3)\n" |
| 3498 |
"\n" |
| 3499 |
"but with the keyword arguments appearing after all the positional ones.\n" |
| 3500 |
"According to Python, you used positional arguments after keyword ones.\n" |
| 3501 |
msgstr "" |
| 3502 |
|
| 3503 |
#: syntax_errors\message_analyzer.py:1709 |
| 3504 |
#: syntax_errors\statement_analyzer.py:686 |
| 3505 |
msgid "" |
| 3506 |
"Perhaps you need to type\n" |
| 3507 |
"\n" |
| 3508 |
" print({message})\n" |
| 3509 |
"\n" |
| 3510 |
"In older version of Python, `print` was a keyword.\n" |
| 3511 |
"Now, `print` is a function; you need to use parentheses to call it.\n" |
| 3512 |
msgstr "" |
| 3513 |
|
| 3514 |
#: syntax_errors\message_analyzer.py:1716 |
| 3515 |
#: syntax_errors\statement_analyzer.py:693 |
| 3516 |
msgid "" |
| 3517 |
"Note that arguments of `print` must be separated by commas.\n" |
| 3518 |
msgstr "" |
| 3519 |
|
| 3520 |
#: syntax_errors\message_analyzer.py:1717 |
| 3521 |
#: syntax_errors\statement_analyzer.py:694 |
| 3522 |
msgid "" |
| 3523 |
"Did you mean `print({message})`?\n" |
| 3524 |
msgstr "" |
| 3525 |
|
| 3526 |
#: syntax_errors\message_analyzer.py:1726 |
| 3527 |
msgid "" |
| 3528 |
"You can only use a `return` statement inside a function or method.\n" |
| 3529 |
msgstr "" |
| 3530 |
|
| 3531 |
#: syntax_errors\message_analyzer.py:1735 |
| 3532 |
msgid "" |
| 3533 |
"A star assignment must be of the form:\n" |
| 3534 |
"\n" |
| 3535 |
" ... *name = list_or_tuple\n" |
| 3536 |
"\n" |
| 3537 |
msgstr "" |
| 3538 |
|
| 3539 |
#: syntax_errors\message_analyzer.py:1745 |
| 3540 |
msgid "" |
| 3541 |
"It looks like you tried to use a starred expression as a dict value;\n" |
| 3542 |
"this is not allowed.\n" |
| 3543 |
msgstr "" |
| 3544 |
|
| 3545 |
#: syntax_errors\message_analyzer.py:1772 |
| 3546 |
msgid "" |
| 3547 |
"Your code is too complex for Python:\n" |
| 3548 |
"you need to reduce the number of indented code blocks\n" |
| 3549 |
"contained inside other code blocks.\n" |
| 3550 |
msgstr "" |
| 3551 |
|
| 3552 |
#: syntax_errors\message_analyzer.py:1785 |
| 3553 |
msgid "" |
| 3554 |
"Your code is too complex for Python:\n" |
| 3555 |
"you need to reduce the number of parentheses\n" |
| 3556 |
"contained inside other parentheses.\n" |
| 3557 |
msgstr "" |
| 3558 |
|
| 3559 |
#: syntax_errors\message_analyzer.py:1800 |
| 3560 |
msgid "" |
| 3561 |
"Python indicates that you need to surround an expression\n" |
| 3562 |
"ending with a comma by parentheses.\n" |
| 3563 |
msgstr "" |
| 3564 |
|
| 3565 |
#: syntax_errors\message_analyzer.py:1804 |
| 3566 |
msgid "" |
| 3567 |
"I have no additional suggestion to offer.\n" |
| 3568 |
"Please feel free to report this case.\n" |
| 3569 |
msgstr "" |
| 3570 |
|
| 3571 |
#: syntax_errors\message_analyzer.py:1814 |
| 3572 |
msgid "" |
| 3573 |
"Perhaps you meant to write\n" |
| 3574 |
"\n" |
| 3575 |
"`{new_statement}`\n" |
| 3576 |
msgstr "" |
| 3577 |
|
| 3578 |
#: syntax_errors\message_analyzer.py:1822 |
| 3579 |
msgid "" |
| 3580 |
"However, I suspect that you wrote the keyword `{boolean}` by mistake.\n" |
| 3581 |
msgstr "" |
| 3582 |
|
| 3583 |
#: syntax_errors\message_analyzer.py:1826 |
| 3584 |
msgid "" |
| 3585 |
"The Python keyword `{boolean}` can only be used for boolean expressions.\n" |
| 3586 |
msgstr "" |
| 3587 |
|
| 3588 |
#: syntax_errors\message_analyzer.py:1838 |
| 3589 |
#: syntax_errors\message_analyzer.py:1851 |
| 3590 |
msgid "" |
| 3591 |
"However, if you remove the last comma, there will be no syntax error.\n" |
| 3592 |
msgstr "" |
| 3593 |
|
| 3594 |
#: syntax_errors\message_analyzer.py:1866 |
| 3595 |
msgid "" |
| 3596 |
"You are using the continuation character `\\` outside of a string,\n" |
| 3597 |
"and it is followed by some other character(s).\n" |
| 3598 |
msgstr "" |
| 3599 |
|
| 3600 |
#: syntax_errors\message_analyzer.py:1889 |
| 3601 |
msgid "" |
| 3602 |
"I am guessing that you wanted to divide by the number {number} \n" |
| 3603 |
"and wrote \\ instead of /." |
| 3604 |
msgstr "" |
| 3605 |
|
| 3606 |
#: syntax_errors\message_analyzer.py:1893 |
| 3607 |
msgid "" |
| 3608 |
"Did you mean to divide by {number}?\n" |
| 3609 |
msgstr "" |
| 3610 |
|
| 3611 |
#: syntax_errors\message_analyzer.py:1896 |
| 3612 |
msgid "" |
| 3613 |
"I am guessing that you forgot to enclose some content in a string.\n" |
| 3614 |
msgstr "" |
| 3615 |
|
| 3616 |
#: syntax_errors\message_analyzer.py:1905 |
| 3617 |
msgid "" |
| 3618 |
"Python tells us that it reached the end of the file\n" |
| 3619 |
"and expected more content.\n" |
| 3620 |
"\n" |
| 3621 |
msgstr "" |
| 3622 |
|
| 3623 |
#: syntax_errors\message_analyzer.py:1912 |
| 3624 |
msgid "" |
| 3625 |
"I will attempt to be give a bit more information.\n" |
| 3626 |
"\n" |
| 3627 |
msgstr "" |
| 3628 |
|
| 3629 |
#: syntax_errors\message_analyzer.py:1923 |
| 3630 |
msgid "" |
| 3631 |
"I suspect that you wrote a string that contains\n" |
| 3632 |
"one backslash character, `\\` followed by an uppercase `U`\n" |
| 3633 |
"and some more characters.\n" |
| 3634 |
"Python likely interpreted this as indicating the beginning of\n" |
| 3635 |
"what is known as an escape sequence for special unicode characters.\n" |
| 3636 |
"To solve the problem, either write a so-called 'raw string'\n" |
| 3637 |
"by adding the letter `r` as a prefix in\n" |
| 3638 |
"front of the string, or replace `\\U`, by `\\\\U`.\n" |
| 3639 |
msgstr "" |
| 3640 |
|
| 3641 |
#: syntax_errors\message_analyzer.py:1947 |
| 3642 |
#: syntax_errors\statement_analyzer.py:151 |
| 3643 |
msgid "" |
| 3644 |
"The closing {bracket} on line {linenumber} does not match anything.\n" |
| 3645 |
msgstr "" |
| 3646 |
|
| 3647 |
#: syntax_errors\message_analyzer.py:1958 |
| 3648 |
msgid "" |
| 3649 |
"Perhaps you forgot a closing quote.\n" |
| 3650 |
msgstr "" |
| 3651 |
|
| 3652 |
#: syntax_errors\message_analyzer.py:1971 |
| 3653 |
msgid "" |
| 3654 |
"Inside the f-string `{fstring}`, \n" |
| 3655 |
"you have another string, which starts with either a\n" |
| 3656 |
"single quote (') or double quote (\"), without a matching closing one.\n" |
| 3657 |
msgstr "" |
| 3658 |
|
| 3659 |
#: syntax_errors\message_analyzer.py:1984 |
| 3660 |
msgid "" |
| 3661 |
"You can only use a `yield` statement inside a function.\n" |
| 3662 |
msgstr "" |
| 3663 |
|
| 3664 |
#: syntax_errors\message_analyzer.py:1993 |
| 3665 |
msgid "" |
| 3666 |
"This is a message that was added in Python 3.9\n" |
| 3667 |
"to prevent redefining `__peg_parser__`.\n" |
| 3668 |
"It should not be present in other versions.\n" |
| 3669 |
msgstr "" |
| 3670 |
|
| 3671 |
#: syntax_errors\message_analyzer.py:2055 |
| 3672 |
msgid "" |
| 3673 |
"Friendly-traceback cannot identify the non-printable character.\n" |
| 3674 |
"This should not happen. Please report this case" |
| 3675 |
msgstr "" |
| 3676 |
|
| 3677 |
#: syntax_errors\message_analyzer.py:2069 |
| 3678 |
#: syntax_errors\statement_analyzer.py:107 |
| 3679 |
msgid "" |
| 3680 |
"Your code contains the invalid non-printable character {char}.\n" |
| 3681 |
msgstr "" |
| 3682 |
|
| 3683 |
#: syntax_errors\message_analyzer.py:2091 |
| 3684 |
#: syntax_errors\statement_analyzer.py:360 |
| 3685 |
msgid "" |
| 3686 |
"Did you mean `from {module} import {function}`?\n" |
| 3687 |
msgstr "" |
| 3688 |
|
| 3689 |
#: syntax_errors\message_analyzer.py:2094 |
| 3690 |
#: syntax_errors\statement_analyzer.py:363 |
| 3691 |
msgid "" |
| 3692 |
"You wrote something like\n" |
| 3693 |
"\n" |
| 3694 |
" import {function} from {module}\n" |
| 3695 |
"\n" |
| 3696 |
"instead of\n" |
| 3697 |
"\n" |
| 3698 |
" from {module} import {function}\n" |
| 3699 |
"\n" |
| 3700 |
msgstr "" |
| 3701 |
|
| 3702 |
#: syntax_errors\message_analyzer.py:2113 |
| 3703 |
msgid "" |
| 3704 |
"The statement `{line}` is not valid.\n" |
| 3705 |
"\n" |
| 3706 |
msgstr "" |
| 3707 |
|
| 3708 |
#: syntax_errors\message_analyzer.py:2117 |
| 3709 |
#: syntax_errors\message_analyzer.py:2125 |
| 3710 |
msgid "I don't have any additional information" |
| 3711 |
msgstr "" |
| 3712 |
|
| 3713 |
#: syntax_errors\statement_analyzer.py:129 |
| 3714 |
msgid "" |
| 3715 |
"Did you forget to add an index?\n" |
| 3716 |
msgstr "" |
| 3717 |
|
| 3718 |
#: syntax_errors\statement_analyzer.py:130 |
| 3719 |
msgid "" |
| 3720 |
"It looks like you forgot to add an index.\n" |
| 3721 |
"Perhaps you meant to write something like:\n" |
| 3722 |
"\n" |
| 3723 |
" {new_line}" |
| 3724 |
msgstr "" |
| 3725 |
|
| 3726 |
#: syntax_errors\statement_analyzer.py:186 |
| 3727 |
msgid "" |
| 3728 |
"The closing {bracket} on line {close_lineno} does not match the opening {open_bracket} on line {open_lineno}.\n" |
| 3729 |
msgstr "" |
| 3730 |
|
| 3731 |
#: syntax_errors\statement_analyzer.py:208 |
| 3732 |
msgid "" |
| 3733 |
"Did you mean to write `...`?\n" |
| 3734 |
msgstr "" |
| 3735 |
|
| 3736 |
#: syntax_errors\statement_analyzer.py:209 |
| 3737 |
msgid "" |
| 3738 |
"It looks like you meant to write `...` but added an extra `.` by mistake.\n" |
| 3739 |
msgstr "" |
| 3740 |
|
| 3741 |
#: syntax_errors\statement_analyzer.py:223 |
| 3742 |
msgid "" |
| 3743 |
"It looks like you copy-pasted code from an interactive interpreter.\n" |
| 3744 |
"The Python prompt, `>>>`, should not be included in your code.\n" |
| 3745 |
msgstr "" |
| 3746 |
|
| 3747 |
#: syntax_errors\statement_analyzer.py:233 |
| 3748 |
msgid "" |
| 3749 |
"It looks like you copy-pasted code from an interactive interpreter.\n" |
| 3750 |
"The Python prompt, `...`, should not be included in your code.\n" |
| 3751 |
msgstr "" |
| 3752 |
|
| 3753 |
#: syntax_errors\statement_analyzer.py:247 |
| 3754 |
msgid "" |
| 3755 |
"You should not use the backquote character.\n" |
| 3756 |
msgstr "" |
| 3757 |
|
| 3758 |
#: syntax_errors\statement_analyzer.py:248 |
| 3759 |
msgid "" |
| 3760 |
"You are using the backquote character.\n" |
| 3761 |
"Either you meant to write a single quote, ', or copied Python 2 code;\n" |
| 3762 |
"in this latter case, use the function `repr(x)`." |
| 3763 |
msgstr "" |
| 3764 |
|
| 3765 |
#: syntax_errors\statement_analyzer.py:269 |
| 3766 |
msgid "" |
| 3767 |
"You forgot to add a condition.\n" |
| 3768 |
msgstr "" |
| 3769 |
|
| 3770 |
#: syntax_errors\statement_analyzer.py:271 |
| 3771 |
msgid "" |
| 3772 |
"An `if` statement requires a condition:\n" |
| 3773 |
"\n" |
| 3774 |
" if condition:\n" |
| 3775 |
" ...\n" |
| 3776 |
"\n" |
| 3777 |
msgstr "" |
| 3778 |
|
| 3779 |
#: syntax_errors\statement_analyzer.py:277 |
| 3780 |
msgid "" |
| 3781 |
"A `while` loop requires a condition:\n" |
| 3782 |
"\n" |
| 3783 |
" while condition:\n" |
| 3784 |
" ...\n" |
| 3785 |
"\n" |
| 3786 |
msgstr "" |
| 3787 |
|
| 3788 |
#: syntax_errors\statement_analyzer.py:283 |
| 3789 |
msgid "" |
| 3790 |
"A `for` loop requires at least 3 more terms.\n" |
| 3791 |
msgstr "" |
| 3792 |
|
| 3793 |
#: syntax_errors\statement_analyzer.py:284 |
| 3794 |
msgid "" |
| 3795 |
"A `for` loop is an iteration over a sequence:\n" |
| 3796 |
"\n" |
| 3797 |
" for element in sequence:\n" |
| 3798 |
" ...\n" |
| 3799 |
"\n" |
| 3800 |
msgstr "" |
| 3801 |
|
| 3802 |
#: syntax_errors\statement_analyzer.py:290 |
| 3803 |
msgid "" |
| 3804 |
"A class needs a name.\n" |
| 3805 |
msgstr "" |
| 3806 |
|
| 3807 |
#: syntax_errors\statement_analyzer.py:291 |
| 3808 |
msgid "" |
| 3809 |
"A `class` statement requires a name:\n" |
| 3810 |
"\n" |
| 3811 |
" class SomeName:\n" |
| 3812 |
" ...\n" |
| 3813 |
"\n" |
| 3814 |
msgstr "" |
| 3815 |
|
| 3816 |
#: syntax_errors\statement_analyzer.py:308 |
| 3817 |
msgid "" |
| 3818 |
"You cannot use the Python keyword `{word}` as an attribute.\n" |
| 3819 |
"\n" |
| 3820 |
msgstr "" |
| 3821 |
|
| 3822 |
#: syntax_errors\statement_analyzer.py:314 |
| 3823 |
msgid "" |
| 3824 |
"`{word}` cannot be used as an attribute.\n" |
| 3825 |
msgstr "" |
| 3826 |
|
| 3827 |
#: syntax_errors\statement_analyzer.py:336 |
| 3828 |
msgid "" |
| 3829 |
"Perhaps you meant to write `elif`.\n" |
| 3830 |
msgstr "" |
| 3831 |
|
| 3832 |
#: syntax_errors\statement_analyzer.py:337 |
| 3833 |
msgid "" |
| 3834 |
"You likely meant to use Python's `elif` keyword\n" |
| 3835 |
"but wrote `{name}` instead.\n" |
| 3836 |
"\n" |
| 3837 |
msgstr "" |
| 3838 |
|
| 3839 |
#: syntax_errors\statement_analyzer.py:434 |
| 3840 |
msgid "" |
| 3841 |
"The augmented assignment operator is not allowed in Python version {version}.\n" |
| 3842 |
msgstr "" |
| 3843 |
|
| 3844 |
#: syntax_errors\statement_analyzer.py:437 |
| 3845 |
msgid "" |
| 3846 |
"You appear to be using the operator `:=`, sometimes called\n" |
| 3847 |
"the walrus operator. This operator requires the use of\n" |
| 3848 |
"Python 3.8 or newer. You are using version {version}.\n" |
| 3849 |
msgstr "" |
| 3850 |
|
| 3851 |
#: syntax_errors\statement_analyzer.py:481 |
| 3852 |
msgid "" |
| 3853 |
"Did you write operators in an incorrect order?\n" |
| 3854 |
msgstr "" |
| 3855 |
|
| 3856 |
#: syntax_errors\statement_analyzer.py:482 |
| 3857 |
msgid "" |
| 3858 |
"It looks like you wrote two operators (`{first}` and `{second}`)\n" |
| 3859 |
"in the wrong order: `{wrong}` instead of `{correct}`.\n" |
| 3860 |
msgstr "" |
| 3861 |
|
| 3862 |
#: syntax_errors\statement_analyzer.py:518 |
| 3863 |
msgid "" |
| 3864 |
"You wrote three equal signs in a row which is allowed in some\n" |
| 3865 |
"programming languages, but not in Python. To check if two objects\n" |
| 3866 |
"are equal, use two equal signs, `==`; to see if two names represent\n" |
| 3867 |
"the exact same object, use the operator `is`.\n" |
| 3868 |
msgstr "" |
| 3869 |
|
| 3870 |
#: syntax_errors\statement_analyzer.py:524 |
| 3871 |
msgid "" |
| 3872 |
"Did you mean to use `is` instead of `===`?\n" |
| 3873 |
msgstr "" |
| 3874 |
|
| 3875 |
#: syntax_errors\statement_analyzer.py:528 |
| 3876 |
msgid "" |
| 3877 |
"You cannot have write the same operator, `{op}`, twice in a row.\n" |
| 3878 |
"Perhaps you wrote one of them by mistake\n" |
| 3879 |
"or forgot to write something between them.\n" |
| 3880 |
msgstr "" |
| 3881 |
|
| 3882 |
#: syntax_errors\statement_analyzer.py:539 |
| 3883 |
msgid "" |
| 3884 |
"You cannot have these two operators, `{first}` and `{second}`,\n" |
| 3885 |
"following each other.\n" |
| 3886 |
"It looks like you tried to use a starred expression as a dict value;\n" |
| 3887 |
"this is not allowed.\n" |
| 3888 |
msgstr "" |
| 3889 |
|
| 3890 |
#: syntax_errors\statement_analyzer.py:556 |
| 3891 |
msgid "" |
| 3892 |
"You cannot have these two operators, `{first}` and `{second}`,\n" |
| 3893 |
"following each other. Perhaps you wrote one of them by mistake\n" |
| 3894 |
"or forgot to write something between them.\n" |
| 3895 |
msgstr "" |
| 3896 |
|
| 3897 |
#: syntax_errors\statement_analyzer.py:563 |
| 3898 |
msgid "" |
| 3899 |
"Or perhaps you included a space by mistake between the two operators\n" |
| 3900 |
"and meant to write `{oper}` as a single operator.\n" |
| 3901 |
msgstr "" |
| 3902 |
|
| 3903 |
#: syntax_errors\statement_analyzer.py:598 |
| 3904 |
msgid "" |
| 3905 |
"Did you mean to use `=`?\n" |
| 3906 |
msgstr "" |
| 3907 |
|
| 3908 |
#: syntax_errors\statement_analyzer.py:599 |
| 3909 |
msgid "" |
| 3910 |
"You use the augmented assignment operator `:=` where\n" |
| 3911 |
"the normal assignment operator `=` was required.\n" |
| 3912 |
msgstr "" |
| 3913 |
|
| 3914 |
#: syntax_errors\statement_analyzer.py:645 |
| 3915 |
msgid "" |
| 3916 |
"The following statement would not contain a syntax error:\n" |
| 3917 |
"\n" |
| 3918 |
" {new_statement}" |
| 3919 |
msgstr "" |
| 3920 |
|
| 3921 |
#: syntax_errors\statement_analyzer.py:651 |
| 3922 |
msgid "" |
| 3923 |
"Perhaps you needed `==` or `:=` instead of `=`.\n" |
| 3924 |
msgstr "" |
| 3925 |
|
| 3926 |
#: syntax_errors\statement_analyzer.py:652 |
| 3927 |
msgid "" |
| 3928 |
"You used an assignment operator `=`; perhaps you meant to use \n" |
| 3929 |
"an equality operator, `==`, or the walrus operator `:=`.\n" |
| 3930 |
msgstr "" |
| 3931 |
|
| 3932 |
#: syntax_errors\statement_analyzer.py:710 |
| 3933 |
msgid "" |
| 3934 |
"It looks as if you are attempting to use pip to install a module.\n" |
| 3935 |
"`pip` is a command that needs to run in a terminal,\n" |
| 3936 |
"not from a Python interpreter.\n" |
| 3937 |
msgstr "" |
| 3938 |
|
| 3939 |
#: syntax_errors\statement_analyzer.py:718 |
| 3940 |
msgid "" |
| 3941 |
"Pip cannot be used in a Python interpreter.\n" |
| 3942 |
msgstr "" |
| 3943 |
|
| 3944 |
#: syntax_errors\statement_analyzer.py:721 |
| 3945 |
msgid "" |
| 3946 |
"I am guessing that you are attempting to use Python to run a program.\n" |
| 3947 |
"You must do so from a terminal and not from a Python interpreter.\n" |
| 3948 |
msgstr "" |
| 3949 |
|
| 3950 |
#: syntax_errors\statement_analyzer.py:731 |
| 3951 |
msgid "" |
| 3952 |
"You cannot have a dot `.` followed by `{bracket}`.\n" |
| 3953 |
msgstr "" |
| 3954 |
|
| 3955 |
#: syntax_errors\statement_analyzer.py:747 |
| 3956 |
msgid "" |
| 3957 |
"Perhaps you need to replace the dot by a comma.\n" |
| 3958 |
msgstr "" |
| 3959 |
|
| 3960 |
#: syntax_errors\statement_analyzer.py:758 |
| 3961 |
msgid "" |
| 3962 |
"It looks like you are trying to raise an exception using Python 2 syntax.\n" |
| 3963 |
msgstr "" |
| 3964 |
|
| 3965 |
#: syntax_errors\statement_analyzer.py:819 |
| 3966 |
msgid "" |
| 3967 |
"Did you forget a colon `:`?\n" |
| 3968 |
msgstr "" |
| 3969 |
|
| 3970 |
#: syntax_errors\statement_analyzer.py:823 |
| 3971 |
msgid "" |
| 3972 |
"You wrote a `{for_while}` loop but\n" |
| 3973 |
"forgot to add a colon `:` at the end\n" |
| 3974 |
"\n" |
| 3975 |
msgstr "" |
| 3976 |
|
| 3977 |
#: syntax_errors\statement_analyzer.py:830 |
| 3978 |
msgid "" |
| 3979 |
"You wrote a statement beginning with\n" |
| 3980 |
"`{name}` but forgot to add a colon `:` at the end.\n" |
| 3981 |
"\n" |
| 3982 |
msgstr "" |
| 3983 |
|
| 3984 |
#: syntax_errors\statement_analyzer.py:854 |
| 3985 |
msgid "" |
| 3986 |
"You wrote a semicolon, `;`, where a comma was expected.\n" |
| 3987 |
msgstr "" |
| 3988 |
|
| 3989 |
#: syntax_errors\statement_analyzer.py:874 |
| 3990 |
msgid "" |
| 3991 |
"You wrote semicolons, `;`, where commas were expected.\n" |
| 3992 |
msgstr "" |
| 3993 |
|
| 3994 |
#: syntax_errors\statement_analyzer.py:875 |
| 3995 |
msgid "" |
| 3996 |
"Did you mean to write commas?\n" |
| 3997 |
msgstr "" |
| 3998 |
|
| 3999 |
#: syntax_errors\statement_analyzer.py:895 |
| 4000 |
msgid "" |
| 4001 |
"You wrote a semicolon, `;`, where a colon was expected.\n" |
| 4002 |
msgstr "" |
| 4003 |
|
| 4004 |
#: syntax_errors\statement_analyzer.py:896 |
| 4005 |
msgid "" |
| 4006 |
"Did you mean to write a colon?\n" |
| 4007 |
msgstr "" |
| 4008 |
|
| 4009 |
#: syntax_errors\statement_analyzer.py:914 |
| 4010 |
msgid "" |
| 4011 |
"Did you made a mistake in writing an hexadecimal integer?\n" |
| 4012 |
msgstr "" |
| 4013 |
|
| 4014 |
#: syntax_errors\statement_analyzer.py:915 |
| 4015 |
msgid "" |
| 4016 |
"It looks like you used an invalid character (`{character}`) in an hexadecimal number.\n" |
| 4017 |
"\n" |
| 4018 |
"Hexadecimal numbers are base 16 integers that use the symbols `0` to `9`\n" |
| 4019 |
"to represent values 0 to 9, and the letters `a` to `f` (or `A` to `F`)\n" |
| 4020 |
"to represent values 10 to 15.\n" |
| 4021 |
"In Python, hexadecimal numbers start with either `0x` or `0X`,\n" |
| 4022 |
"followed by the characters used to represent the value of that integer.\n" |
| 4023 |
msgstr "" |
| 4024 |
|
| 4025 |
#: syntax_errors\statement_analyzer.py:934 |
| 4026 |
msgid "" |
| 4027 |
"Did you made a mistake in writing an octal integer?\n" |
| 4028 |
msgstr "" |
| 4029 |
|
| 4030 |
#: syntax_errors\statement_analyzer.py:935 |
| 4031 |
msgid "" |
| 4032 |
"It looks like you used an invalid character (`{character}`) in an octal number.\n" |
| 4033 |
"\n" |
| 4034 |
"Octal numbers are base 8 integers that only use the symbols `0` to `7`\n" |
| 4035 |
"to represent values.\n" |
| 4036 |
"In Python, octal numbers start with either `0o` or `0O`,\n" |
| 4037 |
"(the digit zero followed by the letter `o`)\n" |
| 4038 |
"followed by the characters used to represent the value of that integer.\n" |
| 4039 |
msgstr "" |
| 4040 |
|
| 4041 |
#: syntax_errors\statement_analyzer.py:962 |
| 4042 |
msgid "" |
| 4043 |
"Valid names cannot begin with a number.\n" |
| 4044 |
msgstr "" |
| 4045 |
|
| 4046 |
#: syntax_errors\statement_analyzer.py:969 |
| 4047 |
msgid "" |
| 4048 |
"Did you mean `{number}j`?\n" |
| 4049 |
msgstr "" |
| 4050 |
|
| 4051 |
#: syntax_errors\statement_analyzer.py:970 |
| 4052 |
msgid "" |
| 4053 |
"Perhaps you thought that `i` could be used to represent\n" |
| 4054 |
"the square root of `-1`. In Python, the symbol used for this is `j`\n" |
| 4055 |
"and the complex part is written as `some_number` immediately\n" |
| 4056 |
"followed by `j`, with no spaces in between.\n" |
| 4057 |
"Perhaps you meant to write `{number}j`.\n" |
| 4058 |
msgstr "" |
| 4059 |
|
| 4060 |
#: syntax_errors\statement_analyzer.py:980 |
| 4061 |
msgid "" |
| 4062 |
"Did you mean `{number}{second}0`?\n" |
| 4063 |
msgstr "" |
| 4064 |
|
| 4065 |
#: syntax_errors\statement_analyzer.py:983 |
| 4066 |
msgid "" |
| 4067 |
"Perhaps you meant to write `{number}{second}0` in scientific notation\n" |
| 4068 |
"and forgot the numerical value for the exponent.\n" |
| 4069 |
msgstr "" |
| 4070 |
|
| 4071 |
#: syntax_errors\statement_analyzer.py:990 |
| 4072 |
msgid "" |
| 4073 |
"[Note: `{first} * {second}` would also be valid\n" |
| 4074 |
"since `{first}` is a complex number.]\n" |
| 4075 |
msgstr "" |
| 4076 |
|
| 4077 |
#: syntax_errors\statement_analyzer.py:1001 |
| 4078 |
msgid "" |
| 4079 |
"Perhaps you forgot a multiplication operator, `{first} * {second}`.\n" |
| 4080 |
msgstr "" |
| 4081 |
|
| 4082 |
#: syntax_errors\statement_analyzer.py:1016 |
| 4083 |
msgid "" |
| 4084 |
"Your Python version does not support this f-string feature.\n" |
| 4085 |
msgstr "" |
| 4086 |
|
| 4087 |
#: syntax_errors\statement_analyzer.py:1017 |
| 4088 |
msgid "" |
| 4089 |
"You are likely using a 'debug' syntax of f-strings introduced\n" |
| 4090 |
"in Python version 3.8. You are using version {version}.\n" |
| 4091 |
msgstr "" |
| 4092 |
|
| 4093 |
#: syntax_errors\statement_analyzer.py:1023 |
| 4094 |
msgid "" |
| 4095 |
"You are likely trying to assign a value within an f-string.\n" |
| 4096 |
"This is not allowed.\n" |
| 4097 |
msgstr "" |
| 4098 |
|
| 4099 |
#: syntax_errors\statement_analyzer.py:1038 |
| 4100 |
msgid "" |
| 4101 |
"The content of your f-string is invalid. Please consult the documentation:\n" |
| 4102 |
"https://docs.python.org/3/reference/lexical_analysis.html#f-strings\n" |
| 4103 |
msgstr "" |
| 4104 |
|
| 4105 |
#: syntax_errors\statement_analyzer.py:1048 |
| 4106 |
msgid "" |
| 4107 |
"Python keywords cannot be used as identifiers (variable names).\n" |
| 4108 |
msgstr "" |
| 4109 |
|
| 4110 |
#: syntax_errors\statement_analyzer.py:1072 |
| 4111 |
msgid "" |
| 4112 |
"`lambda` does not allow parentheses around its arguments.\n" |
| 4113 |
"This was allowed in Python 2 but it not allowed in Python 3.\n" |
| 4114 |
msgstr "" |
| 4115 |
|
| 4116 |
#: syntax_errors\statement_analyzer.py:1089 |
| 4117 |
msgid "" |
| 4118 |
"You cannot have explicit tuples as arguments.\n" |
| 4119 |
"Assign any tuple to a parameter and unpack it\n" |
| 4120 |
"within the body of the function.\n" |
| 4121 |
msgstr "" |
| 4122 |
|
| 4123 |
#: syntax_errors\statement_analyzer.py:1127 |
| 4124 |
msgid "" |
| 4125 |
"If you remove `{type_decl}`, you will have a valid Python statement.\n" |
| 4126 |
msgstr "" |
| 4127 |
|
| 4128 |
#: syntax_errors\statement_analyzer.py:1131 |
| 4129 |
msgid "" |
| 4130 |
"However, even if you remove `{type_decl}`, there would still be some\n" |
| 4131 |
"some syntax errors.\n" |
| 4132 |
msgstr "" |
| 4133 |
|
| 4134 |
#: syntax_errors\statement_analyzer.py:1136 |
| 4135 |
msgid "" |
| 4136 |
"You do not need to declare variables in Python.\n" |
| 4137 |
msgstr "" |
| 4138 |
|
| 4139 |
#: syntax_errors\statement_analyzer.py:1137 |
| 4140 |
msgid "" |
| 4141 |
"It looks like you were trying to declare that `{var}` was\n" |
| 4142 |
"a variable using the word `{type_decl}`.\n" |
| 4143 |
msgstr "" |
| 4144 |
|
| 4145 |
#: syntax_errors\statement_analyzer.py:1174 |
| 4146 |
msgid "" |
| 4147 |
"I am guessing that you forgot a comma between two strings\n" |
| 4148 |
"when defining a dict.\n" |
| 4149 |
"\n" |
| 4150 |
msgstr "" |
| 4151 |
|
| 4152 |
#: syntax_errors\statement_analyzer.py:1226 |
| 4153 |
msgid "" |
| 4154 |
"Did you forget to write `in`?\n" |
| 4155 |
msgstr "" |
| 4156 |
|
| 4157 |
#: syntax_errors\statement_analyzer.py:1227 |
| 4158 |
msgid "" |
| 4159 |
"It looks as though you forgot to use the keyword `in`\n" |
| 4160 |
"as part of a `for` statement. Perhaps you meant:\n" |
| 4161 |
"\n" |
| 4162 |
" {new_statement}\n" |
| 4163 |
"\n" |
| 4164 |
msgstr "" |
| 4165 |
|
| 4166 |
#: syntax_errors\statement_analyzer.py:1255 |
| 4167 |
msgid "" |
| 4168 |
"Did you forget to write parenthesis?\n" |
| 4169 |
msgstr "" |
| 4170 |
|
| 4171 |
#: syntax_errors\statement_analyzer.py:1256 |
| 4172 |
msgid "" |
| 4173 |
"It looks as though you forgot to use to use parenthesis with `range`.\n" |
| 4174 |
"Perhaps you meant:\n" |
| 4175 |
"\n" |
| 4176 |
" {new_statement}\n" |
| 4177 |
"\n" |
| 4178 |
msgstr "" |
| 4179 |
|
| 4180 |
#: syntax_errors\statement_analyzer.py:1288 |
| 4181 |
msgid "" |
| 4182 |
"Perhaps you meant to write `{keyword}` and made a typo.\n" |
| 4183 |
"The correct line might be `{line}`\n" |
| 4184 |
msgstr "" |
| 4185 |
|
| 4186 |
#: syntax_errors\statement_analyzer.py:1301 |
| 4187 |
msgid "" |
| 4188 |
"I am guessing that you were writing a comprehension or a generator expression\n" |
| 4189 |
"and use the wrong order for a condition.\n" |
| 4190 |
"The correct order depends if there is an `else` clause or not.\n" |
| 4191 |
"For example, the correct order for a list comprehensions with\n" |
| 4192 |
"condition can be either\n" |
| 4193 |
"\n" |
| 4194 |
" [f(x) if condition else other for x in sequence] # 'if' before 'for'\n" |
| 4195 |
"\n" |
| 4196 |
"or, if there is no `else`\n" |
| 4197 |
"\n" |
| 4198 |
" [f(x) for x in sequence if condition] # 'if' after 'for'\n" |
| 4199 |
"\n" |
| 4200 |
msgstr "" |
| 4201 |
|
| 4202 |
#: syntax_errors\statement_analyzer.py:1413 |
| 4203 |
msgid "" |
| 4204 |
"You cannot have spaces in identifiers (variable names).\n" |
| 4205 |
"Perhaps you meant `{name}`?\n" |
| 4206 |
msgstr "" |
| 4207 |
|
| 4208 |
#: syntax_errors\statement_analyzer.py:1435 |
| 4209 |
msgid "" |
| 4210 |
"`bf` is an illegal string prefix.\n" |
| 4211 |
msgstr "" |
| 4212 |
|
| 4213 |
#: syntax_errors\statement_analyzer.py:1436 |
| 4214 |
msgid "" |
| 4215 |
"I am guessing that you wanted a binary f-string;\n" |
| 4216 |
"this is not allowed.\n" |
| 4217 |
msgstr "" |
| 4218 |
|
| 4219 |
#: syntax_errors\statement_analyzer.py:1460 |
| 4220 |
msgid "" |
| 4221 |
"It is possible that you forgot a comma between items in a tuple, \n" |
| 4222 |
"or between function arguments, \n" |
| 4223 |
"at the position indicated by ^.\n" |
| 4224 |
msgstr "" |
| 4225 |
|
| 4226 |
#: syntax_errors\statement_analyzer.py:1468 |
| 4227 |
msgid "" |
| 4228 |
"It is possible that you forgot a comma between items in a list\n" |
| 4229 |
"at the position indicated by ^.\n" |
| 4230 |
msgstr "" |
| 4231 |
|
| 4232 |
#: syntax_errors\statement_analyzer.py:1474 |
| 4233 |
msgid "" |
| 4234 |
"It is possible that you forgot a comma between items in a set or dict\n" |
| 4235 |
"at the position indicated by ^.\n" |
| 4236 |
msgstr "" |
| 4237 |
|
| 4238 |
#: syntax_errors\statement_analyzer.py:1504 |
| 4239 |
msgid "" |
| 4240 |
"Python indicates that the error is caused by `{second}` written immediately after `{first}`.\n" |
| 4241 |
msgstr "" |
| 4242 |
|
| 4243 |
#: syntax_errors\statement_analyzer.py:1561 |
| 4244 |
msgid "Perhaps you meant{line}" |
| 4245 |
msgstr "" |
| 4246 |
|
| 4247 |
#: syntax_errors\statement_analyzer.py:1568 |
| 4248 |
msgid "" |
| 4249 |
"Did you forget something between `{first}` and `{second}`?\n" |
| 4250 |
msgstr "" |
| 4251 |
|
| 4252 |
#: syntax_errors\statement_analyzer.py:1583 |
| 4253 |
msgid "" |
| 4254 |
"Perhaps you meant to insert an operator like `{operators}`\n" |
| 4255 |
"between `{first}` and `{second}`.\n" |
| 4256 |
"The following lines of code would not cause any `SyntaxError`:\n" |
| 4257 |
"\n" |
| 4258 |
msgstr "" |
| 4259 |
|
| 4260 |
#: syntax_errors\statement_analyzer.py:1592 |
| 4261 |
msgid "" |
| 4262 |
"Note: these are just some of the possible choices and that\n" |
| 4263 |
"some of them might raise other types of exceptions.\n" |
| 4264 |
msgstr "" |
| 4265 |
|
| 4266 |
#: syntax_errors\statement_analyzer.py:1599 |
| 4267 |
msgid "" |
| 4268 |
"There is an additional possibility.\n" |
| 4269 |
msgstr "" |
| 4270 |
|
| 4271 |
#: syntax_errors\statement_analyzer.py:1614 |
| 4272 |
msgid "" |
| 4273 |
"It is possible that you used an equal sign `=` instead of a colon `:`\n" |
| 4274 |
"to assign values to keys in a dict\n" |
| 4275 |
"before or at the position indicated by ^.\n" |
| 4276 |
msgstr "" |
| 4277 |
|
| 4278 |
#: syntax_errors\statement_analyzer.py:1637 |
| 4279 |
msgid "" |
| 4280 |
"The Python keyword `{boolean}` can only be used for boolean expressions.\n" |
| 4281 |
"Perhaps you meant to write\n" |
| 4282 |
"\n" |
| 4283 |
"`{new_statement}`\n" |
| 4284 |
msgstr "" |
| 4285 |
|
| 4286 |
#: syntax_errors\statement_analyzer.py:1667 |
| 4287 |
msgid "" |
| 4288 |
"I am guessing that you are trying to import at least one object\n" |
| 4289 |
"from module `{module}` and rename it using the Python keyword `as`;\n" |
| 4290 |
"this keyword can only be used to rename one object at a time\n" |
| 4291 |
"using a well defined syntax.\n" |
| 4292 |
"I suggest that you split up any such import statement with each object\n" |
| 4293 |
"renamed on a separate line as follows:\n" |
| 4294 |
"\n" |
| 4295 |
" from {module} import object_1 as name_1\n" |
| 4296 |
" from {module} import object_2 as name_2 # if needed\n" |
| 4297 |
msgstr "" |
| 4298 |
|
| 4299 |
#: syntax_errors\statement_analyzer.py:1697 |
| 4300 |
msgid "" |
| 4301 |
"I am guessing that you wrote {bad_token} twice in a row by mistake.\n" |
| 4302 |
"If that is the case, you need to remove the second one.\n" |
| 4303 |
msgstr "" |
| 4304 |
|
| 4305 |
#: syntax_errors\statement_analyzer.py:1701 |
| 4306 |
msgid "" |
| 4307 |
"Did you write {bad_token} twice by mistake?\n" |
| 4308 |
msgstr "" |
| 4309 |
|
| 4310 |
#: syntax_errors\statement_analyzer.py:1728 |
| 4311 |
msgid "" |
| 4312 |
"I am guessing that you wrote {bad_token} by mistake.\n" |
| 4313 |
"Removing it and writing `{line}` seems to fix the error.\n" |
| 4314 |
msgstr "" |
| 4315 |
|
| 4316 |
#: syntax_errors\statement_analyzer.py:1732 |
| 4317 |
msgid "" |
| 4318 |
"Did you write {bad_token} by mistake?\n" |
| 4319 |
msgstr "" |
| 4320 |
|
| 4321 |
#: syntax_errors\statement_analyzer.py:1749 |
| 4322 |
msgid "" |
| 4323 |
"It looks like the error occurred as you were writing a Python dict.\n" |
| 4324 |
"Perhaps wrote a dict key without writing the corresponding value.\n" |
| 4325 |
msgstr "" |
| 4326 |
|
| 4327 |
#: syntax_errors\statement_analyzer.py:1765 |
| 4328 |
msgid "" |
| 4329 |
"The `else` keyword does not begin a code block that matches\n" |
| 4330 |
"a valid code block, possibly because `else` is not indented correctly.\n" |
| 4331 |
msgstr "" |
| 4332 |
|
| 4333 |
#: syntax_errors\statement_analyzer.py:1777 |
| 4334 |
msgid "" |
| 4335 |
"The `elif` keyword does not begin a code block that matches\n" |
| 4336 |
"an `if` block, possibly because `elif` is not indented correctly.\n" |
| 4337 |
msgstr "" |
| 4338 |
|
| 4339 |
#: syntax_errors\statement_analyzer.py:1790 |
| 4340 |
msgid "" |
| 4341 |
"The `except` keyword does not begin a code block that matches\n" |
| 4342 |
"a `try` block, possibly because `except` is not indented correctly.\n" |
| 4343 |
msgstr "" |
| 4344 |
|
| 4345 |
#: syntax_errors\statement_analyzer.py:1803 |
| 4346 |
msgid "" |
| 4347 |
"The `finally` keyword does not begin a code block that matches\n" |
| 4348 |
"a `try` block, possibly because `finally` is not indented correctly.\n" |
| 4349 |
msgstr "" |
| 4350 |
|
| 4351 |
#: syntax_errors\statement_analyzer.py:1842 |
| 4352 |
msgid "" |
| 4353 |
"You used square brackets, `[...]` instead of parentheses.\n" |
| 4354 |
msgstr "" |
| 4355 |
|
| 4356 |
#: syntax_errors\statement_analyzer.py:1846 |
| 4357 |
msgid "" |
| 4358 |
"Write the following instead:\n" |
| 4359 |
"\n" |
| 4360 |
"{new_statement}" |
| 4361 |
msgstr "" |
| 4362 |
|
| 4363 |
#: syntax_errors\statement_analyzer.py:1890 |
| 4364 |
msgid "" |
| 4365 |
"The opening {bracket} on line {linenumber} is not closed.\n" |
| 4366 |
msgstr "" |
| 4367 |
|
| 4368 |
#: syntax_errors\statement_analyzer.py:1904 |
| 4369 |
msgid "" |
| 4370 |
"If this is incorrect, please report this case.\n" |
| 4371 |
msgstr "" |
| 4372 |
|
| 4373 |
#: syntax_errors\statement_analyzer.py:1916 |
| 4374 |
msgid "" |
| 4375 |
"Perhaps you wrote a statement beginning a code block\n" |
| 4376 |
"intended to be part of a generator expression.\n" |
| 4377 |
"You cannot have separate code blocks inside generator expressions.\n" |
| 4378 |
msgstr "" |
| 4379 |
|
| 4380 |
#: syntax_errors\statement_analyzer.py:1922 |
| 4381 |
msgid "" |
| 4382 |
"Perhaps you wrote a statement beginning a code block\n" |
| 4383 |
"intended to be part of a list comprehension.\n" |
| 4384 |
"You cannot have separate code blocks inside list comprehensions.\n" |
| 4385 |
msgstr "" |
| 4386 |
|
| 4387 |
#: syntax_errors\statement_analyzer.py:1928 |
| 4388 |
msgid "" |
| 4389 |
"Perhaps you wrote a statement beginning a code block\n" |
| 4390 |
"intended to be part of a dict or set comprehension.\n" |
| 4391 |
"You cannot have separate code blocks inside dict or set comprehensions.\n" |
| 4392 |
msgstr "" |
| 4393 |
|
| 4394 |
#: syntax_errors\statement_analyzer.py:1934 |
| 4395 |
msgid "" |
| 4396 |
"If this explanation is incorrect, please report this case.\n" |
| 4397 |
msgstr "" |
| 4398 |
|
| 4399 |
#: syntax_errors\syntax_utils.py:22 |
| 4400 |
msgid "parenthesis `(`" |
| 4401 |
msgstr "" |
| 4402 |
|
| 4403 |
#: syntax_errors\syntax_utils.py:23 |
| 4404 |
msgid "parenthesis `)`" |
| 4405 |
msgstr "" |
| 4406 |
|
| 4407 |
#: syntax_errors\syntax_utils.py:24 |
| 4408 |
msgid "square bracket `[`" |
| 4409 |
msgstr "" |
| 4410 |
|
| 4411 |
#: syntax_errors\syntax_utils.py:25 |
| 4412 |
msgid "square bracket `]`" |
| 4413 |
msgstr "" |
| 4414 |
|
| 4415 |
#: syntax_errors\syntax_utils.py:26 |
| 4416 |
msgid "curly bracket `{`" |
| 4417 |
msgstr "" |
| 4418 |
|
| 4419 |
#: syntax_errors\syntax_utils.py:27 |
| 4420 |
msgid "curly bracket `}`" |
| 4421 |
msgstr "" |
| 4422 |
|
| 4423 |
#: syntax_errors\syntax_utils.py:60 |
| 4424 |
msgid "" |
| 4425 |
"Did you mean to use a normal quote character, `'` or `\"`?\n" |
| 4426 |
msgstr "" |
| 4427 |
|
| 4428 |
#: syntax_errors\syntax_utils.py:61 |
| 4429 |
msgid "" |
| 4430 |
"I suspect that you used a fancy unicode quotation mark\n" |
| 4431 |
"whose name is {name}\n" |
| 4432 |
"instead of a normal single or double quote for a string.\n" |
| 4433 |
msgstr "" |
| 4434 |
|
| 4435 |
#: syntax_errors\syntax_utils.py:76 |
| 4436 |
msgid "" |
| 4437 |
"Or perhaps, you meant to write a less than sign, `<`.\n" |
| 4438 |
msgstr "" |
| 4439 |
|
| 4440 |
#: syntax_errors\syntax_utils.py:78 |
| 4441 |
msgid "" |
| 4442 |
"Or perhaps, you meant to write a greater than sign, `>`.\n" |
| 4443 |
msgstr "" |
| 4444 |
|
| 4445 |
#: syntax_errors\syntax_utils.py:80 |
| 4446 |
msgid "" |
| 4447 |
"Or perhaps, you meant to write a comma.\n" |
| 4448 |
msgstr "" |
| 4449 |
|
| 4450 |
#: syntax_errors\syntax_utils.py:97 |
| 4451 |
msgid "" |
| 4452 |
"I suspect that you used a fancy unicode quotation mark\n" |
| 4453 |
"whose name is {name}.\n" |
| 4454 |
"\n" |
| 4455 |
msgstr "" |
| 4456 |
|
| 4457 |
#: syntax_errors\syntax_utils.py:112 |
| 4458 |
msgid "" |
| 4459 |
"Perhaps, you meant to write a less than sign, `<`.\n" |
| 4460 |
msgstr "" |
| 4461 |
|
| 4462 |
#: syntax_errors\syntax_utils.py:113 |
| 4463 |
msgid "" |
| 4464 |
"Did you mean to write a less than sign, `<`?\n" |
| 4465 |
msgstr "" |
| 4466 |
|
| 4467 |
#: syntax_errors\syntax_utils.py:115 |
| 4468 |
msgid "" |
| 4469 |
"Perhaps, you meant to write a greater than sign, `>`.\n" |
| 4470 |
msgstr "" |
| 4471 |
|
| 4472 |
#: syntax_errors\syntax_utils.py:116 |
| 4473 |
msgid "" |
| 4474 |
"Did you mean to write a greater than sign, `>`?\n" |
| 4475 |
msgstr "" |
| 4476 |
|
| 4477 |
#: syntax_errors\syntax_utils.py:118 |
| 4478 |
msgid "" |
| 4479 |
"Perhaps, you meant to write a comma.\n" |
| 4480 |
msgstr "" |
| 4481 |
|
| 4482 |
#: syntax_errors\syntax_utils.py:136 |
| 4483 |
msgid "" |
| 4484 |
"I suspect that you used the unicode character known as\n" |
| 4485 |
"'FRACTION SLASH', which looks similar to\n" |
| 4486 |
"but is different from the division operator `/`.\n" |
| 4487 |
msgstr "" |
| 4488 |
|
| 4489 |
#: syntax_errors\syntax_utils.py:143 |
| 4490 |
msgid "" |
| 4491 |
"Did you use a unicode fraction?\n" |
| 4492 |
msgstr "" |
| 4493 |
|
| 4494 |
#: syntax_errors\syntax_utils.py:144 |
| 4495 |
msgid "" |
| 4496 |
"I suspect that you used the unicode character `{char}`meant to represent a fraction.\n" |
| 4497 |
"The name of this unicode character is {name}.\n" |
| 4498 |
msgstr "" |
| 4499 |
|
| 4500 |
#: syntax_errors\syntax_utils.py:181 |
| 4501 |
msgid "" |
| 4502 |
"Did you mean `{num}/{denom}`?\n" |
| 4503 |
msgstr "" |
| 4504 |
|
| 4505 |
#: syntax_errors\syntax_utils.py:182 |
| 4506 |
msgid "" |
| 4507 |
"You used the unicode character {char} which is known as\n" |
| 4508 |
"{name}\n" |
| 4509 |
"I suspect that you meant to write the fraction `{num}/{denom}` instead.\n" |
| 4510 |
msgstr "" |
| 4511 |
|
| 4512 |
#: warning_parsers\syntax_warning.py:47 |
| 4513 |
msgid "" |
| 4514 |
"You have {container_type} followed by square brackets, `[...]`.\n" |
| 4515 |
"What is included between the square brackets, `[...]`,\n" |
| 4516 |
"must be either an integer or a slice\n" |
| 4517 |
"(`start:stop` or `start:stop:step`) \n" |
| 4518 |
"and you have used {obj_type} instead.\n" |
| 4519 |
msgstr "" |
| 4520 |
|