forked from python/python-docs-tr
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathglossary.html
More file actions
786 lines (747 loc) · 158 KB
/
glossary.html
File metadata and controls
786 lines (747 loc) · 158 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
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta property="og:title" content="Sözlük" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://docs.python.org/3/glossary.html" />
<meta property="og:site_name" content="Python documentation" />
<meta property="og:description" content=">>>, Etkileşimli kabuğun varsayılan Python istemi. Genellikle yorumlayıcıda etkileşimli olarak yürütülebilen kod örnekleri için görülür.,,..., Şunlara başvurabilir:- Girintili bir kod bloğu için ko..." />
<meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
<meta property="og:image:alt" content="Python documentation" />
<meta name="description" content=">>>, Etkileşimli kabuğun varsayılan Python istemi. Genellikle yorumlayıcıda etkileşimli olarak yürütülebilen kod örnekleri için görülür.,,..., Şunlara başvurabilir:- Girintili bir kod bloğu için ko..." />
<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />
<meta name="theme-color" content="#3776ab" />
<title>Sözlük — Python 3.11.5 belgelendirmesi</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/pydoctheme.css?digest=b37c26da2f7529d09fe70b41c4b2133fe4931a90" />
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="_static/pygments_dark.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/translations.js"></script>
<script src="_static/sidebar.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Python 3.11.5 belgelendirmesi içinde ara"
href="_static/opensearch.xml"/>
<link rel="author" title="Bu belgeler hakkında" href="about.html" />
<link rel="index" title="Dizin" href="genindex.html" />
<link rel="search" title="Ara" href="search.html" />
<link rel="copyright" title="Telif Hakkı" href="copyright.html" />
<link rel="next" title="Dokümanlar hakkında" href="about.html" />
<link rel="prev" title="“Python Bilgisayarımda Neden Yüklü?” SSS" href="faq/installed.html" />
<link rel="canonical" href="https://docs.python.org/3/glossary.html" />
<style>
@media only screen {
table.full-width-table {
width: 100%;
}
}
</style>
<link rel="stylesheet" href="_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
<link rel="shortcut icon" type="image/png" href="_static/py.svg" />
<script type="text/javascript" src="_static/copybutton.js"></script>
<script type="text/javascript" src="_static/menu.js"></script>
<script type="text/javascript" src="_static/search-focus.js"></script>
<script type="text/javascript" src="_static/themetoggle.js"></script>
</head>
<body>
<div class="mobile-nav">
<input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
<nav class="nav-content" role="navigation">
<label for="menuToggler" class="toggler__label">
<span></span>
</label>
<span class="nav-items-wrapper">
<a href="https://www.python.org/" class="nav-logo">
<img src="_static/py.svg" alt="Logo"/>
</a>
<span class="version_switcher_placeholder"></span>
<form role="search" class="search" action="search.html" method="get">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
<path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
</svg>
<input placeholder="Hızlı Arama" aria-label="Hızlı Arama" type="search" name="q" />
<input type="submit" value="Git"/>
</form>
</span>
</nav>
<div class="menu-wrapper">
<nav class="menu" role="navigation" aria-label="main navigation">
<div class="language_switcher_placeholder"></div>
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label>
<div>
<h4>Önceki konu</h4>
<p class="topless"><a href="faq/installed.html"
title="önceki bölüm">“Python Bilgisayarımda Neden Yüklü?” SSS</a></p>
</div>
<div>
<h4>Sonraki konu</h4>
<p class="topless"><a href="about.html"
title="sonraki bölüm">Dokümanlar hakkında</a></p>
</div>
<div role="note" aria-label="source link">
<h3>Bu Sayfa</h3>
<ul class="this-page-menu">
<li><a href="bugs.html">Hata Bildir</a></li>
<li>
<a href="https://github.com/python/cpython/blob/3.11/Doc/glossary.rst"
rel="nofollow">Kaynağı Göster
</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Gezinti</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="Genel Endeks"
accesskey="I">dizin</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Modül Dizini"
>modülleri</a> |</li>
<li class="right" >
<a href="about.html" title="Dokümanlar hakkında"
accesskey="N">sonraki</a> |</li>
<li class="right" >
<a href="faq/installed.html" title="“Python Bilgisayarımda Neden Yüklü?” SSS"
accesskey="P">önceki</a> |</li>
<li><img src="_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://www.python.org/">Python</a> »</li>
<li class="switchers">
<div class="language_switcher_placeholder"></div>
<div class="version_switcher_placeholder"></div>
</li>
<li>
</li>
<li id="cpython-language-and-version">
<a href="index.html">3.11.5 Documentation</a> »
</li>
<li class="nav-item nav-item-this"><a href="">Sözlük</a></li>
<li class="right">
<div class="inline-search" role="search">
<form class="inline-search" action="search.html" method="get">
<input placeholder="Hızlı Arama" aria-label="Hızlı Arama" type="search" name="q" id="search-box" />
<input type="submit" value="Git" />
</form>
</div>
|
</li>
<li class="right">
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label> |</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="glossary">
<span id="id1"></span><h1>Sözlük<a class="headerlink" href="#glossary" title="Permalink to this heading">¶</a></h1>
<dl class="glossary">
<dt id="term-0"><code class="docutils literal notranslate"><span class="pre">>>></span></code><a class="headerlink" href="#term-0" title="Permalink to this term">¶</a></dt><dd><p>Etkileşimli kabuğun varsayılan Python istemi. Genellikle yorumlayıcıda etkileşimli olarak yürütülebilen kod örnekleri için görülür.</p>
</dd>
<dt id="term-..."><code class="docutils literal notranslate"><span class="pre">...</span></code><a class="headerlink" href="#term-..." title="Permalink to this term">¶</a></dt><dd><p>Şunlara başvurabilir:</p>
<ul class="simple">
<li><p>Girintili bir kod bloğu için kod girerken, eşleşen bir çift sol ve sağ sınırlayıcı (parantez, köşeli parantez, kaşlı ayraç veya üçlü tırnak) içindeyken veya bir dekoratör belirttikten sonra etkileşimli kabuğun varsayılan Python istemi.</p></li>
<li><p><code class="xref py py-const docutils literal notranslate"><span class="pre">Elipsis</span></code> yerleşik sabiti.</p></li>
</ul>
</dd>
<dt id="term-2to3">2to3<a class="headerlink" href="#term-2to3" title="Permalink to this term">¶</a></dt><dd><p>Kaynağı ayrıştırarak ve ayrıştırma ağacında gezinerek tespit edilebilecek uyumsuzlukların çoğunu işleyerek Python 2.x kodunu Python 3.x koduna dönüştürmeye çalışan bir araç.</p>
<p>2to3, standart kütüphanede <code class="xref py py-mod docutils literal notranslate"><span class="pre">lib2to3';</span> <span class="pre">bağımsız</span> <span class="pre">bir</span> <span class="pre">giriş</span> <span class="pre">noktası</span> <span class="pre">şu</span> <span class="pre">şekilde</span> <span class="pre">sağlanır:file:`Tools/scripts/2to3</span></code>. Bakınız <a class="reference internal" href="library/2to3.html#to3-reference"><span class="std std-ref">2to3 — Automated Python 2 to 3 code translation</span></a>.</p>
</dd>
<dt id="term-abstract-base-class">soyut temel sınıf<a class="headerlink" href="#term-abstract-base-class" title="Permalink to this term">¶</a></dt><dd><p>Soyut temel sınıflar <a class="reference internal" href="#term-duck-typing"><span class="xref std std-term">duck-typing</span></a> ‘i, <a class="reference internal" href="library/functions.html#hasattr" title="hasattr"><code class="xref py py-func docutils literal notranslate"><span class="pre">hasattr()</span></code></a> gibi diğer teknikler beceriksiz veya tamamen yanlış olduğunda arayüzleri tanımlamanın bir yolunu sağlayarak tamamlar (örneğin <a class="reference internal" href="reference/datamodel.html#special-lookup"><span class="std std-ref">sihirli yöntemlerle</span></a>). ABC’ler, bir sınıftan miras almayan ancak yine de <a class="reference internal" href="library/functions.html#isinstance" title="isinstance"><code class="xref py py-func docutils literal notranslate"><span class="pre">isinstance()</span></code></a> ve <a class="reference internal" href="library/functions.html#issubclass" title="issubclass"><code class="xref py py-func docutils literal notranslate"><span class="pre">issubclass()</span></code></a> tarafından tanınan sınıflar olan sanal alt sınıfları tanıtır; <a class="reference internal" href="library/abc.html#module-abc" title="abc: Abstract base classes according to :pep:`3119`."><code class="xref py py-mod docutils literal notranslate"><span class="pre">abc</span></code></a> modül belgelerine bakın. Python comes with many built-in ABCs for data structures (in the <a class="reference internal" href="library/collections.abc.html#module-collections.abc" title="collections.abc: Abstract base classes for containers"><code class="xref py py-mod docutils literal notranslate"><span class="pre">collections.abc</span></code></a> module), numbers (in the <a class="reference internal" href="library/numbers.html#module-numbers" title="numbers: Numeric abstract base classes (Complex, Real, Integral, etc.)."><code class="xref py py-mod docutils literal notranslate"><span class="pre">numbers</span></code></a> module), streams (in the <a class="reference internal" href="library/io.html#module-io" title="io: Core tools for working with streams."><code class="xref py py-mod docutils literal notranslate"><span class="pre">io</span></code></a> module), import finders and loaders (in the <a class="reference internal" href="library/importlib.html#module-importlib.abc" title="importlib.abc: Abstract base classes related to import"><code class="xref py py-mod docutils literal notranslate"><span class="pre">importlib.abc</span></code></a> module). <a class="reference internal" href="library/abc.html#module-abc" title="abc: Abstract base classes according to :pep:`3119`."><code class="xref py py-mod docutils literal notranslate"><span class="pre">abc</span></code></a> modülü ile kendi ABC’lerinizi oluşturabilirsiniz.</p>
</dd>
<dt id="term-annotation">dipnot<a class="headerlink" href="#term-annotation" title="Permalink to this term">¶</a></dt><dd><p>Bir değişkenle, bir sınıf niteliğiyle veya bir fonksiyon parametresiyle veya bir dönüş değeriyle ilişkilendirilen, gelenek olarak <a class="reference internal" href="#term-type-hint"><span class="xref std std-term">type hint</span></a> biçiminde kullanılan bir etiket.</p>
<p>Yerel değişkenlerin açıklamalarına çalışma zamanında erişilemez, ancak global değişkenlerin, sınıf niteliklerinin ve işlevlerin açıklamaları, sırasıyla modüllerin, sınıfların ve işlevlerin <code class="xref py py-attr docutils literal notranslate"><span class="pre">__annotations__</span></code> özel özelliğinde saklanır.</p>
<p>Bu işlevi açıklayan <a class="reference internal" href="#term-variable-annotation"><span class="xref std std-term">variable annotation</span></a>, <a class="reference internal" href="#term-function-annotation"><span class="xref std std-term">function annotation</span></a>, <span class="target" id="index-71"></span><a class="pep reference external" href="https://peps.python.org/pep-0484/"><strong>PEP 484</strong></a> ve <span class="target" id="index-72"></span><a class="pep reference external" href="https://peps.python.org/pep-0526/"><strong>PEP 526</strong></a>’e bakın. Ek açıklamalarla çalışmaya ilişkin en iyi uygulamalar için ayrıca bkz. <a class="reference internal" href="howto/annotations.html#annotations-howto"><span class="std std-ref">Annotations Best Practices</span></a>.</p>
</dd>
<dt id="term-argument">argüman<a class="headerlink" href="#term-argument" title="Permalink to this term">¶</a></dt><dd><p>Fonksiyon çağrılırken bir <a class="reference internal" href="#term-function"><span class="xref std std-term">function</span></a> ‘a (veya <a class="reference internal" href="#term-method"><span class="xref std std-term">method</span></a>) geçirilen bir değer. İki tür argüman vardır:</p>
<ul>
<li><p><em class="dfn">keyword argument</em>: bir işlev çağrısında bir tanımlayıcının (ör. <code class="docutils literal notranslate"><span class="pre">ad=</span></code>) önüne geçen veya bir sözlükte <code class="docutils literal notranslate"><span class="pre">**</span></code> ile başlayan bir değer olarak geçirilen bir argüman. Örneğin, <code class="docutils literal notranslate"><span class="pre">3</span></code> ve <code class="docutils literal notranslate"><span class="pre">5</span></code>, aşağıdaki <a class="reference internal" href="library/functions.html#complex" title="complex"><code class="xref py py-func docutils literal notranslate"><span class="pre">complex()</span></code></a>: çağrılarında anahtar kelimenin argümanleridir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="nb">complex</span><span class="p">(</span><span class="n">real</span><span class="o">=</span><span class="mi">3</span><span class="p">,</span> <span class="n">imag</span><span class="o">=</span><span class="mi">5</span><span class="p">)</span>
<span class="nb">complex</span><span class="p">(</span><span class="o">**</span><span class="p">{</span><span class="s1">'real'</span><span class="p">:</span> <span class="mi">3</span><span class="p">,</span> <span class="s1">'imag'</span><span class="p">:</span> <span class="mi">5</span><span class="p">})</span>
</pre></div>
</div>
</li>
<li><p><em class="dfn">positional argument</em>: anahtar kelime argümanı olmayan bir argüman. Konumsal argümanler, bir argüman listesinin başında görünebilir ve/veya <code class="docutils literal notranslate"><span class="pre">*</span></code> ile başlayan bir <a class="reference internal" href="#term-iterable"><span class="xref std std-term">iterable</span></a> öğesinin öğeleri olarak iletilebilir. Örneğin, <code class="docutils literal notranslate"><span class="pre">3</span></code> ve <code class="docutils literal notranslate"><span class="pre">5</span></code>, aşağıdaki çağrılarda konumsal argümanlerdir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="nb">complex</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">5</span><span class="p">)</span>
<span class="nb">complex</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">5</span><span class="p">))</span>
</pre></div>
</div>
</li>
</ul>
<p>Argümanler, bir fonksiyon gövdesindeki adlandırılmış yerel değişkenlere atanır. Bu atamayı yöneten kurallar için <a class="reference internal" href="reference/expressions.html#calls"><span class="std std-ref">Calls</span></a> bölümüne bakın. Sözdizimsel olarak, bir argümanı temsil etmek için herhangi bir ifade kullanılabilir; değerlendirilen değer yerel değişkene atanır.</p>
<p>Ayrıca <a class="reference internal" href="#term-parameter"><span class="xref std std-term">parameter</span></a> sözlüğü girişine, <a class="reference internal" href="faq/programming.html#faq-argument-vs-parameter"><span class="std std-ref">the difference between arguments and parameters</span></a> hakkındaki SSS sorusuna ve <span class="target" id="index-73"></span><a class="pep reference external" href="https://peps.python.org/pep-0362/"><strong>PEP 362</strong></a> ‘ye bakın.</p>
</dd>
<dt id="term-asynchronous-context-manager">asenkron bağlam yöneticisi<a class="headerlink" href="#term-asynchronous-context-manager" title="Permalink to this term">¶</a></dt><dd><p>An object which controls the environment seen in an
<a class="reference internal" href="reference/compound_stmts.html#async-with"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">with</span></code></a> statement by defining <a class="reference internal" href="reference/datamodel.html#object.__aenter__" title="object.__aenter__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__aenter__()</span></code></a> and
<a class="reference internal" href="reference/datamodel.html#object.__aexit__" title="object.__aexit__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__aexit__()</span></code></a> methods. Introduced by <span class="target" id="index-3"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a>.</p>
</dd>
<dt id="term-asynchronous-generator">asenkron jeneratör<a class="headerlink" href="#term-asynchronous-generator" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="#term-asynchronous-generator-iterator"><span class="xref std std-term">asynchronous generator iterator</span></a> döndüren bir işlev. Bir <a class="reference internal" href="reference/compound_stmts.html#async-for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code></a> döngüsünde kullanılabilen bir dizi değer üretmek için <a class="reference internal" href="reference/simple_stmts.html#yield"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code></a> ifadeleri içermesi dışında <a class="reference internal" href="reference/compound_stmts.html#async-def"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">def</span></code></a> ile tanımlanmış bir eşyordam işlevine benziyor.</p>
<p>Genellikle bir asenkron üreteç işlevine atıfta bulunur, ancak bazı bağlamlarda bir <em>asynchronous generator iterator</em> ‘e karşılık gelebilir. Amaçlanan anlamın net olmadığı durumlarda, tam terimlerin kullanılması belirsizliği önler.</p>
<p>Bir asenkron üretici fonksiyonu, <a class="reference internal" href="reference/expressions.html#await"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">await</span></code></a> ifadelerinin yanı sıra <a class="reference internal" href="reference/compound_stmts.html#async-for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code></a> ve <a class="reference internal" href="reference/compound_stmts.html#async-with"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">with</span></code></a> ifadeleri içerebilir.</p>
</dd>
<dt id="term-asynchronous-generator-iterator">asenkron jeneratör yineleyici<a class="headerlink" href="#term-asynchronous-generator-iterator" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-asynchronous-generator"><span class="xref std std-term">asynchronous generator</span></a> işlevi tarafından oluşturulan bir nesne.</p>
<p>This is an <a class="reference internal" href="#term-asynchronous-iterator"><span class="xref std std-term">asynchronous iterator</span></a> which when called using the
<a class="reference internal" href="reference/datamodel.html#object.__anext__" title="object.__anext__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__anext__()</span></code></a> method returns an awaitable object which will execute
the body of the asynchronous generator function until the next
<a class="reference internal" href="reference/simple_stmts.html#yield"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code></a> expression.</p>
<p>Each <a class="reference internal" href="reference/simple_stmts.html#yield"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code></a> temporarily suspends processing, remembering the
location execution state (including local variables and pending
try-statements). When the <em>asynchronous generator iterator</em> effectively
resumes with another awaitable returned by <a class="reference internal" href="reference/datamodel.html#object.__anext__" title="object.__anext__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__anext__()</span></code></a>, it
picks up where it left off. See <span class="target" id="index-4"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a> and <span class="target" id="index-5"></span><a class="pep reference external" href="https://peps.python.org/pep-0525/"><strong>PEP 525</strong></a>.</p>
</dd>
<dt id="term-asynchronous-iterable">eşzamansız yinelenebilir<a class="headerlink" href="#term-asynchronous-iterable" title="Permalink to this term">¶</a></dt><dd><p>An object, that can be used in an <a class="reference internal" href="reference/compound_stmts.html#async-for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code></a> statement.
Must return an <a class="reference internal" href="#term-asynchronous-iterator"><span class="xref std std-term">asynchronous iterator</span></a> from its
<a class="reference internal" href="reference/datamodel.html#object.__aiter__" title="object.__aiter__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__aiter__()</span></code></a> method. Introduced by <span class="target" id="index-6"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a>.</p>
</dd>
<dt id="term-asynchronous-iterator">asenkron yineleyici<a class="headerlink" href="#term-asynchronous-iterator" title="Permalink to this term">¶</a></dt><dd><p>An object that implements the <a class="reference internal" href="reference/datamodel.html#object.__aiter__" title="object.__aiter__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__aiter__()</span></code></a> and <a class="reference internal" href="reference/datamodel.html#object.__anext__" title="object.__anext__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__anext__()</span></code></a>
methods. <a class="reference internal" href="reference/datamodel.html#object.__anext__" title="object.__anext__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__anext__()</span></code></a> must return an <a class="reference internal" href="#term-awaitable"><span class="xref std std-term">awaitable</span></a> object.
<a class="reference internal" href="reference/compound_stmts.html#async-for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code></a> resolves the awaitables returned by an asynchronous
iterator’s <a class="reference internal" href="reference/datamodel.html#object.__anext__" title="object.__anext__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__anext__()</span></code></a> method until it raises a
<a class="reference internal" href="library/exceptions.html#StopAsyncIteration" title="StopAsyncIteration"><code class="xref py py-exc docutils literal notranslate"><span class="pre">StopAsyncIteration</span></code></a> exception. Introduced by <span class="target" id="index-7"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a>.</p>
</dd>
<dt id="term-attribute">nitelik<a class="headerlink" href="#term-attribute" title="Permalink to this term">¶</a></dt><dd><p>Noktalı ifadeler kullanılarak adıyla başvurulan bir nesneyle ilişkili değer. Örneğin, <em>o</em> nesnesinin <em>a</em> özniteliği varsa, bu nesneye <em>o.a</em> olarak başvurulur.</p>
<p>Bir nesneye, eğer nesne izin veriyorsa, örneğin <a class="reference internal" href="library/functions.html#setattr" title="setattr"><code class="xref py py-func docutils literal notranslate"><span class="pre">setattr()</span></code></a> kullanarak, adı <a class="reference internal" href="reference/lexical_analysis.html#identifiers"><span class="std std-ref">Identifiers and keywords</span></a> tarafından tanımlandığı gibi tanımlayıcı olmayan bir öznitelik vermek mümkündür. Böyle bir özniteliğe noktalı bir ifade kullanılarak erişilemez ve bunun yerine <a class="reference internal" href="library/functions.html#getattr" title="getattr"><code class="xref py py-func docutils literal notranslate"><span class="pre">getattr()</span></code></a> ile alınması gerekir.</p>
</dd>
<dt id="term-awaitable">beklenebilir<a class="headerlink" href="#term-awaitable" title="Permalink to this term">¶</a></dt><dd><p>An object that can be used in an <a class="reference internal" href="reference/expressions.html#await"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">await</span></code></a> expression. Can be
a <a class="reference internal" href="#term-coroutine"><span class="xref std std-term">coroutine</span></a> or an object with an <a class="reference internal" href="reference/datamodel.html#object.__await__" title="object.__await__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__await__()</span></code></a> method.
See also <span class="target" id="index-8"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a>.</p>
</dd>
<dt id="term-BDFL">BDFL<a class="headerlink" href="#term-BDFL" title="Permalink to this term">¶</a></dt><dd><p>Benevolent Dictator For Life, namı diğer <a class="reference external" href="https://gvanrossum.github.io/">Guido van Rossum</a>, Python’un yaratıcısı.</p>
</dd>
<dt id="term-binary-file">ikili dosya<a class="headerlink" href="#term-binary-file" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-file-object"><span class="xref std std-term">dosya nesnesi</span></a> <a class="reference internal" href="#term-bytes-like-object"><span class="xref std std-term">bayt benzeri nesneler</span></a> okuyabilir ve yazabilir. İkili dosya örnekleri, ikili modda açılan dosyalardır (<code class="docutils literal notranslate"><span class="pre">'rb'</span></code>, <code class="docutils literal notranslate"><span class="pre">'wb'</span></code> veya <code class="docutils literal notranslate"><span class="pre">'rb+'</span></code>), <code class="xref py py-data docutils literal notranslate"><span class="pre">sys.stdin.buffer</span></code>, <code class="xref py py-data docutils literal notranslate"><span class="pre">sys.stdout.buffer</span></code> ve <a class="reference internal" href="library/io.html#io.BytesIO" title="io.BytesIO"><code class="xref py py-class docutils literal notranslate"><span class="pre">io.BytesIO</span></code></a> ve <a class="reference internal" href="library/gzip.html#gzip.GzipFile" title="gzip.GzipFile"><code class="xref py py-class docutils literal notranslate"><span class="pre">gzip.GzipFile</span></code></a> örnekleri.</p>
<p>Ayrıca <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> nesnelerini okuyabilen ve yazabilen bir dosya nesnesi için <a class="reference internal" href="#term-text-file"><span class="xref std std-term">text file</span></a> ‘a bakın.</p>
</dd>
<dt id="term-borrowed-reference">ödünç alınan referans<a class="headerlink" href="#term-borrowed-reference" title="Permalink to this term">¶</a></dt><dd><p>In Python’s C API, a borrowed reference is a reference to an object,
where the code using the object does not own the reference.
It becomes a dangling
pointer if the object is destroyed. For example, a garbage collection can
remove the last <a class="reference internal" href="#term-strong-reference"><span class="xref std std-term">strong reference</span></a> to the object and so destroy it.</p>
<p><a class="reference internal" href="#term-borrowed-reference"><span class="xref std std-term">borrowed reference</span></a> üzerinde <a class="reference internal" href="c-api/refcounting.html#c.Py_INCREF" title="Py_INCREF"><code class="xref c c-func docutils literal notranslate"><span class="pre">Py_INCREF()</span></code></a> çağırmak, nesnenin ödünç alınanın son kullanımından önce yok edilemediği durumlar dışında, onu yerinde bir <a class="reference internal" href="#term-strong-reference"><span class="xref std std-term">strong reference</span></a> ‘a dönüştürmek için tavsiye edilir. referans. <a class="reference internal" href="c-api/refcounting.html#c.Py_NewRef" title="Py_NewRef"><code class="xref c c-func docutils literal notranslate"><span class="pre">Py_NewRef()</span></code></a> işlevi, yeni bir <a class="reference internal" href="#term-strong-reference"><span class="xref std std-term">strong reference</span></a> oluşturmak için kullanılabilir.</p>
</dd>
<dt id="term-bytes-like-object">bayt benzeri nesne<a class="headerlink" href="#term-bytes-like-object" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="c-api/buffer.html#bufferobjects"><span class="std std-ref">Buffer Protocol</span></a> ‘i destekleyen ve bir C-<a class="reference internal" href="#term-contiguous"><span class="xref std std-term">contiguous</span></a> arabelleğini dışa aktarabilen bir nesne. Bu, tüm <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a>, <a class="reference internal" href="library/stdtypes.html#bytearray" title="bytearray"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytearray</span></code></a> ve <a class="reference internal" href="library/array.html#array.array" title="array.array"><code class="xref py py-class docutils literal notranslate"><span class="pre">array.array</span></code></a> nesnelerinin yanı sıra birçok yaygın <a class="reference internal" href="library/stdtypes.html#memoryview" title="memoryview"><code class="xref py py-class docutils literal notranslate"><span class="pre">memoryview</span></code></a> nesnesini içerir. Bayt benzeri nesneler, ikili verilerle çalışan çeşitli işlemler için kullanılabilir; bunlara sıkıştırma, ikili dosyaya kaydetme ve bir soket üzerinden gönderme dahildir.</p>
<p>Bazı işlemler, değişken olması için ikili verilere ihtiyaç duyar. Belgeler genellikle bunlara “okuma-yazma bayt benzeri nesneler” olarak atıfta bulunur. Örnek değiştirilebilir arabellek nesneleri <a class="reference internal" href="library/stdtypes.html#bytearray" title="bytearray"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytearray</span></code></a> ve bir <a class="reference internal" href="library/stdtypes.html#bytearray" title="bytearray"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytearray</span></code></a> <a class="reference internal" href="library/stdtypes.html#memoryview" title="memoryview"><code class="xref py py-class docutils literal notranslate"><span class="pre">memoryview</span></code></a> içerir. Diğer işlemler, ikili verilerin değişmez nesnelerde (“salt okunur bayt benzeri nesneler”) depolanmasını gerektirir; bunların örnekleri arasında <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a> ve bir <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a> nesnesinin <a class="reference internal" href="library/stdtypes.html#memoryview" title="memoryview"><code class="xref py py-class docutils literal notranslate"><span class="pre">memoryview</span></code></a> bulunur.</p>
</dd>
<dt id="term-bytecode">bayt kodu<a class="headerlink" href="#term-bytecode" title="Permalink to this term">¶</a></dt><dd><p>Python kaynak kodu, bir Python programının CPython yorumlayıcısındaki dahili temsili olan bayt kodunda derlenir. Bayt kodu ayrıca <code class="docutils literal notranslate"><span class="pre">.pyc</span></code> dosyalarında önbelleğe alınır, böylece aynı dosyanın ikinci kez çalıştırılması daha hızlı olur (kaynaktan bayt koduna yeniden derleme önlenebilir). Bu “ara dilin”, her bir bayt koduna karşılık gelen makine kodunu yürüten bir <a class="reference internal" href="#term-virtual-machine"><span class="xref std std-term">sanal makine</span></a> üzerinde çalıştığı söylenir. Bayt kodlarının farklı Python sanal makineleri arasında çalışması veya Python sürümleri arasında kararlı olması beklenmediğini unutmayın.</p>
<p>Bayt kodu talimatlarının bir listesi <a class="reference internal" href="library/dis.html#bytecodes"><span class="std std-ref">Python Bytecode Instructions</span></a> dokümanında bulunabilir.</p>
</dd>
<dt id="term-callable">çağırılabilir<a class="headerlink" href="#term-callable" title="Permalink to this term">¶</a></dt><dd><p>Bir çağrılabilir, muhtemelen bir dizi argümanla (bkz. <a class="reference internal" href="#term-argument"><span class="xref std std-term">argument</span></a>) ve aşağıdaki sözdizimiyle çağrılabilen bir nesnedir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="nb">callable</span><span class="p">(</span><span class="n">argument1</span><span class="p">,</span> <span class="n">argument2</span><span class="p">,</span> <span class="n">argumentN</span><span class="p">)</span>
</pre></div>
</div>
<p>Bir <a class="reference internal" href="#term-function"><span class="xref std std-term">fonksiyon</span></a> ve uzantısı olarak bir <a class="reference internal" href="#term-method"><span class="xref std std-term">metot</span></a> bir çağrılabilirdir. <a class="reference internal" href="reference/datamodel.html#object.__call__" title="object.__call__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__call__()</span></code></a> yöntemini uygulayan bir sınıf örneği de bir çağrılabilirdir.</p>
</dd>
<dt id="term-callback">geri çağırmak<a class="headerlink" href="#term-callback" title="Permalink to this term">¶</a></dt><dd><p>Gelecekte bir noktada yürütülecek bir argüman olarak iletilen bir alt program işlevi.</p>
</dd>
<dt id="term-class">sınıf<a class="headerlink" href="#term-class" title="Permalink to this term">¶</a></dt><dd><p>Kullanıcı tanımlı nesneler oluşturmak için bir şablon. Sınıf tanımları normalde sınıfın örnekleri üzerinde çalışan yöntem tanımlarını içerir.</p>
</dd>
<dt id="term-class-variable">sınıf değişkeni<a class="headerlink" href="#term-class-variable" title="Permalink to this term">¶</a></dt><dd><p>Bir sınıfta tanımlanmış ve yalnızca sınıf düzeyinde (yani sınıfın bir örneğinde değil) değiştirilmesi amaçlanan bir değişken.</p>
</dd>
<dt id="term-complex-number">karmaşık sayı<a class="headerlink" href="#term-complex-number" title="Permalink to this term">¶</a></dt><dd><p>Tüm sayıların bir reel kısım ve bir sanal kısım toplamı olarak ifade edildiği bilinen gerçek sayı sisteminin bir uzantısı. Hayali sayılar, hayali birimin gerçek katlarıdır (<code class="docutils literal notranslate"><span class="pre">-1</span></code> ‘in karekökü), genellikle matematikte <code class="docutils literal notranslate"><span class="pre">i</span></code> veya mühendislikte <code class="docutils literal notranslate"><span class="pre">j</span></code> ile yazılır. Python, bu son gösterimle yazılan karmaşık sayılar için yerleşik desteğe sahiptir; hayali kısım bir <code class="docutils literal notranslate"><span class="pre">j</span></code> son ekiyle yazılır, örneğin <code class="docutils literal notranslate"><span class="pre">3+1j</span></code>. <a class="reference internal" href="library/math.html#module-math" title="math: Mathematical functions (sin() etc.)."><code class="xref py py-mod docutils literal notranslate"><span class="pre">math</span></code></a> modülünün karmaşık eş değerlerine erişmek için <a class="reference internal" href="library/cmath.html#module-cmath" title="cmath: Mathematical functions for complex numbers."><code class="xref py py-mod docutils literal notranslate"><span class="pre">cmath</span></code></a> kullanın. Karmaşık sayıların kullanımı oldukça gelişmiş bir matematiksel özelliktir. Onlara olan ihtiyacın farkında değilseniz, onları güvenle görmezden gelebileceğiniz neredeyse kesindir.</p>
</dd>
<dt id="term-context-manager">bağlam yöneticisi<a class="headerlink" href="#term-context-manager" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="reference/compound_stmts.html#with"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">with</span></code></a> ifadesinde görülen ortamı <code class="xref py py-meth docutils literal notranslate"><span class="pre">__enter__()</span></code> ve <code class="xref py py-meth docutils literal notranslate"><span class="pre">__exit__()</span></code> yöntemlerini tanımlayarak kontrol eden bir nesne. Bakınız <span class="target" id="index-74"></span><a class="pep reference external" href="https://peps.python.org/pep-0343/"><strong>PEP 343</strong></a>.</p>
</dd>
<dt id="term-context-variable">bağlam değişkeni<a class="headerlink" href="#term-context-variable" title="Permalink to this term">¶</a></dt><dd><p>Bağlamına bağlı olarak farklı değerler alabilen bir değişken. Bu, her yürütme iş parçacığının bir değişken için farklı bir değere sahip olabileceği Thread-Local Storage’a benzer. Bununla birlikte, bağlam değişkenleriyle, bir yürütme iş parçacığında birkaç bağlam olabilir ve bağlam değişkenlerinin ana kullanımı, eşzamanlı zaman uyumsuz görevlerde değişkenleri izlemektir. Bakınız <a class="reference internal" href="library/contextvars.html#module-contextvars" title="contextvars: Context Variables"><code class="xref py py-mod docutils literal notranslate"><span class="pre">contextvars</span></code></a>.</p>
</dd>
<dt id="term-contiguous">bitişik<a class="headerlink" href="#term-contiguous" title="Permalink to this term">¶</a></dt><dd><p id="index-10">Bir arabellek, <em>C-bitişik</em> veya <em>Fortran bitişik</em> ise tam olarak bitişik olarak kabul edilir. Sıfır boyutlu arabellekler C ve Fortran bitişiktir. Tek boyutlu dizilerde, öğeler sıfırdan başlayarak artan dizinler sırasına göre bellekte yan yana yerleştirilmelidir. Çok boyutlu C-bitişik dizilerde, öğeleri bellek adresi sırasına göre ziyaret ederken son dizin en hızlı şekilde değişir. Ancak, Fortran bitişik dizilerinde, ilk dizin en hızlı şekilde değişir.</p>
</dd>
<dt id="term-coroutine">eşyordam<a class="headerlink" href="#term-coroutine" title="Permalink to this term">¶</a></dt><dd><p>Eşyordamlar, altyordamların daha genelleştirilmiş bir biçimidir. Alt programlara bir noktada girilir ve başka bir noktada çıkılır. Eşyordamlar birçok farklı noktada girilebilir, çıkılabilir ve devam ettirilebilir. <a class="reference internal" href="reference/compound_stmts.html#async-def"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">def</span></code></a> ifadesi ile uygulanabilirler. Ayrıca bakınız <span class="target" id="index-75"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a>.</p>
</dd>
<dt id="term-coroutine-function">eşyordam işlevi<a class="headerlink" href="#term-coroutine-function" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-coroutine"><span class="xref std std-term">coroutine</span></a> nesnesi döndüren bir işlev. Bir eşyordam işlevi <a class="reference internal" href="reference/compound_stmts.html#async-def"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">def</span></code></a> ifadesiyle tanımlanabilir ve <a class="reference internal" href="reference/expressions.html#await"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">await</span></code></a>, <a class="reference internal" href="reference/compound_stmts.html#async-for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">for</span></code></a> ve <a class="reference internal" href="reference/compound_stmts.html#async-with"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">async</span> <span class="pre">with</span></code></a> anahtar kelimelerini içerebilir. Bunlar <span class="target" id="index-76"></span><a class="pep reference external" href="https://peps.python.org/pep-0492/"><strong>PEP 492</strong></a> tarafından tanıtıldı.</p>
</dd>
<dt id="term-CPython">CPython<a class="headerlink" href="#term-CPython" title="Permalink to this term">¶</a></dt><dd><p>Python programlama dilinin <a class="reference external" href="https://www.python.org">python.org</a> üzerinde dağıtıldığı şekliyle kurallı uygulaması. “CPython” terimi, gerektiğinde bu uygulamayı Jython veya IronPython gibi diğerlerinden ayırmak için kullanılır.</p>
</dd>
<dt id="term-decorator">dekoratör<a class="headerlink" href="#term-decorator" title="Permalink to this term">¶</a></dt><dd><p>Genellikle <code class="docutils literal notranslate"><span class="pre">@wrapper</span></code> sözdizimi kullanılarak bir işlev dönüşümü olarak uygulanan, başka bir işlevi döndüren bir işlev. Dekoratörler için yaygın örnekler şunlardır: <a class="reference internal" href="library/functions.html#classmethod" title="classmethod"><code class="xref py py-func docutils literal notranslate"><span class="pre">classmethod()</span></code></a> ve <a class="reference internal" href="library/functions.html#staticmethod" title="staticmethod"><code class="xref py py-func docutils literal notranslate"><span class="pre">staticmethod()</span></code></a>.</p>
<p>Dekoratör sözdizimi yalnızca sözdizimsel şekerdir, aşağıdaki iki işlev tanımı anlamsal olarak eş değerdir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">f</span><span class="p">(</span><span class="n">arg</span><span class="p">):</span>
<span class="o">...</span>
<span class="n">f</span> <span class="o">=</span> <span class="nb">staticmethod</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
<span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">f</span><span class="p">(</span><span class="n">arg</span><span class="p">):</span>
<span class="o">...</span>
</pre></div>
</div>
<p>Aynı kavram sınıflar için de mevcuttur, ancak orada daha az kullanılır. Dekoratörler hakkında daha fazla bilgi için <a class="reference internal" href="reference/compound_stmts.html#function"><span class="std std-ref">function definitions</span></a> ve <a class="reference internal" href="reference/compound_stmts.html#class"><span class="std std-ref">class definitions</span></a> belgelerine bakın.</p>
</dd>
<dt id="term-descriptor">tanımlayıcı<a class="headerlink" href="#term-descriptor" title="Permalink to this term">¶</a></dt><dd><p><code class="xref py py-meth docutils literal notranslate"><span class="pre">__get__()</span></code>, <code class="xref py py-meth docutils literal notranslate"><span class="pre">__set__()</span></code> veya <code class="xref py py-meth docutils literal notranslate"><span class="pre">__delete__()</span></code> yöntemlerini tanımlayan herhangi bir nesne. Bir sınıf özniteliği bir tanımlayıcı olduğunda, öznitelik araması üzerine özel bağlama davranışı tetiklenir. Normalde, bir özniteliği almak, ayarlamak veya silmek için <em>a.b</em> kullanmak, <em>a</em> için sınıf sözlüğünde <em>b</em> adlı nesneyi arar, ancak <em>b</em> bir tanımlayıcı ise, ilgili tanımlayıcı yöntemi çağrılır. Tanımlayıcıları anlamak, Python’u derinlemesine anlamanın anahtarıdır çünkü bunlar, işlevler, yöntemler, özellikler, sınıf yöntemleri, statik yöntemler ve süper sınıflara başvuru gibi birçok özelliğin temelidir.</p>
<p>Tanımlayıcıların yöntemleri hakkında daha fazla bilgi için, bkz. <a class="reference internal" href="reference/datamodel.html#descriptors"><span class="std std-ref">Implementing Descriptors</span></a> veya <a class="reference internal" href="howto/descriptor.html#descriptorhowto"><span class="std std-ref">Descriptor How To Guide</span></a>.</p>
</dd>
<dt id="term-dictionary">sözlük<a class="headerlink" href="#term-dictionary" title="Permalink to this term">¶</a></dt><dd><p>Rasgele anahtarların değerlerle eşlendiği ilişkisel bir dizi. Anahtarlar, <code class="xref py py-meth docutils literal notranslate"><span class="pre">__hash__()</span></code> ve <code class="xref py py-meth docutils literal notranslate"><span class="pre">__eq__()</span></code> yöntemleriyle herhangi bir nesne olabilir. Perl’de karma denir.</p>
</dd>
<dt id="term-dictionary-comprehension">sözlük anlama<a class="headerlink" href="#term-dictionary-comprehension" title="Permalink to this term">¶</a></dt><dd><p>Öğelerin tümünü veya bir kısmını yinelenebilir bir şekilde işlemenin ve sonuçları içeren bir sözlük döndürmenin kompakt bir yolu. <code class="docutils literal notranslate"><span class="pre">results</span> <span class="pre">=</span> <span class="pre">{n:</span> <span class="pre">n</span> <span class="pre">**</span> <span class="pre">2</span> <span class="pre">for</span> <span class="pre">range(10)}</span></code>, <code class="docutils literal notranslate"><span class="pre">n</span> <span class="pre">**</span> <span class="pre">2</span></code> değerine eşlenmiş <code class="docutils literal notranslate"><span class="pre">n</span></code> anahtarını içeren bir sözlük oluşturur. Bkz. <a class="reference internal" href="reference/expressions.html#comprehensions"><span class="std std-ref">Displays for lists, sets and dictionaries</span></a>.</p>
</dd>
<dt id="term-dictionary-view">sözlük görünümü<a class="headerlink" href="#term-dictionary-view" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="library/stdtypes.html#dict.keys" title="dict.keys"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dict.keys()</span></code></a>, <a class="reference internal" href="library/stdtypes.html#dict.values" title="dict.values"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dict.values()</span></code></a> ve <a class="reference internal" href="library/stdtypes.html#dict.items" title="dict.items"><code class="xref py py-meth docutils literal notranslate"><span class="pre">dict.items()</span></code></a> ‘den döndürülen nesnelere sözlük görünümleri denir. Sözlüğün girişleri üzerinde dinamik bir görünüm sağlarlar; bu, sözlük değiştiğinde görünümün bu değişiklikleri yansıttığı anlamına gelir. Sözlük görünümünü tam liste olmaya zorlamak için <code class="docutils literal notranslate"><span class="pre">list(dictview)</span></code> kullanın. Bakınız <a class="reference internal" href="library/stdtypes.html#dict-views"><span class="std std-ref">Dictionary view objects</span></a>.</p>
</dd>
<dt id="term-docstring">belge dizisi<a class="headerlink" href="#term-docstring" title="Permalink to this term">¶</a></dt><dd><p>Bir sınıf, işlev veya modülde ilk ifade olarak görünen bir dize değişmezi. Paket yürütüldüğünde yoksayılırken, derleyici tarafından tanınır ve çevreleyen sınıfın, işlevin veya modülün <code class="xref py py-attr docutils literal notranslate"><span class="pre">__doc__</span></code> özniteliğine yerleştirilir. İç gözlem yoluyla erişilebilir olduğundan, nesnenin belgelenmesi için kurallı yerdir.</p>
</dd>
<dt id="term-duck-typing">ördek yazma<a class="headerlink" href="#term-duck-typing" title="Permalink to this term">¶</a></dt><dd><p>Doğru arayüze sahip olup olmadığını belirlemek için bir nesnenin türüne bakmayan bir programlama stili; bunun yerine, yöntem veya nitelik basitçe çağrılır veya kullanılır (“Ördek gibi görünüyorsa ve ördek gibi vaklıyorsa, ördek olmalıdır.”) İyi tasarlanmış kod, belirli türlerden ziyade arayüzleri vurgulayarak, polimorfik ikameye izin vererek esnekliğini artırır. Ördek yazma, <a class="reference internal" href="library/functions.html#type" title="type"><code class="xref py py-func docutils literal notranslate"><span class="pre">type()</span></code></a> veya <a class="reference internal" href="library/functions.html#isinstance" title="isinstance"><code class="xref py py-func docutils literal notranslate"><span class="pre">isinstance()</span></code></a> kullanan testleri önler. (Ancak, ördek yazmanın <a class="reference internal" href="#term-abstract-base-class"><span class="xref std std-term">abstract base class</span></a> ile tamamlanabileceğini unutmayın.) Bunun yerine, genellikle <a class="reference internal" href="library/functions.html#hasattr" title="hasattr"><code class="xref py py-func docutils literal notranslate"><span class="pre">hasattr()</span></code></a> testleri veya <a class="reference internal" href="#term-EAFP"><span class="xref std std-term">EAFP</span></a> programlamasını kullanır.</p>
</dd>
<dt id="term-EAFP">EAFP<a class="headerlink" href="#term-EAFP" title="Permalink to this term">¶</a></dt><dd><p>Af dilemek izin almaktan daha kolaydır. Bu yaygın Python kodlama stili, geçerli anahtarların veya niteliklerin varlığını varsayar ve varsayımın yanlış çıkması durumunda istisnaları yakalar. Bu temiz ve hızlı stil, birçok <a class="reference internal" href="reference/compound_stmts.html#try"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">try</span></code></a> ve <a class="reference internal" href="reference/compound_stmts.html#except"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">except</span></code></a> ifadesinin varlığı ile karakterize edilir. Teknik, C gibi diğer birçok dilde ortak olan <a class="reference internal" href="#term-LBYL"><span class="xref std std-term">LBYL</span></a> stiliyle çelişir.</p>
</dd>
<dt id="term-expression">ifade (değer döndürür)<a class="headerlink" href="#term-expression" title="Permalink to this term">¶</a></dt><dd><p>Bir değere göre değerlendirilebilecek bir sözdizimi parçası. Başka bir deyişle, bir ifade, tümü bir değer döndüren sabit değerler, adlar, öznitelik erişimi, işleçler veya işlev çağrıları gibi ifade öğelerinin bir toplamıdır. Diğer birçok dilin aksine, tüm dil yapıları ifade değildir. Ayrıca <a class="reference internal" href="reference/compound_stmts.html#while"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">while</span></code></a> gibi kullanılamayan <a class="reference internal" href="#term-statement"><span class="xref std std-term">ifadeler</span></a> de vardır. Atamalar da değer döndürmeyen ifadelerdir (statement).</p>
</dd>
<dt id="term-extension-module">uzatma modülü<a class="headerlink" href="#term-extension-module" title="Permalink to this term">¶</a></dt><dd><p>Çekirdekle ve kullanıcı koduyla etkileşim kurmak için Python’un C API’sini kullanan, C veya C++ ile yazılmış bir modül.</p>
</dd>
<dt id="term-f-string">f-string<a class="headerlink" href="#term-f-string" title="Permalink to this term">¶</a></dt><dd><p>Ön eki <code class="docutils literal notranslate"><span class="pre">'f'</span></code> veya <code class="docutils literal notranslate"><span class="pre">'F'</span></code> olan dize değişmezleri genellikle “f-strings” olarak adlandırılır; bu, <a class="reference internal" href="reference/lexical_analysis.html#f-strings"><span class="std std-ref">formatted string literals</span></a> ‘ın kısaltmasıdır. Ayrıca bkz. <span class="target" id="index-77"></span><a class="pep reference external" href="https://peps.python.org/pep-0498/"><strong>PEP 498</strong></a>.</p>
</dd>
<dt id="term-file-object">dosya nesnesi<a class="headerlink" href="#term-file-object" title="Permalink to this term">¶</a></dt><dd><p>Dosya yönelimli bir API’yi (<code class="xref py py-meth docutils literal notranslate"><span class="pre">read()</span></code> veya <code class="xref py py-meth docutils literal notranslate"><span class="pre">write()</span></code> gibi yöntemlerle) temel alınan bir kaynağa gösteren bir nesne. Oluşturulma şekline bağlı olarak, bir dosya nesnesi gerçek bir disk üzerindeki dosyaya veya başka bir tür depolama veya iletişim aygıtına (örneğin standart giriş/çıkış, bellek içi arabellekler, yuvalar, borular vb.) erişime aracılık edebilir. . Dosya nesneleri ayrıca <em class="dfn">file-like objects</em> veya <em class="dfn">streams</em> olarak da adlandırılır.</p>
<p>Aslında üç dosya nesnesi kategorisi vardır: ham <a class="reference internal" href="#term-binary-file"><span class="xref std std-term">binary files</span></a>, arabelleğe alınmış <a class="reference internal" href="#term-binary-file"><span class="xref std std-term">binary files</span></a> ve <a class="reference internal" href="#term-text-file"><span class="xref std std-term">text files</span></a>. Arayüzleri <a class="reference internal" href="library/io.html#module-io" title="io: Core tools for working with streams."><code class="xref py py-mod docutils literal notranslate"><span class="pre">io</span></code></a> modülünde tanımlanmıştır. Bir dosya nesnesi yaratmanın kurallı yolu <a class="reference internal" href="library/functions.html#open" title="open"><code class="xref py py-func docutils literal notranslate"><span class="pre">open()</span></code></a> işlevini kullanmaktır.</p>
</dd>
<dt id="term-file-like-object">dosya benzeri nesne<a class="headerlink" href="#term-file-like-object" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="#term-file-object"><span class="xref std std-term">dosya nesnesi</span></a> ile eşanlamlıdır.</p>
</dd>
<dt id="term-filesystem-encoding-and-error-handler">dosya sistemi kodlaması ve hata işleyicisi<a class="headerlink" href="#term-filesystem-encoding-and-error-handler" title="Permalink to this term">¶</a></dt><dd><p>Python tarafından işletim sistemindeki baytların kodunu çözmek ve Unicode’u işletim sistemine kodlamak için kullanılan kodlama ve hata işleyici.</p>
<p>Dosya sistemi kodlaması, 128’in altındaki tüm baytların kodunu başarıyla çözmeyi garanti etmelidir. Dosya sistemi kodlaması bu garantiyi sağlayamazsa, API işlevleri <a class="reference internal" href="library/exceptions.html#UnicodeError" title="UnicodeError"><code class="xref py py-exc docutils literal notranslate"><span class="pre">UnicodeError</span></code></a> değerini yükseltebilir.</p>
<p><a class="reference internal" href="library/sys.html#sys.getfilesystemencoding" title="sys.getfilesystemencoding"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.getfilesystemencoding()</span></code></a> ve <a class="reference internal" href="library/sys.html#sys.getfilesystemencodeerrors" title="sys.getfilesystemencodeerrors"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.getfilesystemencodeerrors()</span></code></a> işlevleri, dosya sistemi kodlamasını ve hata işleyicisini almak için kullanılabilir.</p>
<p><a class="reference internal" href="#term-filesystem-encoding-and-error-handler"><span class="xref std std-term">filesystem encoding and error handler</span></a> Python başlangıcında <a class="reference internal" href="c-api/init_config.html#c.PyConfig_Read" title="PyConfig_Read"><code class="xref c c-func docutils literal notranslate"><span class="pre">PyConfig_Read()</span></code></a> işleviyle yapılandırılır: bkz. <a class="reference internal" href="c-api/init_config.html#c.PyConfig.filesystem_encoding" title="PyConfig.filesystem_encoding"><code class="xref c c-member docutils literal notranslate"><span class="pre">filesystem_encoding</span></code></a> ve <a class="reference internal" href="c-api/init_config.html#c.PyConfig.filesystem_errors" title="PyConfig.filesystem_errors"><code class="xref c c-member docutils literal notranslate"> <span class="pre">filesystem_errors</span></code></a> üyeleri <a class="reference internal" href="c-api/init_config.html#c.PyConfig" title="PyConfig"><code class="xref c c-type docutils literal notranslate"><span class="pre">PyConfig</span></code></a>.</p>
<p>Ayrıca bkz. <a class="reference internal" href="#term-locale-encoding"><span class="xref std std-term">locale encoding</span></a>.</p>
</dd>
<dt id="term-finder">bulucu<a class="headerlink" href="#term-finder" title="Permalink to this term">¶</a></dt><dd><p>İçe aktarılmakta olan bir modül için <a class="reference internal" href="#term-loader"><span class="xref std std-term">loader</span></a> ‘ı bulmaya çalışan bir nesne.</p>
<p>Python 3.3’ten beri, iki çeşit bulucu vardır: <a class="reference internal" href="library/sys.html#sys.meta_path" title="sys.meta_path"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.meta_path</span></code></a> ile kullanılmak üzere <a class="reference internal" href="#term-meta-path-finder"><span class="xref std std-term">meta yol bulucular</span></a>, ve <a class="reference internal" href="library/sys.html#sys.path_hooks" title="sys.path_hooks"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.path_hooks</span></code></a> ile kullanılmak üzere <a class="reference internal" href="#term-path-entry-finder"><span class="xref std std-term">yol girişi bulucular</span></a>.</p>
<p>Daha fazla ayrıntı için <span class="target" id="index-78"></span><a class="pep reference external" href="https://peps.python.org/pep-0302/"><strong>PEP 302</strong></a>, <span class="target" id="index-79"></span><a class="pep reference external" href="https://peps.python.org/pep-0420/"><strong>PEP 420</strong></a> ve <span class="target" id="index-80"></span><a class="pep reference external" href="https://peps.python.org/pep-0451/"><strong>PEP 451</strong></a> bakın.</p>
</dd>
<dt id="term-floor-division">kat bölümü<a class="headerlink" href="#term-floor-division" title="Permalink to this term">¶</a></dt><dd><p>En yakın tam sayıya yuvarlayan matematiksel bölme. Kat bölme operatörü <code class="docutils literal notranslate"><span class="pre">//</span></code> şeklindedir. Örneğin, <code class="docutils literal notranslate"><span class="pre">11</span> <span class="pre">//</span> <span class="pre">4</span></code> ifadesi, gerçek yüzer bölme tarafından döndürülen <code class="docutils literal notranslate"><span class="pre">2.75</span></code> değerinin aksine <code class="docutils literal notranslate"><span class="pre">2</span></code> olarak değerlendirilir. <code class="docutils literal notranslate"><span class="pre">(-11)</span> <span class="pre">//</span> <span class="pre">4</span></code> ‘ün <code class="docutils literal notranslate"><span class="pre">-3</span></code> olduğuna dikkat edin, çünkü bu <code class="docutils literal notranslate"><span class="pre">-2.75</span></code> yuvarlatılmış <em>aşağı</em>. Bakınız <span class="target" id="index-81"></span><a class="pep reference external" href="https://peps.python.org/pep-0238/"><strong>PEP 238</strong></a>.</p>
</dd>
<dt id="term-function">fonksiyon<a class="headerlink" href="#term-function" title="Permalink to this term">¶</a></dt><dd><p>Bir arayana bir değer döndüren bir dizi ifade. Ayrıca, gövdenin yürütülmesinde kullanılabilen sıfır veya daha fazla <a class="reference internal" href="#term-argument"><span class="xref std std-term">argüman</span></a> iletilebilir. Ayrıca <a class="reference internal" href="#term-parameter"><span class="xref std std-term">parameter</span></a>, <a class="reference internal" href="#term-method"><span class="xref std std-term">method</span></a> ve <a class="reference internal" href="reference/compound_stmts.html#function"><span class="std std-ref">Function definitions</span></a> bölümüne bakın.</p>
</dd>
<dt id="term-function-annotation">fonksiyon açıklaması<a class="headerlink" href="#term-function-annotation" title="Permalink to this term">¶</a></dt><dd><p>Bir işlev parametresinin veya dönüş değerinin <a class="reference internal" href="#term-annotation"><span class="xref std std-term">ek açıklaması</span></a>.</p>
<p>İşlev ek açıklamaları genellikle <a class="reference internal" href="#term-type-hint"><span class="xref std std-term">type hints</span></a> için kullanılır: örneğin, bu fonksiyonun iki <a class="reference internal" href="library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a> argüman alması ve ayrıca bir <a class="reference internal" href="library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a> dönüş değerine sahip olması beklenir</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">sum_two_numbers</span><span class="p">(</span><span class="n">a</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">b</span><span class="p">:</span> <span class="nb">int</span><span class="p">)</span> <span class="o">-></span> <span class="nb">int</span><span class="p">:</span>
<span class="k">return</span> <span class="n">a</span> <span class="o">+</span> <span class="n">b</span>
</pre></div>
</div>
<p>İşlev açıklama sözdizimi <a class="reference internal" href="reference/compound_stmts.html#function"><span class="std std-ref">Function definitions</span></a> bölümünde açıklanmaktadır.</p>
<p>Bu işlevi açıklayan <a class="reference internal" href="#term-variable-annotation"><span class="xref std std-term">variable annotation</span></a> ve <span class="target" id="index-82"></span><a class="pep reference external" href="https://peps.python.org/pep-0484/"><strong>PEP 484</strong></a> ‘e bakın. Ek açıklamalarla çalışmaya ilişkin en iyi uygulamalar için ayrıca <a class="reference internal" href="howto/annotations.html#annotations-howto"><span class="std std-ref">Annotations Best Practices</span></a> konusuna bakın.</p>
</dd>
<dt id="term-__future__">__future__<a class="headerlink" href="#term-__future__" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="reference/simple_stmts.html#future"><span class="std std-ref">future ifadesi</span></a>, <code class="docutils literal notranslate"><span class="pre">from</span> <span class="pre">__future__</span> <span class="pre">import</span> <span class="pre"><feature></span></code>, derleyiciyi, Python’un gelecekteki bir sürümünde standart hale gelecek olan sözdizimini veya semantiği kullanarak mevcut modülü derlemeye yönlendirir. <a class="reference internal" href="library/__future__.html#module-__future__" title="__future__: Future statement definitions"><code class="xref py py-mod docutils literal notranslate"><span class="pre">__future__</span></code></a> modülü, <em>feature</em>’ın olası değerlerini belgeler. Bu modülü içe aktararak ve değişkenlerini değerlendirerek, dile ilk kez yeni bir özelliğin ne zaman eklendiğini ve ne zaman varsayılan olacağını (ya da yaptığını) görebilirsiniz:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">import</span> <span class="nn">__future__</span>
<span class="gp">>>> </span><span class="n">__future__</span><span class="o">.</span><span class="n">division</span>
<span class="go">_Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)</span>
</pre></div>
</div>
</dd>
<dt id="term-garbage-collection">çöp toplama<a class="headerlink" href="#term-garbage-collection" title="Permalink to this term">¶</a></dt><dd><p>Artık kullanılmadığında belleği boşaltma işlemi. Python, referans sayımı ve referans döngülerini algılayıp kırabilen bir döngüsel çöp toplayıcı aracılığıyla çöp toplama gerçekleştirir. Çöp toplayıcı <a class="reference internal" href="library/gc.html#module-gc" title="gc: Interface to the cycle-detecting garbage collector."><code class="xref py py-mod docutils literal notranslate"><span class="pre">gc</span></code></a> modülü kullanılarak kontrol edilebilir.</p>
</dd>
<dt id="term-generator">jeneratör<a class="headerlink" href="#term-generator" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-generator-iterator"><span class="xref std std-term">generator iterator</span></a> döndüren bir işlev. Bir for döngüsünde kullanılabilen bir dizi değer üretmek için <a class="reference internal" href="reference/simple_stmts.html#yield"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code></a> ifadeleri içermesi veya <a class="reference internal" href="library/functions.html#next" title="next"><code class="xref py py-func docutils literal notranslate"><span class="pre">next()</span></code></a> işleviyle birer birer alınabilmesi dışında normal bir işleve benziyor.</p>
<p>Genellikle bir üretici işlevine atıfta bulunur, ancak bazı bağlamlarda bir <em>jeneratör yineleyicisine</em> atıfta bulunabilir. Amaçlanan anlamın net olmadığı durumlarda, tam terimlerin kullanılması belirsizliği önler.</p>
</dd>
<dt id="term-generator-iterator">jeneratör yineleyici<a class="headerlink" href="#term-generator-iterator" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-generator"><span class="xref std std-term">generator</span></a> işlevi tarafından oluşturulan bir nesne.</p>
<p>Her <a class="reference internal" href="reference/simple_stmts.html#yield"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">yield</span></code></a>, konum yürütme durumunu hatırlayarak (yerel değişkenler ve bekleyen try ifadeleri dahil) işlemeyi geçici olarak askıya alır. <em>jeneratör yineleyici</em> devam ettiğinde, kaldığı yerden devam eder (her çağrıda yeniden başlayan işlevlerin aksine).</p>
</dd>
<dt id="term-generator-expression">jeneratör ifadesi<a class="headerlink" href="#term-generator-expression" title="Permalink to this term">¶</a></dt><dd><p>Yineleyici döndüren bir ifade. Bir döngü değişkenini, aralığı ve isteğe bağlı bir <code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code> yan tümcesini tanımlayan bir <code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code> yan tümcesinin takip ettiği normal bir ifadeye benziyor. Birleştirilmiş ifade, bir çevreleyen için değerler üretir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="nb">sum</span><span class="p">(</span><span class="n">i</span><span class="o">*</span><span class="n">i</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">10</span><span class="p">))</span> <span class="c1"># sum of squares 0, 1, 4, ... 81</span>
<span class="go">285</span>
</pre></div>
</div>
</dd>
<dt id="term-generic-function">genel işlev<a class="headerlink" href="#term-generic-function" title="Permalink to this term">¶</a></dt><dd><p>Farklı türler için aynı işlemi uygulayan birden çok işlevden oluşan bir işlev. Bir çağrı sırasında hangi uygulamanın kullanılması gerektiği, gönderme algoritması tarafından belirlenir.</p>
<p>Ayrıca <a class="reference internal" href="#term-single-dispatch"><span class="xref std std-term">single dispatch</span></a> sözlük girdisine, <a class="reference internal" href="library/functools.html#functools.singledispatch" title="functools.singledispatch"><code class="xref py py-func docutils literal notranslate"><span class="pre">functools.singledispatch()</span></code></a> dekoratörüne ve <span class="target" id="index-83"></span><a class="pep reference external" href="https://peps.python.org/pep-0443/"><strong>PEP 443</strong></a> ‘e bakın.</p>
</dd>
<dt id="term-generic-type">genel tip<a class="headerlink" href="#term-generic-type" title="Permalink to this term">¶</a></dt><dd><p>Parametrelendirilebilen bir <a class="reference internal" href="#term-type"><span class="xref std std-term">type</span></a>; tipik olarak bir <a class="reference internal" href="reference/datamodel.html#sequence-types"><span class="std std-ref">konteyner sınıfı</span></a>, örneğin <a class="reference internal" href="library/stdtypes.html#list" title="list"><code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></a> veya <a class="reference internal" href="library/stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a>. <a class="reference internal" href="#term-type-hint"><span class="xref std std-term">type hint</span></a> ve <a class="reference internal" href="#term-annotation"><span class="xref std std-term">annotation</span></a> için kullanılır.</p>
<p>Daha fazla ayrıntı için <a class="reference internal" href="library/stdtypes.html#types-genericalias"><span class="std std-ref">generic allias types</span></a>, <span class="target" id="index-84"></span><a class="pep reference external" href="https://peps.python.org/pep-0483/"><strong>PEP 483</strong></a>, <span class="target" id="index-85"></span><a class="pep reference external" href="https://peps.python.org/pep-0484/"><strong>PEP 484</strong></a>, <span class="target" id="index-86"></span><a class="pep reference external" href="https://peps.python.org/pep-0585/"><strong>PEP 585</strong></a> ve <a class="reference internal" href="library/typing.html#module-typing" title="typing: Support for type hints (see :pep:`484`)."><code class="xref py py-mod docutils literal notranslate"><span class="pre">typing</span></code></a> modülüne bakın.</p>
</dd>
<dt id="term-GIL">GIL<a class="headerlink" href="#term-GIL" title="Permalink to this term">¶</a></dt><dd><p>Bakınız <a class="reference internal" href="#term-global-interpreter-lock"><span class="xref std std-term">global interpreter lock</span></a>.</p>
</dd>
<dt id="term-global-interpreter-lock">genel tercüman kilidi<a class="headerlink" href="#term-global-interpreter-lock" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="#term-CPython"><span class="xref std std-term">CPython</span></a> yorumlayıcısı tarafından aynı anda yalnızca bir iş parçacığının Python <a class="reference internal" href="#term-bytecode"><span class="xref std std-term">bytecode</span></a> ‘u yürütmesini sağlamak için kullanılan mekanizma. Bu, nesne modelini (<a class="reference internal" href="library/stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a> gibi kritik yerleşik türler dahil) eşzamanlı erişime karşı örtük olarak güvenli hale getirerek CPython uygulamasını basitleştirir. Tüm yorumlayıcıyı kilitlemek, çok işlemcili makinelerin sağladığı paralelliğin çoğu pahasına, yorumlayıcının çok iş parçacıklı olmasını kolaylaştırır.</p>
<p>Bununla birlikte, standart veya üçüncü taraf bazı genişletme modülleri, sıkıştırma veya karma gibi hesaplama açısından yoğun görevler yaparken GIL’yi serbest bırakacak şekilde tasarlanmıştır. Ayrıca, GIL, G/Ç yaparken her zaman serbest bırakılır.</p>
<p>“Serbest iş parçacıklı” bir yorumlayıcı (paylaşılan verileri çok daha ince bir ayrıntı düzeyinde kilitleyen) oluşturma çabaları, ortak tek işlemcili durumda performans düştüğü için başarılı olmamıştır. Bu performans sorununun üstesinden gelinmesinin uygulamayı çok daha karmaşık hale getireceğine ve dolayısıyla bakımını daha maliyetli hale getireceğine inanılmaktadır.</p>
</dd>
<dt id="term-hash-based-pyc">karma tabanlı pyc<a class="headerlink" href="#term-hash-based-pyc" title="Permalink to this term">¶</a></dt><dd><p>Geçerliliğini belirlemek için ilgili kaynak dosyanın son değiştirilme zamanı yerine karma değerini kullanan bir bayt kodu önbellek dosyası. Bakınız <a class="reference internal" href="reference/import.html#pyc-invalidation"><span class="std std-ref">Cached bytecode invalidation</span></a>.</p>
</dd>
<dt id="term-hashable">yıkanabilir<a class="headerlink" href="#term-hashable" title="Permalink to this term">¶</a></dt><dd><p>Bir nesne, ömrü boyunca asla değişmeyen bir karma değere sahipse (bir <code class="xref py py-meth docutils literal notranslate"><span class="pre">__hash__()</span></code> yöntemine ihtiyaç duyar) ve diğer nesnelerle karşılaştırılabilirse (bir <code class="xref py py-meth docutils literal notranslate"><span class="pre">__eq__()</span></code> yöntemine ihtiyaç duyar) <em>hashable</em> olur. . Eşit karşılaştıran Hashable nesneleri aynı karma değerine sahip olmalıdır.</p>
<p>Hashability, bir nesneyi bir sözlük anahtarı ve bir set üyesi olarak kullanılabilir hale getirir, çünkü bu veri yapıları hash değerini dahili olarak kullanır.</p>
<p>Python’un değişmez yerleşik nesnelerinin çoğu, yıkanabilir; değiştirilebilir kaplar (listeler veya sözlükler gibi) değildir; değişmez kaplar (tüpler ve donmuş kümeler gibi) yalnızca öğelerinin yıkanabilir olması durumunda yıkanabilirdir. Kullanıcı tanımlı sınıfların örnekleri olan nesneler varsayılan olarak hash edilebilirdir. Hepsi eşit olmayanı karşılaştırır (kendileriyle hariç) ve hash değerleri <a class="reference internal" href="library/functions.html#id" title="id"><code class="xref py py-func docutils literal notranslate"><span class="pre">id()</span></code></a> ‘lerinden türetilir.</p>
</dd>
<dt id="term-IDLE">BOŞTA<a class="headerlink" href="#term-IDLE" title="Permalink to this term">¶</a></dt><dd><p>Python için Entegre Geliştirme Ortamı. <a class="reference internal" href="library/idle.html#idle"><span class="std std-ref">IDLE</span></a>, Python’un standart dağıtımıyla birlikte gelen temel bir düzenleyici ve yorumlayıcı ortamıdır.</p>
</dd>
<dt id="term-immutable">değişmez<a class="headerlink" href="#term-immutable" title="Permalink to this term">¶</a></dt><dd><p>Sabit değeri olan bir nesne. Değişmez nesneler arasında sayılar, dizeler ve demetler bulunur. Böyle bir nesne değiştirilemez. Farklı bir değerin saklanması gerekiyorsa yeni bir nesne oluşturulmalıdır. Örneğin bir sözlükte anahtar olarak, sabit bir karma değerinin gerekli olduğu yerlerde önemli bir rol oynarlar.</p>
</dd>
<dt id="term-import-path">içe aktarım yolu<a class="headerlink" href="#term-import-path" title="Permalink to this term">¶</a></dt><dd><p>İçe aktarılacak modüller için <a class="reference internal" href="#term-path-based-finder"><span class="xref std std-term">path based finder</span></a> tarafından aranan konumların (veya <a class="reference internal" href="#term-path-entry"><span class="xref std std-term">path entries</span></a>) listesi. İçe aktarma sırasında, bu konum listesi genellikle <a class="reference internal" href="library/sys.html#sys.path" title="sys.path"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.path</span></code></a> adresinden gelir, ancak alt paketler için üst paketin <code class="docutils literal notranslate"><span class="pre">__path__</span></code> özelliğinden de gelebilir.</p>
</dd>
<dt id="term-importing">içe aktarma<a class="headerlink" href="#term-importing" title="Permalink to this term">¶</a></dt><dd><p>Bir modüldeki Python kodunun başka bir modüldeki Python koduna sunulması süreci.</p>
</dd>
<dt id="term-importer">içe aktarıcı<a class="headerlink" href="#term-importer" title="Permalink to this term">¶</a></dt><dd><p>Bir modülü hem bulan hem de yükleyen bir nesne; hem bir <a class="reference internal" href="#term-finder"><span class="xref std std-term">finder</span></a> hem de <a class="reference internal" href="#term-loader"><span class="xref std std-term">loader</span></a> nesnesi.</p>
</dd>
<dt id="term-interactive">etkileşimli<a class="headerlink" href="#term-interactive" title="Permalink to this term">¶</a></dt><dd><p>Python’un etkileşimli bir yorumlayıcısı vardır; bu, yorumlayıcı isteminde ifadeler ve ifadeler girebileceğiniz, bunları hemen çalıştırabileceğiniz ve sonuçlarını görebileceğiniz anlamına gelir. Herhangi bir argüman olmadan <code class="docutils literal notranslate"><span class="pre">python</span></code> ‘u başlatmanız yeterlidir (muhtemelen bilgisayarınızın ana menüsünden seçerek). Yeni fikirleri test etmenin veya modülleri ve paketleri incelemenin çok güçlü bir yoludur (<code class="docutils literal notranslate"><span class="pre">help(x)</span></code> ‘i unutmayın).</p>
</dd>
<dt id="term-interpreted">yorumlanmış<a class="headerlink" href="#term-interpreted" title="Permalink to this term">¶</a></dt><dd><p>Python, derlenmiş bir dilin aksine yorumlanmış bir dildir, ancak bayt kodu derleyicisinin varlığı nedeniyle ayrım bulanık olabilir. Bu, kaynak dosyaların daha sonra çalıştırılacak bir yürütülebilir dosya oluşturmadan doğrudan çalıştırılabileceği anlamına gelir. Yorumlanan diller genellikle derlenmiş dillerden daha kısa bir geliştirme/hata ayıklama döngüsüne sahiptir, ancak programları genellikle daha yavaş çalışır. Ayrıca bkz. <a class="reference internal" href="#term-interactive"><span class="xref std std-term">interactive</span></a>.</p>
</dd>
<dt id="term-interpreter-shutdown">tercüman kapatma<a class="headerlink" href="#term-interpreter-shutdown" title="Permalink to this term">¶</a></dt><dd><p>Kapatılması istendiğinde, Python yorumlayıcısı, modüller ve çeşitli kritik iç yapılar gibi tahsis edilen tüm kaynakları kademeli olarak serbest bıraktığı özel bir aşamaya girer. Ayrıca <a class="reference internal" href="#term-garbage-collection"><span class="xref std std-term">garbage collector</span></a> için birkaç çağrı yapar. Bu, kullanıcı tanımlı yıkıcılarda veya zayıf referans geri aramalarında kodun yürütülmesini tetikleyebilir. Kapatma aşamasında yürütülen kod, dayandığı kaynaklar artık çalışmayabileceğinden çeşitli istisnalarla karşılaşabilir (yaygın örnekler kütüphane modülleri veya uyarı makineleridir).</p>
<p>Yorumlayıcının kapatılmasının ana nedeni, <code class="docutils literal notranslate"><span class="pre">__main__</span></code> modülünün veya çalıştırılan betiğin yürütmeyi bitirmiş olmasıdır.</p>
</dd>
<dt id="term-iterable">yinelenebilir<a class="headerlink" href="#term-iterable" title="Permalink to this term">¶</a></dt><dd><p>Üyelerini teker teker döndürebilen bir nesne. Yineleme örnekleri, tüm dizi türlerini (<a class="reference internal" href="library/stdtypes.html#list" title="list"><code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></a>, <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a>, ve <a class="reference internal" href="library/stdtypes.html#tuple" title="tuple"><code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></a> gibi) ve <a class="reference internal" href="library/stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a>, <a class="reference internal" href="#term-file-object"><span class="xref std std-term">dosya objeleri</span></a> gibi bazı dizi olmayan türleri ve bir <code class="xref py py-meth docutils literal notranslate"><span class="pre">__iter__()</span></code> yöntemiyle veya <a class="reference internal" href="#term-sequence"><span class="xref std std-term">dizi</span></a> semantiğini uygulayan bir <code class="xref py py-meth docutils literal notranslate"><span class="pre">__getitem__()</span></code> yöntemiyle tanımladığınız tüm sınıfların nesnelerini içerir.</p>
<p>Yinelenebilirler bir <a class="reference internal" href="reference/compound_stmts.html#for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code></a> döngüsünde ve bir dizinin gerekli olduğu diğer birçok yerde kullanılabilir (<a class="reference internal" href="library/functions.html#zip" title="zip"><code class="xref py py-func docutils literal notranslate"><span class="pre">zip()</span></code></a>, <a class="reference internal" href="library/functions.html#map" title="map"><code class="xref py py-func docutils literal notranslate"><span class="pre">map()</span></code></a>, …). Yerleşik <a class="reference internal" href="library/functions.html#iter" title="iter"><code class="xref py py-func docutils literal notranslate"><span class="pre">iter()</span></code></a> işlevine argüman olarak yinelenebilir bir nesne iletildiğinde, nesne için bir yineleyici döndürür. Bu yineleyici, değerler kümesi üzerinden bir geçiş için iyidir. Yinelenebilirleri kullanırken, genellikle <a class="reference internal" href="library/functions.html#iter" title="iter"><code class="xref py py-func docutils literal notranslate"><span class="pre">iter()</span></code></a> çağırmanız veya yineleyici nesnelerle kendiniz ilgilenmeniz gerekmez. <code class="docutils literal notranslate"><span class="pre">for</span></code> ifadesi bunu sizin için otomatik olarak yapar ve yineleyiciyi döngü süresince tutmak için geçici bir adsız değişken oluşturur. Ayrıca bkz. <a class="reference internal" href="#term-iterator"><span class="xref std std-term">iterator</span></a>, <a class="reference internal" href="#term-sequence"><span class="xref std std-term">sequence</span></a> ve <a class="reference internal" href="#term-generator"><span class="xref std std-term">generator</span></a>.</p>
</dd>
<dt id="term-iterator">yineleyici<a class="headerlink" href="#term-iterator" title="Permalink to this term">¶</a></dt><dd><p>Bir veri akışını temsil eden bir nesne. Yineleyicinin <a class="reference internal" href="library/stdtypes.html#iterator.__next__" title="iterator.__next__"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__next__()</span></code></a> yöntemine (veya yerleşik <a class="reference internal" href="library/functions.html#next" title="next"><code class="xref py py-func docutils literal notranslate"><span class="pre">next()</span></code></a> işlevine iletilmesi) yinelenen çağrılar, akıştaki ardışık öğeleri döndürür. Daha fazla veri bulunmadığında, bunun yerine bir <a class="reference internal" href="library/exceptions.html#StopIteration" title="StopIteration"><code class="xref py py-exc docutils literal notranslate"><span class="pre">StopIteration</span></code></a> istisnası oluşturulur. Bu noktada, yineleyici nesnesi tükenir ve <code class="xref py py-meth docutils literal notranslate"><span class="pre">__next__()</span></code> yöntemine yapılan diğer çağrılar yalnızca <a class="reference internal" href="library/exceptions.html#StopIteration" title="StopIteration"><code class="xref py py-exc docutils literal notranslate"><span class="pre">StopIteration</span></code></a> öğesini yeniden yükseltir. Yineleyicilerin, yineleyici nesnesinin kendisini döndüren bir <code class="xref py py-meth docutils literal notranslate"><span class="pre">__iter__()</span></code> yöntemine sahip olmaları gerekir, böylece her yineleyici de yinelenebilir ve diğer yinelenebilirlerin kabul edildiği çoğu yerde kullanılabilir. Dikkate değer bir istisna, birden çok yineleme geçişini deneyen koddur. Bir kapsayıcı nesnesi (örneğin bir <a class="reference internal" href="library/stdtypes.html#list" title="list"><code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></a>), onu <a class="reference internal" href="library/functions.html#iter" title="iter"><code class="xref py py-func docutils literal notranslate"><span class="pre">iter()</span></code></a> işlevine her ilettiğinizde veya onu bir <a class="reference internal" href="reference/compound_stmts.html#for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code></a> döngüsünde kullandığınızda yeni bir yineleyici üretir. Bunu bir yineleyiciyle denemek, önceki yineleme geçişinde kullanılan aynı tükenmiş yineleyici nesnesini döndürerek boş bir kap gibi görünmesini sağlar.</p>
<p>Daha fazla bilgi <a class="reference internal" href="library/stdtypes.html#typeiter"><span class="std std-ref">Yineleyici Türleri</span></a> içinde bulunabilir.</p>
<div class="impl-detail compound">
<p><strong>CPython uygulama ayrıntısı:</strong> CPython, bir yineleyicinin <code class="xref py py-meth docutils literal notranslate"><span class="pre">__iter__()</span></code> tanımlaması gereksinimini tutarlı bir şekilde uygulamaz.</p>
</div>
</dd>
<dt id="term-key-function">anahtar işlev<a class="headerlink" href="#term-key-function" title="Permalink to this term">¶</a></dt><dd><p>Anahtar işlevi veya harmanlama işlevi, sıralama veya sıralama için kullanılan bir değeri döndüren bir çağrılabilir. Örneğin, <a class="reference internal" href="library/locale.html#locale.strxfrm" title="locale.strxfrm"><code class="xref py py-func docutils literal notranslate"><span class="pre">locale.strxfrm()</span></code></a>, yerel ayara özgü sıralama kurallarının farkında olan bir sıralama anahtarı üretmek için kullanılır.</p>
<p>Python’daki bir dizi araç, öğelerin nasıl sıralandığını veya gruplandırıldığını kontrol etmek için temel işlevleri kabul eder. Bunlar <a class="reference internal" href="library/functions.html#min" title="min"><code class="xref py py-func docutils literal notranslate"><span class="pre">min()</span></code></a>, <a class="reference internal" href="library/functions.html#max" title="max"><code class="xref py py-func docutils literal notranslate"><span class="pre">max()</span></code></a>, <a class="reference internal" href="library/functions.html#sorted" title="sorted"><code class="xref py py-func docutils literal notranslate"><span class="pre">sorted()</span></code></a>, <a class="reference internal" href="library/stdtypes.html#list.sort" title="list.sort"><code class="xref py py-meth docutils literal notranslate"><span class="pre">list.sort()</span></code></a>, <a class="reference internal" href="library/heapq.html#heapq.merge" title="heapq.merge"><code class="xref py py-func docutils literal notranslate"><span class="pre">heapq.merge()</span></code></a>, <a class="reference internal" href="library/heapq.html#heapq.nsmallest" title="heapq.nsmallest"><code class="xref py py-func docutils literal notranslate"><span class="pre">heapq.nsmallest()</span></code></a>, <a class="reference internal" href="library/heapq.html#heapq.nlargest" title="heapq.nlargest"><code class="xref py py-func docutils literal notranslate"><span class="pre">heapq.nlargest()</span></code></a> ve <a class="reference internal" href="library/itertools.html#itertools.groupby" title="itertools.groupby"><code class="xref py py-func docutils literal notranslate"><span class="pre">itertools.groupby()</span></code></a>.</p>
<p>Bir tuş fonksiyonu oluşturmanın birkaç yolu vardır. Örneğin. <a class="reference internal" href="library/stdtypes.html#str.lower" title="str.lower"><code class="xref py py-meth docutils literal notranslate"><span class="pre">str.lower()</span></code></a> yöntemi, büyük/küçük harfe duyarlı olmayan sıralamalar için bir anahtar fonksiyonu işlevi görebilir. Alternatif olarak, <code class="docutils literal notranslate"><span class="pre">lambda</span> <span class="pre">r:</span> <span class="pre">(r[0],</span> <span class="pre">r[2])</span></code> gibi bir <a class="reference internal" href="reference/expressions.html#lambda"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">lambda</span></code></a> ifadesinden bir anahtar işlevi oluşturulabilir. Ayrıca, <a class="reference internal" href="library/operator.html#operator.attrgetter" title="operator.attrgetter"><code class="xref py py-func docutils literal notranslate"><span class="pre">attrgetter()</span></code></a>, <a class="reference internal" href="library/operator.html#operator.itemgetter" title="operator.itemgetter"><code class="xref py py-func docutils literal notranslate"><span class="pre">itemgetter()</span></code></a> ve <a class="reference internal" href="library/operator.html#operator.methodcaller" title="operator.methodcaller"><code class="xref py py-func docutils literal notranslate"><span class="pre">methodcaller()</span></code></a> fonksiyonları üç anahtar fonksiyon kurucularıdır. Anahtar işlevlerin nasıl oluşturulacağı ve kullanılacağına ilişkin örnekler için <a class="reference internal" href="howto/sorting.html#sortinghowto"><span class="std std-ref">Sorting HOW TO</span></a> bölümüne bakın.</p>
</dd>
<dt id="term-keyword-argument">anahtar kelime argümanı<a class="headerlink" href="#term-keyword-argument" title="Permalink to this term">¶</a></dt><dd><p>Bakınız <a class="reference internal" href="#term-argument"><span class="xref std std-term">argument</span></a>.</p>
</dd>
<dt id="term-lambda">lambda<a class="headerlink" href="#term-lambda" title="Permalink to this term">¶</a></dt><dd><p>İşlev çağrıldığında değerlendirilen tek bir <a class="reference internal" href="#term-expression"><span class="xref std std-term">expression</span></a> ‘dan oluşan anonim bir satır içi işlev. Bir lambda işlevi oluşturmak için sözdizimi <code class="docutils literal notranslate"><span class="pre">lambda</span> <span class="pre">[parametreler]:</span> <span class="pre">ifade</span></code> şeklindedir</p>
</dd>
<dt id="term-LBYL">LBYL<a class="headerlink" href="#term-LBYL" title="Permalink to this term">¶</a></dt><dd><p>Zıplamadan önce Bak. Bu kodlama stili, arama veya arama yapmadan önce ön koşulları açıkça test eder. Bu stil, <a class="reference internal" href="#term-EAFP"><span class="xref std std-term">EAFP</span></a> yaklaşımıyla çelişir ve birçok <a class="reference internal" href="reference/compound_stmts.html#if"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code></a> ifadesinin varlığı ile karakterize edilir.</p>
<p>Çok iş parçacıklı bir ortamda, LBYL yaklaşımı “bakan” ve “sıçrayan” arasında bir yarış koşulu getirme riskini taşıyabilir. Örneğin, <code class="docutils literal notranslate"><span class="pre">if</span> <span class="pre">key</span> <span class="pre">in</span> <span class="pre">mapping:</span> <span class="pre">return</span> <span class="pre">mapping[key]</span></code> kodu, testten sonra, ancak aramadan önce başka bir iş parçacığı <em>eşlemeden</em> <em>key</em> kaldırırsa başarısız olabilir. Bu sorun, kilitlerle veya EAFP yaklaşımı kullanılarak çözülebilir.</p>
</dd>
<dt id="term-locale-encoding">yerel kodlama<a class="headerlink" href="#term-locale-encoding" title="Permalink to this term">¶</a></dt><dd><p>Unix’te, LC_CTYPE yerel ayarının kodlamasıdır. <a class="reference internal" href="library/locale.html#locale.setlocale" title="locale.setlocale"><code class="xref py py-func docutils literal notranslate"><span class="pre">locale.setlocale(locale.LC_CTYPE,</span> <span class="pre">new_locale)</span></code></a> ile ayarlanabilir.</p>
<p>Windows’ta bu, ANSI kod sayfasıdır (ör. <code class="docutils literal notranslate"><span class="pre">"cp1252"</span></code>).</p>
<p>Android ve VxWorks’te Python, yerel kodlama olarak <code class="docutils literal notranslate"><span class="pre">"utf-8"</span></code> kullanır.</p>
<p>Yerel kodlamayı almak için <code class="docutils literal notranslate"><span class="pre">locale.getencoding()</span></code> kullanılabilir.</p>
<p>Ayrıca <a class="reference internal" href="#term-filesystem-encoding-and-error-handler"><span class="xref std std-term">filesystem encoding and error handler</span></a> ‘ne bakın.</p>
</dd>
<dt id="term-list">liste<a class="headerlink" href="#term-list" title="Permalink to this term">¶</a></dt><dd><p>Yerleşik bir Python <a class="reference internal" href="#term-sequence"><span class="xref std std-term">dizi</span></a>. Adına rağmen, öğelere erişim O(1) olduğundan, diğer dillerdeki bir diziye, bağlantılı bir listeden daha yakındır.</p>
</dd>
<dt id="term-list-comprehension">liste anlama<a class="headerlink" href="#term-list-comprehension" title="Permalink to this term">¶</a></dt><dd><p>Bir dizideki öğelerin tümünü veya bir kısmını işlemenin ve sonuçları içeren bir liste döndürmenin kompakt bir yolu. <code class="docutils literal notranslate"><span class="pre">sonuç</span> <span class="pre">=</span> <span class="pre">['{:#04x}'.format(x)</span> <span class="pre">for</span> <span class="pre">range(256)</span> <span class="pre">if</span> <span class="pre">x</span> <span class="pre">%</span> <span class="pre">2</span> <span class="pre">==</span> <span class="pre">0]</span></code>, dizinde çift onaltılık sayılar (0x..) içeren bir diziler listesi oluşturur. 0 ile 255 arasındadır. <a class="reference internal" href="reference/compound_stmts.html#if"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code></a> yan tümcesi isteğe bağlıdır. Atlanırsa, “aralık(256)” içindeki tüm öğeler işlenir.</p>
</dd>
<dt id="term-loader">yükleyici<a class="headerlink" href="#term-loader" title="Permalink to this term">¶</a></dt><dd><p>Modül yükleyen bir nesne. <code class="xref py py-meth docutils literal notranslate"><span class="pre">load_module()</span></code> adında bir yöntem tanımlamalıdır. Bir yükleyici genellikle bir <a class="reference internal" href="#term-finder"><span class="xref std std-term">finder</span></a> ile döndürülür. Ayrıntılar için <span class="target" id="index-87"></span><a class="pep reference external" href="https://peps.python.org/pep-0302/"><strong>PEP 302</strong></a> ve bir <a class="reference internal" href="#term-abstract-base-class"><span class="xref std std-term">soyut temel sınıf</span></a> için <a class="reference internal" href="library/importlib.html#importlib.abc.Loader" title="importlib.abc.Loader"><code class="xref py py-class docutils literal notranslate"><span class="pre">importlib.abc.Loader</span></code></a> bölümüne bakın.</p>
</dd>
<dt id="term-magic-method">sihirli yöntem<a class="headerlink" href="#term-magic-method" title="Permalink to this term">¶</a></dt><dd><p id="index-26"><a class="reference internal" href="#term-special-method"><span class="xref std std-term">special method</span></a> için gayri resmi bir eşanlamlı.</p>
</dd>
<dt id="term-mapping">haritalama<a class="headerlink" href="#term-mapping" title="Permalink to this term">¶</a></dt><dd><p>Keyfi anahtar aramalarını destekleyen ve <a class="reference internal" href="library/collections.abc.html#collections.abc.Mapping" title="collections.abc.Mapping"><code class="xref py py-class docutils literal notranslate"><span class="pre">Mapping</span></code></a> veya <a class="reference internal" href="library/collections.abc.html#collections.abc.MutableMapping" title="collections.abc.MutableMapping"><code class="xref py py-class docutils literal notranslate"><span class="pre">MutableMapping</span></code></a> <a class="reference internal" href="library/collections.abc.html#collections-abstract-base-classes"><span class="std std-ref">Collections Abstract Base Classes</span></a> içinde belirtilen yöntemleri uygulayan bir kapsayıcı nesnesi. Örnekler arasında <a class="reference internal" href="library/stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a>, <a class="reference internal" href="library/collections.html#collections.defaultdict" title="collections.defaultdict"><code class="xref py py-class docutils literal notranslate"><span class="pre">collections.defaultdict</span></code></a>, <a class="reference internal" href="library/collections.html#collections.OrderedDict" title="collections.OrderedDict"><code class="xref py py-class docutils literal notranslate"><span class="pre">collections.OrderedDict</span></code></a> ve <a class="reference internal" href="library/collections.html#collections.Counter" title="collections.Counter"><code class="xref py py-class docutils literal notranslate"><span class="pre">collections.Counter</span></code></a> sayılabilir.</p>
</dd>
<dt id="term-meta-path-finder">meta yol bulucu<a class="headerlink" href="#term-meta-path-finder" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-finder"><span class="xref std std-term">finder</span></a>, <a class="reference internal" href="library/sys.html#sys.meta_path" title="sys.meta_path"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.meta_path</span></code></a> aramasıyla döndürülür. Meta yol bulucular, <a class="reference internal" href="#term-path-entry-finder"><span class="xref std std-term">yol girişi bulucuları</span></a> ile ilişkilidir, ancak onlardan farklıdır.</p>
<p>Meta yol bulucuların uyguladığı yöntemler için <a class="reference internal" href="library/importlib.html#importlib.abc.MetaPathFinder" title="importlib.abc.MetaPathFinder"><code class="xref py py-class docutils literal notranslate"><span class="pre">importlib.abc.MetaPathFinder</span></code></a> bölümüne bakın.</p>
</dd>
<dt id="term-metaclass">metasınıf<a class="headerlink" href="#term-metaclass" title="Permalink to this term">¶</a></dt><dd><p>Bir sınıfın sınıfı. Sınıf tanımları, bir sınıf adı, bir sınıf sözlüğü ve temel sınıfların bir listesini oluşturur. Metasınıf, bu üç argümanı almaktan ve sınıfı oluşturmaktan sorumludur. Çoğu nesne yönelimli programlama dili, varsayılan bir uygulama sağlar. Python’u özel yapan şey, özel metasınıflar oluşturmanın mümkün olmasıdır. Çoğu kullanıcı bu araca hiçbir zaman ihtiyaç duymaz, ancak ihtiyaç duyulduğunda, metasınıflar güçlü ve zarif çözümler sağlayabilir. Nitelik erişimini günlüğe kaydetmek, iş parçacığı güvenliği eklemek, nesne oluşturmayı izlemek, tekilleri uygulamak ve diğer birçok görev için kullanılmışlardır.</p>
<p>Daha fazla bilgi <a class="reference internal" href="reference/datamodel.html#metaclasses"><span class="std std-ref">Metaclasses</span></a> içinde bulunabilir.</p>
</dd>
<dt id="term-method">metot<a class="headerlink" href="#term-method" title="Permalink to this term">¶</a></dt><dd><p>Bir sınıf gövdesi içinde tanımlanan bir işlev. Bu sınıfın bir örneğinin özniteliği olarak çağrılırsa, yöntem örnek nesnesini ilk <a class="reference internal" href="#term-argument"><span class="xref std std-term">argument</span></a> (genellikle <code class="docutils literal notranslate"><span class="pre">self</span></code> olarak adlandırılır) olarak alır. Bkz. <a class="reference internal" href="#term-function"><span class="xref std std-term">function</span></a> ve <a class="reference internal" href="#term-nested-scope"><span class="xref std std-term">nested scope</span></a>.</p>
</dd>
<dt id="term-method-resolution-order">metot kalite sıralaması<a class="headerlink" href="#term-method-resolution-order" title="Permalink to this term">¶</a></dt><dd><p>Metot Çözüm Sırası, arama sırasında bir üye için temel sınıfların arandığı sıradır. 2.3 sürümünden bu yana Python yorumlayıcısı tarafından kullanılan algoritmanın ayrıntıları için bkz. <a class="reference external" href="https://www.python.org/download/releases/2.3/mro/">The Python 2.3 Method Resolution Order</a>.</p>
</dd>
<dt id="term-module">modül<a class="headerlink" href="#term-module" title="Permalink to this term">¶</a></dt><dd><p>Python kodunun kuruluş birimi olarak hizmet eden bir nesne. Modüller, rastgele Python nesneleri içeren bir ad alanına sahiptir. Modüller, <a class="reference internal" href="#term-importing"><span class="xref std std-term">importing</span></a> işlemiyle Python’a yüklenir.</p>
<p>Ayrıca bakınız <a class="reference internal" href="#term-package"><span class="xref std std-term">package</span></a>.</p>
</dd>
<dt id="term-module-spec">modül özelliği<a class="headerlink" href="#term-module-spec" title="Permalink to this term">¶</a></dt><dd><p>Bir modülü yüklemek için kullanılan içe aktarmayla ilgili bilgileri içeren bir ad alanı. Bir <a class="reference internal" href="library/importlib.html#importlib.machinery.ModuleSpec" title="importlib.machinery.ModuleSpec"><code class="xref py py-class docutils literal notranslate"><span class="pre">importlib.machinery.ModuleSpec</span></code></a> örneği.</p>
</dd>
<dt id="term-MRO">MRO<a class="headerlink" href="#term-MRO" title="Permalink to this term">¶</a></dt><dd><p>Bakınız <a class="reference internal" href="#term-method-resolution-order"><span class="xref std std-term">metot çözüm sırası</span></a>.</p>
</dd>
<dt id="term-mutable">değiştirilebilir<a class="headerlink" href="#term-mutable" title="Permalink to this term">¶</a></dt><dd><p>Değiştirilebilir (mutable) nesneler değerlerini değiştirebilir ancak <a class="reference internal" href="library/functions.html#id" title="id"><code class="xref py py-func docutils literal notranslate"><span class="pre">idlerini</span></code></a> koruyabilirler. Ayrıca bkz. <a class="reference internal" href="#term-immutable"><span class="xref std std-term">immutable</span></a>.</p>
</dd>
<dt id="term-named-tuple">adlandırılmış demet<a class="headerlink" href="#term-named-tuple" title="Permalink to this term">¶</a></dt><dd><p>“named tuple” terimi, demetten miras alan ve dizinlenebilir öğelerine de adlandırılmış nitelikler kullanılarak erişilebilen herhangi bir tür veya sınıf için geçerlidir. Tür veya sınıfın başka özellikleri de olabilir.</p>
<p>Çeşitli yerleşik türler, <a class="reference internal" href="library/time.html#time.localtime" title="time.localtime"><code class="xref py py-func docutils literal notranslate"><span class="pre">time.localtime()</span></code></a> ve <a class="reference internal" href="library/os.html#os.stat" title="os.stat"><code class="xref py py-func docutils literal notranslate"><span class="pre">os.stat()</span></code></a> tarafından döndürülen değerler de dahil olmak üzere, tanımlama grupları olarak adlandırılır. Başka bir örnek <a class="reference internal" href="library/sys.html#sys.float_info" title="sys.float_info"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.float_info</span></code></a>:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">sys</span><span class="o">.</span><span class="n">float_info</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="c1"># indexed access</span>
<span class="go">1024</span>
<span class="gp">>>> </span><span class="n">sys</span><span class="o">.</span><span class="n">float_info</span><span class="o">.</span><span class="n">max_exp</span> <span class="c1"># named field access</span>
<span class="go">1024</span>
<span class="gp">>>> </span><span class="nb">isinstance</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">float_info</span><span class="p">,</span> <span class="nb">tuple</span><span class="p">)</span> <span class="c1"># kind of tuple</span>
<span class="go">True</span>
</pre></div>
</div>
<p>Bazı adlandırılmış demetler yerleşik türlerdir (yukarıdaki örnekler gibi). Alternatif olarak, <a class="reference internal" href="library/stdtypes.html#tuple" title="tuple"><code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></a> öğesinden miras alan ve adlandırılmış alanları tanımlayan normal bir sınıf tanımından adlandırılmış bir tanımlama grubu oluşturulabilir. Böyle bir sınıf elle yazılabilir veya fabrika işlevi <a class="reference internal" href="library/collections.html#collections.namedtuple" title="collections.namedtuple"><code class="xref py py-func docutils literal notranslate"><span class="pre">collections.namedtuple()</span></code></a> ile oluşturulabilir. İkinci teknik ayrıca elle yazılmış veya yerleşik adlandırılmış demetlerde bulunmayan bazı ekstra yöntemler ekler.</p>
</dd>
<dt id="term-namespace">ad alanı<a class="headerlink" href="#term-namespace" title="Permalink to this term">¶</a></dt><dd><p>Değişkenin saklandığı yer. Ad alanları sözlükler olarak uygulanır. Nesnelerde (yöntemlerde) yerel, genel ve yerleşik ad alanlarının yanı sıra iç içe ad alanları vardır. Ad alanları, adlandırma çakışmalarını önleyerek modülerliği destekler. Örneğin, <a class="reference internal" href="library/functions.html#open" title="open"><code class="xref py py-func docutils literal notranslate"><span class="pre">builtins.open</span></code></a> ve <a class="reference internal" href="library/os.html#os.open" title="os.open"><code class="xref py py-func docutils literal notranslate"><span class="pre">os.open()</span></code></a> işlevleri ad alanlarıyla ayırt edilir. Ad alanları, hangi modülün bir işlevi uyguladığını açıkça belirterek okunabilirliğe ve sürdürülebilirliğe de yardımcı olur. Örneğin, <a class="reference internal" href="library/random.html#random.seed" title="random.seed"><code class="xref py py-func docutils literal notranslate"><span class="pre">random.seed()</span></code></a> veya <a class="reference internal" href="library/itertools.html#itertools.islice" title="itertools.islice"><code class="xref py py-func docutils literal notranslate"><span class="pre">itertools.islice()</span></code></a> yazmak, bu işlevlerin sırasıyla <a class="reference internal" href="library/random.html#module-random" title="random: Generate pseudo-random numbers with various common distributions."><code class="xref py py-mod docutils literal notranslate"><span class="pre">random</span></code></a> ve <a class="reference internal" href="library/itertools.html#module-itertools" title="itertools: Functions creating iterators for efficient looping."><code class="xref py py-mod docutils literal notranslate"><span class="pre">itertools</span></code></a> modülleri tarafından uygulandığını açıkça gösterir.</p>
</dd>
<dt id="term-namespace-package">ad alanı paketi<a class="headerlink" href="#term-namespace-package" title="Permalink to this term">¶</a></dt><dd><p>A <span class="target" id="index-88"></span><a class="pep reference external" href="https://peps.python.org/pep-0420/"><strong>PEP 420</strong></a> <a class="reference internal" href="#term-package"><span class="xref std std-term">package</span></a>, yalnızca alt paketler için bir kap olarak hizmet eder. Ad alanı paketlerinin hiçbir fiziksel temsili olmayabilir ve <code class="docutils literal notranslate"><span class="pre">__init__.py</span></code> dosyası olmadığından özellikle <a class="reference internal" href="#term-regular-package"><span class="xref std std-term">regular package</span></a> gibi değildirler.</p>
<p>Ayrıca bkz. <a class="reference internal" href="#term-module"><span class="xref std std-term">module</span></a>.</p>
</dd>
<dt id="term-nested-scope">iç içe kapsam<a class="headerlink" href="#term-nested-scope" title="Permalink to this term">¶</a></dt><dd><p>Kapsamlı bir tanımdaki bir değişkene atıfta bulunma yeteneği. Örneğin, başka bir fonksiyonun içinde tanımlanan bir fonksiyon, dış fonksiyondaki değişkenlere atıfta bulunabilir. İç içe kapsamların varsayılan olarak yalnızca başvuru için çalıştığını ve atama için çalışmadığını unutmayın. Yerel değişkenler en içteki kapsamda hem okur hem de yazar. Benzer şekilde, global değişkenler global ad alanını okur ve yazar. <a class="reference internal" href="reference/simple_stmts.html#nonlocal"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">nonlocal</span></code></a>, dış kapsamlara yazmaya izin verir.</p>
</dd>
<dt id="term-new-style-class">yeni stil sınıf<a class="headerlink" href="#term-new-style-class" title="Permalink to this term">¶</a></dt><dd><p>Artık tüm sınıf nesneleri için kullanılan sınıfların lezzetinin eski adı. Önceki Python sürümlerinde, yalnızca yeni stil sınıfları Python’un <a class="reference internal" href="reference/datamodel.html#object.__slots__" title="object.__slots__"><code class="xref py py-attr docutils literal notranslate"><span class="pre">__slots__</span></code></a>, tanımlayıcılar, özellikler, <code class="xref py py-meth docutils literal notranslate"><span class="pre">__getattribute__()</span></code>, sınıf yöntemleri ve statik yöntemler gibi daha yeni, çok yönlü özelliklerini kullanabilirdi.</p>
</dd>
<dt id="term-object">obje<a class="headerlink" href="#term-object" title="Permalink to this term">¶</a></dt><dd><p>Durum (öznitelikler veya değer) ve tanımlanmış davranış (yöntemler) içeren herhangi bir veri. Ayrıca herhangi bir <a class="reference internal" href="#term-new-style-class"><span class="xref std std-term">yeni tarz sınıfın</span></a> nihai temel sınıfı.</p>
</dd>
<dt id="term-package">paket<a class="headerlink" href="#term-package" title="Permalink to this term">¶</a></dt><dd><p>Alt modüller veya yinelemeli olarak alt paketler içerebilen bir Python <a class="reference internal" href="#term-module"><span class="xref std std-term">module</span></a>. Teknik olarak bir paket, <code class="docutils literal notranslate"><span class="pre">__path__</span></code> özniteliğine sahip bir Python modülüdür.</p>
<p>Ayrıca bkz. <a class="reference internal" href="#term-regular-package"><span class="xref std std-term">regular package</span></a> ve <a class="reference internal" href="#term-namespace-package"><span class="xref std std-term">namespace package</span></a>.</p>
</dd>
<dt id="term-parameter">parametre<a class="headerlink" href="#term-parameter" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-function"><span class="xref std std-term">function</span></a> (veya yöntem) tanımında, işlevin kabul edebileceği bir <a class="reference internal" href="#term-argument"><span class="xref std std-term">argument</span></a> (veya bazı durumlarda, argümanlar) belirten adlandırılmış bir varlık. Beş çeşit parametre vardır:</p>
<ul>
<li><p><em class="dfn">positional-or-keyword</em>: <a class="reference internal" href="#term-argument"><span class="xref std std-term">pozisyonel</span></a> veya bir <a class="reference internal" href="#term-argument"><span class="xref std std-term">keyword argümanı</span></a> olarak iletilebilen bir argüman belirtir. Bu, varsayılan parametre türüdür, örneğin aşağıdakilerde <em>foo</em> ve <em>bar</em>:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">func</span><span class="p">(</span><span class="n">foo</span><span class="p">,</span> <span class="n">bar</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span> <span class="o">...</span>
</pre></div>
</div>
</li>
</ul>
<ul id="positional-only-parameter">
<li><p><em class="dfn">positional-only</em>: yalnızca konuma göre sağlanabilen bir argüman belirtir. Yalnızca konumsal parametreler, onlardan sonra fonksiyon tanımının parametre listesine bir <code class="docutils literal notranslate"><span class="pre">/</span></code> karakteri eklenerek tanımlanabilir, örneğin aşağıdakilerde <em>posonly1</em> ve <em>posonly2</em>:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">func</span><span class="p">(</span><span class="n">posonly1</span><span class="p">,</span> <span class="n">posonly2</span><span class="p">,</span> <span class="o">/</span><span class="p">,</span> <span class="n">positional_or_keyword</span><span class="p">):</span> <span class="o">...</span>
</pre></div>
</div>
</li>
</ul>
<ul id="keyword-only-parameter">
<li><p><em class="dfn">keyword-only</em>: sadece anahtar kelime ile sağlanabilen bir argüman belirtir. Yalnızca anahtar kelime (keyword-only) parametreleri, onlardan önceki fonksiyon tanımının parametre listesine tek bir değişken konumlu parametre veya çıplak <code class="docutils literal notranslate"><span class="pre">*</span></code> dahil edilerek tanımlanabilir, örneğin aşağıdakilerde <em>kw_only1</em> ve <em>kw_only2</em>:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">func</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">kw_only1</span><span class="p">,</span> <span class="n">kw_only2</span><span class="p">):</span> <span class="o">...</span>
</pre></div>
</div>
</li>
<li><p><em class="dfn">var-positional</em>: keyfi bir pozisyonel argüman dizisinin sağlanabileceğini belirtir (diğer parametreler tarafından zaten kabul edilmiş herhangi bir konumsal argümana ek olarak). Böyle bir parametre, parametre adının başına <code class="docutils literal notranslate"><span class="pre">*</span></code> eklenerek tanımlanabilir, örneğin aşağıdakilerde <em>args</em>:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">func</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span> <span class="o">...</span>
</pre></div>
</div>
</li>
<li><p><em class="dfn">var-keyword</em>: keyfi olarak birçok anahtar kelime argümanının sağlanabileceğini belirtir (diğer parametreler tarafından zaten kabul edilen herhangi bir anahtar kelime argümanına ek olarak). Böyle bir parametre, parametre adının başına <code class="docutils literal notranslate"><span class="pre">**</span></code>, örneğin yukarıdaki örnekte <em>kwargs</em> eklenerek tanımlanabilir.</p></li>
</ul>
<p>Parametreler, hem isteğe bağlı hem de gerekli argümanleri ve ayrıca bazı isteğe bağlı bağımsız değişkenler için varsayılan değerleri belirtebilir.</p>
<p>Ayrıca bkz. <a class="reference internal" href="#term-argument"><span class="xref std std-term">argüman</span></a>, <a class="reference internal" href="faq/programming.html#faq-argument-vs-parameter"><span class="std std-ref">argümanlar ve parametreler arasındaki fark</span></a>, <a class="reference internal" href="library/inspect.html#inspect.Parameter" title="inspect.Parameter"><code class="xref py py-class docutils literal notranslate"><span class="pre">inspect.Parameter</span></code></a>, <a class="reference internal" href="reference/compound_stmts.html#function"><span class="std std-ref">Function definitions</span></a> ve <span class="target" id="index-89"></span><a class="pep reference external" href="https://peps.python.org/pep-0362/"><strong>PEP 362</strong></a>.</p>
</dd>
<dt id="term-path-entry">yol girişi<a class="headerlink" href="#term-path-entry" title="Permalink to this term">¶</a></dt><dd><p><a class="reference internal" href="#term-path-based-finder"><span class="xref std std-term">path based finder</span></a> içe aktarma modüllerini bulmak için başvurduğu <a class="reference internal" href="#term-import-path"><span class="xref std std-term">import path</span></a> üzerindeki tek bir konum.</p>
</dd>
<dt id="term-path-entry-finder">yol girişi bulucu<a class="headerlink" href="#term-path-entry-finder" title="Permalink to this term">¶</a></dt><dd><p>Bir <a class="reference internal" href="#term-finder"><span class="xref std std-term">finder</span></a> <a class="reference internal" href="library/sys.html#sys.path_hooks" title="sys.path_hooks"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.path_hooks</span></code></a> (yani bir <a class="reference internal" href="#term-path-entry-hook"><span class="xref std std-term">yol giriş kancası</span></a>) üzerinde bir çağrılabilir tarafından döndürülür ve <a class="reference internal" href="#term-path-entry"><span class="xref std std-term">path entry</span></a> verilen modüllerin nasıl bulunacağını bilir.</p>
<p>Yol girişi bulucularının uyguladığı yöntemler için <a class="reference internal" href="library/importlib.html#importlib.abc.PathEntryFinder" title="importlib.abc.PathEntryFinder"><code class="xref py py-class docutils literal notranslate"><span class="pre">importlib.abc.PathEntryFinder</span></code></a> bölümüne bakın.</p>
</dd>
<dt id="term-path-entry-hook">yol giriş kancası<a class="headerlink" href="#term-path-entry-hook" title="Permalink to this term">¶</a></dt><dd><p><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.path_hook</span></code> listesinde, belirli bir <a class="reference internal" href="#term-path-entry"><span class="xref std std-term">yol girişindeki</span></a> modülleri nasıl bulacağını biliyorsa, bir <a class="reference internal" href="#term-path-entry-finder"><span class="xref std std-term">yol girişi bulucu</span></a> döndüren bir çağrılabilir.</p>
</dd>
<dt id="term-path-based-finder">yol tabanlı bulucu<a class="headerlink" href="#term-path-based-finder" title="Permalink to this term">¶</a></dt><dd><p>Modüller için bir <a class="reference internal" href="#term-import-path"><span class="xref std std-term">import path</span></a> arayan varsayılan <a class="reference internal" href="#term-meta-path-finder"><span class="xref std std-term">meta yol buluculardan</span></a> biri.</p>
</dd>
<dt id="term-path-like-object">yol benzeri nesne<a class="headerlink" href="#term-path-like-object" title="Permalink to this term">¶</a></dt><dd><p>Bir dosya sistemi yolunu temsil eden bir nesne. Yol benzeri bir nesne, bir yolu temsil eden bir <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> veya <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a> nesnesi veya <a class="reference internal" href="library/os.html#os.PathLike" title="os.PathLike"><code class="xref py py-class docutils literal notranslate"><span class="pre">os.PathLike</span></code></a> protokolünü uygulayan bir nesnedir. <a class="reference internal" href="library/os.html#os.PathLike" title="os.PathLike"><code class="xref py py-class docutils literal notranslate"><span class="pre">os.PathLike</span></code></a> protokolünü destekleyen bir nesne, <a class="reference internal" href="library/os.html#os.fspath" title="os.fspath"><code class="xref py py-func docutils literal notranslate"><span class="pre">os.fspath()</span></code></a> işlevi çağrılarak bir <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> veya <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a> dosya sistemi yoluna dönüştürülebilir; <a class="reference internal" href="library/os.html#os.fsdecode" title="os.fsdecode"><code class="xref py py-func docutils literal notranslate"><span class="pre">os.fsdecode()</span></code></a> ve <a class="reference internal" href="library/os.html#os.fsencode" title="os.fsencode"><code class="xref py py-func docutils literal notranslate"><span class="pre">os.fsencode()</span></code></a>, bunun yerine sırasıyla <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> veya <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a> sonucunu garanti etmek için kullanılabilir. <span class="target" id="index-90"></span><a class="pep reference external" href="https://peps.python.org/pep-0519/"><strong>PEP 519</strong></a> tarafından tanıtıldı.</p>
</dd>
<dt id="term-PEP">PEP<a class="headerlink" href="#term-PEP" title="Permalink to this term">¶</a></dt><dd><p>Python Geliştirme Önerisi. PEP, Python topluluğuna bilgi sağlayan veya Python veya süreçleri ya da ortamı için yeni bir özelliği açıklayan bir tasarım belgesidir. PEP’ler, önerilen özellikler için özlü bir teknik şartname ve bir gerekçe sağlamalıdır.</p>
<p>PEP’lerin, önemli yeni özellikler önermek, bir sorun hakkında topluluk girdisi toplamak ve Python’a giren tasarım kararlarını belgelemek için birincil mekanizmalar olması amaçlanmıştır. PEP yazarı, topluluk içinde fikir birliği oluşturmaktan ve muhalif görüşleri belgelemekten sorumludur.</p>
<p>Bakınız <span class="target" id="index-91"></span><a class="pep reference external" href="https://peps.python.org/pep-0001/"><strong>PEP 1</strong></a>.</p>
</dd>
<dt id="term-portion">kısım<a class="headerlink" href="#term-portion" title="Permalink to this term">¶</a></dt><dd><p><span class="target" id="index-92"></span><a class="pep reference external" href="https://peps.python.org/pep-0420/"><strong>PEP 420</strong></a> içinde tanımlandığı gibi, bir ad alanı paketine katkıda bulunan tek bir dizindeki (muhtemelen bir zip dosyasında depolanan) bir dizi dosya.</p>
</dd>
<dt id="term-positional-argument">konumsal argüman<a class="headerlink" href="#term-positional-argument" title="Permalink to this term">¶</a></dt><dd><p>Bakınız <a class="reference internal" href="#term-argument"><span class="xref std std-term">argument</span></a>.</p>
</dd>
<dt id="term-provisional-API">geçici API<a class="headerlink" href="#term-provisional-API" title="Permalink to this term">¶</a></dt><dd><p>Geçici bir API, standart kitaplığın geriye dönük uyumluluk garantilerinden kasıtlı olarak hariç tutulan bir API’dir. Bu tür arayüzlerde büyük değişiklikler beklenmese de, geçici olarak işaretlendikleri sürece, çekirdek geliştiriciler tarafından gerekli görüldüğü takdirde geriye dönük uyumsuz değişiklikler (arayüzün kaldırılmasına kadar ve buna kadar) meydana gelebilir. Bu tür değişiklikler karşılıksız yapılmayacaktır - bunlar yalnızca API’nin eklenmesinden önce gözden kaçan ciddi temel kusurlar ortaya çıkarsa gerçekleşecektir.</p>
<p>Geçici API’ler için bile, geriye dönük uyumsuz değişiklikler “son çare çözümü” olarak görülür - tanımlanan herhangi bir soruna geriye dönük uyumlu bir çözüm bulmak için her türlü girişimde bulunulacaktır.</p>
<p>Bu süreç, standart kitaplığın, uzun süreler boyunca sorunlu tasarım hatalarına kilitlenmeden zaman içinde gelişmeye devam etmesini sağlar. Daha fazla ayrıntı için bkz. <span class="target" id="index-93"></span><a class="pep reference external" href="https://peps.python.org/pep-0411/"><strong>PEP 411</strong></a>.</p>
</dd>
<dt id="term-provisional-package">geçici paket<a class="headerlink" href="#term-provisional-package" title="Permalink to this term">¶</a></dt><dd><p>Bakınız <a class="reference internal" href="#term-provisional-API"><span class="xref std std-term">provisional API</span></a>.</p>
</dd>
<dt id="term-Python-3000">Python 3000<a class="headerlink" href="#term-Python-3000" title="Permalink to this term">¶</a></dt><dd><p>Python 3.x sürüm satırının takma adı (uzun zaman önce sürüm 3’ün piyasaya sürülmesi uzak bir gelecekte olduğu zaman ortaya çıktı.) Bu aynı zamanda “Py3k” olarak da kısaltılır.</p>
</dd>
<dt id="term-Pythonic">Pythonic<a class="headerlink" href="#term-Pythonic" title="Permalink to this term">¶</a></dt><dd><p>Diğer dillerde ortak kavramları kullanarak kod uygulamak yerine Python dilinin en yaygın deyimlerini yakından takip eden bir fikir veya kod parçası. Örneğin, Python’da yaygın bir deyim, bir <a class="reference internal" href="reference/compound_stmts.html#for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code></a> ifadesi kullanarak yinelenebilir bir öğenin tüm öğeleri üzerinde döngü oluşturmaktır. Diğer birçok dilde bu tür bir yapı yoktur, bu nedenle Python’a aşina olmayan kişiler bazen bunun yerine sayısal bir sayaç kullanır:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">food</span><span class="p">)):</span>
<span class="nb">print</span><span class="p">(</span><span class="n">food</span><span class="p">[</span><span class="n">i</span><span class="p">])</span>
</pre></div>
</div>
<p>Temizleyicinin aksine, Pythonic yöntemi:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">for</span> <span class="n">piece</span> <span class="ow">in</span> <span class="n">food</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="n">piece</span><span class="p">)</span>
</pre></div>
</div>
</dd>
<dt id="term-qualified-name">nitelikli isim<a class="headerlink" href="#term-qualified-name" title="Permalink to this term">¶</a></dt><dd><p><span class="target" id="index-94"></span><a class="pep reference external" href="https://peps.python.org/pep-3155/"><strong>PEP 3155</strong></a> içinde tanımlandığı gibi, bir modülün genel kapsamından o modülde tanımlanan bir sınıfa, işleve veya yönteme giden “yolu” gösteren noktalı ad. Üst düzey işlevler ve sınıflar için nitelikli ad, nesnenin adıyla aynıdır:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="k">class</span> <span class="nc">C</span><span class="p">:</span>
<span class="gp">... </span> <span class="k">class</span> <span class="nc">D</span><span class="p">:</span>
<span class="gp">... </span> <span class="k">def</span> <span class="nf">meth</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="gp">... </span> <span class="k">pass</span>
<span class="gp">...</span>
<span class="gp">>>> </span><span class="n">C</span><span class="o">.</span><span class="vm">__qualname__</span>
<span class="go">'C'</span>
<span class="gp">>>> </span><span class="n">C</span><span class="o">.</span><span class="n">D</span><span class="o">.</span><span class="vm">__qualname__</span>
<span class="go">'C.D'</span>
<span class="gp">>>> </span><span class="n">C</span><span class="o">.</span><span class="n">D</span><span class="o">.</span><span class="n">meth</span><span class="o">.</span><span class="vm">__qualname__</span>
<span class="go">'C.D.meth'</span>
</pre></div>
</div>
<p>Modüllere atıfta bulunmak için kullanıldığında, <em>tam nitelenmiş ad</em>, herhangi bir üst paket de dahil olmak üzere, modüle giden tüm noktalı yol anlamına gelir, örn. <code class="docutils literal notranslate"><span class="pre">email.mime.text</span></code>:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">import</span> <span class="nn">email.mime.text</span>
<span class="gp">>>> </span><span class="n">email</span><span class="o">.</span><span class="n">mime</span><span class="o">.</span><span class="n">text</span><span class="o">.</span><span class="vm">__name__</span>
<span class="go">'email.mime.text'</span>
</pre></div>
</div>
</dd>
<dt id="term-reference-count">referans sayısı<a class="headerlink" href="#term-reference-count" title="Permalink to this term">¶</a></dt><dd><p>Bir nesneye yapılan başvuruların sayısı. Bir nesnenin referans sayısı sıfıra düştüğünde, yeniden konumlandırılır. Referans sayımı genellikle Python kodu tarafından görülmez, ancak <a class="reference internal" href="#term-CPython"><span class="xref std std-term">CPython</span></a> uygulamasının önemli bir öğesidir. Programcılar, belirli bir nesne için başvuru sayısını döndürmek için <a class="reference internal" href="library/sys.html#sys.getrefcount" title="sys.getrefcount"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.getrefcount()</span></code></a> işlevini çağırabilir.</p>
</dd>
<dt id="term-regular-package">sürekli paketleme<a class="headerlink" href="#term-regular-package" title="Permalink to this term">¶</a></dt><dd><p><code class="docutils literal notranslate"><span class="pre">__init__.py</span></code> dosyası içeren bir dizin gibi geleneksel bir <a class="reference internal" href="#term-package"><span class="xref std std-term">package</span></a>.</p>
<p>Ayrıca bkz. <a class="reference internal" href="#term-namespace-package"><span class="xref std std-term">ad alanı paketi</span></a>.</p>
</dd>
<dt id="term-__slots__">__slots__<a class="headerlink" href="#term-__slots__" title="Permalink to this term">¶</a></dt><dd><p>Örnek öznitelikleri için önceden yer bildirerek ve örnek sözlüklerini ortadan kaldırarak bellekten tasarruf sağlayan bir sınıf içindeki bildirim. Popüler olmasına rağmen, tekniğin doğru olması biraz zor ve en iyi, bellek açısından kritik bir uygulamada çok sayıda örneğin bulunduğu nadir durumlar için ayrılmıştır.</p>
</dd>
<dt id="term-sequence">dizi<a class="headerlink" href="#term-sequence" title="Permalink to this term">¶</a></dt><dd><p><code class="xref py py-meth docutils literal notranslate"><span class="pre">__getitem__()</span></code> özel yöntemi aracılığıyla tamsayı dizinlerini kullanarak verimli öğe erişimini destekleyen ve dizinin uzunluğunu döndüren bir <code class="xref py py-meth docutils literal notranslate"><span class="pre">__len__()</span></code> yöntemini tanımlayan bir <a class="reference internal" href="#term-iterable"><span class="xref std std-term">iterable</span></a>. Bazı yerleşik dizi türleri şunlardır: <a class="reference internal" href="library/stdtypes.html#list" title="list"><code class="xref py py-class docutils literal notranslate"><span class="pre">list</span></code></a>, <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a>, <a class="reference internal" href="library/stdtypes.html#tuple" title="tuple"><code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></a> ve <a class="reference internal" href="library/stdtypes.html#bytes" title="bytes"><code class="xref py py-class docutils literal notranslate"><span class="pre">bytes</span></code></a>. <a class="reference internal" href="library/stdtypes.html#dict" title="dict"><code class="xref py py-class docutils literal notranslate"><span class="pre">dict</span></code></a> ayrıca <code class="xref py py-meth docutils literal notranslate"><span class="pre">__getitem__()</span></code> ve <code class="xref py py-meth docutils literal notranslate"><span class="pre">__len__()</span></code> ‘i de desteklediğine dikkat edin, ancak aramalar tamsayılar yerine rastgele <a class="reference internal" href="#term-immutable"><span class="xref std std-term">immutable</span></a> anahtarları kullandığından bir diziden ziyade bir eşleme olarak kabul edilir.</p>
<p><a class="reference internal" href="library/collections.abc.html#collections.abc.Sequence" title="collections.abc.Sequence"><code class="xref py py-class docutils literal notranslate"><span class="pre">collections.abc.Sequence</span></code></a> soyut temel sınıfı;, <code class="xref py py-meth docutils literal notranslate"><span class="pre">count()</span></code>, <code class="xref py py-meth docutils literal notranslate"><span class="pre">index()</span></code>, <code class="xref py py-meth docutils literal notranslate"><span class="pre">__contains__()</span></code>, ve <code class="xref py py-meth docutils literal notranslate"><span class="pre">__reversed__()</span></code> ekleyerek sadece <code class="xref py py-meth docutils literal notranslate"><span class="pre">__getitem__()</span></code> ve <code class="xref py py-meth docutils literal notranslate"><span class="pre">__len__()</span></code> ‘in ötesine geçen çok daha zengin bir arayüzü tanımlar. Bu genişletilmiş arabirimi uygulayan türler, <a class="reference internal" href="library/abc.html#abc.ABCMeta.register" title="abc.ABCMeta.register"><code class="xref py py-func docutils literal notranslate"><span class="pre">register()</span></code></a> kullanılarak açıkça kaydedilebilir.</p>
</dd>
<dt id="term-set-comprehension">anlamak<a class="headerlink" href="#term-set-comprehension" title="Permalink to this term">¶</a></dt><dd><p>Öğelerin tümünü veya bir kısmını yinelenebilir bir şekilde işlemenin ve sonuçlarla birlikte bir küme döndürmenin kompakt bir yolu. <code class="docutils literal notranslate"><span class="pre">results</span> <span class="pre">=</span> <span class="pre">{c</span> <span class="pre">for</span> <span class="pre">c</span> <span class="pre">in</span> <span class="pre">'abracadabra'</span> <span class="pre">if</span> <span class="pre">c</span> <span class="pre">not</span> <span class="pre">in</span> <span class="pre">'abc'}</span></code>, <code class="docutils literal notranslate"><span class="pre">{'r',</span> <span class="pre">'d'}</span></code> dizelerini oluşturur. Bakınız <a class="reference internal" href="reference/expressions.html#comprehensions"><span class="std std-ref">Displays for lists, sets and dictionaries</span></a>.</p>
</dd>
<dt id="term-single-dispatch">tek sevk<a class="headerlink" href="#term-single-dispatch" title="Permalink to this term">¶</a></dt><dd><p>Uygulamanın tek bir argüman türüne göre seçildiği bir <a class="reference internal" href="#term-generic-function"><span class="xref std std-term">generic function</span></a> gönderimi biçimi.</p>
</dd>
<dt id="term-slice">parçalamak<a class="headerlink" href="#term-slice" title="Permalink to this term">¶</a></dt><dd><p>Genellikle bir <a class="reference internal" href="#term-sequence"><span class="xref std std-term">sequence</span></a> ‘nin bir bölümünü içeren bir nesne. Bir dilim, örneğin <code class="docutils literal notranslate"><span class="pre">variable_name[1:3:5]</span></code> ‘de olduğu gibi, birkaç tane verildiğinde, sayılar arasında iki nokta üst üste koyarak, <code class="docutils literal notranslate"><span class="pre">[]</span></code> alt simge gösterimi kullanılarak oluşturulur. Köşeli ayraç (alt simge) gösterimi, dahili olarak <a class="reference internal" href="library/functions.html#slice" title="slice"><code class="xref py py-class docutils literal notranslate"><span class="pre">slice</span></code></a> nesnelerini kullanır.</p>
</dd>
<dt id="term-special-method">özel metod<a class="headerlink" href="#term-special-method" title="Permalink to this term">¶</a></dt><dd><p id="index-34">Toplama gibi bir tür üzerinde belirli bir işlemi yürütmek için Python tarafından örtük olarak çağrılan bir yöntem. Bu tür yöntemlerin çift alt çizgi ile başlayan ve biten adları vardır. Özel yöntemler <a class="reference internal" href="reference/datamodel.html#specialnames"><span class="std std-ref">Special method names</span></a> içinde belgelenmiştir.</p>
</dd>
<dt id="term-statement">ifade (değer döndürmez)<a class="headerlink" href="#term-statement" title="Permalink to this term">¶</a></dt><dd><p>Bir ifade, bir paketin parçasıdır (kod “bloğu”). Bir ifade, bir <a class="reference internal" href="#term-expression"><span class="xref std std-term">expression</span></a> veya <a class="reference internal" href="reference/compound_stmts.html#if"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">if</span></code></a>, <a class="reference internal" href="reference/compound_stmts.html#while"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">while</span></code></a> veya <a class="reference internal" href="reference/compound_stmts.html#for"><code class="xref std std-keyword docutils literal notranslate"><span class="pre">for</span></code></a> gibi bir anahtar kelimeye sahip birkaç yapıdan biridir.</p>
</dd>
<dt id="term-strong-reference">güçlü referans<a class="headerlink" href="#term-strong-reference" title="Permalink to this term">¶</a></dt><dd><p>In Python’s C API, a strong reference is a reference to an object
which is owned by the code holding the reference. The strong
reference is taken by calling <a class="reference internal" href="c-api/refcounting.html#c.Py_INCREF" title="Py_INCREF"><code class="xref c c-func docutils literal notranslate"><span class="pre">Py_INCREF()</span></code></a> when the
reference is created and released with <a class="reference internal" href="c-api/refcounting.html#c.Py_DECREF" title="Py_DECREF"><code class="xref c c-func docutils literal notranslate"><span class="pre">Py_DECREF()</span></code></a>
when the reference is deleted.</p>
<p><a class="reference internal" href="c-api/refcounting.html#c.Py_NewRef" title="Py_NewRef"><code class="xref c c-func docutils literal notranslate"><span class="pre">Py_NewRef()</span></code></a> fonksiyonu, bir nesneye güçlü bir başvuru oluşturmak için kullanılabilir. Genellikle <a class="reference internal" href="c-api/refcounting.html#c.Py_DECREF" title="Py_DECREF"><code class="xref c c-func docutils literal notranslate"><span class="pre">Py_DECREF()</span></code></a> fonksiyonu, bir referansın sızmasını önlemek için güçlü referans kapsamından çıkmadan önce güçlü referansta çağrılmalıdır.</p>
<p>Ayrıca bkz. <a class="reference internal" href="#term-borrowed-reference"><span class="xref std std-term">ödünç alınan referans</span></a>.</p>
</dd>
<dt id="term-text-encoding">yazı çözümleme<a class="headerlink" href="#term-text-encoding" title="Permalink to this term">¶</a></dt><dd><p>Python’da bir dize, bir Unicode kod noktaları dizisidir (<code class="docutils literal notranslate"><span class="pre">U+0000</span></code>–<code class="docutils literal notranslate"><span class="pre">U+10FFFF</span></code> aralığında). Bir dizeyi depolamak veya aktarmak için, bir bayt dizisi olarak seri hale getirilmesi gerekir.</p>
<p>Bir dizeyi bir bayt dizisi halinde seri hale getirmek “kodlama (encoding)” olarak bilinir ve dizeyi bayt dizisinden yeniden oluşturmak “kod çözme (decoding)” olarak bilinir.</p>
<p>Toplu olarak “metin kodlamaları” olarak adlandırılan çeşitli farklı metin serileştirme <a class="reference internal" href="library/codecs.html#standard-encodings"><span class="std std-ref">kodekleri</span></a> vardır.</p>
</dd>
<dt id="term-text-file">yazı dosyası<a class="headerlink" href="#term-text-file" title="Permalink to this term">¶</a></dt><dd><p>A <a class="reference internal" href="#term-file-object"><span class="xref std std-term">file object</span></a> <a class="reference internal" href="library/stdtypes.html#str" title="str"><code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></a> nesnelerini okuyabilir ve yazabilir. Çoğu zaman, bir metin dosyası aslında bir bayt yönelimli veri akışına erişir ve otomatik olarak <a class="reference internal" href="#term-text-encoding"><span class="xref std std-term">text encoding</span></a> işler. Metin dosyalarına örnek olarak metin modunda açılan dosyalar (<code class="docutils literal notranslate"><span class="pre">'r'</span></code> veya <code class="docutils literal notranslate"><span class="pre">'w'</span></code>), <a class="reference internal" href="library/sys.html#sys.stdin" title="sys.stdin"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.stdin</span></code></a>, <a class="reference internal" href="library/sys.html#sys.stdout" title="sys.stdout"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.stdout</span></code></a> ve <a class="reference internal" href="library/io.html#io.StringIO" title="io.StringIO"><code class="xref py py-class docutils literal notranslate"><span class="pre">io.StringIO</span></code></a> örnekleri verilebilir.</p>
<p>Ayrıca <a class="reference internal" href="#term-binary-file"><span class="xref std std-term">ikili dosyaları</span></a> okuyabilen ve yazabilen bir dosya nesnesi için <a class="reference internal" href="#term-bytes-like-object"><span class="xref std std-term">bayt benzeri nesnelere</span></a> bakın.</p>
</dd>
<dt id="term-triple-quoted-string">üç tırnaklı dize<a class="headerlink" href="#term-triple-quoted-string" title="Permalink to this term">¶</a></dt><dd><p>Üç tırnak işareti (”) veya kesme işareti (’) ile sınırlanan bir dize. Tek tırnaklı dizelerde bulunmayan herhangi bir işlevsellik sağlamasalar da, birkaç nedenden dolayı faydalıdırlar. bir dizeye çıkışsız tek ve çift tırnak eklemeniz gerekir ve bunlar, devam karakterini kullanmadan birden çok satıra yayılabilir, bu da onları özellikle belge dizileri yazarken kullanışlı hale getirir.</p>
</dd>
<dt id="term-type">tip<a class="headerlink" href="#term-type" title="Permalink to this term">¶</a></dt><dd><p>Bir Python nesnesinin türü, onun ne tür bir nesne olduğunu belirler; her nesnenin bir türü vardır. Bir nesnenin tipine <a class="reference internal" href="library/stdtypes.html#instance.__class__" title="instance.__class__"><code class="xref py py-attr docutils literal notranslate"><span class="pre">__class__</span></code></a> niteliği ile erişilebilir veya <code class="docutils literal notranslate"><span class="pre">type(obj)</span></code> ile alınabilir.</p>
</dd>
<dt id="term-type-alias">tip takma adı<a class="headerlink" href="#term-type-alias" title="Permalink to this term">¶</a></dt><dd><p>Bir tanımlayıcıya tür atanarak oluşturulan, bir tür için eş anlamlı.</p>
<p>Tür takma adları, <a class="reference internal" href="#term-type-hint"><span class="xref std std-term">tür ipuçlarını</span></a> basitleştirmek için kullanışlıdır. Örneğin:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">remove_gray_shades</span><span class="p">(</span>
<span class="n">colors</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="nb">tuple</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">]])</span> <span class="o">-></span> <span class="nb">list</span><span class="p">[</span><span class="nb">tuple</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">]]:</span>
<span class="k">pass</span>
</pre></div>
</div>
<p>bu şekilde daha okunaklı hale getirilebilir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="n">Color</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">]</span>
<span class="k">def</span> <span class="nf">remove_gray_shades</span><span class="p">(</span><span class="n">colors</span><span class="p">:</span> <span class="nb">list</span><span class="p">[</span><span class="n">Color</span><span class="p">])</span> <span class="o">-></span> <span class="nb">list</span><span class="p">[</span><span class="n">Color</span><span class="p">]:</span>
<span class="k">pass</span>
</pre></div>
</div>
<p>Bu işlevi açıklayan <a class="reference internal" href="library/typing.html#module-typing" title="typing: Support for type hints (see :pep:`484`)."><code class="xref py py-mod docutils literal notranslate"><span class="pre">typing</span></code></a> ve <span class="target" id="index-95"></span><a class="pep reference external" href="https://peps.python.org/pep-0484/"><strong>PEP 484</strong></a> bölümlerine bakın.</p>
</dd>
<dt id="term-type-hint">tür ipucu<a class="headerlink" href="#term-type-hint" title="Permalink to this term">¶</a></dt><dd><p>Bir değişken, bir sınıf niteliği veya bir işlev parametresi veya dönüş değeri için beklenen türü belirten bir <a class="reference internal" href="#term-annotation"><span class="xref std std-term">ek açıklama</span></a>.</p>
<p>Tür ipuçları isteğe bağlıdır ve Python tarafından uygulanmaz, ancak bunlar statik tip analiz araçları için faydalıdır ve kod tamamlama ve yeniden düzenleme ile IDE’lere yardımcı olur.</p>
<p>Genel değişkenlerin, sınıf özniteliklerinin ve işlevlerin tür ipuçlarına, yerel değişkenlere değil, <a class="reference internal" href="library/typing.html#typing.get_type_hints" title="typing.get_type_hints"><code class="xref py py-func docutils literal notranslate"><span class="pre">typing.get_type_hints()</span></code></a> kullanılarak erişilebilir.</p>
<p>Bu işlevi açıklayan <a class="reference internal" href="library/typing.html#module-typing" title="typing: Support for type hints (see :pep:`484`)."><code class="xref py py-mod docutils literal notranslate"><span class="pre">typing</span></code></a> ve <span class="target" id="index-96"></span><a class="pep reference external" href="https://peps.python.org/pep-0484/"><strong>PEP 484</strong></a> bölümlerine bakın.</p>
</dd>
<dt id="term-universal-newlines">evrensel yeni satırlar<a class="headerlink" href="#term-universal-newlines" title="Permalink to this term">¶</a></dt><dd><p>Aşağıdakilerin tümünün bir satırın bitişi olarak kabul edildiği metin akışlarını yorumlamanın bir yolu: Unix satır sonu kuralı <code class="docutils literal notranslate"><span class="pre">\n'</span></code>, Windows kuralı <code class="docutils literal notranslate"><span class="pre">'\r\n'</span></code>, ve eski Macintosh kuralı <code class="docutils literal notranslate"><span class="pre">'\r'</span></code>. Ek bir kullanım için <span class="target" id="index-97"></span><a class="pep reference external" href="https://peps.python.org/pep-0278/"><strong>PEP 278</strong></a> ve <span class="target" id="index-98"></span><a class="pep reference external" href="https://peps.python.org/pep-3116/"><strong>PEP 3116</strong></a> ve ayrıca <a class="reference internal" href="library/stdtypes.html#bytes.splitlines" title="bytes.splitlines"><code class="xref py py-func docutils literal notranslate"><span class="pre">bytes.splitlines()</span></code></a> bakın.</p>
</dd>
<dt id="term-variable-annotation">değişken açıklama<a class="headerlink" href="#term-variable-annotation" title="Permalink to this term">¶</a></dt><dd><p>Bir değişkenin veya bir sınıf özniteliğinin <a class="reference internal" href="#term-annotation"><span class="xref std std-term">ek açıklaması</span></a>.</p>
<p>Bir değişkene veya sınıf niteliğine açıklama eklerken atama isteğe bağlıdır:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">C</span><span class="p">:</span>
<span class="n">field</span><span class="p">:</span> <span class="s1">'annotation'</span>
</pre></div>
</div>
<p>Değişken açıklamaları genellikle <a class="reference internal" href="#term-type-hint"><span class="xref std std-term">tür ipuçları</span></a> için kullanılır: örneğin, bu değişkenin <a class="reference internal" href="library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a> değerlerini alması beklenir:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="n">count</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span>
</pre></div>
</div>
<p>Değişken açıklama sözdizimi <a class="reference internal" href="reference/simple_stmts.html#annassign"><span class="std std-ref">Annotated assignment statements</span></a> bölümünde açıklanmıştır.</p>
<p>Bu işlevi açıklayan; <a class="reference internal" href="#term-function-annotation"><span class="xref std std-term">function annotation</span></a>, <span class="target" id="index-99"></span><a class="pep reference external" href="https://peps.python.org/pep-0484/"><strong>PEP 484</strong></a> ve <span class="target" id="index-100"></span><a class="pep reference external" href="https://peps.python.org/pep-0526/"><strong>PEP 526</strong></a> bölümlerine bakın. Ek açıklamalarla çalışmaya ilişkin en iyi uygulamalar için ayrıca bkz. <a class="reference internal" href="howto/annotations.html#annotations-howto"><span class="std std-ref">Annotations Best Practices</span></a>.</p>
</dd>
<dt id="term-virtual-environment">sanal ortam<a class="headerlink" href="#term-virtual-environment" title="Permalink to this term">¶</a></dt><dd><p>Python kullanıcılarının ve uygulamalarının, aynı sistem üzerinde çalışan diğer Python uygulamalarının davranışına müdahale etmeden Python dağıtım paketlerini kurmasına ve yükseltmesine olanak tanıyan, işbirliği içinde yalıtılmış bir çalışma zamanı ortamı.</p>
<p>Ayrıca bakınız <a class="reference internal" href="library/venv.html#module-venv" title="venv: Creation of virtual environments."><code class="xref py py-mod docutils literal notranslate"><span class="pre">venv</span></code></a>.</p>
</dd>
<dt id="term-virtual-machine">sanal makine<a class="headerlink" href="#term-virtual-machine" title="Permalink to this term">¶</a></dt><dd><p>Tamamen yazılımla tanımlanmış bir bilgisayar. Python’un sanal makinesi, bayt kodu derleyicisi tarafından yayınlanan <a class="reference internal" href="#term-bytecode"><span class="xref std std-term">bytecode</span></a> ‘u çalıştırır.</p>
</dd>
<dt id="term-Zen-of-Python">Python’un Zen’i<a class="headerlink" href="#term-Zen-of-Python" title="Permalink to this term">¶</a></dt><dd><p>Dili anlamaya ve kullanmaya yardımcı olan Python tasarım ilkeleri ve felsefelerinin listesi. Liste, etkileşimli komut isteminde “<code class="docutils literal notranslate"><span class="pre">import</span> <span class="pre">this</span></code>” yazarak bulunabilir.</p>
</dd>
</dl>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div>
<h4>Önceki konu</h4>
<p class="topless"><a href="faq/installed.html"
title="önceki bölüm">“Python Bilgisayarımda Neden Yüklü?” SSS</a></p>
</div>
<div>
<h4>Sonraki konu</h4>
<p class="topless"><a href="about.html"
title="sonraki bölüm">Dokümanlar hakkında</a></p>
</div>
<div role="note" aria-label="source link">
<h3>Bu Sayfa</h3>
<ul class="this-page-menu">
<li><a href="bugs.html">Hata Bildir</a></li>
<li>
<a href="https://github.com/python/cpython/blob/3.11/Doc/glossary.rst"
rel="nofollow">Kaynağı Göster
</a>
</li>
</ul>
</div>
</div>
<div id="sidebarbutton" title="Yan çubuğu daralt">
<span>«</span>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Gezinti</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="Genel Endeks"
>dizin</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Modül Dizini"
>modülleri</a> |</li>
<li class="right" >
<a href="about.html" title="Dokümanlar hakkında"
>sonraki</a> |</li>
<li class="right" >
<a href="faq/installed.html" title="“Python Bilgisayarımda Neden Yüklü?” SSS"
>önceki</a> |</li>
<li><img src="_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://www.python.org/">Python</a> »</li>
<li class="switchers">
<div class="language_switcher_placeholder"></div>
<div class="version_switcher_placeholder"></div>
</li>
<li>
</li>
<li id="cpython-language-and-version">
<a href="index.html">3.11.5 Documentation</a> »
</li>
<li class="nav-item nav-item-this"><a href="">Sözlük</a></li>
<li class="right">
<div class="inline-search" role="search">
<form class="inline-search" action="search.html" method="get">
<input placeholder="Hızlı Arama" aria-label="Hızlı Arama" type="search" name="q" id="search-box" />
<input type="submit" value="Git" />
</form>
</div>
|
</li>
<li class="right">
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label> |</li>
</ul>
</div>
<div class="footer">
© <a href="copyright.html">Telif Hakkı</a> 2001-2023, Python Software Foundation.
<br />
This page is licensed under the Python Software Foundation License Version 2.
<br />
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
<br />
See <a href="/license.html">History and License</a> for more information.<br />
<br />
The Python Software Foundation is a non-profit corporation.
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
Son güncelleme: Ara 01, 2023.
<a href="/bugs.html">Found a bug</a>?
<br />
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 6.2.1.
</div>
</body>
</html>