Skip to content

Commit 09ef345

Browse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent 26400cf commit 09ef345

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ f'''![build](https://github.com/python/python-docs-pl/workflows/.github/workflow
1515
![{translators} tłumaczy](https://img.shields.io/badge/tłumaczy-{translators}-0.svg)''')
1616
]]] -->
1717
![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
18-
![66.74% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-66.74%25-0.svg)
19-
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.61%25-0.svg)
18+
![67.01% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-67.01%25-0.svg)
19+
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.62%25-0.svg)
2020
![23 tłumaczy](https://img.shields.io/badge/tłumaczy-23-0.svg)
2121
<!-- [[[end]]] -->
2222

tutorial/classes.po

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,24 +612,37 @@ msgid ""
612612
"specific initial state. Therefore a class may define a special method named :"
613613
"meth:`~object.__init__`, like this::"
614614
msgstr ""
615+
"Operacja instancjonowania („wywołanie” obiektu klasy) tworzy pusty obiekt. "
616+
"Wiele klas lubi tworzyć obiekty z instancjami dostosowanymi do określonego "
617+
"stanu początkowego. Dlatego klasa może zdefiniować specjalną metodę o "
618+
"nazwie :meth:`~object.__init__`, taką jak ta::"
615619

616620
msgid ""
617621
"def __init__(self):\n"
618622
" self.data = []"
619623
msgstr ""
624+
"def __init__(self):\n"
625+
" self.data = []"
620626

621627
msgid ""
622628
"When a class defines an :meth:`~object.__init__` method, class instantiation "
623629
"automatically invokes :meth:`!__init__` for the newly created class "
624630
"instance. So in this example, a new, initialized instance can be obtained "
625631
"by::"
626632
msgstr ""
633+
"Gdy klasa definiuje metodę :meth:`~object.__init__`, instancjonowanie klasy "
634+
"automatycznie wywołuje :meth:`!__init__` dla nowo utworzonej instancji "
635+
"klasy. Tak więc w tym przykładzie nową, zainicjalizowaną instancję można "
636+
"uzyskać przez::"
627637

628638
msgid ""
629639
"Of course, the :meth:`~object.__init__` method may have arguments for "
630640
"greater flexibility. In that case, arguments given to the class "
631641
"instantiation operator are passed on to :meth:`!__init__`. For example, ::"
632642
msgstr ""
643+
"Oczywiście metoda :meth:`~object.__init__` może mieć argumenty dla większej "
644+
"elastyczności. W takim przypadku argumenty podane operatorowi "
645+
"instancjonowania klasy są przekazywane do :meth:`!__init__`. Na przykład ::"
633646

634647
msgid ""
635648
">>> class Complex:\n"
@@ -641,6 +654,14 @@ msgid ""
641654
">>> x.r, x.i\n"
642655
"(3.0, -4.5)"
643656
msgstr ""
657+
">>> class Complex:\n"
658+
"... def __init__(self, realpart, imagpart):\n"
659+
"... self.r = realpart\n"
660+
"... self.i = imagpart\n"
661+
"...\n"
662+
">>> x = Complex(3.0, -4.5)\n"
663+
">>> x.r, x.i\n"
664+
"(3.0, -4.5)"
644665

645666
msgid "Instance Objects"
646667
msgstr ""

0 commit comments

Comments
 (0)