@@ -389,6 +389,25 @@ msgid ""
389389"background.join() # Wait for the background task to finish\n"
390390"print('Main program waited until background was done.')"
391391msgstr ""
392+ "import threading, zipfile\n"
393+ "\n"
394+ "class AsyncZip(threading.Thread):\n"
395+ " def __init__(self, infile, outfile):\n"
396+ " super().__init__()\n"
397+ " self.infile = infile\n"
398+ " self.outfile = outfile\n"
399+ "\n"
400+ " def run(self):\n"
401+ " with zipfile.ZipFile(self.outfile, 'w', zipfile.ZIP_DEFLATED) as f:\n"
402+ " f.write(self.infile)\n"
403+ " print('Zakończono zipowanie w tle pliku:', self.infile)\n"
404+ "\n"
405+ "background = AsyncZip('mojedane.txt', 'mojearchiwum.zip')\n"
406+ "background.start()\n"
407+ "print('Główny program nadal działa.')\n"
408+ "\n"
409+ "background.join() # Poczekaj na zakończenie zadania w tle\n"
410+ "print('Główny program czekał, aż tło zostanie wykonane.')"
392411
393412msgid ""
394413"The principal challenge of multi-threaded applications is coordinating "
@@ -439,12 +458,12 @@ msgid ""
439458"logging.critical('Critical error -- shutting down')"
440459msgstr ""
441460"import logging\n"
442- "logging.debug('Informacje o debugowaniuwarning ')\n"
461+ "logging.debug('Informacje do debugowania ')\n"
443462"logging.info('Komunikat informacyjny')\n"
444- "logging.warning('ostrzeżenie : nie znaleziono pliku konfiguracyjnego %s ', "
463+ "logging.warning('Ostrzeżenie : nie znaleziono pliku konfiguracyjnego %s', "
445464"'server.conf')\n"
446465"logging.error('Wystąpił błąd')\n"
447- "logging.critical('Błąd krytyczny -- wyłączenie ')"
466+ "logging.critical('Błąd krytyczny -- wyłączanie ')"
448467
449468msgid "This produces the following output:"
450469msgstr "Daje to taki wyniki:"
@@ -454,9 +473,9 @@ msgid ""
454473"ERROR:root:Error occurred\n"
455474"CRITICAL:root:Critical error -- shutting down"
456475msgstr ""
457- "WARNING:root:Warning:config file server.conf not found \n"
458- "ERROR:root:Error occurred \n"
459- "CRITICAL:root:Critical error -- shutting down "
476+ "WARNING:root:Ostrzeżenie: nie znaleziono pliku konfiguracyjnego server.conf\n"
477+ "ERROR:root:Wystąpił błąd \n"
478+ "CRITICAL:root:Błąd krytyczny -- wyłączanie "
460479
461480msgid ""
462481"By default, informational and debugging messages are suppressed and the "
@@ -483,7 +502,7 @@ msgstr ""
483502"w celu dostosowania rejestrowania bez zmiany aplikacji."
484503
485504msgid "Weak references"
486- msgstr ""
505+ msgstr "Wsparcie słabych odniesień "
487506
488507msgid ""
489508"Python does automatic memory management (reference counting for most objects "
@@ -562,7 +581,7 @@ msgstr ""
562581"KeyError: 'primary'"
563582
564583msgid "Tools for working with lists"
565- msgstr ""
584+ msgstr "Narzędzia do pracy z listami "
566585
567586msgid ""
568587"Many data structure needs can be met with the built-in list type. However, "
@@ -693,7 +712,7 @@ msgstr ""
693712"[-5, 0, 1]"
694713
695714msgid "Decimal floating-point arithmetic"
696- msgstr ""
715+ msgstr "Dziesiętna arytmetyka zmiennoprzecinkowa "
697716
698717msgid ""
699718"The :mod:`decimal` module offers a :class:`~decimal.Decimal` datatype for "
0 commit comments