-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcollections.po
1390 lines (1206 loc) · 62.8 KB
/
collections.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2021, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# tomo, 2017
# 秘湯 <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-01 01:01+0900\n"
"PO-Revision-Date: 2019-09-01 05:18+0000\n"
"Last-Translator: tomo\n"
"Language-Team: Japanese (http://www.transifex.com/python-doc/python-27/"
"language/ja/)\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../library/collections.rst:2
msgid ":mod:`collections` --- High-performance container datatypes"
msgstr ":mod:`collections` --- 高性能なコンテナ・データ型"
#: ../../library/collections.rst:17
msgid ""
"**Source code:** :source:`Lib/collections.py` and :source:`Lib/_abcoll.py`"
msgstr ""
"**Source code:** :source:`Lib/collections.py` and :source:`Lib/_abcoll.py`"
#: ../../library/collections.rst:21
msgid ""
"This module implements specialized container datatypes providing "
"alternatives to Python's general purpose built-in containers, :class:"
"`dict`, :class:`list`, :class:`set`, and :class:`tuple`."
msgstr ""
"このモジュールは、汎用の Python 組み込みコンテナ :class:`dict`, :class:"
"`list`, :class:`set`, および :class:`tuple` に代わる、特殊なコンテナデータ型"
"を実装しています。"
#: ../../library/collections.rst:26
msgid ":func:`namedtuple`"
msgstr ":func:`namedtuple`"
#: ../../library/collections.rst:26
msgid "factory function for creating tuple subclasses with named fields"
msgstr "名前付きフィールドを持つタプルのサブクラスを作成するファクトリ関数"
#: ../../library/collections.rst:27
msgid ":class:`deque`"
msgstr ":class:`deque`"
#: ../../library/collections.rst:27
msgid "list-like container with fast appends and pops on either end"
msgstr "両端における append や pop を高速に行えるリスト風のコンテナ"
#: ../../library/collections.rst:28
msgid ":class:`Counter`"
msgstr ":class:`Counter`"
#: ../../library/collections.rst:28
msgid "dict subclass for counting hashable objects"
msgstr "ハッシュ可能なオブジェクトを数え上げる辞書のサブクラス"
#: ../../library/collections.rst:29
msgid ":class:`OrderedDict`"
msgstr ":class:`OrderedDict`"
#: ../../library/collections.rst:29
msgid "dict subclass that remembers the order entries were added"
msgstr "項目が追加された順序を記憶する辞書のサブクラス"
#: ../../library/collections.rst:30
msgid ":class:`defaultdict`"
msgstr ":class:`defaultdict`"
#: ../../library/collections.rst:30
msgid "dict subclass that calls a factory function to supply missing values"
msgstr "ファクトリ関数を呼び出して存在しない値を供給する辞書のサブクラス"
#: ../../library/collections.rst:33
msgid ""
"In addition to the concrete container classes, the collections module "
"provides :ref:`abstract base classes <collections-abstract-base-classes>` "
"that can be used to test whether a class provides a particular interface, "
"for example, whether it is hashable or a mapping."
msgstr ""
"コンテナ型の作成に加えて、 collections モジュールは幾つかの ABC (:ref:"
"`abstract base classes <collections-abstract-base-classes>` = 抽象基底クラ"
"ス) を提供しています。 ABC はクラスが特定のインタフェース持っているかどうか、"
"たとえばハッシュ可能であるかやマッピングであるかを判定するのに利用します。"
#: ../../library/collections.rst:40
msgid ":class:`Counter` objects"
msgstr ":class:`Counter` オブジェクト"
#: ../../library/collections.rst:42
msgid ""
"A counter tool is provided to support convenient and rapid tallies. For "
"example::"
msgstr ""
"便利で迅速な検数をサポートするカウンタツールが提供されています。例えば::"
#: ../../library/collections.rst:61
msgid ""
"A :class:`Counter` is a :class:`dict` subclass for counting hashable "
"objects. It is an unordered collection where elements are stored as "
"dictionary keys and their counts are stored as dictionary values. Counts "
"are allowed to be any integer value including zero or negative counts. The :"
"class:`Counter` class is similar to bags or multisets in other languages."
msgstr ""
":class:`Counter` はハッシュ可能なオブジェクトをカウントする :class:`dict` の"
"サブクラスです。これは、要素を辞書のキーとして保存し、そのカウントを辞書の値"
"として保存する、順序付けされていないコレクションです。カウントは、0 や負のカ"
"ウントを含む整数値をとれます。 :class:`Counter` クラスは、他の言語のバッグや"
"多重集合のようなものです。"
#: ../../library/collections.rst:67
msgid ""
"Elements are counted from an *iterable* or initialized from another "
"*mapping* (or counter):"
msgstr ""
"要素は、 *iterable* から数え上げられたり、他の *mapping* (やカウンタ) から初"
"期化されます:"
#: ../../library/collections.rst:75
msgid ""
"Counter objects have a dictionary interface except that they return a zero "
"count for missing items instead of raising a :exc:`KeyError`:"
msgstr ""
"カウンタオブジェクトは辞書のインタフェースを持ちますが、存在しない要素に対し"
"て :exc:`KeyError` を送出する代わりに 0 を返すという違いがあります:"
#: ../../library/collections.rst:82
msgid ""
"Setting a count to zero does not remove an element from a counter. Use "
"``del`` to remove it entirely:"
msgstr ""
"カウントを 0 に設定しても、要素はカウンタから取り除かれません。完全に取り除く"
"には、 ``del`` を使ってください:"
#: ../../library/collections.rst:91
msgid ""
"Counter objects support three methods beyond those available for all "
"dictionaries:"
msgstr ""
"カウンタオブジェクトは、すべての辞書に利用できるものに加え、 3 つのメソッドを"
"サポートしています:"
#: ../../library/collections.rst:96
msgid ""
"Return an iterator over elements repeating each as many times as its count. "
"Elements are returned in arbitrary order. If an element's count is less "
"than one, :meth:`elements` will ignore it."
msgstr ""
"それぞれの要素を、そのカウント分の回数だけ繰り返すイテレータを返します。要素"
"は任意の順序で返されます。ある要素のカウントが 1 未満なら、 :meth:`elements` "
"はそれを無視します。"
#: ../../library/collections.rst:106
msgid ""
"Return a list of the *n* most common elements and their counts from the most "
"common to the least. If *n* is omitted or ``None``, :func:`most_common` "
"returns *all* elements in the counter. Elements with equal counts are "
"ordered arbitrarily:"
msgstr ""
"最も多い *n* 要素を、カウントが多いものから少ないものまで順に並べたリストを返"
"します。 *n* が省略されるか ``None`` であれば、 :func:`most_common` はカウン"
"タの *すべての* 要素を返します。等しいカウントの要素は任意に並べられます:"
#: ../../library/collections.rst:116
msgid ""
"Elements are subtracted from an *iterable* or from another *mapping* (or "
"counter). Like :meth:`dict.update` but subtracts counts instead of "
"replacing them. Both inputs and outputs may be zero or negative."
msgstr ""
"要素から *iterable* の要素または *mapping* の要素が引かれます。 :meth:`dict."
"update` に似ていますが、カウントを置き換えるのではなく引きます。入力も出力"
"も、 0 や負になりえます。"
#: ../../library/collections.rst:126
msgid ""
"The usual dictionary methods are available for :class:`Counter` objects "
"except for two which work differently for counters."
msgstr ""
"普通の辞書のメソッドは、以下の 2 つのメソッドがカウンタに対して異なる振る舞い"
"をするのを除き、 :class:`Counter` オブジェクトにも利用できます。"
#: ../../library/collections.rst:131
msgid "This class method is not implemented for :class:`Counter` objects."
msgstr ""
"このクラスメソッドは :class:`Counter` オブジェクトには実装されていません。"
#: ../../library/collections.rst:135
msgid ""
"Elements are counted from an *iterable* or added-in from another *mapping* "
"(or counter). Like :meth:`dict.update` but adds counts instead of replacing "
"them. Also, the *iterable* is expected to be a sequence of elements, not a "
"sequence of ``(key, value)`` pairs."
msgstr ""
"要素が *iterable* からカウントされるか、別の *mapping* (やカウンタ) が追加さ"
"れます。 :meth:`dict.update` に似ていますが、カウントを置き換えるのではなく追"
"加します。また、 *iterable* には ``(key, value)`` 対のシーケンスではなく、要"
"素のシーケンスが求められます。"
#: ../../library/collections.rst:140
msgid "Common patterns for working with :class:`Counter` objects::"
msgstr ":class:`Counter` オブジェクトを使ったよくあるパターン::"
#: ../../library/collections.rst:152
msgid ""
"Several mathematical operations are provided for combining :class:`Counter` "
"objects to produce multisets (counters that have counts greater than zero). "
"Addition and subtraction combine counters by adding or subtracting the "
"counts of corresponding elements. Intersection and union return the minimum "
"and maximum of corresponding counts. Each operation can accept inputs with "
"signed counts, but the output will exclude results with counts of zero or "
"less."
msgstr ""
":class:`Counter` オブジェクトを組み合わせて多重集合 (1 以上のカウントをもつカ"
"ウンタ) を作るために、いくつかの数学演算が提供されています。足し算と引き算"
"は、対応する要素を足したり引いたりすることによってカウンタを組み合わせます。"
"共通部分と合併集合は、対応するカウントの最大値と最小値を返します。それぞれの"
"演算はカウントに符号がついた入力を受け付けますが、カウントが 0 以下である結果"
"は出力から除かれます。"
#: ../../library/collections.rst:172
msgid ""
"Counters were primarily designed to work with positive integers to represent "
"running counts; however, care was taken to not unnecessarily preclude use "
"cases needing other types or negative values. To help with those use cases, "
"this section documents the minimum range and type restrictions."
msgstr ""
"カウンタはもともと、推移するカウントを正の整数で表すために設計されました。し"
"かし、他の型や負の値を必要とするユースケースを不必要に排除することがないよう"
"に配慮されています。このようなユースケースの助けになるように、この節で最低限"
"の範囲と型の制限について記述します。"
#: ../../library/collections.rst:177
msgid ""
"The :class:`Counter` class itself is a dictionary subclass with no "
"restrictions on its keys and values. The values are intended to be numbers "
"representing counts, but you *could* store anything in the value field."
msgstr ""
":class:`Counter` クラス自体は辞書のサブクラスで、キーと値に制限はありません。"
"値はカウントを表す数であることを意図していますが、値フィールドに任意のものを"
"保存 *できます* 。"
#: ../../library/collections.rst:181
msgid ""
"The :meth:`most_common` method requires only that the values be orderable."
msgstr ""
":meth:`most_common` メソッドが要求するのは、値が順序付け可能なことだけです。"
#: ../../library/collections.rst:183
msgid ""
"For in-place operations such as ``c[key] += 1``, the value type need only "
"support addition and subtraction. So fractions, floats, and decimals would "
"work and negative values are supported. The same is also true for :meth:"
"`update` and :meth:`subtract` which allow negative and zero values for both "
"inputs and outputs."
msgstr ""
"``c[key] += 1`` のようなインプレース演算では、値の型に必要なのは足し算と引き"
"算ができることだけです。よって分数、浮動小数点数、小数も使え、負の値がサポー"
"トされています。これと同じことが、負や 0 の値を入力と出力に許す :meth:"
"`update` と :meth:`subtract` メソッドにも言えます。"
#: ../../library/collections.rst:189
msgid ""
"The multiset methods are designed only for use cases with positive values. "
"The inputs may be negative or zero, but only outputs with positive values "
"are created. There are no type restrictions, but the value type needs to "
"support addition, subtraction, and comparison."
msgstr ""
"多重集合メソッドは正の値を扱うユースケースに対してのみ設計されています。入力"
"は負や 0 に出来ますが、正の値の出力のみが生成されます。型の制限はありません"
"が、値の型は足し算、引き算、比較をサポートしている必要があります。"
#: ../../library/collections.rst:194
msgid ""
"The :meth:`elements` method requires integer counts. It ignores zero and "
"negative counts."
msgstr ""
":meth:`elements` メソッドは整数のカウントを要求します。これは 0 と負のカウン"
"トを無視します。"
#: ../../library/collections.rst:199
msgid ""
"`Counter class <https://code.activestate.com/recipes/576611/>`_ adapted for "
"Python 2.5 and an early `Bag recipe <https://code.activestate.com/"
"recipes/259174/>`_ for Python 2.4."
msgstr ""
"Python 2.5 向けの `Counter class <https://code.activestate.com/"
"recipes/576611/>`_ と、それより前の Python 2.4 向けの `Bag recipe <https://"
"code.activestate.com/recipes/259174/>`_ 。"
#: ../../library/collections.rst:203
msgid ""
"`Bag class <https://www.gnu.org/software/smalltalk/manual-base/html_node/Bag."
"html>`_ in Smalltalk."
msgstr ""
"Smalltalk の `Bag class <https://www.gnu.org/software/smalltalk/manual-base/"
"html_node/Bag.html>`_ 。"
#: ../../library/collections.rst:206
msgid ""
"Wikipedia entry for `Multisets <https://en.wikipedia.org/wiki/Multiset>`_."
msgstr ""
"Wikipedia の `Multisets <https://en.wikipedia.org/wiki/Multiset>`_ の項目。"
#: ../../library/collections.rst:208
msgid ""
"`C++ multisets <http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/"
"Catalog0380__set-multiset.htm>`_ tutorial with examples."
msgstr ""
"`C++ multisets <http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/"
"Catalog0380__set-multiset.htm>`_ の例を交えたチュートリアル。"
#: ../../library/collections.rst:211
msgid ""
"For mathematical operations on multisets and their use cases, see *Knuth, "
"Donald. The Art of Computer Programming Volume II, Section 4.6.3, Exercise "
"19*."
msgstr ""
"数学的な多重集合の演算とそのユースケースは、 *Knuth, Donald. The Art of "
"Computer Programming Volume II, Section 4.6.3, Exercise 19* を参照してくださ"
"い。"
#: ../../library/collections.rst:215
msgid ""
"To enumerate all distinct multisets of a given size over a given set of "
"elements, see :func:`itertools.combinations_with_replacement`."
msgstr ""
"与えられた要素の集まりから与えられた大きさの別個の多重集合をすべて数え上げる"
"には、 :func:`itertools.combinations_with_replacement` を参照してください。"
#: ../../library/collections.rst:218
msgid ""
"map(Counter, combinations_with_replacement('ABC', 2)) --> AA AB AC BB BC CC"
msgstr ""
"map(Counter, combinations_with_replacement('ABC', 2)) --> AA AB AC BB BC CC"
#: ../../library/collections.rst:222
msgid ":class:`deque` objects"
msgstr ":class:`deque` オブジェクト"
#: ../../library/collections.rst:226
msgid ""
"Returns a new deque object initialized left-to-right (using :meth:`append`) "
"with data from *iterable*. If *iterable* is not specified, the new deque is "
"empty."
msgstr ""
"*iterable* で与えられるデータから、新しい deque オブジェクトを (:meth:"
"`append` をつかって) 左から右に初期化して返します。 *iterable* が指定されない"
"場合、新しい deque オブジェクトは空になります。"
#: ../../library/collections.rst:229
msgid ""
"Deques are a generalization of stacks and queues (the name is pronounced "
"\"deck\" and is short for \"double-ended queue\"). Deques support thread-"
"safe, memory efficient appends and pops from either side of the deque with "
"approximately the same O(1) performance in either direction."
msgstr ""
"Deque とは、スタックとキューを一般化したものです (この名前は「デック」と発音"
"され、これは「double-ended queue」の省略形です)。Deque はどちらの側からも "
"append と pop が可能で、スレッドセーフでメモリ効率がよく、どちらの方向からも"
"およそ ``O(1)`` のパフォーマンスで実行できます。"
#: ../../library/collections.rst:234
msgid ""
"Though :class:`list` objects support similar operations, they are optimized "
"for fast fixed-length operations and incur O(n) memory movement costs for "
"``pop(0)`` and ``insert(0, v)`` operations which change both the size and "
"position of the underlying data representation."
msgstr ""
":class:`list` オブジェクトでも同様の操作を実現できますが、これは高速な固定長"
"の操作に特化されており、内部のデータ表現形式のサイズと位置を両方変えるような "
"``pop(0)`` や ``insert(0, v)`` などの操作ではメモリ移動のために ``O(n)`` のコ"
"ストを必要とします。"
#: ../../library/collections.rst:241
msgid ""
"If *maxlen* is not specified or is ``None``, deques may grow to an arbitrary "
"length. Otherwise, the deque is bounded to the specified maximum length. "
"Once a bounded length deque is full, when new items are added, a "
"corresponding number of items are discarded from the opposite end. Bounded "
"length deques provide functionality similar to the ``tail`` filter in Unix. "
"They are also useful for tracking transactions and other pools of data where "
"only the most recent activity is of interest."
msgstr ""
"*maxlen* が指定され無かったり ``None``* だった場合、 deque は任意のサイズまで"
"大きくなります。\n"
"そうでない場合、 deque のサイズは指定された最大長に制限されます。\n"
"長さが制限された deque がいっぱいになると、新しい要素を追加するときに追加した"
"要素数分だけ追加したのと反対側から要素が捨てられます。\n"
"長さが制限された deque は Unix における ``tail`` フィルタと似た機能を提供しま"
"す。\n"
"トランザクションの tracking や最近使った要素だけを残したいデータプール (pool "
"of data) などにも便利です。"
#: ../../library/collections.rst:249
msgid "Added *maxlen* parameter."
msgstr "*maxlen* パラメータを追加しました。"
#: ../../library/collections.rst:252
msgid "Deque objects support the following methods:"
msgstr "Deque オブジェクトは以下のようなメソッドをサポートしています:"
#: ../../library/collections.rst:257
msgid "Add *x* to the right side of the deque."
msgstr "*x* を deque の右側につけ加えます。"
#: ../../library/collections.rst:262
msgid "Add *x* to the left side of the deque."
msgstr "*x* を deque の左側につけ加えます。"
#: ../../library/collections.rst:267
msgid "Remove all elements from the deque leaving it with length 0."
msgstr "deque からすべての要素を削除し、長さを 0 にします。"
#: ../../library/collections.rst:272
msgid "Count the number of deque elements equal to *x*."
msgstr "*x* に等しい deque の要素を数え上げます。"
#: ../../library/collections.rst:278
msgid ""
"Extend the right side of the deque by appending elements from the iterable "
"argument."
msgstr ""
"イテレータ化可能な引数 iterable から得られる要素を deque の右側に追加し拡張し"
"ます。"
#: ../../library/collections.rst:284
msgid ""
"Extend the left side of the deque by appending elements from *iterable*. "
"Note, the series of left appends results in reversing the order of elements "
"in the iterable argument."
msgstr ""
"イテレータ化可能な引数 iterable から得られる要素を deque の左側に追加し拡張し"
"ます。注意: 左から追加した結果は、イテレータ引数の順序とは逆になります。"
#: ../../library/collections.rst:291
msgid ""
"Remove and return an element from the right side of the deque. If no "
"elements are present, raises an :exc:`IndexError`."
msgstr ""
"deque の右側から要素をひとつ削除し、その要素を返します。要素がひとつも存在し"
"ない場合は :exc:`IndexError` を発生させます。"
#: ../../library/collections.rst:297
msgid ""
"Remove and return an element from the left side of the deque. If no elements "
"are present, raises an :exc:`IndexError`."
msgstr ""
"deque の左側から要素をひとつ削除し、その要素を返します。要素がひとつも存在し"
"ない場合は :exc:`IndexError` を発生させます。"
#: ../../library/collections.rst:303
msgid ""
"Remove the first occurrence of *value*. If not found, raises a :exc:"
"`ValueError`."
msgstr ""
"*value* の最初に現れるものを削除します。要素が見付からないない場合は :exc:"
"`ValueError` を送出します。"
#: ../../library/collections.rst:310
msgid "Reverse the elements of the deque in-place and then return ``None``."
msgstr "deque の要素をインプレースに逆転し、 ``None`` を返します。"
#: ../../library/collections.rst:316
msgid ""
"Rotate the deque *n* steps to the right. If *n* is negative, rotate to the "
"left."
msgstr ""
"deque の要素を全体で *n* ステップだけ右にローテートします。*n* が負の値の場合"
"は、左にローテートします。"
#: ../../library/collections.rst:319
msgid ""
"When the deque is not empty, rotating one step to the right is equivalent to "
"``d.appendleft(d.pop())``, and rotating one step to the left is equivalent "
"to ``d.append(d.popleft())``."
msgstr ""
"deque が空でないときは、 deque をひとつ右にローテートすることは ``d."
"appendleft(d.pop())`` と同じで、 deque をひとつ左にローテートすることは ``d."
"append(d.popleft())`` と同じです。"
#: ../../library/collections.rst:324
msgid "Deque objects also provide one read-only attribute:"
msgstr "deque オブジェクトは読み取り専用属性も 1 つ提供しています:"
#: ../../library/collections.rst:328
msgid "Maximum size of a deque or ``None`` if unbounded."
msgstr "deque の最大長で、制限されていなければ ``None`` です。"
#: ../../library/collections.rst:333
msgid ""
"In addition to the above, deques support iteration, pickling, ``len(d)``, "
"``reversed(d)``, ``copy.copy(d)``, ``copy.deepcopy(d)``, membership testing "
"with the :keyword:`in` operator, and subscript references such as "
"``d[-1]``. Indexed access is O(1) at both ends but slows to O(n) in the "
"middle. For fast random access, use lists instead."
msgstr ""
"上記の操作のほかにも、deque は次のような操作をサポートしています: イテレータ"
"化、pickle、 ``len(d)``, ``reversed(d)``, ``copy.copy(d)``, ``copy."
"deepcopy(d)``, :keyword:`in` 演算子による包含検査、そして ``d[-1]`` などの添"
"え字による参照。両端についてインデックスアクセスは O(1) ですが、中央部分につ"
"いては O(n) の遅さです。高速なランダムアクセスが必要ならリストを使ってくださ"
"い。"
#: ../../library/collections.rst:339 ../../library/collections.rst:601
msgid "Example:"
msgstr "例:"
#: ../../library/collections.rst:396
msgid ":class:`deque` Recipes"
msgstr ":class:`deque` のレシピ"
#: ../../library/collections.rst:398
msgid "This section shows various approaches to working with deques."
msgstr "この節では deque をつかったさまざまなアプローチを紹介します。"
#: ../../library/collections.rst:400
msgid ""
"Bounded length deques provide functionality similar to the ``tail`` filter "
"in Unix::"
msgstr ""
"長さが制限された deque は Unix における ``tail`` フィルタに相当する機能を提供"
"します::"
#: ../../library/collections.rst:407
msgid ""
"Another approach to using deques is to maintain a sequence of recently added "
"elements by appending to the right and popping to the left::"
msgstr ""
"別のアプローチとして deque を右に append して左に pop して使うことで追加した"
"要素を維持するのに使えます::"
#: ../../library/collections.rst:422
msgid ""
"The :meth:`rotate` method provides a way to implement :class:`deque` slicing "
"and deletion. For example, a pure Python implementation of ``del d[n]`` "
"relies on the :meth:`rotate` method to position elements to be popped::"
msgstr ""
":meth:`rotate` メソッドのおかげで、 :class:`deque` の一部を切り出したり削除し"
"たりできることになります。たとえば ``del d[n]`` の純粋な Python 実装では pop "
"したい要素まで :meth:`rotate` します ::"
#: ../../library/collections.rst:431
msgid ""
"To implement :class:`deque` slicing, use a similar approach applying :meth:"
"`rotate` to bring a target element to the left side of the deque. Remove old "
"entries with :meth:`popleft`, add new entries with :meth:`extend`, and then "
"reverse the rotation. With minor variations on that approach, it is easy to "
"implement Forth style stack manipulations such as ``dup``, ``drop``, "
"``swap``, ``over``, ``pick``, ``rot``, and ``roll``."
msgstr ""
":class:`deque` の切り出しを実装するのにも、同様のアプローチを使います。まず対"
"象となる要素を :meth:`rotate` によって deque の左端までもってきてから、 :"
"meth:`popleft` をつかって古い要素を消します。そして、 :meth:`extend` で新しい"
"要素を追加したのち、逆のローテートでもとに戻せばよいのです。このアプローチを"
"やや変えたものとして、Forth スタイルのスタック操作、つまり ``dup``, "
"``drop``, ``swap``, ``over``, ``pick``, ``rot``, および ``roll`` を実装するの"
"も簡単です。"
#: ../../library/collections.rst:441
msgid ":class:`defaultdict` objects"
msgstr ":class:`defaultdict` オブジェクト"
#: ../../library/collections.rst:445
msgid ""
"Returns a new dictionary-like object. :class:`defaultdict` is a subclass of "
"the built-in :class:`dict` class. It overrides one method and adds one "
"writable instance variable. The remaining functionality is the same as for "
"the :class:`dict` class and is not documented here."
msgstr ""
"新しいディクショナリ状のオブジェクトを返します。 :class:`defaultdict` は組込"
"みの :class:`dict` のサブクラスです。メソッドをオーバーライドし、書き込み可能"
"なインスタンス変数を1つ追加している以外は :class:`dict` クラスと同じです。同"
"じ部分については以下では省略されています。"
#: ../../library/collections.rst:450
msgid ""
"The first argument provides the initial value for the :attr:"
"`default_factory` attribute; it defaults to ``None``. All remaining "
"arguments are treated the same as if they were passed to the :class:`dict` "
"constructor, including keyword arguments."
msgstr ""
"1つめの引数は :attr:`default_factory` 属性の初期値です。デフォルトは "
"``None`` です。残りの引数はキーワード引数もふくめ、 :class:`dict` のコンスト"
"ラクタにあたえられた場合と同様に扱われます。"
#: ../../library/collections.rst:457
msgid ""
":class:`defaultdict` objects support the following method in addition to the "
"standard :class:`dict` operations:"
msgstr ""
":class:`defaultdict` オブジェクトは標準の :class:`dict` に加えて、以下のメ"
"ソッドを実装しています:"
#: ../../library/collections.rst:462
msgid ""
"If the :attr:`default_factory` attribute is ``None``, this raises a :exc:"
"`KeyError` exception with the *key* as argument."
msgstr ""
"もし :attr:`default_factory` 属性が ``None`` であれば、このメソッドは :exc:"
"`KeyError` 例外を、 *key* を引数として発生させます。"
#: ../../library/collections.rst:465
msgid ""
"If :attr:`default_factory` is not ``None``, it is called without arguments "
"to provide a default value for the given *key*, this value is inserted in "
"the dictionary for the *key*, and returned."
msgstr ""
"もし :attr:`default_factory` 属性が ``None`` でなければ、このメソッドは :"
"attr:`default_factory` を引数なしで呼び出し、あたえられた *key* に対応するデ"
"フォルト値を作ります。そしてこの値を *key* に対応する値を辞書に登録して返りま"
"す。"
#: ../../library/collections.rst:469
msgid ""
"If calling :attr:`default_factory` raises an exception this exception is "
"propagated unchanged."
msgstr ""
"もし :attr:`default_factory` の呼出が例外を発生させた場合には、変更せずそのま"
"ま例外を投げます。"
#: ../../library/collections.rst:472
msgid ""
"This method is called by the :meth:`__getitem__` method of the :class:`dict` "
"class when the requested key is not found; whatever it returns or raises is "
"then returned or raised by :meth:`__getitem__`."
msgstr ""
"このメソッドは :class:`dict` クラスの :meth:`__getitem__` メソッドで、キーが"
"存在しなかった場合によびだされます。値を返すか例外を発生させるのどちらにして"
"も、 :meth:`__getitem__` からもそのまま値が返るか例外が発生します。"
#: ../../library/collections.rst:476
msgid ""
"Note that :meth:`__missing__` is *not* called for any operations besides :"
"meth:`__getitem__`. This means that :meth:`get` will, like normal "
"dictionaries, return ``None`` as a default rather than using :attr:"
"`default_factory`."
msgstr ""
"なお、 :meth:`__missing__` は :meth:`__getitem__` 以外のいかなる演算に対して"
"も呼び出され *ません* 。よって :meth:`get` は、普通の辞書と同様に、 :attr:"
"`default_factory` を使うのではなくデフォルトとして ``None`` を返します。"
#: ../../library/collections.rst:482
msgid ":class:`defaultdict` objects support the following instance variable:"
msgstr ""
":class:`defaultdict` オブジェクトは以下のインスタンス変数をサポートしていま"
"す:"
#: ../../library/collections.rst:487
msgid ""
"This attribute is used by the :meth:`__missing__` method; it is initialized "
"from the first argument to the constructor, if present, or to ``None``, if "
"absent."
msgstr ""
"この属性は :meth:`__missing__` メソッドによって使われます。これは存在すればコ"
"ンストラクタの第1引数によって初期化され、そうでなければ ``None`` になります。"
#: ../../library/collections.rst:493
msgid ":class:`defaultdict` Examples"
msgstr ":class:`defaultdict` の使用例"
#: ../../library/collections.rst:495
msgid ""
"Using :class:`list` as the :attr:`default_factory`, it is easy to group a "
"sequence of key-value pairs into a dictionary of lists:"
msgstr ""
":class:`list` を :attr:`default_factory` とすることで、キー=値ペアのシーケン"
"スをリストの辞書へ簡単にグループ化できます。:"
#: ../../library/collections.rst:506
msgid ""
"When each key is encountered for the first time, it is not already in the "
"mapping; so an entry is automatically created using the :attr:"
"`default_factory` function which returns an empty :class:`list`. The :meth:"
"`list.append` operation then attaches the value to the new list. When keys "
"are encountered again, the look-up proceeds normally (returning the list for "
"that key) and the :meth:`list.append` operation adds another value to the "
"list. This technique is simpler and faster than an equivalent technique "
"using :meth:`dict.setdefault`:"
msgstr ""
"それぞれのキーが最初に登場したとき、マッピングにはまだ存在しません。そのため"
"エントリは :attr:`default_factory` 関数が返す空の :class:`list` を使って自動"
"的に作成されます。 :meth:`list.append` 操作は新しいリストに紐付けられます。"
"キーが再度出現下場合には、通常の参照動作が行われます(そのキーに対応するリスト"
"が返ります)。そして :meth:`list.append` 操作で別の値をリストに追加します。こ"
"のテクニックは :meth:`dict.setdefault` を使った等価なものよりシンプルで速いで"
"す:"
#: ../../library/collections.rst:521
msgid ""
"Setting the :attr:`default_factory` to :class:`int` makes the :class:"
"`defaultdict` useful for counting (like a bag or multiset in other "
"languages):"
msgstr ""
":attr:`default_factory` を :class:`int` にすると、 :class:`defaultdict` を(他"
"の言語の bag や multisetのように)要素の数え上げに便利に使うことができます:"
#: ../../library/collections.rst:533
msgid ""
"When a letter is first encountered, it is missing from the mapping, so the :"
"attr:`default_factory` function calls :func:`int` to supply a default count "
"of zero. The increment operation then builds up the count for each letter."
msgstr ""
"最初に文字が出現したときは、マッピングが存在しないので :attr:"
"`default_factory` 関数が :func:`int` を呼んでデフォルトのカウント0を生成しま"
"す。インクリメント操作が各文字を数え上げます。"
#: ../../library/collections.rst:537
msgid ""
"The function :func:`int` which always returns zero is just a special case of "
"constant functions. A faster and more flexible way to create constant "
"functions is to use :func:`itertools.repeat` which can supply any constant "
"value (not just zero):"
msgstr ""
"常に0を返す :func:`int` は特殊な関数でした。定数を生成するより速くて柔軟な方"
"法は、 0に限らず何でも定数を生成する :func:`itertools.repeat` を使うことで"
"す。"
#: ../../library/collections.rst:549
msgid ""
"Setting the :attr:`default_factory` to :class:`set` makes the :class:"
"`defaultdict` useful for building a dictionary of sets:"
msgstr ""
":attr:`default_factory` を :class:`set` に設定することで、 :class:"
"`defaultdict` をセットの辞書を作るために利用することができます:"
#: ../../library/collections.rst:562
msgid ":func:`namedtuple` Factory Function for Tuples with Named Fields"
msgstr ":func:`namedtuple` 名前付きフィールドを持つタプルのファクトリ関数"
#: ../../library/collections.rst:564
msgid ""
"Named tuples assign meaning to each position in a tuple and allow for more "
"readable, self-documenting code. They can be used wherever regular tuples "
"are used, and they add the ability to access fields by name instead of "
"position index."
msgstr ""
"名前付きタプルはタプルの中の場所に意味を割り当てて、より読みやすく自己解説的"
"なコードを書けるようにします。通常のタプルが利用されていた場所で利用でき、場"
"所に対するインデックスの代わりに名前を使ってフィールドにアクセスできます。"
#: ../../library/collections.rst:570
msgid ""
"Returns a new tuple subclass named *typename*. The new subclass is used to "
"create tuple-like objects that have fields accessible by attribute lookup as "
"well as being indexable and iterable. Instances of the subclass also have a "
"helpful docstring (with typename and field_names) and a helpful :meth:"
"`__repr__` method which lists the tuple contents in a ``name=value`` format."
msgstr ""
"*typename* という名前の tuple の新しいサブクラスを返します。新しいサブクラス"
"は、 tuple に似ているけれどもインデックスやイテレータだけでなく属性名によるア"
"クセスもできるオブジェクトを作るのに使います。このサブクラスのインスタンス"
"は、わかりやすい docstring (型名と属性名が入っています) や、 tuple の内容を "
"``name=value`` という形のリストで返す使いやすい :meth:`__repr__` も持っていま"
"す。"
#: ../../library/collections.rst:576
msgid ""
"The *field_names* are a sequence of strings such as ``['x', 'y']``. "
"Alternatively, *field_names* can be a single string with each fieldname "
"separated by whitespace and/or commas, for example ``'x y'`` or ``'x, y'``."
msgstr ""
"*field_names* は ``['x', 'y']`` のような文字列のシーケンスです。 "
"*field_names* には、代わりに各属性名を空白文字 (whitespace) および/またはカン"
"マ (,) で区切った文字列を渡すこともできます。例えば、 ``'x y'`` や ``'x, "
"y'`` です。"
#: ../../library/collections.rst:580
msgid ""
"Any valid Python identifier may be used for a fieldname except for names "
"starting with an underscore. Valid identifiers consist of letters, digits, "
"and underscores but do not start with a digit or underscore and cannot be a :"
"mod:`keyword` such as *class*, *for*, *return*, *global*, *pass*, *print*, "
"or *raise*."
msgstr ""
"アンダースコア (_) で始まる名前を除いて、 Python の正しい識別子 (identifier) "
"ならなんでも属性名として使うことができます。正しい識別子とはアルファベット"
"(letters), 数字(digits), アンダースコア(_) を含みますが、数字やアンダースコア"
"で始まる名前や、 *class*, *for*, *return*, *global*, *pass*, *print*, "
"*raise* などといった :mod:`keyword` は使えません。"
#: ../../library/collections.rst:586
msgid ""
"If *rename* is true, invalid fieldnames are automatically replaced with "
"positional names. For example, ``['abc', 'def', 'ghi', 'abc']`` is "
"converted to ``['abc', '_1', 'ghi', '_3']``, eliminating the keyword ``def`` "
"and the duplicate fieldname ``abc``."
msgstr ""
"*rename* が真なら、不適切なフィールド名は自動的に位置引数に置き換えられます。"
"例えば ``['abc', 'def', 'ghi', 'abc']`` は、予約語 ``def`` と重複している"
"フィールド名 ``abc`` が除去され、 ``['abc', '_1', 'ghi', '_3']`` に変換されま"
"す。"
#: ../../library/collections.rst:591
msgid ""
"If *verbose* is true, the class definition is printed just before being "
"built."
msgstr "*verbose* が真なら、クラスを作る直前にクラス定義が表示されます。"
#: ../../library/collections.rst:593
msgid ""
"Named tuple instances do not have per-instance dictionaries, so they are "
"lightweight and require no more memory than regular tuples."
msgstr ""
"名前付きタプルのインスタンスはインスタンスごとの辞書を持たないので、軽量で、"
"普通のタプル以上のメモリを使用しません。"
#: ../../library/collections.rst:598
msgid "added support for *rename*."
msgstr "*rename* のサポートを追加しました。"
#: ../../library/collections.rst:668
msgid ""
"Named tuples are especially useful for assigning field names to result "
"tuples returned by the :mod:`csv` or :mod:`sqlite3` modules::"
msgstr ""
"名前付きタプルは :mod:`csv` や :mod:`sqlite3` モジュールが返すタプルのフィー"
"ルドに名前を付けるときにとても便利です::"
#: ../../library/collections.rst:684
msgid ""
"In addition to the methods inherited from tuples, named tuples support three "
"additional methods and one attribute. To prevent conflicts with field "
"names, the method and attribute names start with an underscore."
msgstr ""
"タプルから継承したメソッドに加えて、名前付きタプルは3つの追加メソッドと一つの"
"属性をサポートしています。フィールド名との衝突を避けるためにメソッド名と属性"
"名はアンダースコアで始まります。"
#: ../../library/collections.rst:690
msgid ""
"Class method that makes a new instance from an existing sequence or iterable."
msgstr ""
"既存の sequence や Iterable から新しいインスタンスを作るクラスメソッド."
#: ../../library/collections.rst:700
msgid ""
"Return a new :class:`OrderedDict` which maps field names to their "
"corresponding values::"
msgstr ""
"フィールド名を対応する値にマッピングする新しい順序付き辞書 (:class:"
"`OrderedDict`) を返します::"
#: ../../library/collections.rst:707
msgid "Returns an :class:`OrderedDict` instead of a regular :class:`dict`."
msgstr ""
"通常の :class:`dict` の代わりに :class:`OrderedDict` を返すようになりました。"
#: ../../library/collections.rst:712
msgid ""
"Return a new instance of the named tuple replacing specified fields with new "
"values::"
msgstr ""
"指定されたフィールドを新しい値で置き換えた、新しい名前付きタプルを作って返し"
"ます::"
#: ../../library/collections.rst:724
msgid ""
"Tuple of strings listing the field names. Useful for introspection and for "
"creating new named tuple types from existing named tuples."
msgstr ""
"フィールド名をリストにしたタプル. 内省 (introspection) したり、既存の名前付き"
"タプルをもとに新しい名前つきタプルを作成する時に便利です。"
#: ../../library/collections.rst:737
msgid ""
"To retrieve a field whose name is stored in a string, use the :func:"
"`getattr` function:"
msgstr ""
"文字列に格納された名前を使って名前つきタプルから値を取得するには :func:"
"`getattr` 関数を使います:"
#: ../../library/collections.rst:743
msgid ""
"To convert a dictionary to a named tuple, use the double-star-operator (as "
"described in :ref:`tut-unpacking-arguments`):"
msgstr ""
"辞書を名前付きタプルに変換するには、 ``**`` 演算子 (double-star-operator, :"
"ref:`tut-unpacking-arguments` で説明しています) を使います。:"
#: ../../library/collections.rst:750
msgid ""
"Since a named tuple is a regular Python class, it is easy to add or change "
"functionality with a subclass. Here is how to add a calculated field and a "
"fixed-width print format:"
msgstr ""
"名前付きタプルは通常の Python クラスなので、継承して機能を追加したり変更する"
"のは容易です。次の例では計算済みフィールドと固定幅の print format を追加して"
"います:"
#: ../../library/collections.rst:767
msgid ""
"The subclass shown above sets ``__slots__`` to an empty tuple. This helps "
"keep memory requirements low by preventing the creation of instance "
"dictionaries."
msgstr ""
"このサブクラスは ``__slots__`` に空のタプルをセットしています。これにより、イ"
"ンスタンス辞書の作成を抑制してメモリ使用量を低く保つのに役立ちます。"
#: ../../library/collections.rst:770
msgid ""
"Subclassing is not useful for adding new, stored fields. Instead, simply "
"create a new named tuple type from the :attr:`_fields` attribute:"
msgstr ""
"サブクラス化は新しいフィールドを追加するのには適していません。代わりに、新し"
"い名前付きタプルを :attr:`_fields` 属性を元に作成してください:"
#: ../../library/collections.rst:775
msgid ""
"Default values can be implemented by using :meth:`_replace` to customize a "
"prototype instance:"
msgstr ""
":meth:`_replace` でプロトタイプのインスタンスをカスタマイズする方法で、デフォ"
"ルト値を実現できます:"
#: ../../library/collections.rst:782
msgid ""
"Enumerated constants can be implemented with named tuples, but it is simpler "
"and more efficient to use a simple class declaration:"
msgstr ""
"列挙型定数は名前付きタプルでも実装できますが、クラス定義を利用した方がシンプ"
"ルで効率的です:"
#: ../../library/collections.rst:793
msgid ""
"`Named tuple recipe <https://code.activestate.com/recipes/500261/>`_ adapted "
"for Python 2.4."
msgstr ""
"Python 2.4 向けの `Named tuple recipe <https://code.activestate.com/"
"recipes/500261/>`_ 。"
#: ../../library/collections.rst:798
msgid ":class:`OrderedDict` objects"
msgstr ":class:`OrderedDict` オブジェクト"
#: ../../library/collections.rst:800
msgid ""
"Ordered dictionaries are just like regular dictionaries but they remember "
"the order that items were inserted. When iterating over an ordered "
"dictionary, the items are returned in the order their keys were first added."
msgstr ""
"順序付き辞書 (ordered dictionary) は、ちょうど普通の辞書と同じようなものです"
"が、項目が挿入された順序を記憶します。順序付き辞書に渡ってイテレートすると"
"き、項目はそのキーが最初に追加された順序で返されます。"
#: ../../library/collections.rst:806
msgid ""
"Return an instance of a dict subclass, supporting the usual :class:`dict` "
"methods. An *OrderedDict* is a dict that remembers the order that keys were "
"first inserted. If a new entry overwrites an existing entry, the original "
"insertion position is left unchanged. Deleting an entry and reinserting it "
"will move it to the end."
msgstr ""
"通常の :class:`dict` メソッドをサポートする、辞書のサブクラスのインスタンスを"
"返します。 *OrderedDict* は、キーが最初に追加された順序を記憶します。新しい項"
"目が既存の項目を上書きしても、元の挿入位置は変わらないままです。項目を削除し"
"て再挿入するとそれが最後に移動します。"
#: ../../library/collections.rst:816
msgid ""
"The :meth:`popitem` method for ordered dictionaries returns and removes a "
"(key, value) pair. The pairs are returned in LIFO order if *last* is true "
"or FIFO order if false."
msgstr ""
"順序付き辞書の :meth:`popitem` メソッドは、(key, value) 対を返して消去しま"
"す。この対は *last* が真なら後入先出で、偽なら先入先出で返されます。"
#: ../../library/collections.rst:820
msgid ""
"In addition to the usual mapping methods, ordered dictionaries also support "
"reverse iteration using :func:`reversed`."
msgstr ""
"通常のマッピングのメソッドに加え、順序付き辞書は :func:`reversed` による逆順"
"の反復もサポートしています。"
#: ../../library/collections.rst:823
msgid ""
"Equality tests between :class:`OrderedDict` objects are order-sensitive and "
"are implemented as ``list(od1.items())==list(od2.items())``. Equality tests "
"between :class:`OrderedDict` objects and other :class:`Mapping` objects are "
"order-insensitive like regular dictionaries. This allows :class:"
"`OrderedDict` objects to be substituted anywhere a regular dictionary is "
"used."
msgstr ""
":class:`OrderedDict` 間の等価判定は順序が影響し、 ``list(od1."
"items())==list(od2.items())`` のように実装されます。 :class:`OrderedDict` オ"
"ブジェクトと他のマッピング (:class:`Mapping`) オブジェクトの等価判定は、順序"
"に影響されず、通常の辞書と同様です。これによって、 :class:`OrderedDict` オブ"
"ジェクトは通常の辞書が使われるところならどこでも使用できます。"
#: ../../library/collections.rst:830
msgid ""