@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.11\n "
15
15
"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 "
17
17
"PO-Revision-Date : 2023-05-24 02:22+0000\n "
18
18
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
19
19
"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -462,19 +462,26 @@ msgstr ""
462
462
"(:class:`!ClassName` w przykładzie)."
463
463
464
464
msgid "Class Objects"
465
- msgstr ""
465
+ msgstr "Obiekty klas "
466
466
467
467
msgid ""
468
468
"Class objects support two kinds of operations: attribute references and "
469
469
"instantiation."
470
470
msgstr ""
471
+ "Obiekty klas obsługują dwa rodzaje operacji: odniesienia do atrybutów i "
472
+ "tworzenie instancji."
471
473
472
474
msgid ""
473
475
"*Attribute references* use the standard syntax used for all attribute "
474
476
"references in Python: ``obj.name``. Valid attribute names are all the names "
475
477
"that were in the class's namespace when the class object was created. So, "
476
478
"if the class definition looked like this::"
477
479
msgstr ""
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::"
478
485
479
486
msgid ""
480
487
"then ``MyClass.i`` and ``MyClass.f`` are valid attribute references, "
@@ -489,31 +496,47 @@ msgid ""
489
496
"object is a parameterless function that returns a new instance of the class. "
490
497
"For example (assuming the above class)::"
491
498
msgstr ""
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ę)::"
492
502
493
503
msgid ""
494
504
"creates a new *instance* of the class and assigns this object to the local "
495
505
"variable ``x``."
496
506
msgstr ""
507
+ "tworzy nową *instancję* klasy i przypisuje ten obiekt do zmiennej lokalnej "
508
+ "``x``."
497
509
498
510
msgid ""
499
511
"The instantiation operation (\" calling\" a class object) creates an empty "
500
512
"object. Many classes like to create objects with instances customized to a "
501
513
"specific initial state. Therefore a class may define a special method named :"
502
514
"meth:`~object.__init__`, like this::"
503
515
msgstr ""
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::"
504
520
505
521
msgid ""
506
522
"When a class defines an :meth:`~object.__init__` method, class instantiation "
507
523
"automatically invokes :meth:`!__init__` for the newly created class "
508
524
"instance. So in this example, a new, initialized instance can be obtained "
509
525
"by::"
510
526
msgstr ""
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::"
511
531
512
532
msgid ""
513
533
"Of course, the :meth:`~object.__init__` method may have arguments for "
514
534
"greater flexibility. In that case, arguments given to the class "
515
535
"instantiation operator are passed on to :meth:`!__init__`. For example, ::"
516
536
msgstr ""
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 ::"
517
540
518
541
msgid "Instance Objects"
519
542
msgstr ""
0 commit comments