FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # # Translators: # python-doc bot, 2025 # Maciej Olko, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-08-21 14:26+0000\n" "PO-Revision-Date: 2025-09-16 00:02+0000\n" "Last-Translator: Maciej Olko, 2026\n" "Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10=0 && n%10=5 && " "n%10=12 && n%100>> import os\n" ">>> os.getcwd() # Return the current working directory\n" "'C:\\\\Python315'\n" ">>> os.chdir('/server/accesslogs') # Change current working directory\n" ">>> os.system('mkdir today') # Run the command mkdir in the system shell\n" "0" msgstr "" ">>> import os\n" ">>> os.getcwd() # Zwróć aktualny folder roboczy\n" "'C:\\\\Python315'\n" ">>> os.chdir('/server/accesslogs') # Zmień aktualny folder roboczy\n" ">>> os.system('mkdir today') # Uruchom komendę mkdir w powłoce\n" "0" msgid "" "Be sure to use the ``import os`` style instead of ``from os import *``. " "This will keep :func:`os.open` from shadowing the built-in :func:`open` " "function which operates much differently." msgstr "" "Upewnij się, że używasz stylu ``import os``, a nie ``from os import *``. W " "tym drugim przypadku funkcja :func:`os.open` przesłoni wbudowaną funkcję :" "func:`open`, która działa w skrajnie inny sposób." msgid "" "The built-in :func:`dir` and :func:`help` functions are useful as " "interactive aids for working with large modules like :mod:`os`::" msgstr "" "Wbudowane funkcje :func:`dir` i :func:`help`, są przydatne jako interaktywne " "pomoce do pracy z dużymi modułami, takimi jak :mod:`os`::" msgid "" ">>> import os\n" ">>> dir(os)\n" "\n" ">>> help(os)\n" ">> # daty obsługują arytmetykę kalendarza\n" ">>> urodziny = dt.date(1964, 7, 31)\n" ">>> wiek = teraz - birthday\n" ">>> wiek.days\n" "14368" msgid "Data compression" msgstr "Kompresja danych" msgid "" "Common data archiving and compression formats are directly supported by " "modules including: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:`lzma`, :mod:" "`zipfile` and :mod:`tarfile`. ::" msgstr "" "Popularne formaty archiwizacji i kompresji danych są bezpośrednio " "obsługiwane przez moduły, w tym: :mod:`zlib`, :mod:`gzip`, :mod:`bz2`, :mod:" "`lzma`, :mod:`zipfile` i :mod:`tarfile`:" msgid "" ">>> import zlib\n" ">>> s = b'witch which has which witches wrist watch'\n" ">>> len(s)\n" "41\n" ">>> t = zlib.compress(s)\n" ">>> len(t)\n" "37\n" ">>> zlib.decompress(t)\n" "b'witch which has which witches wrist watch'\n" ">>> zlib.crc32(s)\n" "226805979" msgstr "" ">>> import zlib\n" ">>> s = b'ktora czarownica ma zegarek na nadgarstku czarownicy'\n" ">>> len(s)\n" "52\n" ">>> t = zlib.compress(s)\n" ">>> len(t)\n" "49\n" ">>> zlib.decompress(t)\n" "b'która czarownica ma zegarek na nadgarstku czarownicy'\n" ">>> zlib.crc32(s)\n" "2301872819" msgid "Performance measurement" msgstr "Mierzenie wydajności" msgid "" "Some Python users develop a deep interest in knowing the relative " "performance of different approaches to the same problem. Python provides a " "measurement tool that answers those questions immediately." msgstr "" "Niektórzy użytkownicy Python są głęboko zainteresowani poznaniem względnej " "wydajności różnych podejść do tego samego problemu. Python zapewnia " "narzędzie pomiarowe, które natychmiast odpowiada na te pytania." msgid "" "For example, it may be tempting to use the tuple packing and unpacking " "feature instead of the traditional approach to swapping arguments. The :mod:" "`timeit` module quickly demonstrates a modest performance advantage::" msgstr "" "Na przykład kuszące może być użycie funkcji pakowania i rozpakowywania " "krotka zamiast tradycyjnego podejścia do zamiany argument. Moduł :mod:" "`timeit` szybko pokazuje skromną przewagę wydajności::" msgid "" ">>> from timeit import Timer\n" ">>> Timer('t=a; a=b; b=t', 'a=1; b=2').timeit()\n" "0.57535828626024577\n" ">>> Timer('a,b = b,a', 'a=1; b=2').timeit()\n" "0.54962537085770791" msgstr "" ">>> from timeit import Timer\n" ">>> Timer('t=a; a=b; b=t', 'a=1; b=2').timeit()\n" "0.57535828626024577\n" ">>> Timer('a,b = b,a', 'a=1; b=2').timeit()\n" "0.54962537085770791" msgid "" "In contrast to :mod:`timeit`'s fine level of granularity, the :mod:`profile` " "and :mod:`pstats` modules provide tools for identifying time critical " "sections in larger blocks of code." msgstr "" "W przeciwieństwie do dokładnego poziomu szczegółowości :mod:`timeit`, " "moduły :mod:`profile` i :mod:`pstats` zapewniają narzędzia do identyfikacji " "sekcji krytycznych czasowo w większych blok kodu." msgid "Quality control" msgstr "Kontrola jakości" msgid "" "One approach for developing high quality software is to write tests for each " "function as it is developed and to run those tests frequently during the " "development process." msgstr "" "Jednym z podejść do tworzenia wysokiej jakości oprogramowania jest pisanie " "testów dla każdej funkcj w trakcie jego tworzenia i częste uruchamianie tych " "testów podczas rozwoju." msgid "" "The :mod:`doctest` module provides a tool for scanning a module and " "validating tests embedded in a program's docstrings. Test construction is " "as simple as cutting-and-pasting a typical call along with its results into " "the docstring. This improves the documentation by providing the user with an " "example and it allows the doctest module to make sure the code remains true " "to the documentation::" msgstr "" "Moduł :mod:`doctest` zapewnia narzędzie do skanowania strony moduł i " "sprawdzania poprawności testów osadzonych w dokumentacji programu. " "Konstrukcja testu jest tak prosta, jak wycięcie i wklejenie typowego " "wywołania wraz z jego wynikami do docstring. Poprawia to dokumentację " "poprzez dostarczenie użytkownikowi przykładu i pozwala doctestowi moduł " "upewnić się, że kod pozostaje prawda zgodny z dokumentacją::" msgid "" "def average(values):\n" " \"\"\"Computes the arithmetic mean of a list of numbers.\n" "\n" " >>> print(average([20, 30, 70]))\n" " 40.0\n" " \"\"\"\n" " return sum(values) / len(values)\n" "\n" "import doctest\n" "doctest.testmod() # automatically validate the embedded tests" msgstr "" "def średnia(values):\n" " \"\"\"Oblicza średnią arytmetyczną listy liczb.\n" "\n" " >>> print(średnia([20, 30, 70]))\n" " 40.0\n" " \"\"\"\n" " return sum(values) / len(values)\n" "\n" "import doctest\n" "doctest.testmod() # automatycznie waliduje wbudowane testy" msgid "" "The :mod:`unittest` module is not as effortless as the :mod:`doctest` " "module, but it allows a more comprehensive set of tests to be maintained in " "a separate file::" msgstr "" "Moduł :mod:`unittest` nie jest tak łatwy w użytku jak moduł :mod:`doctest` , " "ale pozwala na przechowywanie bardziej kompleksowego zestawu testów w " "osobnym pliku::" msgid "" "import unittest\n" "\n" "class TestStatisticalFunctions(unittest.TestCase):\n" "\n" " def test_average(self):\n" " self.assertEqual(average([20, 30, 70]), 40.0)\n" " self.assertEqual(round(average([1, 5, 7]), 1), 4.3)\n" " with self.assertRaises(ZeroDivisionError):\n" " average([])\n" " with self.assertRaises(TypeError):\n" " average(20, 30, 70)\n" "\n" "unittest.main() # Calling from the command line invokes all tests" msgstr "" "import unittest\n" "\n" "class TestFunkcjiStatystycznych(unittest.TestCase):\n" "\n" "def test_srednia(self):\n" " self.assertEqual(srednia([20, 30, 70]), 40.0)\n" " self.assertEqual(round(srednia([1, 5, 7]), 1), 4.3)\n" " with self.assertRaises(ZeroDivisionError):\n" " srednia([])\n" " with self.assertRaises(TypeError):\n" " srednia(20, 30, 70)\n" "\n" "unittest.main() # Wywołanie z wiersza poleceń uruchamia wszystkie testy" msgid "Batteries included" msgstr "Dostarczone z bateriami" msgid "" "Python has a \"batteries included\" philosophy. This is best seen through " "the sophisticated and robust capabilities of its larger packages. For " "example:" msgstr "" "Python trzyma się filozofii \"dostarczone z bateriami\". Można to najłatwiej " "ujrzeć w zaawansowanych możliwościach jego większych pakietów. Dla przykładu:" msgid "" "The :mod:`xmlrpc.client` and :mod:`xmlrpc.server` modules make implementing " "remote procedure calls into an almost trivial task. Despite the modules' " "names, no direct knowledge or handling of XML is needed." msgstr "" "Moduły :mod:`xmlrpc.client` i :mod:`xmlrpc.server` sprawiają, że " "implementacja zdalnych wywołań procedur staje się niemal trywialnym " "zadaniem. Pomimo nazw moduł', nie jest wymagana bezpośrednia znajomość lub " "obsługa XML." msgid "" "The :mod:`email` package is a library for managing email messages, including " "MIME and other :rfc:`5322`-based message documents. Unlike :mod:`smtplib` " "and :mod:`poplib` which actually send and receive messages, the email " "package has a complete toolset for building or decoding complex message " "structures (including attachments) and for implementing internet encoding " "and header protocols." msgstr "" "Pakiet :mod:`email` jest biblioteką do zarządzania wiadomościami e-mail, w " "tym MIME i innymi dokumentami wiadomości opartymi na :rfc:`5322`. W " "przeciwieństwie do :mod:`smtplib` i :mod:`poplib`, które faktycznie wysyłają " "i odbierają wiadomości, pakiet e-mail posiada kompletny zestaw narzędzi do " "tworzenia lub dekodowania złożonych struktur wiadomości (w tym załączników) " "oraz do implementacji internetowych protokołów kodowania i nagłówków." msgid "" "The :mod:`json` package provides robust support for parsing this popular " "data interchange format. The :mod:`csv` module supports direct reading and " "writing of files in Comma-Separated Value format, commonly supported by " "databases and spreadsheets. XML processing is supported by the :mod:`xml." "etree.ElementTree`, :mod:`xml.dom` and :mod:`xml.sax` packages. Together, " "these modules and packages greatly simplify data interchange between Python " "applications and other tools." msgstr "" "Pakiet :mod:`json` zapewnia solidne wsparcie dla analizowania tego " "popularnego formatu wymiany danych. Pakiet :mod:`csv` moduł obsługuje " "bezpośredni odczyt i zapis plików w formacie Comma-Separated Value (.csv), " "powszechnie obsługiwanym przez bazy danych i arkusze kalkulacyjne. " "Przetwarzanie XML jest obsługiwane przez pakiety :mod:`xml.etree." "ElementTree`, :mod:`xml.dom` i :mod:`xml.sax`. Razem te moduły i pakiety " "znacznie upraszczają wymianę danych między Python aplikacja i innymi " "narzędziami." msgid "" "The :mod:`sqlite3` module is a wrapper for the SQLite database library, " "providing a persistent database that can be updated and accessed using " "slightly nonstandard SQL syntax." msgstr "" "Moduł :mod:`sqlite3` jest opakowaniem dla biblioteki bazy danych SQLite, " "zapewniając trwałą bazę danych, która może być aktualizowana i dostępna przy " "użyciu nieco niestandardowej składni SQL." msgid "" "Internationalization is supported by a number of modules including :mod:" "`gettext`, :mod:`locale`, and the :mod:`codecs` package." msgstr "" "Internacjonalizacja jest wspierana przez kilka moduł, w tym :mod:`gettext`, :" "mod:`locale` i :mod:`codecs`." msgid "built-in function" msgstr "funkcja wbudowana" msgid "help" msgstr "pomoc"

Back | FazBrowse Home | New Git URL