FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[po] auto sync · python/python-docs-ru@a5aab58 · GitHub

Repository navigation

Commit a5aab58

Browse files
[po] auto sync
1 parent f97f249 commit a5aab58

3 files changed

Lines changed: 1 addition & 377 deletions

File tree

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "0.00%", "updated_at": "2026-03-25T19:25:09Z"}
1+
{"translation": "0.00%", "updated_at": "2026-05-23T19:44:30Z"}

‎library/asyncore.mo‎

-6 Bytes
Binary file not shown.

‎library/asyncore.po‎

Lines changed: 0 additions & 376 deletions
Original file line numberDiff line numberDiff line change
@@ -1,382 +1,6 @@
1-
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2025, Python Software Foundation
3-
# This file is distributed under the same license as the Python package.
4-
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
51
#
6-
# Translators:
7-
# python-doc bot, 2025
8-
# Илья Панфилов, 2025
9-
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
10-
#
11-
#, fuzzy
122
msgid ""
133
msgstr ""
14-
"Project-Id-Version: Python 3.11\n"
15-
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2025-09-22 02:03+0000\n"
17-
"PO-Revision-Date: 2025-09-21 20:43+0000\n"
18-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
194
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n"
20-
"MIME-Version: 1.0\n"
21-
"Content-Type: text/plain; charset=UTF-8\n"
22-
"Content-Transfer-Encoding: 8bit\n"
235
"Language: ru\n"
246
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
25-
26-
#: ../../library/asyncore.rst:2
27-
msgid ":mod:`asyncore` --- Asynchronous socket handler"
28-
msgstr ""
29-
30-
#: ../../library/asyncore.rst:14
31-
msgid "**Source code:** :source:`Lib/asyncore.py`"
32-
msgstr ""
33-
34-
#: ../../library/asyncore.rst:20
35-
msgid ""
36-
"The :mod:`asyncore` module is deprecated (see :pep:`PEP 594 <594#asyncore>` "
37-
"for details). Please use :mod:`asyncio` instead."
38-
msgstr ""
39-
40-
#: ../../library/asyncore.rst:25
41-
msgid ""
42-
"This module exists for backwards compatibility only. For new code we "
43-
"recommend using :mod:`asyncio`."
44-
msgstr ""
45-
46-
#: ../../library/asyncore.rst:28
47-
msgid ""
48-
"This module provides the basic infrastructure for writing asynchronous "
49-
"socket service clients and servers."
50-
msgstr ""
51-
52-
#: ../../includes/wasm-notavail.rst:3
53-
msgid ":ref:`Availability <availability>`: not Emscripten, not WASI."
54-
msgstr ""
55-
56-
#: ../../includes/wasm-notavail.rst:5
57-
msgid ""
58-
"This module does not work or is not available on WebAssembly platforms "
59-
"``wasm32-emscripten`` and ``wasm32-wasi``. See :ref:`wasm-availability` for "
60-
"more information."
61-
msgstr ""
62-
63-
#: ../../library/asyncore.rst:33
64-
msgid ""
65-
"There are only two ways to have a program on a single processor do \"more "
66-
"than one thing at a time.\" Multi-threaded programming is the simplest and "
67-
"most popular way to do it, but there is another very different technique, "
68-
"that lets you have nearly all the advantages of multi-threading, without "
69-
"actually using multiple threads. It's really only practical if your "
70-
"program is largely I/O bound. If your program is processor bound, then pre-"
71-
"emptive scheduled threads are probably what you really need. Network "
72-
"servers are rarely processor bound, however."
73-
msgstr ""
74-
75-
#: ../../library/asyncore.rst:42
76-
msgid ""
77-
"If your operating system supports the :c:func:`select` system call in its "
78-
"I/O library (and nearly all do), then you can use it to juggle multiple "
79-
"communication channels at once; doing other work while your I/O is taking "
80-
"place in the \"background.\" Although this strategy can seem strange and "
81-
"complex, especially at first, it is in many ways easier to understand and "
82-
"control than multi-threaded programming. The :mod:`asyncore` module solves "
83-
"many of the difficult problems for you, making the task of building "
84-
"sophisticated high-performance network servers and clients a snap. For "
85-
"\"conversational\" applications and protocols the companion :mod:`asynchat` "
86-
"module is invaluable."
87-
msgstr ""
88-
89-
#: ../../library/asyncore.rst:53
90-
msgid ""
91-
"The basic idea behind both modules is to create one or more network "
92-
"*channels*, instances of class :class:`asyncore.dispatcher` and "
93-
":class:`asynchat.async_chat`. Creating the channels adds them to a global "
94-
"map, used by the :func:`loop` function if you do not provide it with your "
95-
"own *map*."
96-
msgstr ""
97-
98-
#: ../../library/asyncore.rst:59
99-
msgid ""
100-
"Once the initial channel(s) is(are) created, calling the :func:`loop` "
101-
"function activates channel service, which continues until the last channel "
102-
"(including any that have been added to the map during asynchronous service) "
103-
"is closed."
104-
msgstr ""
105-
106-
#: ../../library/asyncore.rst:66
107-
msgid ""
108-
"Enter a polling loop that terminates after count passes or all open channels"
109-
" have been closed. All arguments are optional. The *count* parameter "
110-
"defaults to ``None``, resulting in the loop terminating only when all "
111-
"channels have been closed. The *timeout* argument sets the timeout "
112-
"parameter for the appropriate :func:`~select.select` or :func:`~select.poll`"
113-
" call, measured in seconds; the default is 30 seconds. The *use_poll* "
114-
"parameter, if true, indicates that :func:`~select.poll` should be used in "
115-
"preference to :func:`~select.select` (the default is ``False``)."
116-
msgstr ""
117-
118-
#: ../../library/asyncore.rst:75
119-
msgid ""
120-
"The *map* parameter is a dictionary whose items are the channels to watch. "
121-
"As channels are closed they are deleted from their map. If *map* is "
122-
"omitted, a global map is used. Channels (instances of "
123-
":class:`asyncore.dispatcher`, :class:`asynchat.async_chat` and subclasses "
124-
"thereof) can freely be mixed in the map."
125-
msgstr ""
126-
127-
#: ../../library/asyncore.rst:84
128-
msgid ""
129-
"The :class:`dispatcher` class is a thin wrapper around a low-level socket "
130-
"object. To make it more useful, it has a few methods for event-handling "
131-
"which are called from the asynchronous loop. Otherwise, it can be treated "
132-
"as a normal non-blocking socket object."
133-
msgstr ""
134-
135-
#: ../../library/asyncore.rst:89
136-
msgid ""
137-
"The firing of low-level events at certain times or in certain connection "
138-
"states tells the asynchronous loop that certain higher-level events have "
139-
"taken place. For example, if we have asked for a socket to connect to "
140-
"another host, we know that the connection has been made when the socket "
141-
"becomes writable for the first time (at this point you know that you may "
142-
"write to it with the expectation of success). The implied higher-level "
143-
"events are:"
144-
msgstr ""
145-
146-
#: ../../library/asyncore.rst:98
147-
msgid "Event"
148-
msgstr ""
149-
150-
#: ../../library/asyncore.rst:98
151-
msgid "Description"
152-
msgstr ""
153-
154-
#: ../../library/asyncore.rst:100
155-
msgid "``handle_connect()``"
156-
msgstr ""
157-
158-
#: ../../library/asyncore.rst:100
159-
msgid "Implied by the first read or write event"
160-
msgstr ""
161-
162-
#: ../../library/asyncore.rst:103
163-
msgid "``handle_close()``"
164-
msgstr ""
165-
166-
#: ../../library/asyncore.rst:103
167-
msgid "Implied by a read event with no data available"
168-
msgstr ""
169-
170-
#: ../../library/asyncore.rst:106
171-
msgid "``handle_accepted()``"
172-
msgstr ""
173-
174-
#: ../../library/asyncore.rst:106
175-
msgid "Implied by a read event on a listening socket"
176-
msgstr ""
177-
178-
#: ../../library/asyncore.rst:110
179-
msgid ""
180-
"During asynchronous processing, each mapped channel's :meth:`readable` and "
181-
":meth:`writable` methods are used to determine whether the channel's socket "
182-
"should be added to the list of channels :c:func:`select`\\ ed or "
183-
":c:func:`poll`\\ ed for read and write events."
184-
msgstr ""
185-
186-
#: ../../library/asyncore.rst:115
187-
msgid ""
188-
"Thus, the set of channel events is larger than the basic socket events. The"
189-
" full set of methods that can be overridden in your subclass follows:"
190-
msgstr ""
191-
192-
#: ../../library/asyncore.rst:121
193-
msgid ""
194-
"Called when the asynchronous loop detects that a :meth:`read` call on the "
195-
"channel's socket will succeed."
196-
msgstr ""
197-
198-
#: ../../library/asyncore.rst:127
199-
msgid ""
200-
"Called when the asynchronous loop detects that a writable socket can be "
201-
"written. Often this method will implement the necessary buffering for "
202-
"performance. For example::"
203-
msgstr ""
204-
205-
#: ../../library/asyncore.rst:138
206-
msgid ""
207-
"Called when there is out of band (OOB) data for a socket connection. This "
208-
"will almost never happen, as OOB is tenuously supported and rarely used."
209-
msgstr ""
210-
211-
#: ../../library/asyncore.rst:144
212-
msgid ""
213-
"Called when the active opener's socket actually makes a connection. Might "
214-
"send a \"welcome\" banner, or initiate a protocol negotiation with the "
215-
"remote endpoint, for example."
216-
msgstr ""
217-
218-
#: ../../library/asyncore.rst:151
219-
msgid "Called when the socket is closed."
220-
msgstr ""
221-
222-
#: ../../library/asyncore.rst:156
223-
msgid ""
224-
"Called when an exception is raised and not otherwise handled. The default "
225-
"version prints a condensed traceback."
226-
msgstr ""
227-
228-
#: ../../library/asyncore.rst:162
229-
msgid ""
230-
"Called on listening channels (passive openers) when a connection can be "
231-
"established with a new remote endpoint that has issued a :meth:`connect` "
232-
"call for the local endpoint. Deprecated in version 3.2; use "
233-
":meth:`handle_accepted` instead."
234-
msgstr ""
235-
236-
#: ../../library/asyncore.rst:172
237-
msgid ""
238-
"Called on listening channels (passive openers) when a connection has been "
239-
"established with a new remote endpoint that has issued a :meth:`connect` "
240-
"call for the local endpoint. *sock* is a *new* socket object usable to send"
241-
" and receive data on the connection, and *addr* is the address bound to the "
242-
"socket on the other end of the connection."
243-
msgstr ""
244-
245-
#: ../../library/asyncore.rst:183
246-
msgid ""
247-
"Called each time around the asynchronous loop to determine whether a "
248-
"channel's socket should be added to the list on which read events can occur."
249-
" The default method simply returns ``True``, indicating that by default, "
250-
"all channels will be interested in read events."
251-
msgstr ""
252-
253-
#: ../../library/asyncore.rst:191
254-
msgid ""
255-
"Called each time around the asynchronous loop to determine whether a "
256-
"channel's socket should be added to the list on which write events can "
257-
"occur. The default method simply returns ``True``, indicating that by "
258-
"default, all channels will be interested in write events."
259-
msgstr ""
260-
261-
#: ../../library/asyncore.rst:197
262-
msgid ""
263-
"In addition, each channel delegates or extends many of the socket methods. "
264-
"Most of these are nearly identical to their socket partners."
265-
msgstr ""
266-
267-
#: ../../library/asyncore.rst:203
268-
msgid ""
269-
"This is identical to the creation of a normal socket, and will use the same "
270-
"options for creation. Refer to the :mod:`socket` documentation for "
271-
"information on creating sockets."
272-
msgstr ""
273-
274-
#: ../../library/asyncore.rst:207
275-
msgid "*family* and *type* arguments can be omitted."
276-
msgstr ""
277-
278-
#: ../../library/asyncore.rst:213
279-
msgid ""
280-
"As with the normal socket object, *address* is a tuple with the first "
281-
"element the host to connect to, and the second the port number."
282-
msgstr ""
283-
284-
#: ../../library/asyncore.rst:219
285-
msgid "Send *data* to the remote end-point of the socket."
286-
msgstr ""
287-
288-
#: ../../library/asyncore.rst:224
289-
msgid ""
290-
"Read at most *buffer_size* bytes from the socket's remote end-point. An "
291-
"empty bytes object implies that the channel has been closed from the other "
292-
"end."
293-
msgstr ""
294-
295-
#: ../../library/asyncore.rst:228
296-
msgid ""
297-
"Note that :meth:`recv` may raise :exc:`BlockingIOError` , even though "
298-
":func:`select.select` or :func:`select.poll` has reported the socket ready "
299-
"for reading."
300-
msgstr ""
301-
302-
#: ../../library/asyncore.rst:235
303-
msgid ""
304-
"Listen for connections made to the socket. The *backlog* argument specifies"
305-
" the maximum number of queued connections and should be at least 1; the "
306-
"maximum value is system-dependent (usually 5)."
307-
msgstr ""
308-
309-
#: ../../library/asyncore.rst:242
310-
msgid ""
311-
"Bind the socket to *address*. The socket must not already be bound. (The "
312-
"format of *address* depends on the address family --- refer to the "
313-
":mod:`socket` documentation for more information.) To mark the socket as "
314-
"re-usable (setting the :const:`SO_REUSEADDR` option), call the "
315-
":class:`dispatcher` object's :meth:`set_reuse_addr` method."
316-
msgstr ""
317-
318-
#: ../../library/asyncore.rst:251
319-
msgid ""
320-
"Accept a connection. The socket must be bound to an address and listening "
321-
"for connections. The return value can be either ``None`` or a pair ``(conn,"
322-
" address)`` where *conn* is a *new* socket object usable to send and receive"
323-
" data on the connection, and *address* is the address bound to the socket on"
324-
" the other end of the connection. When ``None`` is returned it means the "
325-
"connection didn't take place, in which case the server should just ignore "
326-
"this event and keep listening for further incoming connections."
327-
msgstr ""
328-
329-
#: ../../library/asyncore.rst:263
330-
msgid ""
331-
"Close the socket. All future operations on the socket object will fail. The"
332-
" remote end-point will receive no more data (after queued data is flushed)."
333-
" Sockets are automatically closed when they are garbage-collected."
334-
msgstr ""
335-
336-
#: ../../library/asyncore.rst:271
337-
msgid ""
338-
"A :class:`dispatcher` subclass which adds simple buffered output capability,"
339-
" useful for simple clients. For more sophisticated usage use "
340-
":class:`asynchat.async_chat`."
341-
msgstr ""
342-
343-
#: ../../library/asyncore.rst:277
344-
msgid ""
345-
"A file_dispatcher takes a file descriptor or :term:`file object` along with "
346-
"an optional map argument and wraps it for use with the :c:func:`poll` or "
347-
":c:func:`loop` functions. If provided a file object or anything with a "
348-
":c:func:`fileno` method, that method will be called and passed to the "
349-
":class:`file_wrapper` constructor."
350-
msgstr ""
351-
352-
#: ../../library/asyncore.rst:283 ../../library/asyncore.rst:292
353-
msgid ":ref:`Availability <availability>`: Unix."
354-
msgstr ""
355-
356-
#: ../../library/asyncore.rst:287
357-
msgid ""
358-
"A file_wrapper takes an integer file descriptor and calls :func:`os.dup` to "
359-
"duplicate the handle so that the original handle may be closed independently"
360-
" of the file_wrapper. This class implements sufficient methods to emulate a"
361-
" socket for use by the :class:`file_dispatcher` class."
362-
msgstr ""
363-
364-
#: ../../library/asyncore.rst:298
365-
msgid "asyncore Example basic HTTP client"
366-
msgstr ""
367-
368-
#: ../../library/asyncore.rst:300
369-
msgid ""
370-
"Here is a very basic HTTP client that uses the :class:`dispatcher` class to "
371-
"implement its socket handling::"
372-
msgstr ""
373-
374-
#: ../../library/asyncore.rst:337
375-
msgid "asyncore Example basic echo server"
376-
msgstr ""
377-
378-
#: ../../library/asyncore.rst:339
379-
msgid ""
380-
"Here is a basic echo server that uses the :class:`dispatcher` class to "
381-
"accept connections and dispatches the incoming connections to a handler::"
382-
msgstr ""

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL