-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathcollections.po
More file actions
2397 lines (2153 loc) · 107 KB
/
collections.po
File metadata and controls
2397 lines (2153 loc) · 107 KB
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) 2001-2017, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-11 20:40+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Dong-gweon Oh <flowdas@gmail.com>\n"
"Language-Team: Korean (https://python.flowdas.com)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.17.0\n"
#: ../../library/collections.rst:2
msgid ":mod:`!collections` --- Container datatypes"
msgstr ":mod:`!collections` --- 컨테이너 데이터형"
#: ../../library/collections.rst:10
msgid "**Source code:** :source:`Lib/collections/__init__.py`"
msgstr "**소스 코드:** :source:`Lib/collections/__init__.py`"
#: ../../library/collections.rst:20
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 ""
"이 모듈은 파이썬의 범용 내장 컨테이너 :class:`dict`, :class:`list`, :class:`set` 및 "
":class:`tuple`\\에 대한 대안을 제공하는 특수 컨테이너 데이터형을 구현합니다."
#: ../../library/collections.rst:25
msgid ":func:`namedtuple`"
msgstr ":func:`namedtuple`"
#: ../../library/collections.rst:25
msgid "factory function for creating tuple subclasses with named fields"
msgstr "이름 붙은 필드를 갖는 튜플 서브 클래스를 만들기 위한 팩토리 함수"
#: ../../library/collections.rst:26
msgid ":class:`deque`"
msgstr ":class:`deque`"
#: ../../library/collections.rst:26
msgid "list-like container with fast appends and pops on either end"
msgstr "양쪽 끝에서 빠르게 추가와 삭제를 할 수 있는 리스트류 컨테이너"
#: ../../library/collections.rst:27
msgid ":class:`ChainMap`"
msgstr ":class:`ChainMap`"
#: ../../library/collections.rst:27
msgid "dict-like class for creating a single view of multiple mappings"
msgstr "여러 매핑의 단일 뷰를 만드는 딕셔너리류 클래스"
#: ../../library/collections.rst:28
msgid ":class:`Counter`"
msgstr ":class:`Counter`"
#: ../../library/collections.rst:28
msgid "dict subclass for counting :term:`hashable` objects"
msgstr ":term:`해시 가능 <hashable>` 객체를 세는 데 사용하는 딕셔너리 서브 클래스"
#: ../../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:31
msgid ":class:`UserDict`"
msgstr ":class:`UserDict`"
#: ../../library/collections.rst:31
msgid "wrapper around dictionary objects for easier dict subclassing"
msgstr "더 쉬운 딕셔너리 서브 클래싱을 위해 딕셔너리 객체를 감싸는 래퍼"
#: ../../library/collections.rst:32
msgid ":class:`UserList`"
msgstr ":class:`UserList`"
#: ../../library/collections.rst:32
msgid "wrapper around list objects for easier list subclassing"
msgstr "더 쉬운 리스트 서브 클래싱을 위해 리스트 객체를 감싸는 래퍼"
#: ../../library/collections.rst:33
msgid ":class:`UserString`"
msgstr ":class:`UserString`"
#: ../../library/collections.rst:33
msgid "wrapper around string objects for easier string subclassing"
msgstr "더 쉬운 문자열 서브 클래싱을 위해 문자열 객체를 감싸는 래퍼"
#: ../../library/collections.rst:38
msgid ":class:`ChainMap` objects"
msgstr ":class:`ChainMap` 객체"
#: ../../library/collections.rst:42
msgid ""
"A :class:`ChainMap` class is provided for quickly linking a number of "
"mappings so they can be treated as a single unit. It is often much "
"faster than creating a new dictionary and running multiple "
":meth:`~dict.update` calls."
msgstr ""
":class:`ChainMap` 클래스는 여러 매핑을 빠르게 연결하여 단일 단위로 취급 할 수 있도록 합니다. 종종 새로운 "
"딕셔너리를 만들고 여러 :meth:`~dict.update` 호출을 실행하는 것보다 훨씬 빠릅니다."
#: ../../library/collections.rst:46
msgid ""
"The class can be used to simulate nested scopes and is useful in "
"templating."
msgstr "이 클래스는 중첩된 스코프를 시뮬레이션하는 데 사용할 수 있으며 템플릿에 유용합니다."
#: ../../library/collections.rst:50
msgid ""
"A :class:`ChainMap` groups multiple dicts or other mappings together to "
"create a single, updateable view. If no *maps* are specified, a single "
"empty dictionary is provided so that a new chain always has at least one "
"mapping."
msgstr ""
":class:`ChainMap`\\은 여러 딕셔너리나 다른 매핑을 함께 묶어 갱신 가능한 단일 뷰를 만듭니다. *maps*\\가 "
"지정되지 않으면, 새 체인에 항상 하나 이상의 매핑이 있도록, 빈 딕셔너리 하나가 제공됩니다."
#: ../../library/collections.rst:54
msgid ""
"The underlying mappings are stored in a list. That list is public and "
"can be accessed or updated using the *maps* attribute. There is no other"
" state."
msgstr ""
"하부 매핑은 리스트에 저장됩니다. 이 리스트는 공개이며 *maps* 어트리뷰트를 사용하여 액세스하거나 갱신할 수 있습니다. 다른 "
"상태는 없습니다."
#: ../../library/collections.rst:57
msgid ""
"Lookups search the underlying mappings successively until a key is found."
" In contrast, writes, updates, and deletions only operate on the first "
"mapping."
msgstr "조회는 키를 찾을 때까지 하부 매핑을 검색합니다. 반면에, 쓰기, 갱신 및 삭제는 첫 번째 매핑에만 작동합니다."
#: ../../library/collections.rst:60
msgid ""
"A :class:`ChainMap` incorporates the underlying mappings by reference. "
"So, if one of the underlying mappings gets updated, those changes will be"
" reflected in :class:`ChainMap`."
msgstr ""
":class:`ChainMap`\\은 하부 매핑을 참조로 통합합니다. 따라서 하부 매핑 중 하나가 갱신되면 해당 변경 사항이 "
":class:`ChainMap`\\에 반영됩니다."
#: ../../library/collections.rst:64
msgid ""
"All of the usual dictionary methods are supported. In addition, there is"
" a *maps* attribute, a method for creating new subcontexts, and a "
"property for accessing all but the first mapping:"
msgstr ""
"일반적인 딕셔너리 메서드가 모두 지원됩니다. 또한, *maps* 어트리뷰트, 새 서브 컨텍스트를 만드는 메서드 및 첫 번째 매핑을 "
"제외한 모든 것에 액세스하는 프로퍼티가 있습니다:"
#: ../../library/collections.rst:70
msgid ""
"A user updateable list of mappings. The list is ordered from first-"
"searched to last-searched. It is the only stored state and can be "
"modified to change which mappings are searched. The list should always "
"contain at least one mapping."
msgstr ""
"사용자 갱신 가능한 매핑 리스트. 리스트는 먼저 검색되는 것에서 나중에 검색되는 순서를 따릅니다. 저장된 유일한 상태이며 검색할 "
"매핑을 변경하도록 수정할 수 있습니다. 리스트는 항상 하나 이상의 매핑이 포함되어야 합니다."
#: ../../library/collections.rst:77
#, python-brace-format
msgid ""
"Returns a new :class:`ChainMap` containing a new map followed by all of "
"the maps in the current instance. If ``m`` is specified, it becomes the "
"new map at the front of the list of mappings; if not specified, an empty "
"dict is used, so that a call to ``d.new_child()`` is equivalent to: "
"``ChainMap({}, *d.maps)``. If any keyword arguments are specified, they "
"update passed map or new empty dict. This method is used for creating "
"subcontexts that can be updated without altering values in any of the "
"parent mappings."
msgstr ""
"새 맵과 그 뒤로 현재 인스턴스의 모든 맵을 포함하는 새 :class:`ChainMap`\\을 반환합니다. ``m``\\이 "
"지정되면, 매핑 리스트의 맨 앞에 놓이는 새 맵이 됩니다. 지정하지 않으면, 빈 딕셔너리가 사용되므로 "
"``d.new_child()`` 호출은 ``ChainMap({}, *d.maps)``\\과 동등합니다. 키워드 인자가 지정되면, "
"전달된 맵이나 새로운 빈 딕셔너리를 갱신합니다. 이 메서드는 어떤 부모 매핑에 있는 값도 변경하지 않으면서 갱신할 수 있는 서브 "
"컨텍스트를 만드는 데 사용됩니다."
#: ../../library/collections.rst:86
msgid "The optional ``m`` parameter was added."
msgstr "선택적 ``m`` 매개 변수가 추가되었습니다."
#: ../../library/collections.rst:89
msgid "Keyword arguments support was added."
msgstr ""
#: ../../library/collections.rst:94
msgid ""
"Property returning a new :class:`ChainMap` containing all of the maps in "
"the current instance except the first one. This is useful for skipping "
"the first map in the search. Use cases are similar to those for the "
":keyword:`nonlocal` keyword used in :term:`nested scopes <nested scope>`."
" The use cases also parallel those for the built-in :func:`super` "
"function. A reference to ``d.parents`` is equivalent to: "
"``ChainMap(*d.maps[1:])``."
msgstr ""
"첫 번째 맵을 제외하고 현재 인스턴스의 모든 맵을 포함하는 새 :class:`ChainMap`\\을 반환하는 프로퍼티. 검색에서 첫"
" 번째 맵을 건너뛰려고 할 때 유용합니다. 사용 사례는 :term:`중첩된 스코프 <nested scope>`\\에서 사용되는 "
":keyword:`nonlocal` 키워드와 유사합니다. 사용 사례는 내장 :func:`super` 함수와도 유사합니다. "
"``d.parents``\\에 대한 참조는 ``ChainMap(*d.maps[1:])``\\과 동등합니다."
#: ../../library/collections.rst:102
msgid ""
"Note, the iteration order of a :class:`ChainMap` is determined by "
"scanning the mappings last to first::"
msgstr ":class:`ChainMap`\\의 이터레이션 순서는 매핑을 마지막에서 첫 번째 방향으로 스캔하여 결정됩니다::"
#: ../../library/collections.rst:105
#, python-brace-format
msgid ""
">>> baseline = {'music': 'bach', 'art': 'rembrandt'}\n"
">>> adjustments = {'art': 'van gogh', 'opera': 'carmen'}\n"
">>> list(ChainMap(adjustments, baseline))\n"
"['music', 'art', 'opera']"
msgstr ""
">>> baseline = {'music': 'bach', 'art': 'rembrandt'}\n"
">>> adjustments = {'art': 'van gogh', 'opera': 'carmen'}\n"
">>> list(ChainMap(adjustments, baseline))\n"
"['music', 'art', 'opera']"
#: ../../library/collections.rst:110
msgid ""
"This gives the same ordering as a series of :meth:`dict.update` calls "
"starting with the last mapping::"
msgstr "이것은 마지막 매핑에서 시작하는 일련의 :meth:`dict.update` 호출과 같은 순서를 제공합니다::"
#: ../../library/collections.rst:113
msgid ""
">>> combined = baseline.copy()\n"
">>> combined.update(adjustments)\n"
">>> list(combined)\n"
"['music', 'art', 'opera']"
msgstr ""
">>> combined = baseline.copy()\n"
">>> combined.update(adjustments)\n"
">>> list(combined)\n"
"['music', 'art', 'opera']"
#: ../../library/collections.rst:118
msgid "Added support for ``|`` and ``|=`` operators, specified in :pep:`584`."
msgstr ":pep:`584`\\에 지정된, ``|``\\와 ``|=`` 연산자에 대한 지원이 추가되었습니다."
#: ../../library/collections.rst:123
msgid ""
"The `MultiContext class "
"<https://github.com/enthought/codetools/blob/4.0.0/codetools/contexts/multi_context.py>`_"
" in the Enthought `CodeTools package "
"<https://github.com/enthought/codetools>`_ has options to support writing"
" to any mapping in the chain."
msgstr ""
"Enthought `CodeTools 패키지 <https://github.com/enthought/codetools>`_\\의 "
"`MultiContext 클래스 "
"<https://github.com/enthought/codetools/blob/4.0.0/codetools/contexts/multi_context.py>`_\\에는"
" 체인의 모든 매핑으로의 쓰기를 지원하는 옵션이 있습니다."
#: ../../library/collections.rst:129
msgid ""
"Django's `Context class "
"<https://github.com/django/django/blob/main/django/template/context.py>`_"
" for templating is a read-only chain of mappings. It also features "
"pushing and popping of contexts similar to the "
":meth:`~collections.ChainMap.new_child` method and the "
":attr:`~collections.ChainMap.parents` property."
msgstr ""
"템플릿을 위한 Django의 `Context 클래스 "
"<https://github.com/django/django/blob/main/django/template/context.py>`_\\는"
" 읽기 전용 매핑 체인입니다. 또한 :meth:`~collections.ChainMap.new_child` 메서드와 "
":attr:`~collections.ChainMap.parents` 프로퍼티와 유사하게 컨텍스트를 푸시(push)하고 팝(pop) "
"하는 기능이 있습니다."
#: ../../library/collections.rst:136
msgid ""
"The `Nested Contexts recipe <https://code.activestate.com/recipes/577434"
"-nested-contexts-a-chain-of-mapping-objects/>`_ has options to control "
"whether writes and other mutations apply only to the first mapping or to "
"any mapping in the chain."
msgstr ""
"`중첩된 컨텍스트 조리법 <https://code.activestate.com/recipes/577434-nested-"
"contexts-a-chain-of-mapping-objects/>`_\\에는 쓰기와 기타 변경이 첫 번째 매핑에만 적용되는지 "
"아니면 체인의 모든 매핑에 적용되는지를 제어하는 옵션이 있습니다."
#: ../../library/collections.rst:141
msgid ""
"A `greatly simplified read-only version of Chainmap "
"<https://code.activestate.com/recipes/305268/>`_."
msgstr "`매우 단순화된 체인 맵의 읽기 전용 버전 <https://code.activestate.com/recipes/305268/>`_"
#: ../../library/collections.rst:146
msgid ":class:`ChainMap` Examples and Recipes"
msgstr ":class:`ChainMap` 예제와 조리법"
#: ../../library/collections.rst:148
msgid "This section shows various approaches to working with chained maps."
msgstr "이 절에서는 체인 맵으로 작업하는 다양한 접근 방식을 보여줍니다."
#: ../../library/collections.rst:151
msgid "Example of simulating Python's internal lookup chain::"
msgstr "파이썬의 내부 조회 체인을 시뮬레이션하는 예::"
#: ../../library/collections.rst:153
msgid ""
"import builtins\n"
"pylookup = ChainMap(locals(), globals(), vars(builtins))"
msgstr ""
"import builtins\n"
"pylookup = ChainMap(locals(), globals(), vars(builtins))"
#: ../../library/collections.rst:156
msgid ""
"Example of letting user specified command-line arguments take precedence "
"over environment variables which in turn take precedence over default "
"values::"
msgstr "사용자 지정 명령 줄 인자가 환경 변수보다 우선하고, 환경 변수는 기본값보다 우선하도록 하는 예::"
#: ../../library/collections.rst:159
#, python-brace-format
msgid ""
"import os, argparse\n"
"\n"
"defaults = {'color': 'red', 'user': 'guest'}\n"
"\n"
"parser = argparse.ArgumentParser()\n"
"parser.add_argument('-u', '--user')\n"
"parser.add_argument('-c', '--color')\n"
"namespace = parser.parse_args()\n"
"command_line_args = {k: v for k, v in vars(namespace).items() if v is not"
" None}\n"
"\n"
"combined = ChainMap(command_line_args, os.environ, defaults)\n"
"print(combined['color'])\n"
"print(combined['user'])"
msgstr ""
"import os, argparse\n"
"\n"
"defaults = {'color': 'red', 'user': 'guest'}\n"
"\n"
"parser = argparse.ArgumentParser()\n"
"parser.add_argument('-u', '--user')\n"
"parser.add_argument('-c', '--color')\n"
"namespace = parser.parse_args()\n"
"command_line_args = {k: v for k, v in vars(namespace).items() if v is not"
" None}\n"
"\n"
"combined = ChainMap(command_line_args, os.environ, defaults)\n"
"print(combined['color'])\n"
"print(combined['user'])"
#: ../../library/collections.rst:173
msgid ""
"Example patterns for using the :class:`ChainMap` class to simulate nested"
" contexts::"
msgstr "중첩된 컨텍스트를 시뮬레이션하기 위해 :class:`ChainMap` 클래스를 사용하는 예제 패턴::"
#: ../../library/collections.rst:176
msgid ""
"c = ChainMap() # Create root context\n"
"d = c.new_child() # Create nested child context\n"
"e = c.new_child() # Child of c, independent from d\n"
"e.maps[0] # Current context dictionary -- like Python's "
"locals()\n"
"e.maps[-1] # Root context -- like Python's globals()\n"
"e.parents # Enclosing context chain -- like Python's "
"nonlocals\n"
"\n"
"d['x'] = 1 # Set value in current context\n"
"d['x'] # Get first key in the chain of contexts\n"
"del d['x'] # Delete from current context\n"
"list(d) # All nested values\n"
"k in d # Check all nested values\n"
"len(d) # Number of nested values\n"
"d.items() # All nested items\n"
"dict(d) # Flatten into a regular dictionary"
msgstr ""
"c = ChainMap() # 루트 컨텍스트를 만듭니다\n"
"d = c.new_child() # 중첩된 자식 컨텍스트를 만듭니다\n"
"e = c.new_child() # c의 자식, d와 독립적입니다\n"
"e.maps[0] # 현재 컨텍스트 딕셔너리 -- 파이썬의 locals()와 유사합니다\n"
"e.maps[-1] # 루트 컨텍스트 -- 파이썬의 globals()와 유사합니다\n"
"e.parents # 둘러싼 컨텍스트 체인 -- 파이썬의 nonlocal과 유사합니다\n"
"\n"
"d['x'] = 1 # 현재 컨텍스트에 값을 설정합니다\n"
"d['x'] # 컨텍스트 체인에서 첫 번째 키를 가져옵니다\n"
"del d['x'] # 현재 컨텍스트에서 지웁니다\n"
"list(d) # 모든 중첩된 값\n"
"k in d # 모든 중첩된 값을 검사합니다\n"
"len(d) # 중첩된 값의 개수\n"
"d.items() # 모든 중첩된 항목\n"
"dict(d) # 일반 딕셔너리로 펼칩니다"
#: ../../library/collections.rst:192
msgid ""
"The :class:`ChainMap` class only makes updates (writes and deletions) to "
"the first mapping in the chain while lookups will search the full chain."
" However, if deep writes and deletions are desired, it is easy to make a"
" subclass that updates keys found deeper in the chain::"
msgstr ""
":class:`ChainMap` 클래스는 체인의 첫 번째 매핑만 갱신(쓰기와 삭제)하지만, 조회는 전체 체인을 검색합니다. 그러나,"
" 깊은 쓰기와 삭제가 필요하면, 체인의 더 깊은 곳에서 발견된 키를 갱신하는 서브 클래스를 쉽게 만들 수 있습니다::"
#: ../../library/collections.rst:197
#, python-brace-format
msgid ""
"class DeepChainMap(ChainMap):\n"
" 'Variant of ChainMap that allows direct updates to inner scopes'\n"
"\n"
" def __setitem__(self, key, value):\n"
" for mapping in self.maps:\n"
" if key in mapping:\n"
" mapping[key] = value\n"
" return\n"
" self.maps[0][key] = value\n"
"\n"
" def __delitem__(self, key):\n"
" for mapping in self.maps:\n"
" if key in mapping:\n"
" del mapping[key]\n"
" return\n"
" raise KeyError(key)\n"
"\n"
">>> d = DeepChainMap({'zebra': 'black'}, {'elephant': 'blue'}, {'lion': "
"'yellow'})\n"
">>> d['lion'] = 'orange' # update an existing key two levels down"
"\n"
">>> d['snake'] = 'red' # new keys get added to the topmost dict"
"\n"
">>> del d['elephant'] # remove an existing key one level down\n"
">>> d # display result\n"
"DeepChainMap({'zebra': 'black', 'snake': 'red'}, {}, {'lion': 'orange'})"
msgstr ""
"class DeepChainMap(ChainMap):\n"
" '내부 스코프를 직접 갱신할 수 있는 ChainMap의 변형'\n"
"\n"
" def __setitem__(self, key, value):\n"
" for mapping in self.maps:\n"
" if key in mapping:\n"
" mapping[key] = value\n"
" return\n"
" self.maps[0][key] = value\n"
"\n"
" def __delitem__(self, key):\n"
" for mapping in self.maps:\n"
" if key in mapping:\n"
" del mapping[key]\n"
" return\n"
" raise KeyError(key)\n"
"\n"
">>> d = DeepChainMap({'zebra': 'black'}, {'elephant': 'blue'}, {'lion': "
"'yellow'})\n"
">>> d['lion'] = 'orange' # 두 수준 아래에 있는 기존 키를 갱신합니다\n"
">>> d['snake'] = 'red' # 새 키를 최상단 딕셔너리에 추가합니다\n"
">>> del d['elephant'] # 한 수준 아래에 있는 기존 키를 삭제합니다\n"
">>> d # 결과를 표시합니다\n"
"DeepChainMap({'zebra': 'black', 'snake': 'red'}, {}, {'lion': 'orange'})"
#: ../../library/collections.rst:223
msgid ":class:`Counter` objects"
msgstr ":class:`Counter` 객체"
#: ../../library/collections.rst:225
msgid ""
"A counter tool is provided to support convenient and rapid tallies. For "
"example::"
msgstr "편리하고 빠르게 개수를 세도록 지원하는 계수기 도구가 제공됩니다. 예를 들면::"
#: ../../library/collections.rst:228
#, python-brace-format
msgid ""
">>> # Tally occurrences of words in a list\n"
">>> cnt = Counter()\n"
">>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']:\n"
"... cnt[word] += 1\n"
"...\n"
">>> cnt\n"
"Counter({'blue': 3, 'red': 2, 'green': 1})\n"
"\n"
">>> # Find the ten most common words in Hamlet\n"
">>> import re\n"
">>> words = re.findall(r'\\w+', open('hamlet.txt').read().lower())\n"
">>> Counter(words).most_common(10)\n"
"[('the', 1143), ('and', 966), ('to', 762), ('of', 669), ('i', 631),\n"
" ('you', 554), ('a', 546), ('my', 514), ('hamlet', 471), ('in', 451)]"
msgstr ""
">>> # 목록에 있는 단어의 빈도를 집계합니다\n"
">>> cnt = Counter()\n"
">>> for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']:\n"
"... cnt[word] += 1\n"
"...\n"
">>> cnt\n"
"Counter({'blue': 3, 'red': 2, 'green': 1})\n"
"\n"
">>> # 햄릿에서 가장 흔한 단어를 찾습니다\n"
">>> import re\n"
">>> words = re.findall(r'\\w+', open('hamlet.txt').read().lower())\n"
">>> Counter(words).most_common(10)\n"
"[('the', 1143), ('and', 966), ('to', 762), ('of', 669), ('i', 631),\n"
" ('you', 554), ('a', 546), ('my', 514), ('hamlet', 471), ('in', 451)]"
#: ../../library/collections.rst:245
msgid ""
"A :class:`Counter` is a :class:`dict` subclass for counting "
":term:`hashable` objects. It is a 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`\\는 :term:`해시 가능 <hashable>` 객체를 세기 위한 :class:`dict` 서브 "
"클래스입니다. 요소가 딕셔너리 키로 저장되고 개수가 딕셔너리값으로 저장되는 컬렉션입니다. 개수는 0이나 음수를 포함하는 임의의 "
"정숫값이 될 수 있습니다. :class:`Counter` 클래스는 다른 언어의 백(bag)이나 멀티 셋(multiset)과 "
"유사합니다."
#: ../../library/collections.rst:251
msgid ""
"Elements are counted from an *iterable* or initialized from another "
"*mapping* (or counter):"
msgstr "요소는 *이터러블*\\로부터 계산되거나 다른 *매핑*\\(또는 계수기)에서 초기화됩니다:"
#: ../../library/collections.rst:259
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:266
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:274
msgid ""
"As a :class:`dict` subclass, :class:`Counter` inherited the capability to"
" remember insertion order. Math operations on *Counter* objects also "
"preserve order. Results are ordered according to when an element is "
"first encountered in the left operand and then by the order encountered "
"in the right operand."
msgstr ""
":class:`dict` 서브 클래스로서, :class:`Counter`\\는 삽입 순서를 기억하는 기능을 상속했습니다. "
"*Counter* 객체에 대한 수학 연산도 순서를 유지합니다. 결과는 요소가 왼쪽 피연산자에서 처음 발견된 순서로 먼저 나열된 후 "
"오른쪽 피연산자에서 새로 발견되는 순서로 나열되는 순서를 따릅니다."
#: ../../library/collections.rst:280
msgid ""
"Counter objects support additional methods beyond those available for all"
" dictionaries:"
msgstr "계수기 객체는 모든 딕셔너리에서 사용할 수 있는 메서드 이외의 추가 메서드를 지원합니다:"
#: ../../library/collections.rst:285
msgid ""
"Return an iterator over elements repeating each as many times as its "
"count. Elements are returned in the order first encountered. If an "
"element's count is less than one, :meth:`elements` will ignore it."
msgstr ""
"개수만큼 반복되는 요소에 대한 이터레이터를 반환합니다. 요소는 처음 발견되는 순서대로 반환됩니다. 요소의 개수가 1보다 작으면 "
":meth:`elements`\\는 이를 무시합니다."
#: ../../library/collections.rst:295
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``, "
":meth:`most_common` returns *all* elements in the counter. Elements with "
"equal counts are ordered in the order first encountered:"
msgstr ""
"*n* 개의 가장 흔한 요소와 그 개수를 가장 흔한 것부터 가장 적은 것 순으로 나열한 리스트를 반환합니다. *n*\\이 생략되거나"
" ``None``\\이면, :meth:`most_common`\\은 계수기의 *모든* 요소를 반환합니다. 개수가 같은 요소는 처음 "
"발견된 순서를 유지합니다:"
#: ../../library/collections.rst:305
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 ""
"*이터러블*\\이나 다른 *매핑* (또는 계수기)으로부터 온 요소들을 뺍니다. :meth:`dict.update`\\와 비슷하지만 "
"교체하는 대신 개수를 뺍니다. 입력과 출력 모두 0이나 음수일 수 있습니다."
#: ../../library/collections.rst:319
msgid "Compute the sum of the counts."
msgstr ""
#: ../../library/collections.rst:327
msgid ""
"The usual dictionary methods are available for :class:`Counter` objects "
"except for two which work differently for counters."
msgstr "일반적인 딕셔너리 메서드를 :class:`Counter` 객체에 사용할 수 있습니다만, 두 메서드는 계수기에서 다르게 동작합니다."
#: ../../library/collections.rst:332
msgid "This class method is not implemented for :class:`Counter` objects."
msgstr "이 클래스 메서드는 :class:`Counter` 객체에 구현되지 않았습니다."
#: ../../library/collections.rst:336
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 ""
"요소는 *이터러블*\\에서 세거나 다른 *매핑*\\(또는 계수기)에서 더해집니다. :meth:`dict.update`\\와 "
"비슷하지만, 교체하는 대신 더합니다. 또한, *이터러블*\\은 ``(key, value)`` 쌍의 시퀀스가 아닌, 요소의 시퀀스일 "
"것으로 기대합니다."
#: ../../library/collections.rst:341
msgid ""
"Counters support rich comparison operators for equality, subset, and "
"superset relationships: ``==``, ``!=``, ``<``, ``<=``, ``>``, ``>=``. All"
" of those tests treat missing elements as having zero counts so that "
"``Counter(a=1) == Counter(a=1, b=0)`` returns true."
msgstr ""
#: ../../library/collections.rst:346
msgid "Rich comparison operations were added."
msgstr ""
#: ../../library/collections.rst:349
msgid ""
"In equality tests, missing elements are treated as having zero counts. "
"Formerly, ``Counter(a=3)`` and ``Counter(a=3, b=0)`` were considered "
"distinct."
msgstr ""
#: ../../library/collections.rst:354
msgid "Common patterns for working with :class:`Counter` objects::"
msgstr ":class:`Counter` 객체로 작업하는 일반적인 패턴::"
#: ../../library/collections.rst:356
msgid ""
"c.total() # total of all counts\n"
"c.clear() # reset all counts\n"
"list(c) # list unique elements\n"
"set(c) # convert to a set\n"
"dict(c) # convert to a regular dictionary\n"
"c.items() # access the (elem, cnt) pairs\n"
"Counter(dict(list_of_pairs)) # convert from a list of (elem, cnt) "
"pairs\n"
"c.most_common()[:-n-1:-1] # n least common elements\n"
"+c # remove zero and negative counts"
msgstr ""
"c.total() # 모든 개수의 총합\n"
"c.clear() # 모든 개수를 재설정합니다\n"
"list(c) # 고유한 요소들의 리스트\n"
"set(c) # 집합으로 변환합니다\n"
"dict(c) # 일반 딕셔너리로 변환합니다\n"
"c.items() # (elem, cnt) 쌍을 액세스합니다\n"
"Counter(dict(list_of_pairs)) # (elem, cnt) 쌍의 리스트를 변환합니다\n"
"c.most_common()[:-n-1:-1] # 가장 드문 n 개의 요소\n"
"+c # 0과 음의 개수를 제거합니다"
#: ../../library/collections.rst:366
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. Equality "
"and inclusion compare 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` 객체를 결합하여 멀티 셋(multiset, 개수가 0보다 큰 계수기)을 생성하는 여러 수학 연산이 "
"제공됩니다. 더하기와 빼기는 해당 요소의 개수를 더 하거나 빼서 계수기를 결합합니다. 교집합(intersection)과 "
"합집합(union)은 해당 개수의 최솟값과 최댓값을 반환합니다. 동등성과 포함은 해당 개수를 비교합니다. 각 연산은 부호 있는 "
"개수를 입력으로 받을 수 있지만, 출력은 개수가 0 이하면 결과에서 제외합니다."
#: ../../library/collections.rst:374
#, python-brace-format
msgid ""
">>> c = Counter(a=3, b=1)\n"
">>> d = Counter(a=1, b=2)\n"
">>> c + d # add two counters together: c[x] + d[x]"
"\n"
"Counter({'a': 4, 'b': 3})\n"
">>> c - d # subtract (keeping only positive counts)"
"\n"
"Counter({'a': 2})\n"
">>> c & d # intersection: min(c[x], d[x])\n"
"Counter({'a': 1, 'b': 1})\n"
">>> c | d # union: max(c[x], d[x])\n"
"Counter({'a': 3, 'b': 2})\n"
">>> c == d # equality: c[x] == d[x]\n"
"False\n"
">>> c <= d # inclusion: c[x] <= d[x]\n"
"False"
msgstr ""
">>> c = Counter(a=3, b=1)\n"
">>> d = Counter(a=1, b=2)\n"
">>> c + d # 두 계수기를 합합니다: c[x] + d[x]\n"
"Counter({'a': 4, 'b': 3})\n"
">>> c - d # 뺍니다 (양의 개수만 유지합니다)\n"
"Counter({'a': 2})\n"
">>> c & d # 교집합: min(c[x], d[x])\n"
"Counter({'a': 1, 'b': 1})\n"
">>> c | d # 합집합: max(c[x], d[x])\n"
"Counter({'a': 3, 'b': 2})\n"
">>> c == d # 동등성: c[x] == d[x]\n"
"False\n"
">>> c <= d # 포함: c[x] <= d[x]\n"
"False"
#: ../../library/collections.rst:391
msgid ""
"Unary addition and subtraction are shortcuts for adding an empty counter "
"or subtracting from an empty counter."
msgstr "단항 덧셈과 뺄셈은 빈 계수기를 더하거나 빈 계수기를 빼는 것의 줄임 표현입니다."
#: ../../library/collections.rst:400
msgid ""
"Added support for unary plus, unary minus, and in-place multiset "
"operations."
msgstr "단항 플러스, 단항 마이너스 및 제자리 멀티 셋 연산에 대한 지원이 추가되었습니다."
#: ../../library/collections.rst:405
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:410
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:414
msgid ""
"The :meth:`~Counter.most_common` method requires only that the values be "
"orderable."
msgstr ":meth:`~Counter.most_common` 메서드는 값에 대해 순서만을 요구합니다."
#: ../../library/collections.rst:416
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:`~Counter.update` and :meth:`~Counter.subtract` which allow "
"negative and zero values for both inputs and outputs."
msgstr ""
"``c[key] += 1``\\과 같은 제자리 연산의 경우, 값 형은 덧셈과 뺄셈만 지원하면 됩니다. 따라서 "
"분수(fractions), 부동 소수점(floats) 및 십진수(decimals)가 작동하고 음수 값이 지원됩니다. "
":meth:`~Counter.update`\\와 :meth:`~Counter.subtract`\\에 대해서도 마찬가지인데, 입력과 "
"출력 모두 음수와 0을 허용합니다."
#: ../../library/collections.rst:422
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 ""
"멀티 셋(multiset) 메서드는 양의 값에 대한 사용 사례를 위해서만 설계되었습니다. 입력은 음수이거나 0일 수 있지만, 양수 "
"값을 갖는 출력만 만들어집니다. 형 제한은 없지만, 값 형은 더하기, 빼기 및 비교를 지원해야 합니다."
#: ../../library/collections.rst:427
msgid ""
"The :meth:`~Counter.elements` method requires integer counts. It ignores"
" zero and negative counts."
msgstr ":meth:`~Counter.elements` 메서드는 정수 개수를 요구합니다. 0과 음수 개수는 무시합니다."
#: ../../library/collections.rst:432
msgid ""
"`Bag class <https://www.gnu.org/software/smalltalk/manual-"
"base/html_node/Bag.html>`_ in Smalltalk."
msgstr ""
"스몰토크(Smalltalk)의 `Bag 클래스 <https://www.gnu.org/software/smalltalk/manual-"
"base/html_node/Bag.html>`_."
#: ../../library/collections.rst:435
msgid "Wikipedia entry for `Multisets <https://en.wikipedia.org/wiki/Multiset>`_."
msgstr "`Multisets <https://en.wikipedia.org/wiki/Multiset>`_\\에 대한 위키피디아 항목."
#: ../../library/collections.rst:437
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:440
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:444
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:447
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:451
msgid ":class:`deque` objects"
msgstr ":class:`deque` 객체"
#: ../../library/collections.rst:455
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*\\의 데이터로 왼쪽에서 오른쪽으로 (:meth:`append`\\를 사용해서) 초기화된 새 데크(deque) "
"객체를 반환합니다. *iterable*\\을 지정하지 않으면, 새 데크는 비어 있습니다."
#: ../../library/collections.rst:458
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 ""
"데크는 스택과 큐를 일반화 한 것입니다 (이름은 \"deck\"이라고 발음하며 \"double-ended queue\"의 "
"약자입니다). 데크는 스레드 안전하고 메모리 효율적인 데크의 양쪽 끝에서의 추가(append)와 팝(pop)을 양쪽에서 거의 같은 "
"*O*\\ (1) 성능으로 지원합니다."
#: ../../library/collections.rst:463
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:469
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``\\이면, 데크는 임의의 길이로 커질 수 있습니다. 그렇지 않으면, 데크는 "
"지정된 최대 길이로 제한됩니다. 일단 제한된 길이의 데크가 가득 차면, 새 항목이 추가될 때, 해당하는 수의 항목이 반대쪽 끝에서 "
"삭제됩니다. 제한된 길이의 데크는 유닉스의 ``tail`` 필터와 유사한 기능을 제공합니다. 또한 가장 최근 활동만 관심이 있는 "
"트랜잭션과 기타 데이터 풀을 추적하는 데 유용합니다."
#: ../../library/collections.rst:478
msgid "Deque objects support the following methods:"
msgstr "deque 객체는 다음 메서드를 지원합니다:"
#: ../../library/collections.rst:482
msgid "Add *x* to the right side of the deque."
msgstr "데크의 오른쪽에 *x*\\를 추가합니다."
#: ../../library/collections.rst:487
msgid "Add *x* to the left side of the deque."
msgstr "데크의 왼쪽에 *x*\\를 추가합니다."
#: ../../library/collections.rst:492
msgid "Remove all elements from the deque leaving it with length 0."
msgstr "데크에서 모든 요소를 제거하고 길이가 0인 상태로 만듭니다."
#: ../../library/collections.rst:497
msgid "Create a shallow copy of the deque."
msgstr "데크의 얕은 복사본을 만듭니다."
#: ../../library/collections.rst:504
msgid "Count the number of deque elements equal to *x*."
msgstr "*x* 와 같은 데크 요소의 수를 셉니다."
#: ../../library/collections.rst:511
msgid ""
"Extend the right side of the deque by appending elements from the "
"iterable argument."
msgstr "iterable 인자에서 온 요소를 추가하여 데크의 오른쪽을 확장합니다."
#: ../../library/collections.rst:517
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*\\에서 온 요소를 추가하여 데크의 왼쪽을 확장합니다. 일련의 왼쪽 추가는 iterable 인자에 있는 요소의 "
"순서를 뒤집는 결과를 줍니다."
#: ../../library/collections.rst:524
msgid ""
"Return the position of *x* in the deque (at or after index *start* and "
"before index *stop*). Returns the first match or raises "
":exc:`ValueError` if not found."
msgstr ""
"데크에 있는 *x*\\의 위치를 반환합니다 (인덱스 *start* 또는 그 이후, 그리고 인덱스 *stop* 이전). 첫 번째 "
"일치를 반환하거나 찾을 수 없으면 :exc:`ValueError`\\를 발생시킵니다."
#: ../../library/collections.rst:533
msgid "Insert *x* into the deque at position *i*."
msgstr "*x*\\를 데크의 *i* 위치에 삽입합니다."
#: ../../library/collections.rst:535
msgid ""
"If the insertion would cause a bounded deque to grow beyond *maxlen*, an "
":exc:`IndexError` is raised."
msgstr "삽입으로 인해 제한된 길이의 데크가 *maxlen* 이상으로 커지면, :exc:`IndexError`\\가 발생합니다."
#: ../../library/collections.rst:543
msgid ""
"Remove and return an element from the right side of the deque. If no "
"elements are present, raises an :exc:`IndexError`."
msgstr "데크의 오른쪽에서 요소를 제거하고 반환합니다. 요소가 없으면, :exc:`IndexError`\\를 발생시킵니다."
#: ../../library/collections.rst:549
msgid ""
"Remove and return an element from the left side of the deque. If no "
"elements are present, raises an :exc:`IndexError`."
msgstr "데크의 왼쪽에서 요소를 제거하고 반환합니다. 요소가 없으면, :exc:`IndexError`\\를 발생시킵니다."
#: ../../library/collections.rst:555
msgid ""
"Remove the first occurrence of *value*. If not found, raises a "
":exc:`ValueError`."
msgstr "*value*\\의 첫 번째 항목을 제거합니다. 찾을 수 없으면, :exc:`ValueError`\\를 발생시킵니다."
#: ../../library/collections.rst:561
msgid "Reverse the elements of the deque in-place and then return ``None``."
msgstr "데크의 요소들을 제자리에서 순서를 뒤집고 ``None``\\을 반환합니다."
#: ../../library/collections.rst:568
msgid ""
"Rotate the deque *n* steps to the right. If *n* is negative, rotate to "
"the left."
msgstr "데크를 *n* 단계 오른쪽으로 회전합니다. *n*\\이 음수이면, 왼쪽으로 회전합니다."
#: ../../library/collections.rst:571
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 ""
"데크가 비어 있지 않으면, 오른쪽으로 한 단계 회전하는 것은 ``d.appendleft(d.pop())``\\과 동등하고, 왼쪽으로"
" 한 단계 회전하는 것은 ``d.append(d.popleft())``\\와 동등합니다."
#: ../../library/collections.rst:576
msgid "Deque objects also provide one read-only attribute:"
msgstr "데크 객체는 하나의 읽기 전용 어트리뷰트도 제공합니다:"
#: ../../library/collections.rst:580
msgid "Maximum size of a deque or ``None`` if unbounded."
msgstr "데크의 최대 크기 또는 제한이 없으면 ``None``."
#: ../../library/collections.rst:585
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[0]`` to access the first element. Indexed access is *O*\\ (1) at "
"both ends but slows to *O*\\ (*n*) in the middle. For fast random "
"access, use lists instead."
msgstr ""
"상기한 것들 외에도, 데크는 이터레이션, 피클링, ``len(d)``, ``reversed(d)``, "
"``copy.copy(d)``, ``copy.deepcopy(d)``, :keyword:`in` 연산자를 사용한 멤버십 검사 및 첫"
" 번째 요소를 액세스하는 ``d[0]``\\과 같은 서브 스크립트 참조를 지원합니다. 인덱스를 사용하는 액세스는 양쪽 끝에서는 "