@@ -1190,13 +1190,13 @@ msgid ""
11901190msgstr ""
11911191"int arg;\n"
11921192"PyObject *arglist;\n"
1193- "PyObject *resultat ;\n"
1193+ "PyObject *result ;\n"
11941194"...\n"
11951195"arg = 123;\n"
11961196"...\n"
1197- "/* Dags att anropa återuppringningen */\n"
1197+ "/* Time to call the callback */\n"
11981198"arglist = Py_BuildValue(\" (i)\" , arg);\n"
1199- "resultat = PyObject_CallObject(my_callback, arglist);\n"
1199+ "result = PyObject_CallObject(my_callback, arglist);\n"
12001200"Py_DECREF(arglist);"
12011201
12021202msgid ""
@@ -1286,13 +1286,13 @@ msgid ""
12861286msgstr ""
12871287"PyObject *arglist;\n"
12881288"...\n"
1289- "arglist = Py_BuildValue(\" (l)\" , händelsekod );\n"
1290- "resultat = PyObject_CallObject(my_callback, arglist);\n"
1289+ "arglist = Py_BuildValue(\" (l)\" , eventcode );\n"
1290+ "result = PyObject_CallObject(my_callback, arglist);\n"
12911291"Py_DECREF(arglist);\n"
1292- "if (resultat == NULL)\n"
1293- " return NULL; /* Skicka felet tillbaka */\n"
1294- "/* Här kan du kanske använda resultatet */\n"
1295- "Py_DECREF(resultat );"
1292+ "if (result == NULL)\n"
1293+ " return NULL; /* Pass error back */\n"
1294+ "/* Here maybe use the result */\n"
1295+ "Py_DECREF(result );"
12961296
12971297msgid ""
12981298"Note the placement of ``Py_DECREF(arglist)`` immediately after the call, "
@@ -1328,13 +1328,13 @@ msgid ""
13281328msgstr ""
13291329"PyObject *dict;\n"
13301330"...\n"
1331- "dict = Py_BuildValue(\" {s:i}\" , \" namn \" , val);\n"
1332- "resultat = PyObject_Call(my_callback, NULL, dict);\n"
1331+ "dict = Py_BuildValue(\" {s:i}\" , \" name \" , val);\n"
1332+ "result = PyObject_Call(my_callback, NULL, dict);\n"
13331333"Py_DECREF(dict);\n"
1334- "if (resultat == NULL)\n"
1335- " return NULL; /* Skicka felet tillbaka */\n"
1336- "/* Här kan du kanske använda resultatet */\n"
1337- "Py_DECREF(resultat );"
1334+ "if (result == NULL)\n"
1335+ " return NULL; /* Pass error back */\n"
1336+ "/* Here maybe use the result */\n"
1337+ "Py_DECREF(result );"
13381338
13391339msgid "Extracting Parameters in Extension Functions"
13401340msgstr "Extrahera parametrar i tilläggsfunktioner"
@@ -1703,24 +1703,23 @@ msgid ""
17031703"Py_BuildValue(\" ((ii)(ii)) (ii)\" ,\n"
17041704" 1, 2, 3, 4, 5, 6) (((1, 2), (3, 4)), (5, 6))"
17051705msgstr ""
1706- "Py_BuildValue(\"\" ) Ingen\n"
1707- "Py_BuildValue(\" i\" , 123) 123\n"
1708- "Py_BuildValue(\" iii\" , 123, 456, 789) (123, 456, 789)\n"
1709- "Py_BuildValue(\" s\" , \" hallå\" ) 'hallå'\n"
1710- "Py_BuildValue(\" y\" , \" hallå\" ) b'hallå'\n"
1711- "Py_BuildValue(\" ss\" , \" hallå\" , \" värld\" ) (\" hallå\" , \" värld\" )\n"
1712- "Py_BuildValue(\" s#\" , \" hallå\" , 4) 'helvete'\n"
1713- "Py_BuildValue(\" y#\" , \" hallå\" , 4) b'helvete'\n"
1714- "Py_BuildValue(\" ()\" ) ()\n"
1715- "Py_BuildValue(\" (i)\" , 123) (123,)\n"
1716- "Py_BuildValue(\" (ii)\" , 123, 456) (123, 456)\n"
1717- "Py_BuildValue(\" (i,i)\" , 123, 456) (123, 456)\n"
1718- "Py_BuildValue(\" [i,i]\" , 123, 456) [123, 456] Py_BuildValue(\" [i,i]\" , 123, "
1719- "456)\n"
1706+ "Py_BuildValue(\"\" ) None\n"
1707+ "Py_BuildValue(\" i\" , 123) 123\n"
1708+ "Py_BuildValue(\" iii\" , 123, 456, 789) (123, 456, 789)\n"
1709+ "Py_BuildValue(\" s\" , \" hello\" ) 'hello'\n"
1710+ "Py_BuildValue(\" y\" , \" hello\" ) b'hello'\n"
1711+ "Py_BuildValue(\" ss\" , \" hello\" , \" world\" ) ('hello', 'world')\n"
1712+ "Py_BuildValue(\" s#\" , \" hello\" , 4) 'hell'\n"
1713+ "Py_BuildValue(\" y#\" , \" hello\" , 4) b'hell'\n"
1714+ "Py_BuildValue(\" ()\" ) ()\n"
1715+ "Py_BuildValue(\" (i)\" , 123) (123,)\n"
1716+ "Py_BuildValue(\" (ii)\" , 123, 456) (123, 456)\n"
1717+ "Py_BuildValue(\" (i,i)\" , 123, 456) (123, 456)\n"
1718+ "Py_BuildValue(\" [i,i]\" , 123, 456) [123, 456]\n"
17201719"Py_BuildValue(\" {s:i,s:i}\" ,\n"
1721- " \" abc\" , 123, \" def\" , 456) {'abc': 123, 'def': 456}\n"
1720+ " \" abc\" , 123, \" def\" , 456) {'abc': 123, 'def': 456}\n"
17221721"Py_BuildValue(\" ((ii)(ii)) (ii)\" ,\n"
1723- " 1, 2, 3, 4, 5, 6) (((1, 2), (3, 4)), (5, 6))"
1722+ " 1, 2, 3, 4, 5, 6) (((1, 2), (3, 4)), (5, 6))"
17241723
17251724msgid "Reference Counts"
17261725msgstr "Referensräkningar"
0 commit comments