@@ -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('mydata.txt', 'myarchive.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 "
@@ -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