99# Jarosław, 2021
1010# Stefan Ocetkiewicz <[email protected] >, 20231111# Maciej Olko <[email protected] >, 202412+ # Wiktor Matuszewski, 2024
1213#
1314#, fuzzy
1415msgid ""
@@ -17,7 +18,7 @@ msgstr ""
1718"Report-Msgid-Bugs-To : \n "
1819"POT-Creation-Date : 2024-08-31 10:59+0000\n "
1920"PO-Revision-Date : 2021-06-28 01:50+0000\n "
20- "
Last-Translator :
Maciej Olko <[email protected] > , 2024\n"
21+ "Last-Translator : Wiktor Matuszewski , 2024\n "
2122"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
2223"MIME-Version : 1.0\n "
2324"Content-Type : text/plain; charset=UTF-8\n "
@@ -57,6 +58,11 @@ msgid ""
5758" ^^^^^\n"
5859"SyntaxError: invalid syntax"
5960msgstr ""
61+ ">>> while True print('Witaj świecie')\n"
62+ " File \" <stdin>\" , line 1\n"
63+ " while True print('Witaj świecie')\n"
64+ " ^^^^^\n"
65+ "SyntaxError: invalid syntax"
6066
6167msgid ""
6268"The parser repeats the offending line and displays little 'arrow's pointing "
@@ -105,6 +111,18 @@ msgid ""
105111" File \" <stdin>\" , line 1, in <module>\n"
106112"TypeError: can only concatenate str (not \" int\" ) to str"
107113msgstr ""
114+ ">>> 10 * (1/0)\n"
115+ "Traceback (most recent call last):\n"
116+ " File \" <stdin>\" , line 1, in <module>\n"
117+ "ZeroDivisionError: division by zero\n"
118+ ">>> 4 + spam*3\n"
119+ "Traceback (most recent call last):\n"
120+ " File \" <stdin>\" , line 1, in <module>\n"
121+ "NameError: name 'spam' is not defined\n"
122+ ">>> '2' + 2\n"
123+ "Traceback (most recent call last):\n"
124+ " File \" <stdin>\" , line 1, in <module>\n"
125+ "TypeError: can only concatenate str (not \" int\" ) to str"
108126
109127msgid ""
110128"The last line of the error message indicates what happened. Exceptions come "
@@ -175,6 +193,14 @@ msgid ""
175193"... print(\" Oops! That was no valid number. Try again...\" )\n"
176194"..."
177195msgstr ""
196+ ">>> while True:\n"
197+ "... try:\n"
198+ "... x = int(input(\" Proszę podaj liczbę: \" ))\n"
199+ "... break\n"
200+ "... except ValueError:\n"
201+ "... print(\" Ups! To nie była poprawna liczba. Spróbuj ponownie..."
202+ "\" )\n"
203+ "..."
178204
179205msgid "The :keyword:`try` statement works as follows."
180206msgstr "Instrukcja :keyword:`try` działa następująco."
@@ -234,6 +260,8 @@ msgid ""
234260"... except (RuntimeError, TypeError, NameError):\n"
235261"... pass"
236262msgstr ""
263+ "... except (RuntimeError, TypeError, NameError):\n"
264+ "... pass"
237265
238266msgid ""
239267"A class in an :keyword:`except` clause matches exceptions which are "
@@ -267,6 +295,24 @@ msgid ""
267295" except B:\n"
268296" print(\" B\" )"
269297msgstr ""
298+ "class B(Exception):\n"
299+ " pass\n"
300+ "\n"
301+ "class C(B):\n"
302+ " pass\n"
303+ "\n"
304+ "class D(C):\n"
305+ " pass\n"
306+ "\n"
307+ "for cls in [B, C, D]:\n"
308+ " try:\n"
309+ " raise cls()\n"
310+ " except D:\n"
311+ " print(\" D\" )\n"
312+ " except C:\n"
313+ " print(\" C\" )\n"
314+ " except B:\n"
315+ " print(\" B\" )"
270316
271317msgid ""
272318"Note that if the *except clauses* were reversed (with ``except B`` first), "
0 commit comments