@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.7\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2020-02-10 04:47 +0000\n "
14+ "POT-Creation-Date : 2020-03-21 13:26 +0000\n "
1515"PO-Revision-Date : 2019-09-01 03:17+0000\n "
1616"Last-Translator : tomo, 2019\n "
1717"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -295,28 +295,31 @@ msgid ""
295295msgstr ""
296296
297297#: ../../library/socketserver.rst:239
298- msgid "Tell the :meth:`serve_forever` loop to stop and wait until it does."
299- msgstr ":meth:`serve_forever` ループに停止するように指示し、停止されるまで待ちます。"
298+ msgid ""
299+ "Tell the :meth:`serve_forever` loop to stop and wait until it does. "
300+ ":meth:`shutdown` must be called while :meth:`serve_forever` is running in a "
301+ "different thread otherwise it will deadlock."
302+ msgstr ""
300303
301- #: ../../library/socketserver.rst:244
304+ #: ../../library/socketserver.rst:246
302305msgid "Clean up the server. May be overridden."
303306msgstr "サーバをクリーンアップします。上書き出来ます。"
304307
305- #: ../../library/socketserver.rst:249
308+ #: ../../library/socketserver.rst:251
306309msgid ""
307310"The family of protocols to which the server's socket belongs. Common "
308311"examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`."
309312msgstr ""
310313"サーバのソケットが属しているプロトコルファミリです。一般的な値は :const:`socket.AF_INET` および "
311314":const:`socket.AF_UNIX` です。"
312315
313- #: ../../library/socketserver.rst:255
316+ #: ../../library/socketserver.rst:257
314317msgid ""
315318"The user-provided request handler class; an instance of this class is "
316319"created for each request."
317320msgstr "ユーザが提供する要求処理クラスです; 要求ごとにこのクラスのインスタンスが生成されます。"
318321
319- #: ../../library/socketserver.rst:261
322+ #: ../../library/socketserver.rst:263
320323msgid ""
321324"The address on which the server is listening. The format of addresses "
322325"varies depending on the protocol family; see the documentation for the "
@@ -325,24 +328,24 @@ msgid ""
325328"``('127.0.0.1', 80)``, for example."
326329msgstr ""
327330
328- #: ../../library/socketserver.rst:270
331+ #: ../../library/socketserver.rst:272
329332msgid ""
330333"The socket object on which the server will listen for incoming requests."
331334msgstr "サーバが入力の要求待ちを行うためのソケットオブジェクトです。"
332335
333- #: ../../library/socketserver.rst:273
336+ #: ../../library/socketserver.rst:275
334337msgid "The server classes support the following class variables:"
335338msgstr "サーバクラスは以下のクラス変数をサポートします:"
336339
337- #: ../../library/socketserver.rst:279
340+ #: ../../library/socketserver.rst:281
338341msgid ""
339342"Whether the server will allow the reuse of an address. This defaults to "
340343":const:`False`, and can be set in subclasses to change the policy."
341344msgstr ""
342345"サーバがアドレスの再使用を許すかどうかを示す値です。この値は標準で :const:`False` "
343346"で、サブクラスで再使用ポリシを変更するために設定することができます。"
344347
345- #: ../../library/socketserver.rst:285
348+ #: ../../library/socketserver.rst:287
346349msgid ""
347350"The size of the request queue. If it takes a long time to process a single "
348351"request, any requests that arrive while the server is busy are placed into a"
@@ -354,15 +357,15 @@ msgstr ""
354357":attr:`request_queue_size` 個まで待ち行列に置かれます。待ち行列が一杯になると、それ以降のクライアントからの要求は "
355358"\" 接続拒否 (Connection denied)\" エラーになります。標準の値は通常 5 ですが、この値はサブクラスで上書きすることができます。"
356359
357- #: ../../library/socketserver.rst:294
360+ #: ../../library/socketserver.rst:296
358361msgid ""
359362"The type of socket used by the server; :const:`socket.SOCK_STREAM` and "
360363":const:`socket.SOCK_DGRAM` are two common values."
361364msgstr ""
362365"サーバが使うソケットの型です; 一般的な2つの値は、 :const:`socket.SOCK_STREAM` と "
363366":const:`socket.SOCK_DGRAM` です。"
364367
365- #: ../../library/socketserver.rst:300
368+ #: ../../library/socketserver.rst:302
366369msgid ""
367370"Timeout duration, measured in seconds, or :const:`None` if no timeout is "
368371"desired. If :meth:`handle_request` receives no incoming requests within the"
@@ -371,7 +374,7 @@ msgstr ""
371374"タイムアウト時間(秒)、もしくは、タイムアウトを望まない場合に :const:`None` 。 :meth:`handle_request` "
372375"がこの時間内にリクエストを受信しない場合、 :meth:`handle_timeout` メソッドが呼ばれます。"
373376
374- #: ../../library/socketserver.rst:305
377+ #: ../../library/socketserver.rst:307
375378msgid ""
376379"There are various server methods that can be overridden by subclasses of "
377380"base server classes like :class:`TCPServer`; these methods aren't useful to "
@@ -380,13 +383,13 @@ msgstr ""
380383":class:`TCPServer` のような基底クラスのサブクラスで上書きできるサーバメソッドは多数あります; "
381384"これらのメソッドはサーバオブジェクトの外部のユーザにとっては役にたたないものです。"
382385
383- #: ../../library/socketserver.rst:314
386+ #: ../../library/socketserver.rst:316
384387msgid ""
385388"Actually processes the request by instantiating :attr:`RequestHandlerClass` "
386389"and calling its :meth:`~BaseRequestHandler.handle` method."
387390msgstr ""
388391
389- #: ../../library/socketserver.rst:320
392+ #: ../../library/socketserver.rst:322
390393msgid ""
391394"Must accept a request from the socket, and return a 2-tuple containing the "
392395"*new* socket object to be used to communicate with the client, and the "
@@ -395,20 +398,20 @@ msgstr ""
395398"ソケットから要求を受理して、クライアントとの通信に使われる *新しい* ソケットオブジェクト、およびクライアントのアドレスからなる、2 "
396399"要素のタプルを返します。"
397400
398- #: ../../library/socketserver.rst:327
401+ #: ../../library/socketserver.rst:329
399402msgid ""
400403"This function is called if the :meth:`~BaseRequestHandler.handle` method of "
401404"a :attr:`RequestHandlerClass` instance raises an exception. The default "
402405"action is to print the traceback to standard error and continue handling "
403406"further requests."
404407msgstr ""
405408
406- #: ../../library/socketserver.rst:332
409+ #: ../../library/socketserver.rst:334
407410msgid ""
408411"Now only called for exceptions derived from the :exc:`Exception` class."
409412msgstr ""
410413
411- #: ../../library/socketserver.rst:339
414+ #: ../../library/socketserver.rst:341
412415msgid ""
413416"This function is called when the :attr:`timeout` attribute has been set to a"
414417" value other than :const:`None` and the timeout period has passed with no "
@@ -420,7 +423,7 @@ msgstr ""
420423"以外に設定されて、リクエストがないままタイムアウト秒数が過ぎたときに呼ばれます。 "
421424"fork型サーバーでのデフォルトの動作は、終了した子プロセスの情報を集めるようになっています。スレッド型サーバーではこのメソッドは何もしません。"
422425
423- #: ../../library/socketserver.rst:348
426+ #: ../../library/socketserver.rst:350
424427msgid ""
425428"Calls :meth:`finish_request` to create an instance of the "
426429":attr:`RequestHandlerClass`. If desired, this function can create a new "
@@ -431,20 +434,20 @@ msgstr ""
431434"のインスタンスを生成します。必要なら、この関数から新たなプロセスかスレッドを生成して要求を処理することができます; その処理は "
432435":class:`ForkingMixIn` または :class:`ThreadingMixIn` クラスが行います。"
433436
434- #: ../../library/socketserver.rst:360
437+ #: ../../library/socketserver.rst:362
435438msgid ""
436439"Called by the server's constructor to activate the server. The default "
437440"behavior for a TCP server just invokes :meth:`~socket.socket.listen` on the "
438441"server's socket. May be overridden."
439442msgstr ""
440443
441- #: ../../library/socketserver.rst:367
444+ #: ../../library/socketserver.rst:369
442445msgid ""
443446"Called by the server's constructor to bind the socket to the desired "
444447"address. May be overridden."
445448msgstr "サーバのコンストラクタによって呼び出され、適切なアドレスにソケットをバインドします。このメソッドは上書きできます。"
446449
447- #: ../../library/socketserver.rst:373
450+ #: ../../library/socketserver.rst:375
448451msgid ""
449452"Must return a Boolean value; if the value is :const:`True`, the request will"
450453" be processed, and if it's :const:`False`, the request will be denied. This"
@@ -455,31 +458,31 @@ msgstr ""
455458"の場合には要求は拒否されます。サーバへのアクセス制御を実装するためにこの関数を上書きすることができます。標準の実装では常に :const:`True` "
456459"を返します。"
457460
458- #: ../../library/socketserver.rst:379
461+ #: ../../library/socketserver.rst:381
459462msgid ""
460463"Support for the :term:`context manager` protocol was added. Exiting the "
461464"context manager is equivalent to calling :meth:`server_close`."
462465msgstr ""
463466
464- #: ../../library/socketserver.rst:385
467+ #: ../../library/socketserver.rst:387
465468msgid "Request Handler Objects"
466469msgstr ""
467470
468- #: ../../library/socketserver.rst:389
471+ #: ../../library/socketserver.rst:391
469472msgid ""
470473"This is the superclass of all request handler objects. It defines the "
471474"interface, given below. A concrete request handler subclass must define a "
472475"new :meth:`handle` method, and can override any of the other methods. A new"
473476" instance of the subclass is created for each request."
474477msgstr ""
475478
476- #: ../../library/socketserver.rst:398
479+ #: ../../library/socketserver.rst:400
477480msgid ""
478481"Called before the :meth:`handle` method to perform any initialization "
479482"actions required. The default implementation does nothing."
480483msgstr ":meth:`handle` メソッドより前に呼び出され、何らかの必要な初期化処理を行います。標準の実装では何も行いません。"
481484
482- #: ../../library/socketserver.rst:404
485+ #: ../../library/socketserver.rst:406
483486msgid ""
484487"This function must do all the work required to service a request. The "
485488"default implementation does nothing. Several instance attributes are "
@@ -492,14 +495,14 @@ msgstr ""
492495":attr:`self.client_address` です; そしてサーバごとの情報にアクセスする場合には、サーバインスタンスを "
493496":attr:`self.server` で取得できます。"
494497
495- #: ../../library/socketserver.rst:410
498+ #: ../../library/socketserver.rst:412
496499msgid ""
497500"The type of :attr:`self.request` is different for datagram or stream "
498501"services. For stream services, :attr:`self.request` is a socket object; for"
499502" datagram services, :attr:`self.request` is a pair of string and socket."
500503msgstr ""
501504
502- #: ../../library/socketserver.rst:417
505+ #: ../../library/socketserver.rst:419
503506msgid ""
504507"Called after the :meth:`handle` method to perform any clean-up actions "
505508"required. The default implementation does nothing. If :meth:`setup` raises"
@@ -508,7 +511,7 @@ msgstr ""
508511":meth:`handle` メソッドより後に呼び出され、何らかの必要なクリーンアップ処理を行います。標準の実装では何も行いません。 "
509512":meth:`setup` メソッドが例外を送出した場合、このメソッドは呼び出されません。"
510513
511- #: ../../library/socketserver.rst:425
514+ #: ../../library/socketserver.rst:427
512515msgid ""
513516"These :class:`BaseRequestHandler` subclasses override the "
514517":meth:`~BaseRequestHandler.setup` and :meth:`~BaseRequestHandler.finish` "
@@ -517,41 +520,41 @@ msgid ""
517520"written, respectively, to get the request data or return data to the client."
518521msgstr ""
519522
520- #: ../../library/socketserver.rst:432
523+ #: ../../library/socketserver.rst:434
521524msgid ""
522525"The :attr:`rfile` attributes of both classes support the "
523526":class:`io.BufferedIOBase` readable interface, and "
524527":attr:`DatagramRequestHandler.wfile` supports the :class:`io.BufferedIOBase`"
525528" writable interface."
526529msgstr ""
527530
528- #: ../../library/socketserver.rst:437
531+ #: ../../library/socketserver.rst:439
529532msgid ""
530533":attr:`StreamRequestHandler.wfile` also supports the "
531534":class:`io.BufferedIOBase` writable interface."
532535msgstr ""
533536
534- #: ../../library/socketserver.rst:443
537+ #: ../../library/socketserver.rst:445
535538msgid "Examples"
536539msgstr "使用例"
537540
538- #: ../../library/socketserver.rst:446
541+ #: ../../library/socketserver.rst:448
539542msgid ":class:`socketserver.TCPServer` Example"
540543msgstr ":class:`socketserver.TCPServer` の例"
541544
542- #: ../../library/socketserver.rst:448 ../../library/socketserver.rst:547
545+ #: ../../library/socketserver.rst:450 ../../library/socketserver.rst:549
543546msgid "This is the server side::"
544547msgstr "サーバサイドの例です::"
545548
546- #: ../../library/socketserver.rst:478
549+ #: ../../library/socketserver.rst:480
547550msgid ""
548551"An alternative request handler class that makes use of streams (file-like "
549552"objects that simplify communication by providing the standard file "
550553"interface)::"
551554msgstr ""
552555"別の、ストリーム(標準のファイル型のインタフェースを利用して通信をシンプルにしたファイルライクオブジェクト)を使うリクエストハンドラクラスの例です::"
553556
554- #: ../../library/socketserver.rst:493
557+ #: ../../library/socketserver.rst:495
555558msgid ""
556559"The difference is that the ``readline()`` call in the second handler will "
557560"call ``recv()`` multiple times until it encounters a newline character, "
@@ -561,49 +564,49 @@ msgstr ""
561564"先ほどとの違いは、``readline()`` の呼び出しが、改行を受け取るまで ``recv()`` を複数回呼び出すことです。1回の "
562565"``recv()`` の呼び出しは、クライアントから1回の ``sendall()`` 呼び出しで送信された分しか受け取りません。"
563566
564- #: ../../library/socketserver.rst:499 ../../library/socketserver.rst:571
567+ #: ../../library/socketserver.rst:501 ../../library/socketserver.rst:573
565568msgid "This is the client side::"
566569msgstr "クライアントサイドの例::"
567570
568- #: ../../library/socketserver.rst:520 ../../library/socketserver.rst:646
571+ #: ../../library/socketserver.rst:522 ../../library/socketserver.rst:648
569572msgid "The output of the example should look something like this:"
570573msgstr "この例の出力は次のようになります:"
571574
572- #: ../../library/socketserver.rst:522
575+ #: ../../library/socketserver.rst:524
573576msgid "Server:"
574577msgstr ""
575578
576- #: ../../library/socketserver.rst:532
579+ #: ../../library/socketserver.rst:534
577580msgid "Client:"
578581msgstr ""
579582
580- #: ../../library/socketserver.rst:545
583+ #: ../../library/socketserver.rst:547
581584msgid ":class:`socketserver.UDPServer` Example"
582585msgstr ":class:`socketserver.UDPServer` の例"
583586
584- #: ../../library/socketserver.rst:590
587+ #: ../../library/socketserver.rst:592
585588msgid ""
586589"The output of the example should look exactly like for the TCP server "
587590"example."
588591msgstr "この例の出力は、TCPサーバーの例と全く同じようになります。"
589592
590- #: ../../library/socketserver.rst:594
593+ #: ../../library/socketserver.rst:596
591594msgid "Asynchronous Mixins"
592595msgstr "非同期処理の Mix-in"
593596
594- #: ../../library/socketserver.rst:596
597+ #: ../../library/socketserver.rst:598
595598msgid ""
596599"To build asynchronous handlers, use the :class:`ThreadingMixIn` and "
597600":class:`ForkingMixIn` classes."
598601msgstr ""
599602"複数の接続を非同期に処理するハンドラを作るには、 :class:`ThreadingMixIn` か :class:`ForkingMixIn` "
600603"クラスを利用します。"
601604
602- #: ../../library/socketserver.rst:599
605+ #: ../../library/socketserver.rst:601
603606msgid "An example for the :class:`ThreadingMixIn` class::"
604607msgstr ":class:`ThreadingMixIn` クラスの利用例::"
605608
606- #: ../../library/socketserver.rst:657
609+ #: ../../library/socketserver.rst:659
607610msgid ""
608611"The :class:`ForkingMixIn` class is used in the same way, except that the "
609612"server will spawn a new process for each request. Available only on POSIX "
0 commit comments