@@ -3082,6 +3082,10 @@ msgid ""
30823082"provided the object allows it. For example, ``setattr(x, 'foobar', 123)`` "
30833083"is equivalent to ``x.foobar = 123``."
30843084msgstr ""
3085+ "Jest to odpowiednik :func:`getattr`. Argumenty to obiekt, napis i dowolna "
3086+ "wartość. Napis może nazywać istniejący atrybut lub nowy atrybut. Funkcja "
3087+ "przypisuje wartość do atrybut, pod warunkiem, że obiekt na to pozwala. Na "
3088+ "przykład, ``setattr(x, 'foobar', 123)`` jest równoważne ``x.foobar = 123``."
30853089
30863090msgid ""
30873091"*name* need not be a Python identifier as defined in :ref:`identifiers` "
@@ -3090,31 +3094,51 @@ msgid ""
30903094"whose name is not an identifier will not be accessible using the dot "
30913095"notation, but is accessible through :func:`getattr` etc.."
30923096msgstr ""
3097+ "*name* nie musi być identyfikatorem Pythona zdefiniowanym w :ref:"
3098+ "`identifiers`, chyba że obiekt zdecyduje się to wymusić, na przykład w "
3099+ "niestandardowym :meth:`~object.__getattribute__` lub poprzez :attr:`~object."
3100+ "__slots__`. Obiekt atrybut, którego nazwa nie jest identyfikatorem, nie "
3101+ "będzie dostępny przy użyciu notacji kropkowej, ale będzie dostępny za "
3102+ "pośrednictwem :func:`getattr` itd."
30933103
30943104msgid ""
30953105"Since :ref:`private name mangling <private-name-mangling>` happens at "
30963106"compilation time, one must manually mangle a private attribute's (attributes "
30973107"with two leading underscores) name in order to set it with :func:`setattr`."
30983108msgstr ""
3109+ "Ponieważ :ref:` mangling nazwy prywatnej <private-name-mangling>` ma miejsce "
3110+ "w czasie kompilacji, należy ręcznie zmienić nazwę prywatną atrybut (atrybut "
3111+ "z dwoma wiodącymi podkreśleniami), aby ustawić ją na :func:`setattr`."
30993112
31003113msgid ""
31013114"Return a :term:`slice` object representing the set of indices specified by "
31023115"``range(start, stop, step)``. The *start* and *step* arguments default to "
31033116"``None``."
31043117msgstr ""
3118+ "Zwraca obiekt :term:`slice` reprezentujący zbiór indeksów określonych przez "
3119+ "``range(start, stop, step)``. *start* i *step* argumenty domyślne do "
3120+ "``None``."
31053121
31063122msgid ""
31073123"Slice objects have read-only data attributes :attr:`!start`, :attr:`!stop`, "
31083124"and :attr:`!step` which merely return the argument values (or their "
31093125"default). They have no other explicit functionality; however, they are used "
31103126"by NumPy and other third-party packages."
31113127msgstr ""
3128+ "Obiekty slice mają dane tylko do odczytu atrybut :attr:`!start` , :attr:`!"
3129+ "stop` i :attr:`!step`, które jedynie zwracać wartości argument (lub ich "
3130+ "domyślny). Nie mają one żadnej innej wyraźnej funkcjonalności; są jednak "
3131+ "używane przez NumPy i inne pakiety innych firm."
31123132
31133133msgid ""
31143134"Slice objects are also generated when extended indexing syntax is used. For "
31153135"example: ``a[start:stop:step]`` or ``a[start:stop, i]``. See :func:"
31163136"`itertools.islice` for an alternate version that returns an :term:`iterator`."
31173137msgstr ""
3138+ "Obiekty Slice są również generowane, gdy używana jest rozszerzona składnia "
3139+ "indeksowania. Na przykład: ``a[start:stop:step]`` lub ``a[start:stop, i]``. "
3140+ "Zobacz :func:`itertools.islice` dla alternatywy, która zwraca :term:"
3141+ "`iterator`."
31183142
31193143msgid ""
31203144"Slice objects are now :term:`hashable` (provided :attr:`~slice.start`, :attr:"
@@ -3137,6 +3161,9 @@ msgid ""
31373161"comparison key from each element in *iterable* (for example, ``key=str."
31383162"lower``). The default value is ``None`` (compare the elements directly)."
31393163msgstr ""
3164+ "*key* określa funkcje jednego argumentu, który jest używany do wyodrębnienia "
3165+ "klucza porównania z każdego elementu w *iterable* (na przykład ``key=str."
3166+ "lower``). Wartość domyślna to ``None`` (bezpośrednie porównanie elementów)."
31403167
31413168msgid ""
31423169"*reverse* is a boolean value. If set to ``True``, then the list elements "
@@ -3158,6 +3185,11 @@ msgid ""
31583185"compare equal --- this is helpful for sorting in multiple passes (for "
31593186"example, sort by department, then by salary grade)."
31603187msgstr ""
3188+ "Wbudowana :func:`sorted` funkcja ma gwarancję stabilności. Sortowanie jest "
3189+ "stabilne, jeśli gwarantuje, że nie zmieni względnej kolejności elementów, "
3190+ "które porównują równe --- jest to pomocne przy sortowaniu w wielu "
3191+ "przejściach (na przykład sortowanie według działu, a następnie według "
3192+ "kategorii wynagrodzenia)."
31613193
31623194msgid ""
31633195"The sort algorithm uses only ``<`` comparisons between items. While "
@@ -3169,6 +3201,14 @@ msgid ""
31693201"mixed type comparisons which can call reflected the :meth:`~object.__gt__` "
31703202"method."
31713203msgstr ""
3204+ "Algorytm sortowania używa tylko ``<`` porównań między elementami. Podczas "
3205+ "gdy zdefiniowanie metoda :meth:`~object.__lt__` wystarczy do sortowania, :"
3206+ "PEP:`8` zaleca zaimplementowanie wszystkich sześciu :ref:` bogatych porównań "
3207+ "<comparisons>`. Pomoże to uniknąć błędów podczas korzystania z tych samych "
3208+ "danych z innymi narzędziami porządkującymi, takimi jak :func:`max`, które "
3209+ "opierają się na innej metodzie bazowej. Zaimplementowanie wszystkich "
3210+ "sześciu porównań pomaga również uniknąć nieporozumień w przypadku porównań "
3211+ "typów mieszanych, które mogą wywoływać metodę :meth:`~object.__gt__`."
31723212
31733213msgid ""
31743214"For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`."
@@ -3208,12 +3248,19 @@ msgid ""
32083248"`descriptor` is also callable, so it can be used in the class definition "
32093249"(such as ``f()``)."
32103250msgstr ""
3251+ "Metoda statyczna może być wywołana na klasie (np. ``C.f()``) lub na "
3252+ "instancji (np. ``C().f()``). Co więcej, metoda statyczna :term:`descriptor` "
3253+ "jest również wywoływalna, więc może być użyta w definicja klasy (np. "
3254+ "``f()``)."
32113255
32123256msgid ""
32133257"Static methods in Python are similar to those found in Java or C++. Also, "
32143258"see :func:`classmethod` for a variant that is useful for creating alternate "
32153259"class constructors."
32163260msgstr ""
3261+ "Metody statyczne w Python są podobne do tych, które można znaleźć w Java lub "
3262+ "C++. Zobacz także :func:`classmethod`, aby zapoznać się z wariantem, który "
3263+ "jest przydatny do tworzenia alternatywnych konstruktorów klas."
32173264
32183265msgid ""
32193266"Like all decorators, it is also possible to call ``staticmethod`` as a "
@@ -3222,6 +3269,11 @@ msgid ""
32223269"want to avoid the automatic transformation to instance method. For these "
32233270"cases, use this idiom::"
32243271msgstr ""
3272+ "Podobnie jak wszystkie dekoratory, możliwe jest również wywołanie "
3273+ "``staticmethod`` jako zwykłoł funkcje i zrobienie czegoś z jego wynikiem. "
3274+ "Jest to potrzebne w niektórych przypadkach, gdy potrzebujesz odniesienia do "
3275+ "funkcji z ciałej klasy i chcesz uniknąć automatycznej transformacji do "
3276+ "metody instancji. W takich przypadkach należy użyć tego idiomu::"
32253277
32263278msgid ""
32273279"def regular_function():\n"
@@ -3247,6 +3299,10 @@ msgid ""
32473299"attr:`~function.__doc__` and :attr:`~function.__annotations__`), have a new "
32483300"``__wrapped__`` attribute, and are now callable as regular functions."
32493301msgstr ""
3302+ "Metody statyczne dziedziczą teraz metodę atrybut (:attr:`~function."
3303+ "__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :"
3304+ "attr:`~function.__doc__` i :attr:`~function.__annotations__`), mają nową "
3305+ "``__wrapped__`` atrybut i są teraz wywoływane jako zwykła funkcja."
32503306
32513307msgid ""
32523308"Return a :class:`str` version of *object*. See :func:`str` for details."
@@ -3266,6 +3322,9 @@ msgid ""
32663322"the total. The *iterable*'s items are normally numbers, and the start value "
32673323"is not allowed to be a string."
32683324msgstr ""
3325+ "Sumuje *start* i elementy *iterable* od lewej do prawej i zwraca sumę. "
3326+ "Elementy *iterable* są zwykle liczbami, a wartością początkową nie może być "
3327+ "napisem."
32693328
32703329msgid ""
32713330"For some use cases, there are good alternatives to :func:`sum`. The "
@@ -3274,6 +3333,11 @@ msgid ""
32743333"see :func:`math.fsum`\\ . To concatenate a series of iterables, consider "
32753334"using :func:`itertools.chain`."
32763335msgstr ""
3336+ "W niektórych przypadkach istnieją dobra alternatywa dla :func:`sum`. "
3337+ "Preferowanym, szybkim sposobem na łączyć sekwencji napisów jest wywołanie "
3338+ "``''.join(sequence)``. Aby dodać wartości zmiennoprzecinkowe z rozszerzoną "
3339+ "precyzją, zobacz :func:`math.fsum`\\ . Aby łączyć serię iterable, należy "
3340+ "rozważyć użycie :func:`itertools.chain`."
32773341
32783342msgid "The *start* parameter can be specified as a keyword argument."
32793343msgstr "Parametr *start* można określić jako argument nazwany."
@@ -3290,31 +3354,47 @@ msgid ""
32903354"class of *type*. This is useful for accessing inherited methods that have "
32913355"been overridden in a class."
32923356msgstr ""
3357+ "Zwraca obiekt proxy, który deleguje wywołania metod do klasy nadrzędnej lub "
3358+ "rodzeństwa *type*. Jest to przydatne do uzyskiwania dostępu do "
3359+ "odziedziczonych metod, które zostały przesłonięte w klasie."
32933360
32943361msgid ""
32953362"The *object_or_type* determines the :term:`method resolution order` to be "
32963363"searched. The search starts from the class right after the *type*."
32973364msgstr ""
3365+ "*object_or_type* określa :term:`method resolution order` do przeszukania. "
3366+ "Wyszukiwanie rozpoczyna się od klasy zaraz po *type*."
32983367
32993368msgid ""
33003369"For example, if :attr:`~type.__mro__` of *object_or_type* is ``D -> B -> C -"
33013370"> A -> object`` and the value of *type* is ``B``, then :func:`super` "
33023371"searches ``C -> A -> object``."
33033372msgstr ""
3373+ "Na przykład, jeśli :attr:`~type.__mro__` z *object_or_type* jest ``D -> B -> "
3374+ "C -> A -> object`` i wartość *type* jest ``B``, to :func:`super` wyszukuje "
3375+ "``C -> A -> object``."
33043376
33053377msgid ""
33063378"The :attr:`~type.__mro__` attribute of the class corresponding to "
33073379"*object_or_type* lists the method resolution search order used by both :func:"
33083380"`getattr` and :func:`super`. The attribute is dynamic and can change "
33093381"whenever the inheritance hierarchy is updated."
33103382msgstr ""
3383+ ":attr:`~type.__mro__` atrybut klasy odpowiadającej *object_or_type* wymienia "
3384+ "kolejność wyszukiwania metod używaną zarówno przez :func:`getattr` jak i :"
3385+ "func:`super`. Adres atrybut jest dynamiczny i może ulec zmianie przy każdej "
3386+ "aktualizacji hierarchii dziedziczenia."
33113387
33123388msgid ""
33133389"If the second argument is omitted, the super object returned is unbound. If "
33143390"the second argument is an object, ``isinstance(obj, type)`` must be true. "
33153391"If the second argument is a type, ``issubclass(type2, type)`` must be true "
33163392"(this is useful for classmethods)."
33173393msgstr ""
3394+ "Jeśli drugi argument zostanie pominięty, zwrócony superobiekt jest "
3395+ "niezwiązany. Jeśli drugi argument jest obiektem, ``isinstance(obj, type)`` "
3396+ "musi być prawda. Jeśli drugi argument jest typem, ``issubclass(type2, "
3397+ "type)`` musi być prawda (jest to przydatne dla metod klasowych)."
33183398
33193399msgid ""
33203400"When called directly within an ordinary method of a class, both arguments "
@@ -3324,13 +3404,25 @@ msgid ""
33243404"argument :func:`!super` will not work as expected within nested functions, "
33253405"including generator expressions, which implicitly create nested functions.)"
33263406msgstr ""
3407+ "W przypadku wywołania bezpośrednio w zwykłej metodzie klasy, obie argument "
3408+ "mogą zostać pominięte (\" zero-argument :func:`!super` \" ). W takim przypadku "
3409+ "*type* będzie klasą otaczającą, a *obj* będzie pierwszym argumentem "
3410+ "bezpośrednio otaczającego funkcje (zazwyczaj ``self``). (Oznacza to, że zero-"
3411+ "argument :func:`!super` nie będzie działać zgodnie z oczekiwaniami wewnątrz "
3412+ "zagnieżdżonych funkci, w tym wyrażeń generator, które domyślnie tworzą "
3413+ "zagnieżdżone funkcje)."
33273414
33283415msgid ""
33293416"There are two typical use cases for *super*. In a class hierarchy with "
33303417"single inheritance, *super* can be used to refer to parent classes without "
33313418"naming them explicitly, thus making the code more maintainable. This use "
33323419"closely parallels the use of *super* in other programming languages."
33333420msgstr ""
3421+ "Istnieją dwa typowe przypadki użycia *super*. W hierarchii klas z "
3422+ "pojedynczym dziedziczeniem, *super* może być używany do odwoływania się do "
3423+ "klas nadrzędnych bez ich jawnego nazywania, dzięki czemu kod jest łatwiejszy "
3424+ "w utrzymaniu. To zastosowanie jest bardzo podobne do użycia *super* w "
3425+ "innych językach programowania."
33343426
33353427msgid ""
33363428"The second use case is to support cooperative multiple inheritance in a "
@@ -3343,6 +3435,16 @@ msgid ""
33433435"changes in the class hierarchy, and because that order can include sibling "
33443436"classes that are unknown prior to runtime)."
33453437msgstr ""
3438+ "Drugim przypadkiem użycia jest obsługa kooperatywnego dziedziczenia "
3439+ "wielokrotnego w dynamicznym środowisku wykonawczym. Ten przypadek użycia "
3440+ "jest unikalny dla Python i nie występuje w statycznie kompilowanych językach "
3441+ "lub językach, które obsługują tylko pojedyncze dziedziczenie. Umożliwia to "
3442+ "implementację \" diagramów diamentowych\" , w których wiele klas bazowych "
3443+ "implementuje tę samą metodę. Dobry projekt nakazuje, aby takie "
3444+ "implementacje miały tę samą sygnaturę wywołania w każdym przypadku (ponieważ "
3445+ "kolejność wywołań jest określana w czasie wykonywania, ponieważ kolejność ta "
3446+ "dostosowuje się do zmian w hierarchii klas i ponieważ kolejność ta może "
3447+ "obejmować klasy rodzeństwa, które są nieznane przed uruchomieniem)."
33463448
33473449msgid "For both use cases, a typical superclass call looks like this::"
33483450msgstr "W obu przypadkach typowe wywołanie superklasy wygląda następująco::"
@@ -3363,6 +3465,9 @@ msgid ""
33633465"lookups. One possible use case for this is calling :term:`descriptors "
33643466"<descriptor>` in a parent or sibling class."
33653467msgstr ""
3468+ "Oprócz wyszukiwania metod, :func:`super` działa również dla wyszukiwania "
3469+ "atrybut. Jednym z możliwych przypadków użycia jest wywołanie :term:"
3470+ "`descriptors <descriptor>` w klasie nadrzędnej lub podrzędnej."
33663471
33673472msgid ""
33683473"Note that :func:`super` is implemented as part of the binding process for "
@@ -3372,6 +3477,14 @@ msgid ""
33723477"inheritance. Accordingly, :func:`super` is undefined for implicit lookups "
33733478"using statements or operators such as ``super()[name]``."
33743479msgstr ""
3480+ "Należy zauważyć, że :func:`super` jest zaimplementowany jako część wiązania "
3481+ "przetwarzanie/proces dla jawnego wyszukiwania kropkowego atrybut, takiego "
3482+ "jak ``super().__getitem__(name)``. Czyni to poprzez implementację własnej "
3483+ "metody :meth:`~object.__getattribute__` do wyszukiwania klas w "
3484+ "przewidywalnej kolejności, która obsługuje wielokrotne dziedziczenie oparte "
3485+ "na współpracy. Odpowiednio, :func:`super` jest niezdefiniowany dla "
3486+ "niejawnych wyszukiwań przy użyciu instrukcja lub operatorów takich jak "
3487+ "``super()[name]``."
33753488
33763489msgid ""
33773490"Also note that, aside from the zero argument form, :func:`super` is not "
@@ -3381,6 +3494,12 @@ msgid ""
33813494"necessary details to correctly retrieve the class being defined, as well as "
33823495"accessing the current instance for ordinary methods."
33833496msgstr ""
3497+ "Należy również pamiętać, że poza formą zero argument, :func:`super` nie jest "
3498+ "ograniczona do użycia wewnątrz metod. Dwie formy argumentów dokładnie "
3499+ "określają argumenty i tworzą odpowiednie odniesienia. Forma zero argumentów "
3500+ "działa tylko wewnątrz definicja klasy, ponieważ kompilator wypełnia "
3501+ "niezbędne szczegóły, aby poprawnie pobrać definiowaną klasę, a także uzyskać "
3502+ "dostęp do bieżącej instancji dla zwykłych metod."
33843503
33853504msgid ""
33863505"For practical suggestions on how to design cooperative classes using :func:"
@@ -3403,6 +3522,9 @@ msgid ""
34033522"type object and generally the same object as returned by :attr:`object."
34043523"__class__`."
34053524msgstr ""
3525+ "Z jednym argumentem, zwraca typ *obiektu*. Typ zwracanej wartość jest "
3526+ "obiektem typu i generalnie jest to ten sam obiekt, który został zwrócony "
3527+ "przez :attr:`object.__class__`."
34063528
34073529msgid ""
34083530"The :func:`isinstance` built-in function is recommended for testing the type "
@@ -3422,6 +3544,14 @@ msgid ""
34223544"__dict__` attribute. The following two statements create identical :class:`!"
34233545"type` objects:"
34243546msgstr ""
3547+ "Z trzema argumentamy, zwracać nowy typ obiektu. Jest to zasadniczo "
3548+ "dynamiczna forma :keyword:`class` instrukcja . *name* napis jest nazwą klasy "
3549+ "i staje się :attr:`~type.__name__` atrybut . *bases* krotka zawiera klasy "
3550+ "bazowe i staje się :attr:`~type.__bases__` atrybut ; jeśli jest pusta, "
3551+ "dodawana jest :class:`object`, ostateczna baza wszystkich klas. The *dict* "
3552+ "słownik zawiera atrybut i definicje metod dla ciało klasy; może być "
3553+ "kopiowany lub zawijany zanim stanie się :attr:`~type.__dict__` atrybut . "
3554+ "Następujące dwa instrukcja tworzą identyczne :class:`!type` obiekty:"
34253555
34263556msgid "See also:"
34273557msgstr "Zobacz także:"
@@ -3441,6 +3571,10 @@ msgid ""
34413571"in the same way that keywords in a class definition (besides *metaclass*) "
34423572"would."
34433573msgstr ""
3574+ "Argument nazwane dostarczone do trzech formularzy argumenty są przekazywane "
3575+ "do odpowiedniego mechanizmu metaklas (zwykle :meth:`~object."
3576+ "__init_subclass__`) w taki sam sposób, jak słowa kluczowe w definicja klasy "
3577+ "(poza *metaclass*)."
34443578
34453579msgid "See also :ref:`class-customization`."
34463580msgstr "Zobacz także :ref:`class-customization`."
@@ -3449,6 +3583,8 @@ msgid ""
34493583"Subclasses of :class:`!type` which don't override ``type.__new__`` may no "
34503584"longer use the one-argument form to get the type of an object."
34513585msgstr ""
3586+ "Podklasy z :class:`!type`, które nie nadpisują ``type.__new__`` nie mogą już "
3587+ "używać formy jednego-argumentu do uzyskania typu obiektu."
34523588
34533589msgid ""
34543590"Return the :attr:`~object.__dict__` attribute for a module, class, instance, "
0 commit comments