@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.13\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-01-21 15:14 +0000\n "
14+ "POT-Creation-Date : 2026-02-07 15:03 +0000\n "
1515"PO-Revision-Date : 2025-09-15 01:05+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -75,26 +75,26 @@ msgid ""
7575msgstr ""
7676
7777msgid ""
78- "Parse a URL into six components, returning a 6-item :term:`named tuple`. "
79- "This corresponds to the general structure of a URL: ``scheme://netloc/path;"
80- "parameters?query#fragment``. Each tuple item is a string, possibly empty. "
81- "The components are not broken up into smaller parts (for example, the "
82- "network location is a single string), and % escapes are not expanded. The "
83- "delimiters as shown above are not part of the result, except for a leading "
84- "slash in the *path* component, which is retained if present. For example:"
78+ "Parse a URL into five components, returning a 5-item :term:`named tuple` :"
79+ "class:`SplitResult` or :class:`SplitResultBytes`. This corresponds to the "
80+ "general structure of a URL: ``scheme://netloc/path?query#fragment``. Each "
81+ "tuple item is a string, possibly empty. The components are not broken up "
82+ "into smaller parts (for example, the network location is a single string), "
83+ "and % escapes are not expanded. The delimiters as shown above are not part "
84+ "of the result, except for a leading slash in the *path* component, which is "
85+ "retained if present. For example:"
8586msgstr ""
8687
8788msgid ""
88- ">>> from urllib.parse import urlparse\n"
89- ">>> urlparse(\" scheme://netloc/path;parameters?query#fragment\" )\n"
90- "ParseResult(scheme='scheme', netloc='netloc', path='/path;parameters', "
91- "params='',\n"
89+ ">>> from urllib.parse import urlsplit\n"
90+ ">>> urlsplit(\" scheme://netloc/path?query#fragment\" )\n"
91+ "SplitResult(scheme='scheme', netloc='netloc', path='/path',\n"
9292" query='query', fragment='fragment')\n"
93- ">>> o = urlparse (\" http://docs.python.org:80/3/library/urllib.parse.html?\" \n"
93+ ">>> o = urlsplit (\" http://docs.python.org:80/3/library/urllib.parse.html?\" \n"
9494"... \" highlight=params#url-parsing\" )\n"
9595">>> o\n"
96- "ParseResult (scheme='http', netloc='docs.python.org:80',\n"
97- " path='/3/library/urllib.parse.html', params='', \n"
96+ "SplitResult (scheme='http', netloc='docs.python.org:80',\n"
97+ " path='/3/library/urllib.parse.html',\n"
9898" query='highlight=params', fragment='url-parsing')\n"
9999">>> o.scheme\n"
100100"'http'\n"
@@ -109,22 +109,23 @@ msgid ""
109109msgstr ""
110110
111111msgid ""
112- "Following the syntax specifications in :rfc:`1808`, urlparse recognizes a "
113- "netloc only if it is properly introduced by '//'. Otherwise the input is "
114- "presumed to be a relative URL and thus to start with a path component."
112+ "Following the syntax specifications in :rfc:`1808`, :func:`!urlsplit` "
113+ "recognizes a netloc only if it is properly introduced by '//'. Otherwise "
114+ "the input is presumed to be a relative URL and thus to start with a path "
115+ "component."
115116msgstr ""
116117
117118msgid ""
118- ">>> from urllib.parse import urlparse \n"
119- ">>> urlparse ('//www.cwi.nl:80/%7Eguido/Python.html')\n"
120- "ParseResult (scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python."
119+ ">>> from urllib.parse import urlsplit \n"
120+ ">>> urlsplit ('//www.cwi.nl:80/%7Eguido/Python.html')\n"
121+ "SplitResult (scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python."
121122"html',\n"
122- " params='', query='', fragment='')\n"
123- ">>> urlparse ('www.cwi.nl/%7Eguido/Python.html')\n"
124- "ParseResult (scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html',\n"
125- " params='', query='', fragment='')\n"
126- ">>> urlparse ('help/Python.html')\n"
127- "ParseResult (scheme='', netloc='', path='help/Python.html', params=' ',\n"
123+ " query='', fragment='')\n"
124+ ">>> urlsplit ('www.cwi.nl/%7Eguido/Python.html')\n"
125+ "SplitResult (scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html',\n"
126+ " query='', fragment='')\n"
127+ ">>> urlsplit ('help/Python.html')\n"
128+ "SplitResult (scheme='', netloc='', path='help/Python.html',\n"
128129" query='', fragment='')"
129130msgstr ""
130131
@@ -192,29 +193,20 @@ msgstr "2"
192193msgid "Hierarchical path"
193194msgstr ""
194195
195- msgid ":attr:`params`"
196- msgstr ":attr:`params`"
197-
198- msgid "3"
199- msgstr "3"
200-
201- msgid "Parameters for last path element"
202- msgstr ""
203-
204196msgid ":attr:`query`"
205197msgstr ":attr:`query`"
206198
207- msgid "4 "
208- msgstr "4 "
199+ msgid "3 "
200+ msgstr "3 "
209201
210202msgid "Query component"
211203msgstr ""
212204
213205msgid ":attr:`fragment`"
214206msgstr ":attr:`fragment`"
215207
216- msgid "5 "
217- msgstr "5 "
208+ msgid "4 "
209+ msgstr "4 "
218210
219211msgid "Fragment identifier"
220212msgstr ""
@@ -264,28 +256,34 @@ msgid ""
264256"decomposed before parsing, no error will be raised."
265257msgstr ""
266258
259+ msgid ""
260+ "Following some of the `WHATWG spec`_ that updates :rfc:`3986`, leading C0 "
261+ "control and space characters are stripped from the URL. ``\\ n``, ``\\ r`` and "
262+ "tab ``\\ t`` characters are removed from the URL at any position."
263+ msgstr ""
264+
267265msgid ""
268266"As is the case with all named tuples, the subclass has a few additional "
269267"methods and attributes that are particularly useful. One such method is :"
270- "meth:`_replace`. The :meth:`_replace` method will return a new ParseResult "
271- "object replacing specified fields with new values."
268+ "meth:`_replace`. The :meth:`_replace` method will return a new :class: "
269+ "`SplitResult` object replacing specified fields with new values."
272270msgstr ""
273271
274272msgid ""
275- ">>> from urllib.parse import urlparse \n"
276- ">>> u = urlparse ('//www.cwi.nl:80/%7Eguido/Python.html')\n"
273+ ">>> from urllib.parse import urlsplit \n"
274+ ">>> u = urlsplit ('//www.cwi.nl:80/%7Eguido/Python.html')\n"
277275">>> u\n"
278- "ParseResult (scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python."
276+ "SplitResult (scheme='', netloc='www.cwi.nl:80', path='/%7Eguido/Python."
279277"html',\n"
280- " params='', query='', fragment='')\n"
278+ " query='', fragment='')\n"
281279">>> u._replace(scheme='http')\n"
282- "ParseResult (scheme='http', netloc='www.cwi.nl:80', path='/%7Eguido/Python."
280+ "SplitResult (scheme='http', netloc='www.cwi.nl:80', path='/%7Eguido/Python."
283281"html',\n"
284- " params='', query='', fragment='')"
282+ " query='', fragment='')"
285283msgstr ""
286284
287285msgid ""
288- ":func:`urlparse ` does not perform validation. See :ref:`URL parsing "
286+ ":func:`urlsplit ` does not perform validation. See :ref:`URL parsing "
289287"security <url-parsing-security>` for details."
290288msgstr ""
291289
@@ -308,6 +306,13 @@ msgid ""
308306"raise :exc:`ValueError`."
309307msgstr ""
310308
309+ msgid "ASCII newline and tab characters are stripped from the URL."
310+ msgstr ""
311+
312+ msgid ""
313+ "Leading WHATWG C0 control and space characters are stripped from the URL."
314+ msgstr ""
315+
311316msgid ""
312317"Parse a query string given as a string argument (data of type :mimetype:"
313318"`application/x-www-form-urlencoded`). Data are returned as a dictionary. "
@@ -376,55 +381,36 @@ msgid ""
376381msgstr ""
377382
378383msgid ""
379- "Construct a URL from a tuple as returned by ``urlparse ()``. The *parts* "
380- "argument can be any six -item iterable. This may result in a slightly "
384+ "Construct a URL from a tuple as returned by ``urlsplit ()``. The *parts* "
385+ "argument can be any five -item iterable. This may result in a slightly "
381386"different, but equivalent URL, if the URL that was parsed originally had "
382387"unnecessary delimiters (for example, a ``?`` with an empty query; the RFC "
383388"states that these are equivalent)."
384389msgstr ""
385390
386391msgid ""
387- "This is similar to :func:`urlparse`, but does not split the params from the "
388- "URL. This should generally be used instead of :func:`urlparse` if the more "
389- "recent URL syntax allowing parameters to be applied to each segment of the "
390- "*path* portion of the URL (see :rfc:`2396`) is wanted. A separate function "
391- "is needed to separate the path segments and parameters. This function "
392- "returns a 5-item :term:`named tuple`::"
392+ "This is similar to :func:`urlsplit`, but additionally splits the *path* "
393+ "component on *path* and *params*. This function returns a 6-item :term:"
394+ "`named tuple` :class:`ParseResult` or :class:`ParseResultBytes`. Its items "
395+ "are the same as for the :func:`!urlsplit` result, except that *params* is "
396+ "inserted at index 3, between *path* and *query*."
393397msgstr ""
394398
395399msgid ""
396- "(addressing scheme, network location, path, query, fragment identifier)."
400+ "This function is based on obsoleted :rfc:`1738` and :rfc:`1808`, which "
401+ "listed *params* as the main URL component. The more recent URL syntax allows "
402+ "parameters to be applied to each segment of the *path* portion of the URL "
403+ "(see :rfc:`3986`). :func:`urlsplit` should generally be used instead of :"
404+ "func:`urlparse`. A separate function is needed to separate the path segments "
405+ "and parameters."
397406msgstr ""
398407
399408msgid ""
400- "The return value is a :term:`named tuple`, its items can be accessed by "
401- "index or as named attributes:"
402- msgstr ""
403-
404- msgid ""
405- "Following some of the `WHATWG spec`_ that updates RFC 3986, leading C0 "
406- "control and space characters are stripped from the URL. ``\\ n``, ``\\ r`` and "
407- "tab ``\\ t`` characters are removed from the URL at any position."
408- msgstr ""
409-
410- msgid ""
411- ":func:`urlsplit` does not perform validation. See :ref:`URL parsing "
412- "security <url-parsing-security>` for details."
413- msgstr ""
414-
415- msgid "ASCII newline and tab characters are stripped from the URL."
416- msgstr ""
417-
418- msgid ""
419- "Leading WHATWG C0 control and space characters are stripped from the URL."
420- msgstr ""
421-
422- msgid ""
423- "Combine the elements of a tuple as returned by :func:`urlsplit` into a "
424- "complete URL as a string. The *parts* argument can be any five-item "
425- "iterable. This may result in a slightly different, but equivalent URL, if "
426- "the URL that was parsed originally had unnecessary delimiters (for example, "
427- "a ? with an empty query; the RFC states that these are equivalent)."
409+ "Combine the elements of a tuple as returned by :func:`urlparse` into a "
410+ "complete URL as a string. The *parts* argument can be any six-item iterable. "
411+ "This may result in a slightly different, but equivalent URL, if the URL that "
412+ "was parsed originally had unnecessary delimiters (for example, a ? with an "
413+ "empty query; the RFC states that these are equivalent)."
428414msgstr ""
429415
430416msgid ""
@@ -436,7 +422,7 @@ msgstr ""
436422
437423msgid ""
438424"The *allow_fragments* argument has the same meaning and default as for :func:"
439- "`urlparse `."
425+ "`urlsplit `."
440426msgstr ""
441427
442428msgid ""
@@ -477,6 +463,11 @@ msgid ""
477463"unmodified and an empty string."
478464msgstr ""
479465
466+ msgid ""
467+ "The return value is a :term:`named tuple`, its items can be accessed by "
468+ "index or as named attributes:"
469+ msgstr ""
470+
480471msgid ":attr:`url`"
481472msgstr ":attr:`url`"
482473
@@ -590,7 +581,7 @@ msgid "Structured Parse Results"
590581msgstr ""
591582
592583msgid ""
593- "The result objects from the :func:`urlparse `, :func:`urlsplit ` and :func:"
584+ "The result objects from the :func:`urlsplit `, :func:`urlparse ` and :func:"
594585"`urldefrag` functions are subclasses of the :class:`tuple` type. These "
595586"subclasses add the attributes listed in the documentation for those "
596587"functions, the encoding and decoding support described in the previous "
0 commit comments