Repository navigation
Expand file tree
/
Copy pathinit_config.po
More file actions
2296 lines (1657 loc) · 141 KB
/
Copy pathinit_config.po
File metadata and controls
2296 lines (1657 loc) · 141 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Danial Behzadi <dani.behzi@ubuntu.com>, 2025
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
# Revisto <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-09-16 12:56+0000\n"
"PO-Revision-Date: 2026-09-13 20:13+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid "Python Initialization Configuration"
msgstr "پیکربندی راهاندازی پایتون"
msgid "PyInitConfig C API"
msgstr "API زبان C برای PyInitConfig"
msgid "Python can be initialized with :c:func:`Py_InitializeFromInitConfig`."
msgstr "پایتون را میتوان با :c:func:`Py_InitializeFromInitConfig` مقداردهی اولیه کرد."
msgid "The :c:func:`Py_RunMain` function can be used to write a customized Python program."
msgstr "از تابع :c:func:`Py_RunMain` میتوان برای نوشتن یک برنامهی سفارشی پایتون استفاده کرد."
msgid "See also :ref:`Initialization, Finalization, and Threads <initialization>`."
msgstr "همچنین ببینید :ref:`مقداردهی اولیه، نهاییسازی و نخها <initialization>`."
msgid ":pep:`741` \"Python Configuration C API\"."
msgstr ":pep:`741` «C API پیکربندی پایتون»."
msgid "Example"
msgstr "مثال"
msgid "Example of customized Python always running with the :ref:`Python Development Mode <devmode>` enabled; return ``-1`` on error:"
msgstr "نمونهای از پایتون سفارشیشده که همیشه با :ref:`حالت توسعه پایتون <devmode>` فعال اجرا میشود؛ در صورت خطا ``-1`` را برمیگرداند:"
msgid ""
"int init_python(void)\n"
"{\n"
" PyInitConfig *config = PyInitConfig_Create();\n"
" if (config == NULL) {\n"
" printf(\"PYTHON INIT ERROR: memory allocation failed\\n\");\n"
" return -1;\n"
" }\n"
"\n"
" // Enable the Python Development Mode\n"
" if (PyInitConfig_SetInt(config, \"dev_mode\", 1) < 0) {\n"
" goto error;\n"
" }\n"
"\n"
" // Initialize Python with the configuration\n"
" if (Py_InitializeFromInitConfig(config) < 0) {\n"
" goto error;\n"
" }\n"
" PyInitConfig_Free(config);\n"
" return 0;\n"
"\n"
"error:\n"
" {\n"
" // Display the error message.\n"
" //\n"
" // This uncommon braces style is used, because you cannot make\n"
" // goto targets point to variable declarations.\n"
" const char *err_msg;\n"
" (void)PyInitConfig_GetError(config, &err_msg);\n"
" printf(\"PYTHON INIT ERROR: %s\\n\", err_msg);\n"
" PyInitConfig_Free(config);\n"
" return -1;\n"
" }\n"
"}"
msgstr ""
"int init_python(void)\n"
"{\n"
" PyInitConfig *config = PyInitConfig_Create();\n"
" if (config == NULL) {\n"
" printf(\"PYTHON INIT ERROR: memory allocation failed\\n\");\n"
" return -1;\n"
" }\n"
"\n"
" // Enable the Python Development Mode\n"
" if (PyInitConfig_SetInt(config, \"dev_mode\", 1) < 0) {\n"
" goto error;\n"
" }\n"
"\n"
" // Initialize Python with the configuration\n"
" if (Py_InitializeFromInitConfig(config) < 0) {\n"
" goto error;\n"
" }\n"
" PyInitConfig_Free(config);\n"
" return 0;\n"
"\n"
"error:\n"
" {\n"
" // Display the error message.\n"
" //\n"
" // This uncommon braces style is used, because you cannot make\n"
" // goto targets point to variable declarations.\n"
" const char *err_msg;\n"
" (void)PyInitConfig_GetError(config, &err_msg);\n"
" printf(\"PYTHON INIT ERROR: %s\\n\", err_msg);\n"
" PyInitConfig_Free(config);\n"
" return -1;\n"
" }\n"
"}"
msgid "Create Config"
msgstr "ایجاد پیکربندی"
msgid "Opaque structure to configure the Python initialization."
msgstr "ساختار غیرشفاف برای پیکربندی مقداردهی اولیه پایتون."
msgid "Create a new initialization configuration using :ref:`Isolated Configuration <init-isolated-conf>` default values."
msgstr "یک پیکربندی مقداردهی اولیهی جدید با استفاده از مقادیر پیشفرض :ref:`پیکربندی ایزوله <init-isolated-conf>` ایجاد کنید."
msgid "It must be freed by :c:func:`PyInitConfig_Free`."
msgstr "آن باید توسط :c:func:`PyInitConfig_Free` آزاد شود."
msgid "Return ``NULL`` on memory allocation failure."
msgstr "در صورت شکست تخصیص حافظه، ``NULL`` را برمیگرداند."
msgid "Free memory of the initialization configuration *config*."
msgstr "آزاد کردن حافظهی پیکربندی مقداردهی اولیه *config*."
msgid "If *config* is ``NULL``, no operation is performed."
msgstr "اگر *config* برابر ``NULL`` باشد، هیچ عملیاتی انجام نمیشود."
msgid "Error Handling"
msgstr "مدیریت خطا"
msgid "Get the *config* error message."
msgstr "دریافت پیام خطای *config*."
msgid "Set *\\*err_msg* and return ``1`` if an error is set."
msgstr "در صورتی که خطا تنظیم شده باشد، *\\*err_msg* را تنظیم کرده و ``1`` برمیگرداند."
msgid "Set *\\*err_msg* to ``NULL`` and return ``0`` otherwise."
msgstr "در غیر این صورت، *\\*err_msg* را روی ``NULL`` تنظیم کرده و ``0`` را برمیگرداند."
msgid "An error message is a UTF-8 encoded string."
msgstr "پیام خطا یک رشته کدگذاریشده با UTF-8 است."
msgid "If *config* has an exit code, format the exit code as an error message."
msgstr "اگر *config* دارای یک کد خروج باشد، کد خروج را بهعنوان یک پیام خطا قالببندی میکند."
msgid "The error message remains valid until another ``PyInitConfig`` function is called with *config*. The caller doesn't have to free the error message."
msgstr "پیام خطا تا زمانی که تابع ``PyInitConfig`` دیگری با *config* فراخوانی شود معتبر باقی میماند. فراخوانیکننده نیازی به آزاد کردن پیام خطا ندارد."
msgid "Get the *config* exit code."
msgstr "گرفتن کد خروج *config*."
msgid "Set *\\*exitcode* and return ``1`` if *config* has an exit code set."
msgstr "اگر *config* دارای کد خروج تنظیمشده باشد، *\\*exitcode* را تنظیم میکند و ``1`` را برمیگرداند."
msgid "Return ``0`` if *config* has no exit code set."
msgstr "اگر *config* کد خروجی تنظیمشدهای نداشته باشد، ``0`` را برمیگرداند."
msgid "Only the ``Py_InitializeFromInitConfig()`` function can set an exit code if the ``parse_argv`` option is non-zero."
msgstr "تنها تابع ``Py_InitializeFromInitConfig()`` میتواند در صورتی که گزینه ``parse_argv`` ناصفر باشد، کد خروج را تنظیم کند."
msgid "An exit code can be set when parsing the command line failed (exit code ``2``) or when a command line option asks to display the command line help (exit code ``0``)."
msgstr "میتوان یک کد خروج را هنگامی تنظیم کرد که تجزیهی خط فرمان شکست بخورد (کد خروج ``2``) یا هنگامی که یک گزینهی خط فرمان درخواست نمایش راهنمای خط فرمان کند (کد خروج ``0``)."
msgid "Get Options"
msgstr "دریافت گزینهها"
msgid "The configuration option *name* parameter must be a non-NULL null-terminated UTF-8 encoded string. See :ref:`Configuration Options <pyinitconfig-opts>`."
msgstr "پارامتر *name* گزینه پیکربندی باید یک رشته غیر NULL، پایانیافته با نویسه تهی و کدگذاریشده با UTF-8 باشد. به :ref:`گزینههای پیکربندی <pyinitconfig-opts>` مراجعه کنید."
msgid "Test if the configuration has an option called *name*."
msgstr "بررسی میکند که آیا پیکربندی گزینهای با نام *name* دارد."
msgid "Return ``1`` if the option exists, or return ``0`` otherwise."
msgstr "اگر گزینه وجود داشته باشد ``1`` را برمیگرداند، در غیر این صورت ``0`` را برمیگرداند."
msgid "Get an integer configuration option."
msgstr "دریافت یک گزینهی پیکربندی از نوع عدد صحیح."
msgid "Set *\\*value*, and return ``0`` on success."
msgstr "مقدار *\\*value* را تنظیم میکند و در صورت موفقیت ``0`` را برمیگرداند."
msgid "Set an error in *config* and return ``-1`` on error."
msgstr "در صورت خطا، خطا را در *config* تنظیم کرده و ``-1`` برمیگرداند."
msgid "Get a string configuration option as a null-terminated UTF-8 encoded string."
msgstr "یک گزینه پیکربندی رشتهای را بهصورت رشتهای کدگذاریشده با UTF-8 و پایانیافته با تهی دریافت میکند."
msgid "*\\*value* can be set to ``NULL`` if the option is an optional string and the option is unset."
msgstr "اگر گزینه یک رشتهی اختیاری باشد و تنظیم نشده باشد، میتوان *\\*value* را برابر ``NULL`` قرار داد."
msgid "On success, the string must be released with ``free(value)`` if it's not ``NULL``."
msgstr "در صورت موفقیت، اگر رشته ``NULL`` نباشد، باید با ``free(value)`` آزاد شود."
msgid "Get a string list configuration option as an array of null-terminated UTF-8 encoded strings."
msgstr "یک گزینه پیکربندی فهرست رشتهها را بهصورت آرایهای از رشتههای کدگذاریشده با UTF-8 و خاتمهیافته با تهی دریافت میکند."
msgid "Set *\\*length* and *\\*value*, and return ``0`` on success."
msgstr "مقدار *\\*length* و *\\*value* را تنظیم میکند و در صورت موفقیت ``0`` را برمیگرداند."
msgid "On success, the string list must be released with ``PyInitConfig_FreeStrList(length, items)``."
msgstr "در صورت موفقیت، فهرست رشتهها باید با ``PyInitConfig_FreeStrList(length, items)`` آزاد شود."
msgid "Free memory of a string list created by ``PyInitConfig_GetStrList()``."
msgstr "حافظهی فهرست رشتههای ایجادشده توسط ``PyInitConfig_GetStrList()`` را آزاد میکند."
msgid "Set Options"
msgstr "تنظیم گزینهها"
msgid "Some configuration options have side effects on other options. This logic is only implemented when ``Py_InitializeFromInitConfig()`` is called, not by the \"Set\" functions below. For example, setting ``dev_mode`` to ``1`` does not set ``faulthandler`` to ``1``."
msgstr "برخی گزینههای پیکربندی روی گزینههای دیگر اثر جانبی دارند. این منطق تنها هنگامی پیادهسازی میشود که ``Py_InitializeFromInitConfig()`` فراخوانی شود، نه توسط توابع «Set» در ادامه. برای مثال، تنظیم ``dev_mode`` به ``1`` باعث نمیشود ``faulthandler`` به ``1`` تنظیم شود."
msgid "Set an integer configuration option."
msgstr "یک گزینهی پیکربندی از نوع عدد صحیح را تنظیم میکند."
msgid "Return ``0`` on success."
msgstr "در صورت موفقیت ``0`` را برمیگرداند."
msgid "Set a string configuration option from a null-terminated UTF-8 encoded string. The string is copied."
msgstr "یک گزینه پیکربندی رشتهای را از یک رشتهی کدگذاریشده با UTF-8 و خاتمهیافته با نویسه تهی تنظیم میکند. رشته کپی میشود."
msgid "Set a string list configuration option from an array of null-terminated UTF-8 encoded strings. The string list is copied."
msgstr "یک گزینه پیکربندی فهرست رشتهای را از آرایهای از رشتههای کدگذاریشده با UTF-8 و پایانیافته با نویسه تهی تنظیم میکند. فهرست رشتهها کپی میشود."
msgid "Module"
msgstr "ماژول"
msgid "Add a built-in extension module to the table of built-in modules."
msgstr "افزودن یک ماژول توسعهای توکار به جدول ماژولهای توکار."
msgid "The new module can be imported by the name *name*, and uses the function *initfunc* as the initialization function called on the first attempted import."
msgstr "ماژول جدید را میتوان با نام *name* ایمپورت کرد و از تابع *initfunc* به عنوان تابع مقداردهی اولیهای که در نخستین تلاش برای ایمپورت فراخوانی میشود، استفاده میکند."
msgid "If Python is initialized multiple times, ``PyInitConfig_AddModule()`` must be called at each Python initialization."
msgstr "اگر پایتون چند بار مقداردهی اولیه شود، ``PyInitConfig_AddModule()`` باید در هر مقداردهی اولیه پایتون فراخوانی شود."
msgid "Similar to the :c:func:`PyImport_AppendInittab` function."
msgstr "مشابه تابع :c:func:`PyImport_AppendInittab`."
msgid "Initialize Python"
msgstr "مقداردهی اولیه پایتون"
msgid "Initialize Python from the initialization configuration."
msgstr "پایتون را از پیکربندی مقداردهی اولیه راهاندازی کنید."
msgid "Set an exit code in *config* and return ``-1`` if Python wants to exit."
msgstr "اگر پایتون بخواهد خارج شود، یک کد خروج در *config* تنظیم میکند و ``-1`` را برمیگرداند."
msgid "See ``PyInitConfig_GetExitcode()`` for the exit code case."
msgstr "برای مورد کد خروج، ``PyInitConfig_GetExitcode()`` را ببینید."
msgid "Configuration Options"
msgstr "گزینههای پیکربندی"
msgid "Option"
msgstr "گزینه"
msgid "PyConfig/PyPreConfig member"
msgstr "عضو PyConfig/PyPreConfig"
msgid "Type"
msgstr "نوع"
msgid "Visibility"
msgstr "مرئی بودن"
msgid "``\"allocator\"``"
msgstr "``\"allocator\"``"
msgid ":c:member:`allocator <PyPreConfig.allocator>`"
msgstr ":c:member:`allocator <PyPreConfig.allocator>`"
msgid "``int``"
msgstr "``int``"
msgid "Read-only"
msgstr "فقطخواندنی"
msgid "``\"argv\"``"
msgstr "``\"argv\"``"
msgid ":c:member:`argv <PyConfig.argv>`"
msgstr ":c:member:`argv <PyConfig.argv>`"
msgid "``list[str]``"
msgstr "``list[str]``"
msgid "Public"
msgstr "عمومی"
msgid "``\"base_exec_prefix\"``"
msgstr "``\"base_exec_prefix\"``"
msgid ":c:member:`base_exec_prefix <PyConfig.base_exec_prefix>`"
msgstr ":c:member:`base_exec_prefix <PyConfig.base_exec_prefix>`"
msgid "``str``"
msgstr "``str``"
msgid "``\"base_executable\"``"
msgstr "``\"base_executable\"``"
msgid ":c:member:`base_executable <PyConfig.base_executable>`"
msgstr ":c:member:`base_executable <PyConfig.base_executable>`"
msgid "``\"base_prefix\"``"
msgstr "``\"base_prefix\"``"
msgid ":c:member:`base_prefix <PyConfig.base_prefix>`"
msgstr ":c:member:`base_prefix <PyConfig.base_prefix>`"
msgid "``\"buffered_stdio\"``"
msgstr "``\"buffered_stdio\"``"
msgid ":c:member:`buffered_stdio <PyConfig.buffered_stdio>`"
msgstr ":c:member:`buffered_stdio <PyConfig.buffered_stdio>`"
msgid "``bool``"
msgstr "``bool``"
msgid "``\"bytes_warning\"``"
msgstr "``\"bytes_warning\"``"
msgid ":c:member:`bytes_warning <PyConfig.bytes_warning>`"
msgstr ":c:member:`bytes_warning <PyConfig.bytes_warning>`"
msgid "``\"check_hash_pycs_mode\"``"
msgstr "``\"check_hash_pycs_mode\"``"
msgid ":c:member:`check_hash_pycs_mode <PyConfig.check_hash_pycs_mode>`"
msgstr ":c:member:`check_hash_pycs_mode <PyConfig.check_hash_pycs_mode>`"
msgid "``\"code_debug_ranges\"``"
msgstr "``\"code_debug_ranges\"``"
msgid ":c:member:`code_debug_ranges <PyConfig.code_debug_ranges>`"
msgstr ":c:member:`code_debug_ranges <PyConfig.code_debug_ranges>`"
msgid "``\"coerce_c_locale\"``"
msgstr "``\"coerce_c_locale\"``"
msgid ":c:member:`coerce_c_locale <PyPreConfig.coerce_c_locale>`"
msgstr ":c:member:`coerce_c_locale <PyPreConfig.coerce_c_locale>`"
msgid "``\"coerce_c_locale_warn\"``"
msgstr "``\"coerce_c_locale_warn\"``"
msgid ":c:member:`coerce_c_locale_warn <PyPreConfig.coerce_c_locale_warn>`"
msgstr ":c:member:`coerce_c_locale_warn <PyPreConfig.coerce_c_locale_warn>`"
msgid "``\"configure_c_stdio\"``"
msgstr "``\"configure_c_stdio\"``"
msgid ":c:member:`configure_c_stdio <PyConfig.configure_c_stdio>`"
msgstr ":c:member:`configure_c_stdio <PyConfig.configure_c_stdio>`"
msgid "``\"configure_locale\"``"
msgstr "``\"configure_locale\"``"
msgid ":c:member:`configure_locale <PyPreConfig.configure_locale>`"
msgstr ":c:member:`configure_locale <PyPreConfig.configure_locale>`"
msgid "``\"cpu_count\"``"
msgstr "``\"cpu_count\"``"
msgid ":c:member:`cpu_count <PyConfig.cpu_count>`"
msgstr ":c:member:`cpu_count <PyConfig.cpu_count>`"
msgid "``\"dev_mode\"``"
msgstr "``\"dev_mode\"``"
msgid ":c:member:`dev_mode <PyConfig.dev_mode>`"
msgstr ":c:member:`dev_mode <PyConfig.dev_mode>`"
msgid "``\"dump_refs\"``"
msgstr "``\"dump_refs\"``"
msgid ":c:member:`dump_refs <PyConfig.dump_refs>`"
msgstr ":c:member:`dump_refs <PyConfig.dump_refs>`"
msgid "``\"dump_refs_file\"``"
msgstr "``\"dump_refs_file\"``"
msgid ":c:member:`dump_refs_file <PyConfig.dump_refs_file>`"
msgstr ":c:member:`dump_refs_file <PyConfig.dump_refs_file>`"
msgid "``\"exec_prefix\"``"
msgstr "``\"exec_prefix\"``"
msgid ":c:member:`exec_prefix <PyConfig.exec_prefix>`"
msgstr ":c:member:`exec_prefix <PyConfig.exec_prefix>`"
msgid "``\"executable\"``"
msgstr "``\"executable\"``"
msgid ":c:member:`executable <PyConfig.executable>`"
msgstr ":c:member:`executable <PyConfig.executable>`"
msgid "``\"faulthandler\"``"
msgstr "``\"faulthandler\"``"
msgid ":c:member:`faulthandler <PyConfig.faulthandler>`"
msgstr ":c:member:`faulthandler <PyConfig.faulthandler>`"
msgid "``\"filesystem_encoding\"``"
msgstr "``\"filesystem_encoding\"``"
msgid ":c:member:`filesystem_encoding <PyConfig.filesystem_encoding>`"
msgstr ":c:member:`filesystem_encoding <PyConfig.filesystem_encoding>`"
msgid "``\"filesystem_errors\"``"
msgstr "``\"filesystem_errors\"``"
msgid ":c:member:`filesystem_errors <PyConfig.filesystem_errors>`"
msgstr ":c:member:`filesystem_errors <PyConfig.filesystem_errors>`"
msgid "``\"hash_seed\"``"
msgstr "``\"hash_seed\"``"
msgid ":c:member:`hash_seed <PyConfig.hash_seed>`"
msgstr ":c:member:`hash_seed <PyConfig.hash_seed>`"
msgid "``\"home\"``"
msgstr "``\"home\"``"
msgid ":c:member:`home <PyConfig.home>`"
msgstr ":c:member:`home <PyConfig.home>`"
msgid "``\"import_time\"``"
msgstr "``\"import_time\"``"
msgid ":c:member:`import_time <PyConfig.import_time>`"
msgstr ":c:member:`import_time <PyConfig.import_time>`"
msgid "``\"inspect\"``"
msgstr "``\"inspect\"``"
msgid ":c:member:`inspect <PyConfig.inspect>`"
msgstr ":c:member:`inspect <PyConfig.inspect>`"
msgid "``\"install_signal_handlers\"``"
msgstr "``\"install_signal_handlers\"``"
msgid ":c:member:`install_signal_handlers <PyConfig.install_signal_handlers>`"
msgstr ":c:member:`install_signal_handlers <PyConfig.install_signal_handlers>`"
msgid "``\"int_max_str_digits\"``"
msgstr "``\"int_max_str_digits\"``"
msgid ":c:member:`int_max_str_digits <PyConfig.int_max_str_digits>`"
msgstr ":c:member:`int_max_str_digits <PyConfig.int_max_str_digits>`"
msgid "``\"interactive\"``"
msgstr "``\"interactive\"``"
msgid ":c:member:`interactive <PyConfig.interactive>`"
msgstr ":c:member:`interactive <PyConfig.interactive>`"
msgid "``\"isolated\"``"
msgstr "``\"isolated\"``"
msgid ":c:member:`isolated <PyConfig.isolated>`"
msgstr ":c:member:`isolated <PyConfig.isolated>`"
msgid "``\"legacy_windows_fs_encoding\"``"
msgstr "``\"legacy_windows_fs_encoding\"``"
msgid ":c:member:`legacy_windows_fs_encoding <PyPreConfig.legacy_windows_fs_encoding>`"
msgstr ":c:member:`legacy_windows_fs_encoding <PyPreConfig.legacy_windows_fs_encoding>`"
msgid "``\"legacy_windows_stdio\"``"
msgstr "``\"legacy_windows_stdio\"``"
msgid ":c:member:`legacy_windows_stdio <PyConfig.legacy_windows_stdio>`"
msgstr ":c:member:`legacy_windows_stdio <PyConfig.legacy_windows_stdio>`"
msgid "``\"malloc_stats\"``"
msgstr "``\"malloc_stats\"``"
msgid ":c:member:`malloc_stats <PyConfig.malloc_stats>`"
msgstr ":c:member:`malloc_stats <PyConfig.malloc_stats>`"
msgid "``\"module_search_paths\"``"
msgstr "``\"module_search_paths\"``"
msgid ":c:member:`module_search_paths <PyConfig.module_search_paths>`"
msgstr ":c:member:`module_search_paths <PyConfig.module_search_paths>`"
msgid "``\"optimization_level\"``"
msgstr "``\"optimization_level\"``"
msgid ":c:member:`optimization_level <PyConfig.optimization_level>`"
msgstr ":c:member:`optimization_level <PyConfig.optimization_level>`"
msgid "``\"orig_argv\"``"
msgstr "``\"orig_argv\"``"
msgid ":c:member:`orig_argv <PyConfig.orig_argv>`"
msgstr ":c:member:`orig_argv <PyConfig.orig_argv>`"
msgid "``\"parse_argv\"``"
msgstr "``\"parse_argv\"``"
msgid ":c:member:`parse_argv <PyConfig.parse_argv>`"
msgstr ":c:member:`parse_argv <PyConfig.parse_argv>`"
msgid "``\"parser_debug\"``"
msgstr "``\"parser_debug\"``"
msgid ":c:member:`parser_debug <PyConfig.parser_debug>`"
msgstr ":c:member:`parser_debug <PyConfig.parser_debug>`"
msgid "``\"pathconfig_warnings\"``"
msgstr "``\"pathconfig_warnings\"``"
msgid ":c:member:`pathconfig_warnings <PyConfig.pathconfig_warnings>`"
msgstr ":c:member:`pathconfig_warnings <PyConfig.pathconfig_warnings>`"
msgid "``\"perf_profiling\"``"
msgstr "``\"perf_profiling\"``"
msgid ":c:member:`perf_profiling <PyConfig.perf_profiling>`"
msgstr ":c:member:`perf_profiling <PyConfig.perf_profiling>`"
msgid "``\"platlibdir\"``"
msgstr "``\"platlibdir\"``"
msgid ":c:member:`platlibdir <PyConfig.platlibdir>`"
msgstr ":c:member:`platlibdir <PyConfig.platlibdir>`"
msgid "``\"prefix\"``"
msgstr "``\"prefix\"``"
msgid ":c:member:`prefix <PyConfig.prefix>`"
msgstr ":c:member:`prefix <PyConfig.prefix>`"
msgid "``\"program_name\"``"
msgstr "``\"program_name\"``"
msgid ":c:member:`program_name <PyConfig.program_name>`"
msgstr ":c:member:`program_name <PyConfig.program_name>`"
msgid "``\"pycache_prefix\"``"
msgstr "``\"pycache_prefix\"``"
msgid ":c:member:`pycache_prefix <PyConfig.pycache_prefix>`"
msgstr ":c:member:`pycache_prefix <PyConfig.pycache_prefix>`"
msgid "``\"quiet\"``"
msgstr "``\"quiet\"``"
msgid ":c:member:`quiet <PyConfig.quiet>`"
msgstr ":c:member:`quiet <PyConfig.quiet>`"
msgid "``\"run_command\"``"
msgstr "``\"run_command\"``"
msgid ":c:member:`run_command <PyConfig.run_command>`"
msgstr ":c:member:`run_command <PyConfig.run_command>`"
msgid "``\"run_filename\"``"
msgstr "``\"run_filename\"``"
msgid ":c:member:`run_filename <PyConfig.run_filename>`"
msgstr ":c:member:`run_filename <PyConfig.run_filename>`"
msgid "``\"run_module\"``"
msgstr "``\"run_module\"``"
msgid ":c:member:`run_module <PyConfig.run_module>`"
msgstr ":c:member:`run_module <PyConfig.run_module>`"
msgid "``\"run_presite\"``"
msgstr "``\"run_presite\"``"
msgid ":c:member:`run_presite <PyConfig.run_presite>`"
msgstr ":c:member:`run_presite <PyConfig.run_presite>`"
msgid "``\"safe_path\"``"
msgstr ""
"```\n"
"``\"safe_path\"``"
msgid ":c:member:`safe_path <PyConfig.safe_path>`"
msgstr ":c:member:`safe_path <PyConfig.safe_path>`"
msgid "``\"show_ref_count\"``"
msgstr "``\"show_ref_count\"``"
msgid ":c:member:`show_ref_count <PyConfig.show_ref_count>`"
msgstr ":c:member:`show_ref_count <PyConfig.show_ref_count>`"
msgid "``\"site_import\"``"
msgstr "``\"site_import\"``"
msgid ":c:member:`site_import <PyConfig.site_import>`"
msgstr ":c:member:`site_import <PyConfig.site_import>`"
msgid "``\"skip_source_first_line\"``"
msgstr "``\"skip_source_first_line\"``"
msgid ":c:member:`skip_source_first_line <PyConfig.skip_source_first_line>`"
msgstr ":c:member:`skip_source_first_line <PyConfig.skip_source_first_line>`"
msgid "``\"stdio_encoding\"``"
msgstr "``\"stdio_encoding\"``"
msgid ":c:member:`stdio_encoding <PyConfig.stdio_encoding>`"
msgstr ":c:member:`stdio_encoding <PyConfig.stdio_encoding>`"
msgid "``\"stdio_errors\"``"
msgstr "``\"stdio_errors\"``"
msgid ":c:member:`stdio_errors <PyConfig.stdio_errors>`"
msgstr ":c:member:`stdio_errors <PyConfig.stdio_errors>`"
msgid "``\"stdlib_dir\"``"
msgstr "``\"stdlib_dir\"``"
msgid ":c:member:`stdlib_dir <PyConfig.stdlib_dir>`"
msgstr ":c:member:`stdlib_dir <PyConfig.stdlib_dir>`"
msgid "``\"tracemalloc\"``"
msgstr "``\"tracemalloc\"``"
msgid ":c:member:`tracemalloc <PyConfig.tracemalloc>`"
msgstr ":c:member:`tracemalloc <PyConfig.tracemalloc>`"
msgid "``\"use_environment\"``"
msgstr "``\"use_environment\"``"
msgid ":c:member:`use_environment <PyConfig.use_environment>`"
msgstr ":c:member:`use_environment <PyConfig.use_environment>`"
msgid "``\"use_frozen_modules\"``"
msgstr "``\"use_frozen_modules\"``"
msgid ":c:member:`use_frozen_modules <PyConfig.use_frozen_modules>`"
msgstr ":c:member:`use_frozen_modules <PyConfig.use_frozen_modules>`"
msgid "``\"use_hash_seed\"``"
msgstr "``\"use_hash_seed\"``"
msgid ":c:member:`use_hash_seed <PyConfig.use_hash_seed>`"
msgstr ":c:member:`use_hash_seed <PyConfig.use_hash_seed>`"
msgid "``\"use_system_logger\"``"
msgstr "``\"use_system_logger\"``"
msgid ":c:member:`use_system_logger <PyConfig.use_system_logger>`"
msgstr ":c:member:`use_system_logger <PyConfig.use_system_logger>`"
msgid "``\"user_site_directory\"``"
msgstr "``\"user_site_directory\"``"
msgid ":c:member:`user_site_directory <PyConfig.user_site_directory>`"
msgstr ":c:member:`user_site_directory <PyConfig.user_site_directory>`"
msgid "``\"utf8_mode\"``"
msgstr "``\"utf8_mode\"``"
msgid ":c:member:`utf8_mode <PyPreConfig.utf8_mode>`"
msgstr ":c:member:`utf8_mode <PyPreConfig.utf8_mode>`"
msgid "``\"verbose\"``"
msgstr "``\"verbose\"``"
msgid ":c:member:`verbose <PyConfig.verbose>`"
msgstr ":c:member:`verbose <PyConfig.verbose>`"
msgid "``\"warn_default_encoding\"``"
msgstr "``\"warn_default_encoding\"``"
msgid ":c:member:`warn_default_encoding <PyConfig.warn_default_encoding>`"
msgstr ":c:member:`warn_default_encoding <PyConfig.warn_default_encoding>`"
msgid "``\"warnoptions\"``"
msgstr "``\"warnoptions\"``"
msgid ":c:member:`warnoptions <PyConfig.warnoptions>`"
msgstr ":c:member:`warnoptions <PyConfig.warnoptions>`"
msgid "``\"write_bytecode\"``"
msgstr "``\"write_bytecode\"``"
msgid ":c:member:`write_bytecode <PyConfig.write_bytecode>`"
msgstr ":c:member:`write_bytecode <PyConfig.write_bytecode>`"
msgid "``\"xoptions\"``"
msgstr "``\"xoptions\"``"
msgid ":c:member:`xoptions <PyConfig.xoptions>`"
msgstr ":c:member:`xoptions <PyConfig.xoptions>`"
msgid "``dict[str, str]``"
msgstr "``dict[str, str]``"
msgid "``\"_pystats\"``"
msgstr "``\"_pystats\"``"
msgid ":c:member:`_pystats <PyConfig._pystats>`"
msgstr ":c:member:`_pystats <PyConfig._pystats>`"
msgid "Visibility:"
msgstr "پدیداری:"
msgid "Public: Can be retrieved by :c:func:`PyConfig_Get` and set by :c:func:`PyConfig_Set`."
msgstr "عمومی: میتوان آن را با :c:func:`PyConfig_Get` بازیابی کرد و با :c:func:`PyConfig_Set` تنظیم کرد."
msgid "Read-only: Can be retrieved by :c:func:`PyConfig_Get`, but cannot be set by :c:func:`PyConfig_Set`."
msgstr "فقطخواندنی: میتوان آن را با :c:func:`PyConfig_Get` بازیابی کرد، اما نمیتوان آن را با :c:func:`PyConfig_Set` تنظیم کرد."
msgid "Runtime Python configuration API"
msgstr "API پیکربندی پایتون در رانتایم"
msgid "At runtime, it's possible to get and set configuration options using :c:func:`PyConfig_Get` and :c:func:`PyConfig_Set` functions."
msgstr "در زمان اجرا، میتوان با استفاده از توابع :c:func:`PyConfig_Get` و :c:func:`PyConfig_Set` گزینههای پیکربندی را دریافت و تنظیم کرد."
msgid "Some options are read from the :mod:`sys` attributes. For example, the option ``\"argv\"`` is read from :data:`sys.argv`."
msgstr "برخی گزینهها از ویژگیهای :mod:`sys` خوانده میشوند. برای نمونه، گزینهی ``\"argv\"`` از :data:`sys.argv` خوانده میشود."
msgid "Get the current runtime value of a configuration option as a Python object."
msgstr "دریافت مقدار فعلی یک گزینه پیکربندی در رانتایم بهصورت یک شیء پایتون."
msgid "Return a new reference on success."
msgstr "در صورت موفقیت، یک ارجاع جدید برمیگرداند."
msgid "Set an exception and return ``NULL`` on error."
msgstr "در صورت خطا، یک استثنا تنظیم کرده و ``NULL`` را برمیگرداند."
msgid "The object type depends on the configuration option. It can be:"
msgstr "نوع شیء به گزینه پیکربندی بستگی دارد. این میتواند یکی از موارد زیر باشد:"
msgid "The caller must have an :term:`attached thread state`. The function cannot be called before Python initialization nor after Python finalization."
msgstr "فراخوانکننده باید یک :term:`وضعیت نخ متصل <attached thread state>` داشته باشد. این تابع را نمیتوان پیش از مقداردهی اولیهی پایتون و نه پس از نهاییسازی پایتون فراخوانی کرد."
msgid "Similar to :c:func:`PyConfig_Get`, but get the value as a C int."
msgstr "مشابه :c:func:`PyConfig_Get` است، اما مقدار را بهصورت یک int در C دریافت میکند."
msgid "Set an exception and return ``-1`` on error."
msgstr "در صورت خطا، یک استثنا تنظیم کرده و ``-1`` را برمیگرداند."
msgid "Get all configuration option names as a ``frozenset``."
msgstr "گرفتن همه نامهای گزینههای پیکربندی به صورت یک ``frozenset``."
msgid "Set the current runtime value of a configuration option."
msgstr "مقدار رانتایم فعلی یک گزینه پیکربندی را تنظیم میکند."
msgid "Raise a :exc:`ValueError` if there is no option *name*."
msgstr "در صورت نبود گزینه *name*، یک :exc:`ValueError` بالا برده میشود."
msgid "Raise a :exc:`ValueError` if *value* is an invalid value."
msgstr "اگر *value* مقدار نامعتبری باشد، یک :exc:`ValueError` ایجاد میکند."
msgid "Raise a :exc:`ValueError` if the option is read-only (cannot be set)."
msgstr "در صورتی که گزینه فقطخواندنی باشد (قابل تنظیم نباشد)، یک :exc:`ValueError` ایجاد میکند."
msgid "Raise a :exc:`TypeError` if *value* has not the proper type."
msgstr "اگر *value* نوع مناسب را نداشته باشد، :exc:`TypeError` ایجاد میشود."
msgid "Raises an :ref:`auditing event <auditing>` ``cpython.PyConfig_Set`` with arguments ``name``, ``value``."
msgstr "یک :ref:`رویداد حسابرسی <auditing>` ``cpython.PyConfig_Set`` را با آرگومانهای ``name`` و ``value`` ایجاد میکند."
msgid "The function now replaces :data:`sys.flags` (create a new object), instead of modifying :data:`sys.flags` in-place."
msgstr "این تابع اکنون :data:`sys.flags` را جایگزین میکند (یک شیء جدید ایجاد میکند)، بهجای اینکه :data:`sys.flags` را بهصورت درجا تغییر دهد."
msgid "PyConfig C API"
msgstr "API زبان C برای PyConfig"
msgid "Python can be initialized with :c:func:`Py_InitializeFromConfig` and the :c:type:`PyConfig` structure. It can be preinitialized with :c:func:`Py_PreInitialize` and the :c:type:`PyPreConfig` structure."
msgstr "پایتون را میتوان با :c:func:`Py_InitializeFromConfig` و ساختار :c:type:`PyConfig` راهاندازی کرد. میتوان آن را با :c:func:`Py_PreInitialize` و ساختار :c:type:`PyPreConfig` پیشراهاندازی کرد."
msgid "There are two kinds of configuration:"
msgstr "دو نوع پیکربندی وجود دارد:"
msgid "The :ref:`Python Configuration <init-python-config>` can be used to build a customized Python which behaves as the regular Python. For example, environment variables and command line arguments are used to configure Python."
msgstr "میتوان از :ref:`پیکربندی پایتون <init-python-config>` برای ساخت یک پایتون سفارشیشده که مانند پایتون معمولی رفتار میکند استفاده کرد. برای مثال، از متغیرهای محیطی و آرگومانهای خط فرمان برای پیکربندی پایتون استفاده میشود."
msgid "The :ref:`Isolated Configuration <init-isolated-conf>` can be used to embed Python into an application. It isolates Python from the system. For example, environment variables are ignored, the LC_CTYPE locale is left unchanged and no signal handler is registered."
msgstr "میتوان از :ref:`پیکربندی ایزوله <init-isolated-conf>` برای تعبیه پایتون در یک برنامه استفاده کرد. این پیکربندی پایتون را از سیستم جدا میکند. برای مثال، متغیرهای محیطی نادیده گرفته میشوند، locale مربوط به LC_CTYPE بدون تغییر باقی میماند و هیچ هندلر سیگنالی ثبت نمیشود."
msgid ":pep:`587` \"Python Initialization Configuration\"."
msgstr ":pep:`587` «پیکربندی راهاندازی پایتون»."
msgid "Example of customized Python always running in isolated mode::"
msgstr "نمونهای از پایتون سفارشیسازیشده که همیشه در حالت ایزوله اجرا میشود::"
msgid ""
"int main(int argc, char **argv)\n"
"{\n"
" PyStatus status;\n"
"\n"
" PyConfig config;\n"
" PyConfig_InitPythonConfig(&config);\n"
" config.isolated = 1;\n"
"\n"
" /* Decode command line arguments.\n"
" Implicitly preinitialize Python (in isolated mode). */\n"
" status = PyConfig_SetBytesArgv(&config, argc, argv);\n"
" if (PyStatus_Exception(status)) {\n"
" goto exception;\n"
" }\n"
"\n"
" status = Py_InitializeFromConfig(&config);\n"
" if (PyStatus_Exception(status)) {\n"
" goto exception;\n"
" }\n"
" PyConfig_Clear(&config);\n"
"\n"
" return Py_RunMain();\n"
"\n"
"exception:\n"
" PyConfig_Clear(&config);\n"
" if (PyStatus_IsExit(status)) {\n"
" return status.exitcode;\n"
" }\n"
" /* Display the error message and exit the process with\n"
" non-zero exit code */\n"
" Py_ExitStatusException(status);\n"
"}"
msgstr ""
"int main(int argc, char **argv)\n"
"{\n"
" PyStatus status;\n"
"\n"
" PyConfig config;\n"
" PyConfig_InitPythonConfig(&config);\n"
" config.isolated = 1;\n"
"\n"
" /* Decode command line arguments.\n"
" Implicitly preinitialize Python (in isolated mode). */\n"
" status = PyConfig_SetBytesArgv(&config, argc, argv);\n"
" if (PyStatus_Exception(status)) {\n"
" goto exception;\n"
" }\n"
"\n"
" status = Py_InitializeFromConfig(&config);\n"
" if (PyStatus_Exception(status)) {\n"
" goto exception;\n"
" }\n"
" PyConfig_Clear(&config);\n"
"\n"
" return Py_RunMain();\n"
"\n"
"exception:\n"
" PyConfig_Clear(&config);\n"
" if (PyStatus_IsExit(status)) {\n"
" return status.exitcode;\n"
" }\n"
" /* Display the error message and exit the process with\n"
" non-zero exit code */\n"
" Py_ExitStatusException(status);\n"
"}"
msgid "PyWideStringList"
msgstr "PyWideStringList"
msgid "List of ``wchar_t*`` strings."
msgstr "فهرستی از رشتههای ``wchar_t*``."
msgid "If *length* is non-zero, *items* must be non-``NULL`` and all strings must be non-``NULL``."
msgstr "اگر *length* ناصفر باشد، *items* باید غیر ``NULL`` باشد و همهی رشتهها باید غیر ``NULL`` باشند."
msgid "Methods:"
msgstr "متدها:"
msgid "Append *item* to *list*."
msgstr "افزودن *آیتم* به *فهرست*."
msgid "Python must be preinitialized to call this function."
msgstr "برای فراخوانی این تابع، پایتون باید از پیش مقداردهی اولیه شده باشد."
msgid "Insert *item* into *list* at *index*."
msgstr "درج *آیتم* در *فهرست* در *اندیس*."
msgid "If *index* is greater than or equal to *list* length, append *item* to *list*."
msgstr "اگر *index* بزرگتر یا مساوی طول *list* باشد، *item* به *list* افزوده میشود."
msgid "*index* must be greater than or equal to ``0``."
msgstr "*index* باید بزرگتر یا مساوی با ``0`` باشد."
msgid "Structure fields:"
msgstr "فیلدهای ساختار:"
msgid "List length."
msgstr "طول فهرست."
msgid "List items."
msgstr "آیتمهای فهرست."
msgid "PyStatus"
msgstr "PyStatus"
msgid "Structure to store an initialization function status: success, error or exit."
msgstr "ساختاری برای ذخیرهسازی وضعیت یک تابع مقداردهی اولیه: موفقیت، خطا یا خروج."
msgid "For an error, it can store the C function name which created the error."
msgstr "در صورت وقوع خطا، میتواند نام تابع C که خطا را ایجاد کرده است را ذخیره کند."
msgid "Exit code. Argument passed to ``exit()``."
msgstr "کد خروج. آرگومان پاسدادهشده به ``exit()``."
msgid "Error message."
msgstr "پیام خطا."
msgid "Name of the function which created an error, can be ``NULL``."
msgstr "نام تابعی که خطا ایجاد کرده است، میتواند ``NULL`` باشد."
msgid "Functions to create a status:"
msgstr "توابع برای ایجاد وضعیت:"
msgid "Success."
msgstr "موفقیت."
msgid "Initialization error with a message."
msgstr "خطای مقداردهی اولیه همراه با پیام."
msgid "*err_msg* must not be ``NULL``."
msgstr "*err_msg* نباید ``NULL`` باشد."
msgid "Memory allocation failure (out of memory)."
msgstr "شکست تخصیص حافظه (کمبود حافظه)."
msgid "Exit Python with the specified exit code."
msgstr "با کد خروج مشخصشده از پایتون خارج شوید."
msgid "Functions to handle a status:"
msgstr "توابعی برای مدیریت یک وضعیت:"
msgid "Is the status an error or an exit? If true, the exception must be handled; by calling :c:func:`Py_ExitStatusException` for example."
msgstr "آیا وضعیت خطا یا خروج است؟ اگر درست باشد، استثنا باید مدیریت شود؛ برای مثال با فراخوانی :c:func:`Py_ExitStatusException`."
msgid "Is the result an error?"
msgstr "آیا نتیجه یک خطا است؟"
msgid "Is the result an exit?"
msgstr "آیا نتیجه یک خروج است؟"
msgid "Call ``exit(exitcode)`` if *status* is an exit. Print the error message and exit with a non-zero exit code if *status* is an error. Must only be called if ``PyStatus_Exception(status)`` is non-zero."
msgstr "اگر *status* یک خروج باشد، ``exit(exitcode)`` را فراخوانی کنید. اگر *status* یک خطا باشد، پیام خطا را چاپ کرده و با کد خروج ناصفر خارج شوید. فقط باید در صورتی فراخوانی شود که ``PyStatus_Exception(status)`` ناصفر باشد."
msgid "Internally, Python uses macros which set ``PyStatus.func``, whereas functions to create a status set ``func`` to ``NULL``."
msgstr "بهطور داخلی، پایتون از ماکروهایی استفاده میکند که ``PyStatus.func`` را تنظیم میکنند، در حالی که توابع ایجاد وضعیت، ``func`` را به ``NULL`` تنظیم میکنند."
msgid "Example::"
msgstr "مثال::"
msgid ""
"PyStatus alloc(void **ptr, size_t size)\n"
"{\n"
" *ptr = PyMem_RawMalloc(size);\n"
" if (*ptr == NULL) {\n"
" return PyStatus_NoMemory();\n"
" }\n"
" return PyStatus_Ok();\n"
"}\n"
"\n"
"int main(int argc, char **argv)\n"
"{\n"
" void *ptr;\n"
" PyStatus status = alloc(&ptr, 16);\n"
" if (PyStatus_Exception(status)) {\n"
" Py_ExitStatusException(status);\n"
" }\n"
" PyMem_Free(ptr);\n"
" return 0;\n"
"}"
msgstr ""
"PyStatus alloc(void **ptr, size_t size)\n"
"{\n"
" *ptr = PyMem_RawMalloc(size);\n"
" if (*ptr == NULL) {\n"
" return PyStatus_NoMemory();\n"
" }\n"
" return PyStatus_Ok();\n"
"}\n"
"\n"
"int main(int argc, char **argv)\n"
"{\n"
" void *ptr;\n"
" PyStatus status = alloc(&ptr, 16);\n"
" if (PyStatus_Exception(status)) {\n"
" Py_ExitStatusException(status);\n"
" }\n"
" PyMem_Free(ptr);\n"
" return 0;\n"
"}"