-
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathoperator.po
More file actions
969 lines (779 loc) · 31.7 KB
/
operator.po
File metadata and controls
969 lines (779 loc) · 31.7 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
# 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/operator.rst:2
msgid ":mod:`!operator` --- Standard operators as functions"
msgstr ":mod:`!operator` --- 함수로서의 표준 연산자"
#: ../../library/operator.rst:9
msgid "**Source code:** :source:`Lib/operator.py`"
msgstr "**소스 코드:** :source:`Lib/operator.py`"
#: ../../library/operator.rst:18
msgid ""
"The :mod:`operator` module exports a set of efficient functions "
"corresponding to the intrinsic operators of Python. For example, "
"``operator.add(x, y)`` is equivalent to the expression ``x+y``. Many "
"function names are those used for special methods, without the double "
"underscores. For backward compatibility, many of these have a variant "
"with the double underscores kept. The variants without the double "
"underscores are preferred for clarity."
msgstr ""
":mod:`operator` 모듈은 파이썬의 내장 연산자에 해당하는 효율적인 함수 집합을 내보냅니다. 예를 들어, "
"``operator.add(x, y)``\\는 ``x+y`` 표현식과 동등합니다. 많은 함수 이름은 특수 메서드에 사용되는 "
"이름인데, 이중 밑줄이 없습니다. 이전 버전과의 호환성을 위해, 이들 중 많은 것은 이중 밑줄이 있는 변형을 가집니다. 이중 밑줄이"
" 없는 변형이 명확성을 위해 선호됩니다."
#: ../../library/operator.rst:25
msgid ""
"The functions fall into categories that perform object comparisons, "
"logical operations, mathematical operations and sequence operations."
msgstr "함수는 객체 비교, 논리 연산, 수학 연산 및 시퀀스 연산을 수행하는 범주로 분류됩니다."
#: ../../library/operator.rst:28
msgid ""
"The object comparison functions are useful for all objects, and are named"
" after the rich comparison operators they support:"
msgstr "객체 비교 함수는 모든 객체에 유용하며, 이들이 지원하는 풍부한 비교(rich comparison) 연산자의 이름을 따릅니다:"
#: ../../library/operator.rst:45
msgid ""
"Perform \"rich comparisons\" between *a* and *b*. Specifically, ``lt(a, "
"b)`` is equivalent to ``a < b``, ``le(a, b)`` is equivalent to ``a <= "
"b``, ``eq(a, b)`` is equivalent to ``a == b``, ``ne(a, b)`` is equivalent"
" to ``a != b``, ``gt(a, b)`` is equivalent to ``a > b`` and ``ge(a, b)`` "
"is equivalent to ``a >= b``. Note that these functions can return any "
"value, which may or may not be interpretable as a Boolean value. See "
":ref:`comparisons` for more information about rich comparisons."
msgstr ""
"*a*\\와 *b* 사이에 \"풍부한 비교(rich comparisons)\"를 수행합니다. 구체적으로, ``lt(a, "
"b)``\\는 ``a < b``\\와 동등하고, ``le(a, b)``\\는 ``a <= b``\\와 동등하고, ``eq(a, "
"b)``\\는 ``a == b``\\와 동등하고, ``ne(a, b)``\\는 ``a != b``\\와 동등하고, ``gt(a, "
"b)``\\는 ``a > b``\\와 동등하고, ``ge(a, b)``\\는 ``a >= b``\\와 동등합니다. 이러한 함수는 "
"불리언 값으로 해석 할 수도 있고, 그렇지 않을 수도 있는 임의의 값을 반환 할 수 있음에 유의하십시오. 풍부한 비교에 대한 자세한"
" 정보는 :ref:`comparisons`\\를 참조하십시오."
#: ../../library/operator.rst:54
msgid ""
"The logical operations are also generally applicable to all objects, and "
"support truth tests, identity tests, and boolean operations:"
msgstr "논리 연산도 일반적으로 모든 객체에 적용 할 수 있으며, 진릿값 검사, 아이덴티티 검사 및 불리언 연산을 지원합니다:"
#: ../../library/operator.rst:61
msgid ""
"Return the outcome of :keyword:`not` *obj*. (Note that there is no "
":meth:`!__not__` method for object instances; only the interpreter core "
"defines this operation. The result is affected by the "
":meth:`~object.__bool__` and :meth:`~object.__len__` methods.)"
msgstr ""
":keyword:`not` *obj*\\의 결과를 반환합니다. (객체 인스턴스에는 :meth:`!__not__` 메서드가 없음에 "
"유의하십시오; 인터프리터의 코어만이 이 연산을 정의합니다. 결과는 :meth:`~object.__bool__`\\과 "
":meth:`~object.__len__` 메서드의 영향을 받습니다.)"
#: ../../library/operator.rst:69
msgid ""
"Return :const:`True` if *obj* is true, and :const:`False` otherwise. "
"This is equivalent to using the :class:`bool` constructor."
msgstr ""
"*obj*\\가 참이면 :const:`True`\\를 반환하고, 그렇지 않으면 :const:`False`\\를 반환합니다. 이것은 "
":class:`bool` 생성자를 사용하는 것과 동등합니다."
#: ../../library/operator.rst:75
msgid "Return ``a is b``. Tests object identity."
msgstr "``a is b``\\를 반환합니다. 객체 아이덴티티를 검사합니다."
#: ../../library/operator.rst:80
msgid "Return ``a is not b``. Tests object identity."
msgstr "``a is not b``\\를 반환합니다. 객체 아이덴티티를 검사합니다."
#: ../../library/operator.rst:85
#, fuzzy
msgid "Return ``a is None``. Tests object identity."
msgstr "``a is not b``\\를 반환합니다. 객체 아이덴티티를 검사합니다."
#: ../../library/operator.rst:92
#, fuzzy
msgid "Return ``a is not None``. Tests object identity."
msgstr "``a is not b``\\를 반환합니다. 객체 아이덴티티를 검사합니다."
#: ../../library/operator.rst:97
msgid "The mathematical and bitwise operations are the most numerous:"
msgstr "수학적 및 비트별 연산이 가장 많습니다:"
#: ../../library/operator.rst:103
msgid "Return the absolute value of *obj*."
msgstr "*obj*\\의 절댓값을 반환합니다."
#: ../../library/operator.rst:109
msgid "Return ``a + b``, for *a* and *b* numbers."
msgstr "*a*\\와 *b* 숫자에 대해, ``a + b``\\를 반환합니다."
#: ../../library/operator.rst:115
msgid "Return the bitwise and of *a* and *b*."
msgstr "*a*\\와 *b*\\의 비트별 논리곱(and)을 반환합니다."
#: ../../library/operator.rst:121
msgid "Return ``a // b``."
msgstr "``a // b``\\를 반환합니다."
#: ../../library/operator.rst:127
msgid "Return *a* converted to an integer. Equivalent to ``a.__index__()``."
msgstr "정수로 변환된 *a*\\를 반환합니다. ``a.__index__()``\\와 동등합니다."
#: ../../library/operator.rst:129
msgid ""
"The result always has exact type :class:`int`. Previously, the result "
"could have been an instance of a subclass of ``int``."
msgstr ""
#: ../../library/operator.rst:139
msgid ""
"Return the bitwise inverse of the number *obj*. This is equivalent to "
"``~obj``."
msgstr "숫자 *obj*\\의 비트별 반전을 반환합니다. 이것은 ``~obj``\\와 동등합니다."
#: ../../library/operator.rst:145
msgid "Return *a* shifted left by *b*."
msgstr "*a*\\를 *b*\\만큼 왼쪽으로 시프트 한 값을 반환합니다."
#: ../../library/operator.rst:151
msgid "Return ``a % b``."
msgstr "``a % b``\\를 반환합니다."
#: ../../library/operator.rst:157
msgid "Return ``a * b``, for *a* and *b* numbers."
msgstr "*a*\\와 *b* 숫자에 대해, ``a * b``\\를 반환합니다."
#: ../../library/operator.rst:163
msgid "Return ``a @ b``."
msgstr "``a @ b``\\를 반환합니다."
#: ../../library/operator.rst:171
msgid "Return *obj* negated (``-obj``)."
msgstr "*obj*\\의 부정(``-obj``)을 반환합니다."
#: ../../library/operator.rst:177
msgid "Return the bitwise or of *a* and *b*."
msgstr "*a*\\와 *b*\\의 비트별 논리합(or)을 반환합니다."
#: ../../library/operator.rst:183
msgid "Return *obj* positive (``+obj``)."
msgstr "양의 *obj*\\(``+obj``)를 반환합니다."
#: ../../library/operator.rst:189
msgid "Return ``a ** b``, for *a* and *b* numbers."
msgstr "*a*\\와 *b* 숫자에 대해, ``a ** b``\\를 반환합니다."
#: ../../library/operator.rst:195
msgid "Return *a* shifted right by *b*."
msgstr "*a*\\를 *b*\\만큼 오른쪽으로 시프트 한 값을 반환합니다."
#: ../../library/operator.rst:201
msgid "Return ``a - b``."
msgstr "``a - b``\\를 반환합니다."
#: ../../library/operator.rst:207
msgid ""
"Return ``a / b`` where 2/3 is .66 rather than 0. This is also known as "
"\"true\" division."
msgstr "``a / b``\\를 반환합니다. 여기서 2/3는 0이 아니라 .66입니다. 이것은 \"실수(true)\" 나누기라고 도합니다."
#: ../../library/operator.rst:214
msgid "Return the bitwise exclusive or of *a* and *b*."
msgstr "*a*\\와 *b*\\의 비트별 배타적 논리합을 반환합니다."
#: ../../library/operator.rst:217
msgid ""
"Operations which work with sequences (some of them with mappings too) "
"include:"
msgstr "시퀀스에 적용되는 연산(일부는 매핑에도 적용됩니다)은 다음과 같습니다:"
#: ../../library/operator.rst:222
msgid "Return ``a + b`` for *a* and *b* sequences."
msgstr "*a*\\와 *b* 시퀀스에 대해 ``a + b``\\를 반환합니다."
#: ../../library/operator.rst:228
msgid "Return the outcome of the test ``b in a``. Note the reversed operands."
msgstr "``b in a`` 검사의 결과를 반환합니다. 피연산자가 뒤집혀 있음에 유의하십시오."
#: ../../library/operator.rst:233
msgid "Return the number of occurrences of *b* in *a*."
msgstr "*a*\\에서 *b*\\가 발생하는 횟수를 반환합니다."
#: ../../library/operator.rst:239
msgid "Remove the value of *a* at index *b*."
msgstr "*a*\\의 값을 인덱스 *b*\\에서 제거합니다."
#: ../../library/operator.rst:245
msgid "Return the value of *a* at index *b*."
msgstr "인덱스 *b*\\에 있는 *a*\\의 값을 반환합니다."
#: ../../library/operator.rst:250
msgid "Return the index of the first of occurrence of *b* in *a*."
msgstr "*a*\\에서 *b*\\가 처음으로 발견되는 인덱스를 반환합니다."
#: ../../library/operator.rst:256
msgid "Set the value of *a* at index *b* to *c*."
msgstr "인덱스 *b*\\의 *a*\\의 값을 *c*\\로 설정합니다."
#: ../../library/operator.rst:261
msgid ""
"Return an estimated length for the object *obj*. First try to return its "
"actual length, then an estimate using :meth:`object.__length_hint__`, and"
" finally return the default value."
msgstr ""
"*obj* 객체의 추정된 길이를 반환합니다. 먼저 실제 길이를 반환하려고 시도한 다음, "
":meth:`object.__length_hint__`\\를 사용하여 추정치를 반환하려고 하고, 마지막으로 default 값을 "
"반환합니다."
#: ../../library/operator.rst:268
msgid "The following operation works with callables:"
msgstr ""
#: ../../library/operator.rst:273
msgid "Return ``obj(*args, **kwargs)``."
msgstr "``obj(*args, **kwargs)``\\를 반환합니다."
#: ../../library/operator.rst:278
msgid ""
"The :mod:`operator` module also defines tools for generalized attribute "
"and item lookups. These are useful for making fast field extractors as "
"arguments for :func:`map`, :func:`sorted`, :meth:`itertools.groupby`, or "
"other functions that expect a function argument."
msgstr ""
":mod:`operator` 모듈은 일반화된 어트리뷰트와 항목 조회를 위한 도구도 정의합니다. 이것은 :func:`map`, "
":func:`sorted`, :meth:`itertools.groupby` 또는 함수 인자를 기대하는 다른 함수의 인자로 사용될 "
"고속 필드 추출기를 만드는 데 유용합니다."
#: ../../library/operator.rst:287
msgid ""
"Return a callable object that fetches *attr* from its operand. If more "
"than one attribute is requested, returns a tuple of attributes. The "
"attribute names can also contain dots. For example:"
msgstr ""
"피연산자에서 *attr*\\을 꺼내는 콜러블 객체를 반환합니다. 둘 이상의 어트리뷰트가 요청되면, 어트리뷰트의 튜플을 반환합니다. "
"어트리뷰트 이름은 점을 포함할 수도 있습니다. 예를 들어:"
#: ../../library/operator.rst:291
msgid "After ``f = attrgetter('name')``, the call ``f(b)`` returns ``b.name``."
msgstr "``f = attrgetter('name')`` 다음에, ``f(b)`` 호출은 ``b.name``\\을 반환합니다."
#: ../../library/operator.rst:293
msgid ""
"After ``f = attrgetter('name', 'date')``, the call ``f(b)`` returns "
"``(b.name, b.date)``."
msgstr ""
"``f = attrgetter('name', 'date')`` 다음에, ``f(b)`` 호출은 ``(b.name, "
"b.date)``\\를 반환합니다."
#: ../../library/operator.rst:296
msgid ""
"After ``f = attrgetter('name.first', 'name.last')``, the call ``f(b)`` "
"returns ``(b.name.first, b.name.last)``."
msgstr ""
"``f = attrgetter('name.first', 'name.last')`` 다음에, ``f(b)`` 호출은 "
"``(b.name.first, b.name.last)``\\를 반환합니다."
#: ../../library/operator.rst:299 ../../library/operator.rst:331
#: ../../library/operator.rst:379
msgid "Equivalent to::"
msgstr "다음과 동등합니다::"
#: ../../library/operator.rst:301
msgid ""
"def attrgetter(*items):\n"
" if any(not isinstance(item, str) for item in items):\n"
" raise TypeError('attribute name must be a string')\n"
" if len(items) == 1:\n"
" attr = items[0]\n"
" def g(obj):\n"
" return resolve_attr(obj, attr)\n"
" else:\n"
" def g(obj):\n"
" return tuple(resolve_attr(obj, attr) for attr in items)\n"
" return g\n"
"\n"
"def resolve_attr(obj, attr):\n"
" for name in attr.split(\".\"):\n"
" obj = getattr(obj, name)\n"
" return obj"
msgstr ""
"def attrgetter(*items):\n"
" if any(not isinstance(item, str) for item in items):\n"
" raise TypeError('attribute name must be a string')\n"
" if len(items) == 1:\n"
" attr = items[0]\n"
" def g(obj):\n"
" return resolve_attr(obj, attr)\n"
" else:\n"
" def g(obj):\n"
" return tuple(resolve_attr(obj, attr) for attr in items)\n"
" return g\n"
"\n"
"def resolve_attr(obj, attr):\n"
" for name in attr.split(\".\"):\n"
" obj = getattr(obj, name)\n"
" return obj"
#: ../../library/operator.rst:322
msgid ""
"Return a callable object that fetches *item* from its operand using the "
"operand's :meth:`~object.__getitem__` method. If multiple items are "
"specified, returns a tuple of lookup values. For example:"
msgstr ""
"피연산자의 :meth:`~object.__getitem__` 메서드를 사용하여 피연산자에서 *item*\\을 꺼내는 콜러블 객체를 "
"반환합니다. 여러 항목이 지정되면, 조회 값의 튜플을 반환합니다. 예를 들어:"
#: ../../library/operator.rst:326
msgid "After ``f = itemgetter(2)``, the call ``f(r)`` returns ``r[2]``."
msgstr "``f = itemgetter(2)`` 다음에, ``f(r)`` 호출은 ``r[2]``\\를 반환합니다."
#: ../../library/operator.rst:328
msgid ""
"After ``g = itemgetter(2, 5, 3)``, the call ``g(r)`` returns ``(r[2], "
"r[5], r[3])``."
msgstr ""
"``g = itemgetter(2, 5, 3)`` 다음에, ``g(r)`` 호출은 ``(r[2], r[5], r[3])``\\을 "
"반환합니다."
#: ../../library/operator.rst:333
msgid ""
"def itemgetter(*items):\n"
" if len(items) == 1:\n"
" item = items[0]\n"
" def g(obj):\n"
" return obj[item]\n"
" else:\n"
" def g(obj):\n"
" return tuple(obj[item] for item in items)\n"
" return g"
msgstr ""
"def itemgetter(*items):\n"
" if len(items) == 1:\n"
" item = items[0]\n"
" def g(obj):\n"
" return obj[item]\n"
" else:\n"
" def g(obj):\n"
" return tuple(obj[item] for item in items)\n"
" return g"
#: ../../library/operator.rst:343
msgid ""
"The items can be any type accepted by the operand's "
":meth:`~object.__getitem__` method. Dictionaries accept any "
":term:`hashable` value. Lists, tuples, and strings accept an index or a "
"slice:"
msgstr ""
"항목은 피연산자의 :meth:`~object.__getitem__` 메서드에서 허용되는 모든 형이 될 수 있습니다. 딕셔너리는 모든"
" :term:`해시 가능 <hashable>` 값을 허용합니다. 리스트, 튜플 및 문자열은 인덱스나 슬라이스를 허용합니다:"
#: ../../library/operator.rst:357
msgid ""
"Example of using :func:`itemgetter` to retrieve specific fields from a "
"tuple record:"
msgstr "튜플 레코드에서 특정 필드를 꺼내기 위해 :func:`itemgetter`\\를 사용하는 예:"
#: ../../library/operator.rst:370
msgid ""
"Return a callable object that calls the method *name* on its operand. If"
" additional arguments and/or keyword arguments are given, they will be "
"given to the method as well. For example:"
msgstr ""
"피연산자에서 *name* 메서드를 호출하는 콜러블 객체를 반환합니다. 추가 인자 및/또는 키워드 인자가 주어지면, 해당 인자도 "
"메서드에 제공됩니다. 예를 들어:"
#: ../../library/operator.rst:374
msgid ""
"After ``f = methodcaller('name')``, the call ``f(b)`` returns "
"``b.name()``."
msgstr "``f = methodcaller('name')`` 다음에, ``f(b)`` 호출은 ``b.name()``\\을 반환합니다."
#: ../../library/operator.rst:376
msgid ""
"After ``f = methodcaller('name', 'foo', bar=1)``, the call ``f(b)`` "
"returns ``b.name('foo', bar=1)``."
msgstr ""
"``f = methodcaller('name', 'foo', bar=1)`` 다음에, ``f(b)`` 호출은 "
"``b.name('foo', bar=1)``\\을 반환합니다."
#: ../../library/operator.rst:381
msgid ""
"def methodcaller(name, /, *args, **kwargs):\n"
" def caller(obj):\n"
" return getattr(obj, name)(*args, **kwargs)\n"
" return caller"
msgstr ""
"def methodcaller(name, /, *args, **kwargs):\n"
" def caller(obj):\n"
" return getattr(obj, name)(*args, **kwargs)\n"
" return caller"
#: ../../library/operator.rst:390
msgid "Mapping Operators to Functions"
msgstr "연산자를 함수에 매핑하기"
#: ../../library/operator.rst:392
msgid ""
"This table shows how abstract operations correspond to operator symbols "
"in the Python syntax and the functions in the :mod:`operator` module."
msgstr "이 표는 추상 연산이 파이썬 문법의 연산자 기호와 :mod:`operator` 모듈의 함수로 어떻게 대응되는지를 보여줍니다."
#: ../../library/operator.rst:396
msgid "Operation"
msgstr "연산"
#: ../../library/operator.rst:396
msgid "Syntax"
msgstr "문법"
#: ../../library/operator.rst:396
msgid "Function"
msgstr "함수"
#: ../../library/operator.rst:398
msgid "Addition"
msgstr "더하기(Addition)"
#: ../../library/operator.rst:398
msgid "``a + b``"
msgstr "``a + b``"
#: ../../library/operator.rst:398
msgid "``add(a, b)``"
msgstr "``add(a, b)``"
#: ../../library/operator.rst:400
msgid "Concatenation"
msgstr "이어붙이기(Concatenation)"
#: ../../library/operator.rst:400
msgid "``seq1 + seq2``"
msgstr "``seq1 + seq2``"
#: ../../library/operator.rst:400
msgid "``concat(seq1, seq2)``"
msgstr "``concat(seq1, seq2)``"
#: ../../library/operator.rst:402
msgid "Containment Test"
msgstr "포함 검사(Containment Test)"
#: ../../library/operator.rst:402
msgid "``obj in seq``"
msgstr "``obj in seq``"
#: ../../library/operator.rst:402
msgid "``contains(seq, obj)``"
msgstr "``contains(seq, obj)``"
#: ../../library/operator.rst:404 ../../library/operator.rst:406
msgid "Division"
msgstr "나누기(Division)"
#: ../../library/operator.rst:404
msgid "``a / b``"
msgstr "``a / b``"
#: ../../library/operator.rst:404
msgid "``truediv(a, b)``"
msgstr "``truediv(a, b)``"
#: ../../library/operator.rst:406
msgid "``a // b``"
msgstr "``a // b``"
#: ../../library/operator.rst:406
msgid "``floordiv(a, b)``"
msgstr "``floordiv(a, b)``"
#: ../../library/operator.rst:408
msgid "Bitwise And"
msgstr "비트별 논리곱(Bitwise And)"
#: ../../library/operator.rst:408
msgid "``a & b``"
msgstr "``a & b``"
#: ../../library/operator.rst:408
msgid "``and_(a, b)``"
msgstr "``and_(a, b)``"
#: ../../library/operator.rst:410
msgid "Bitwise Exclusive Or"
msgstr "비트별 배타적 논리합(Bitwise Exclusive Or)"
#: ../../library/operator.rst:410
msgid "``a ^ b``"
msgstr "``a ^ b``"
#: ../../library/operator.rst:410
msgid "``xor(a, b)``"
msgstr "``xor(a, b)``"
#: ../../library/operator.rst:412
msgid "Bitwise Inversion"
msgstr "비트별 반전(Bitwise Inversion)"
#: ../../library/operator.rst:412
msgid "``~ a``"
msgstr "``~ a``"
#: ../../library/operator.rst:412
msgid "``invert(a)``"
msgstr "``invert(a)``"
#: ../../library/operator.rst:414
msgid "Bitwise Or"
msgstr "비트별 논리합(Bitwise Or)"
#: ../../library/operator.rst:414
msgid "``a | b``"
msgstr "``a | b``"
#: ../../library/operator.rst:414
msgid "``or_(a, b)``"
msgstr "``or_(a, b)``"
#: ../../library/operator.rst:416
msgid "Exponentiation"
msgstr "거듭제곱(Exponentiation)"
#: ../../library/operator.rst:416
msgid "``a ** b``"
msgstr "``a ** b``"
#: ../../library/operator.rst:416
msgid "``pow(a, b)``"
msgstr "``pow(a, b)``"
#: ../../library/operator.rst:418 ../../library/operator.rst:420
#: ../../library/operator.rst:422 ../../library/operator.rst:424
msgid "Identity"
msgstr "아이덴티티(Identity)"
#: ../../library/operator.rst:418
msgid "``a is b``"
msgstr "``a is b``"
#: ../../library/operator.rst:418
msgid "``is_(a, b)``"
msgstr "``is_(a, b)``"
#: ../../library/operator.rst:420
msgid "``a is not b``"
msgstr "``a is not b``"
#: ../../library/operator.rst:420
msgid "``is_not(a, b)``"
msgstr "``is_not(a, b)``"
#: ../../library/operator.rst:422
#, fuzzy
msgid "``a is None``"
msgstr "``a is not b``"
#: ../../library/operator.rst:422
#, fuzzy
msgid "``is_none(a)``"
msgstr "``is_not(a, b)``"
#: ../../library/operator.rst:424
#, fuzzy
msgid "``a is not None``"
msgstr "``a is not b``"
#: ../../library/operator.rst:424
#, fuzzy
msgid "``is_not_none(a)``"
msgstr "``is_not(a, b)``"
#: ../../library/operator.rst:426
msgid "Indexed Assignment"
msgstr "인덱싱된 대입(Indexed Assignment)"
#: ../../library/operator.rst:426
msgid "``obj[k] = v``"
msgstr "``obj[k] = v``"
#: ../../library/operator.rst:426
msgid "``setitem(obj, k, v)``"
msgstr "``setitem(obj, k, v)``"
#: ../../library/operator.rst:428
msgid "Indexed Deletion"
msgstr "인덱싱된 삭제(Indexed Deletion)"
#: ../../library/operator.rst:428
msgid "``del obj[k]``"
msgstr "``del obj[k]``"
#: ../../library/operator.rst:428
msgid "``delitem(obj, k)``"
msgstr "``delitem(obj, k)``"
#: ../../library/operator.rst:430
msgid "Indexing"
msgstr "인덱싱(Indexing)"
#: ../../library/operator.rst:430
msgid "``obj[k]``"
msgstr "``obj[k]``"
#: ../../library/operator.rst:430
msgid "``getitem(obj, k)``"
msgstr "``getitem(obj, k)``"
#: ../../library/operator.rst:432
msgid "Left Shift"
msgstr "왼쪽으로 시프트(Left Shift)"
#: ../../library/operator.rst:432
msgid "``a << b``"
msgstr "``a << b``"
#: ../../library/operator.rst:432
msgid "``lshift(a, b)``"
msgstr "``lshift(a, b)``"
#: ../../library/operator.rst:434
msgid "Modulo"
msgstr "모듈로(Modulo)"
#: ../../library/operator.rst:434
msgid "``a % b``"
msgstr "``a % b``"
#: ../../library/operator.rst:434
msgid "``mod(a, b)``"
msgstr "``mod(a, b)``"
#: ../../library/operator.rst:436
msgid "Multiplication"
msgstr "곱하기(Multiplication)"
#: ../../library/operator.rst:436
msgid "``a * b``"
msgstr "``a * b``"
#: ../../library/operator.rst:436
msgid "``mul(a, b)``"
msgstr "``mul(a, b)``"
#: ../../library/operator.rst:438
msgid "Matrix Multiplication"
msgstr "행렬 곱하기(Matrix Multiplication)"
#: ../../library/operator.rst:438
msgid "``a @ b``"
msgstr "``a @ b``"
#: ../../library/operator.rst:438
msgid "``matmul(a, b)``"
msgstr "``matmul(a, b)``"
#: ../../library/operator.rst:440
msgid "Negation (Arithmetic)"
msgstr "부정 (산술)(Negation (Arithmetic))"
#: ../../library/operator.rst:440
msgid "``- a``"
msgstr "``- a``"
#: ../../library/operator.rst:440
msgid "``neg(a)``"
msgstr "``neg(a)``"
#: ../../library/operator.rst:442
msgid "Negation (Logical)"
msgstr "부정 (논리)(Negation (Logical))"
#: ../../library/operator.rst:442
msgid "``not a``"
msgstr "``not a``"
#: ../../library/operator.rst:442
msgid "``not_(a)``"
msgstr "``not_(a)``"
#: ../../library/operator.rst:444
msgid "Positive"
msgstr "양(Positive)"
#: ../../library/operator.rst:444
msgid "``+ a``"
msgstr "``+ a``"
#: ../../library/operator.rst:444
msgid "``pos(a)``"
msgstr "``pos(a)``"
#: ../../library/operator.rst:446
msgid "Right Shift"
msgstr "오른쪽으로 시프트(Right Shift)"
#: ../../library/operator.rst:446
msgid "``a >> b``"
msgstr "``a >> b``"
#: ../../library/operator.rst:446
msgid "``rshift(a, b)``"
msgstr "``rshift(a, b)``"
#: ../../library/operator.rst:448
msgid "Slice Assignment"
msgstr "슬라이스 대입(Slice Assignment)"
#: ../../library/operator.rst:448
msgid "``seq[i:j] = values``"
msgstr "``seq[i:j] = values``"
#: ../../library/operator.rst:448
msgid "``setitem(seq, slice(i, j), values)``"
msgstr "``setitem(seq, slice(i, j), values)``"
#: ../../library/operator.rst:450
msgid "Slice Deletion"
msgstr "슬라이스 삭제(Slice Deletion)"
#: ../../library/operator.rst:450
msgid "``del seq[i:j]``"
msgstr "``del seq[i:j]``"
#: ../../library/operator.rst:450
msgid "``delitem(seq, slice(i, j))``"
msgstr "``delitem(seq, slice(i, j))``"
#: ../../library/operator.rst:452
msgid "Slicing"
msgstr "슬라이싱(Slicing)"
#: ../../library/operator.rst:452
msgid "``seq[i:j]``"
msgstr "``seq[i:j]``"
#: ../../library/operator.rst:452
msgid "``getitem(seq, slice(i, j))``"
msgstr "``getitem(seq, slice(i, j))``"
#: ../../library/operator.rst:454
msgid "String Formatting"
msgstr "문자열 포매팅(String Formatting)"
#: ../../library/operator.rst:454
#, python-format
msgid "``s % obj``"
msgstr "``s % obj``"
#: ../../library/operator.rst:454
msgid "``mod(s, obj)``"
msgstr "``mod(s, obj)``"
#: ../../library/operator.rst:456
msgid "Subtraction"
msgstr "빼기(Subtraction)"
#: ../../library/operator.rst:456
msgid "``a - b``"
msgstr "``a - b``"
#: ../../library/operator.rst:456
msgid "``sub(a, b)``"
msgstr "``sub(a, b)``"
#: ../../library/operator.rst:458
msgid "Truth Test"
msgstr "진릿값 검사(Truth Test)"
#: ../../library/operator.rst:458
msgid "``obj``"
msgstr "``obj``"
#: ../../library/operator.rst:458
msgid "``truth(obj)``"
msgstr "``truth(obj)``"
#: ../../library/operator.rst:460 ../../library/operator.rst:462
#: ../../library/operator.rst:468 ../../library/operator.rst:470
msgid "Ordering"
msgstr "대소비교(Ordering)"
#: ../../library/operator.rst:460
msgid "``a < b``"
msgstr "``a < b``"
#: ../../library/operator.rst:460
msgid "``lt(a, b)``"
msgstr "``lt(a, b)``"
#: ../../library/operator.rst:462
msgid "``a <= b``"
msgstr "``a <= b``"
#: ../../library/operator.rst:462
msgid "``le(a, b)``"
msgstr "``le(a, b)``"
#: ../../library/operator.rst:464
msgid "Equality"
msgstr "동등성(Equality)"
#: ../../library/operator.rst:464
msgid "``a == b``"
msgstr "``a == b``"
#: ../../library/operator.rst:464
msgid "``eq(a, b)``"
msgstr "``eq(a, b)``"
#: ../../library/operator.rst:466
msgid "Difference"
msgstr "다름(Difference)"
#: ../../library/operator.rst:466
msgid "``a != b``"
msgstr "``a != b``"
#: ../../library/operator.rst:466
msgid "``ne(a, b)``"
msgstr "``ne(a, b)``"
#: ../../library/operator.rst:468
msgid "``a >= b``"
msgstr "``a >= b``"
#: ../../library/operator.rst:468
msgid "``ge(a, b)``"
msgstr "``ge(a, b)``"
#: ../../library/operator.rst:470
msgid "``a > b``"
msgstr "``a > b``"
#: ../../library/operator.rst:470
msgid "``gt(a, b)``"
msgstr "``gt(a, b)``"
#: ../../library/operator.rst:474
msgid "In-place Operators"
msgstr "제자리 연산자"
#: ../../library/operator.rst:476
msgid ""
"Many operations have an \"in-place\" version. Listed below are functions"
" providing a more primitive access to in-place operators than the usual "
"syntax does; for example, the :term:`statement` ``x += y`` is equivalent "
"to ``x = operator.iadd(x, y)``. Another way to put it is to say that ``z"
" = operator.iadd(x, y)`` is equivalent to the compound statement ``z = x;"
" z += y``."
msgstr ""
"많은 연산에는 \"제자리(in-place)\" 버전이 있습니다. 아래에 나열된 것들은 일반적인 문법보다 제자리 연산자에 대한 더 "
"기본적인 액세스를 제공하는 함수입니다; 예를 들어, :term:`문장 <statement>` ``x += y``\\는 ``x = "
"operator.iadd(x, y)``\\와 동등합니다. 또 다른 식으로는, ``z = operator.iadd(x, y)``\\가"
" 복합문 ``z = x; z += y``\\와 동등하다고 말하는 것입니다."
#: ../../library/operator.rst:483
msgid ""
"In those examples, note that when an in-place method is called, the "
"computation and assignment are performed in two separate steps. The in-"
"place functions listed below only do the first step, calling the in-place"
" method. The second step, assignment, is not handled."
msgstr ""
"이 예제들에서, 제자리 메서드가 호출될 때, 계산과 대입이 두 개의 분리된 단계에서 수행된다는 점에 유의하십시오. 아래 나열된 "
"제자리 함수는 제자리 메서드를 호출하는 첫 번째 단계만 수행합니다. 두 번째 단계인 대입은 처리되지 않습니다."
#: ../../library/operator.rst:488
msgid ""
"For immutable targets such as strings, numbers, and tuples, the updated "
"value is computed, but not assigned back to the input variable:"
msgstr "문자열, 숫자 및 튜플과 같은 불변 대상의 경우, 갱신된 값이 계산되지만, 입력 변수에 다시 할당되지 않습니다:"
#: ../../library/operator.rst:497
msgid ""
"For mutable targets such as lists and dictionaries, the in-place method "
"will perform the update, so no subsequent assignment is necessary:"
msgstr "리스트와 딕셔너리 같은 가변 대상의 경우, 제자리 메서드가 갱신을 수행하므로, 이후 대입이 필요하지 않습니다:"
#: ../../library/operator.rst:509
msgid "``a = iadd(a, b)`` is equivalent to ``a += b``."
msgstr "``a = iadd(a, b)``\\는 ``a += b``\\와 동등합니다."
#: ../../library/operator.rst:515
msgid "``a = iand(a, b)`` is equivalent to ``a &= b``."
msgstr "``a = iand(a, b)``\\는 ``a &= b``\\와 동등합니다."
#: ../../library/operator.rst:521
msgid ""
"``a = iconcat(a, b)`` is equivalent to ``a += b`` for *a* and *b* "
"sequences."
msgstr "*a*\\와 *b* 시퀀스에 대해, ``a = iconcat(a, b)``\\는 ``a += b``\\와 동등합니다."
#: ../../library/operator.rst:527
msgid "``a = ifloordiv(a, b)`` is equivalent to ``a //= b``."
msgstr "``a = ifloordiv(a, b)``\\는 ``a //= b``\\와 동등합니다."
#: ../../library/operator.rst:533
msgid "``a = ilshift(a, b)`` is equivalent to ``a <<= b``."
msgstr "``a = ilshift(a, b)``\\는 ``a <<= b``\\와 동등합니다."
#: ../../library/operator.rst:539
msgid "``a = imod(a, b)`` is equivalent to ``a %= b``."
msgstr "``a = imod(a, b)``\\는 ``a %= b``\\와 동등합니다."
#: ../../library/operator.rst:545
msgid "``a = imul(a, b)`` is equivalent to ``a *= b``."
msgstr "``a = imul(a, b)``\\는 ``a *= b``\\와 동등합니다."
#: ../../library/operator.rst:551
msgid "``a = imatmul(a, b)`` is equivalent to ``a @= b``."
msgstr "``a = imatmul(a, b)``\\는 ``a @= b``\\와 동등합니다."
#: ../../library/operator.rst:559
msgid "``a = ior(a, b)`` is equivalent to ``a |= b``."
msgstr "``a = ior(a, b)``\\는 ``a |= b``\\와 동등합니다."
#: ../../library/operator.rst:565
msgid "``a = ipow(a, b)`` is equivalent to ``a **= b``."
msgstr "``a = ipow(a, b)``\\는 ``a **= b``\\와 동등합니다."
#: ../../library/operator.rst:571
msgid "``a = irshift(a, b)`` is equivalent to ``a >>= b``."
msgstr "``a = irshift(a, b)``\\는 ``a >>= b``\\와 동등합니다."
#: ../../library/operator.rst:577
msgid "``a = isub(a, b)`` is equivalent to ``a -= b``."
msgstr "``a = isub(a, b)``\\는 ``a -= b``\\와 동등합니다."
#: ../../library/operator.rst:583
msgid "``a = itruediv(a, b)`` is equivalent to ``a /= b``."
msgstr "``a = itruediv(a, b)``\\는 ``a /= b``\\와 동등합니다."
#: ../../library/operator.rst:589
msgid "``a = ixor(a, b)`` is equivalent to ``a ^= b``."
msgstr "``a = ixor(a, b)``\\는 ``a ^= b``\\와 동등합니다."