@@ -199616,53 +199616,77 @@ msgid ""
199616199616"for list objects; it adds a new element at the end of the list. In this "
199617199617"example it is equivalent to ``result = result + [a]``, but more efficient."
199618199618msgstr ""
199619+ "Instrukcja ``result.append(a)`` wywołuje *metodę* listy obiektów ``result``. "
199620+ "Metoda to funkcja, która „należy” do obiektu i jest nazwana ``obj."
199621+ "methodname``, gdzie ``obj`` jest jakimś obiektem (może też być wyrażeniem) a "
199622+ "``methodname`` jest nazwą metody, które jest zdefiniowana przez typ obiektu. "
199623+ "Różne typy definiują różne metody. Metody różnych typów mogą mieć te same "
199624+ "nazwy bez powodowania dwuznaczności. (Da się definiować własne typy obiektów "
199625+ "i metody, używając *klas*, patrz :ref:`tut-classes`.) Metoda :meth:`append` "
199626+ "pokazana w przykładzie jest zdefiniowana dla listy obiektów; dodaje nowy "
199627+ "element na końcu listy. W tym przykładzie jest równoważna ``result = result "
199628+ "+ [a]``, ale bardziej wydajna."
199619199629
199620199630msgid "More on Defining Functions"
199621- msgstr ""
199631+ msgstr "Więcej o definiowaniu funkcji "
199622199632
199623199633msgid ""
199624199634"It is also possible to define functions with a variable number of arguments. "
199625199635"There are three forms, which can be combined."
199626199636msgstr ""
199637+ "Można też definiować funkcje ze zmienną liczbą argumentów. Są trzy sposoby, "
199638+ "które można łączyć."
199627199639
199628199640msgid "Default Argument Values"
199629- msgstr ""
199641+ msgstr "Domyślne wartości argumentów "
199630199642
199631199643msgid ""
199632199644"The most useful form is to specify a default value for one or more "
199633199645"arguments. This creates a function that can be called with fewer arguments "
199634199646"than it is defined to allow. For example::"
199635199647msgstr ""
199648+ "Najbardziej przydatnym sposobem jest podanie domyślnej wartości dla jednego "
199649+ "lub więcej argumentów. Tworzy to funkcję, która może zostać wywołana z "
199650+ "mniejszą liczbą argumentów, niż jest podane w jej definicji. Na przykład::"
199636199651
199637199652msgid "This function can be called in several ways:"
199638- msgstr ""
199653+ msgstr "Tę funkcję można wywołać na kilka sposobów: "
199639199654
199640199655msgid ""
199641199656"giving only the mandatory argument: ``ask_ok('Do you really want to quit?')``"
199642199657msgstr ""
199658+ "podając tylko wymagany argument: ``ask_ok('Do you really want to quit?')``"
199643199659
199644199660msgid ""
199645199661"giving one of the optional arguments: ``ask_ok('OK to overwrite the file?', "
199646199662"2)``"
199647199663msgstr ""
199664+ "podając jeden z opcjonalnych argumentów: ``ask_ok('OK to overwrite the "
199665+ "file?', 2)``"
199648199666
199649199667msgid ""
199650199668"or even giving all arguments: ``ask_ok('OK to overwrite the file?', 2, 'Come "
199651199669"on, only yes or no!')``"
199652199670msgstr ""
199671+ "lub podając wszystkie argumenty: ``ask_ok('OK to overwrite file?', 2, 'Come "
199672+ "on, only yes or no!')``"
199653199673
199654199674msgid ""
199655199675"This example also introduces the :keyword:`in` keyword. This tests whether "
199656199676"or not a sequence contains a certain value."
199657199677msgstr ""
199678+ "Ten przykład wprowadza słowo kluczowe :keyword:`in`. Sprawdza ono, czy "
199679+ "sekwencja zawiera szczególną wartość."
199658199680
199659199681msgid ""
199660199682"The default values are evaluated at the point of function definition in the "
199661199683"*defining* scope, so that ::"
199662199684msgstr ""
199685+ "Wartości domyślne są ewaluowane w momencie definiowania funkcji w scopie "
199686+ "*defining*, więc ::"
199663199687
199664199688msgid "will print ``5``."
199665- msgstr ""
199689+ msgstr "wyświetli ``5``. "
199666199690
199667199691msgid ""
199668199692"**Important warning:** The default value is evaluated only once. This makes "
0 commit comments