@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.11\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-10-11 15:25 +0000\n "
16+ "POT-Creation-Date : 2024-10-26 21:16 +0000\n "
1717"PO-Revision-Date : 2023-05-24 02:22+0000\n "
1818"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
1919"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -462,19 +462,26 @@ msgstr ""
462462"(:class:`!ClassName` w przykładzie)."
463463
464464msgid "Class Objects"
465- msgstr ""
465+ msgstr "Obiekty klas "
466466
467467msgid ""
468468"Class objects support two kinds of operations: attribute references and "
469469"instantiation."
470470msgstr ""
471+ "Obiekty klas obsługują dwa rodzaje operacji: odniesienia do atrybutów i "
472+ "tworzenie instancji."
471473
472474msgid ""
473475"*Attribute references* use the standard syntax used for all attribute "
474476"references in Python: ``obj.name``. Valid attribute names are all the names "
475477"that were in the class's namespace when the class object was created. So, "
476478"if the class definition looked like this::"
477479msgstr ""
480+ "*Odniesienia do atrybutów* używają standardowej składni używanej dla "
481+ "wszystkich odniesień do atrybutów w Pythonie: ``obj.name``. Prawidłowe "
482+ "nazwy atrybutów to wszystkie nazwy, które znajdowały się w przestrzeni nazw "
483+ "klasy, gdy obiekt klasy został utworzony. Tak więc, jeśli definicja klasy "
484+ "wyglądała tak::"
478485
479486msgid ""
480487"then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, "
@@ -489,31 +496,47 @@ msgid ""
489496"object is a parameterless function that returns a new instance of the class. "
490497"For example (assuming the above class)::"
491498msgstr ""
499+ "*Instancjonowanie* klasy używa notacji funkcji. Wystarczy udawać, że obiekt "
500+ "klasy jest bezparametrową funkcją, która zwraca nową instancję klasy. Na "
501+ "przykład (zakładając powyższą klasę)::"
492502
493503msgid ""
494504"creates a new *instance* of the class and assigns this object to the local "
495505"variable ``x``."
496506msgstr ""
507+ "tworzy nową *instancję* klasy i przypisuje ten obiekt do zmiennej lokalnej "
508+ "``x``."
497509
498510msgid ""
499511"The instantiation operation (\" calling\" a class object) creates an empty "
500512"object. Many classes like to create objects with instances customized to a "
501513"specific initial state. Therefore a class may define a special method named :"
502514"meth:`~object.__init__`, like this::"
503515msgstr ""
516+ "Operacja instancjonowania („wywołanie” obiektu klasy) tworzy pusty obiekt. "
517+ "Wiele klas lubi tworzyć obiekty z instancjami dostosowanymi do określonego "
518+ "stanu początkowego. Dlatego klasa może zdefiniować specjalną metodę o "
519+ "nazwie :meth:`~object.__init__`, taką jak ta::"
504520
505521msgid ""
506522"When a class defines an :meth:`~object.__init__` method, class instantiation "
507523"automatically invokes :meth:`!__init__` for the newly created class "
508524"instance. So in this example, a new, initialized instance can be obtained "
509525"by::"
510526msgstr ""
527+ "Gdy klasa definiuje metodę :meth:`~object.__init__`, instancjonowanie klasy "
528+ "automatycznie wywołuje :meth:`!__init__` dla nowo utworzonej instancji "
529+ "klasy. Tak więc w tym przykładzie nową, zainicjalizowaną instancję można "
530+ "uzyskać przez::"
511531
512532msgid ""
513533"Of course, the :meth:`~object.__init__` method may have arguments for "
514534"greater flexibility. In that case, arguments given to the class "
515535"instantiation operator are passed on to :meth:`!__init__`. For example, ::"
516536msgstr ""
537+ "Oczywiście metoda :meth:`~object.__init__` może mieć argumenty dla większej "
538+ "elastyczności. W takim przypadku argumenty podane operatorowi "
539+ "instancjonowania klasy są przekazywane do :meth:`!__init__`. Na przykład ::"
517540
518541msgid "Instance Objects"
519542msgstr ""
0 commit comments