You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c33641e
Browse filesBrowse the repository at this point in the historyBrowse files
#| msgid "Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, stop, and step indices from the slice object *slice* assuming a sequence of length *length*, and store the length of the slice in *slicelength*. Out of bounds indices are clipped in a manner consistent with the handling of normal slices."
55
53
msgid"Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, stop, and step indices from the slice object *slice* assuming a sequence of length *length*, and store the length of the slice in *slicelength*. Out of bounds indices are clipped in a manner consistent with the handling of normal slices. *length* must not be negative."
56
-
msgstr"جایگزین قابل استفاده برای :c:func:`PySlice_GetIndices`. شاخصهای شروع، پایان و گام را از شیء اسلایس *slice* با فرض یک دنباله با طول *length* بازیابی کنید، و طول اسلایس را در *slicelength* ذخیره کنید. شاخصهای خارج از کران به روشی سازگار با مدیریت اسلایسهای عادی برش داده میشوند."
54
+
msgstr"جایگزین قابل استفاده برای :c:func:`PySlice_GetIndices`. شاخصهای شروع، پایان و گام را از شیء اسلایس *slice* با فرض دنبالهای به طول *length* بازیابی کنید و طول اسلایس را در *slicelength* ذخیره کنید. شاخصهای خارج از کران به روشی سازگار با مدیریت اسلایسهای عادی برش داده میشوند. *length* نباید منفی باشد."
57
55
58
56
msgid"Return ``0`` on success and ``-1`` on error with an exception set."
59
57
msgstr"در صورت موفقیت ``0`` و در صورت خطا ``-1`` به همراه استثنای تنظیمشده برمیگرداند."
msgid"When building for Windows using the Setuptools_ build tool, removing the :samp:`PyInit_{<modname>}` function may result in the linker error :samp:`LINK : error LNK2001: unresolved external symbol PyInit_{<modname>}`. This is caused by Setuptools passing an ``/EXPORT`` linker flag, which is redundant since Python 3.15 (see :gh:`141671`). A workaround is to add a dummy :samp:`PyInit_{<modname>}` function to your code. Python 3.15+ will never call this function if :samp:`PyModExport_{<modname>}` is present, so it can always fail:"
351
352
msgstr"هنگام ساخت برای ویندوز با استفاده از ابزار ساخت Setuptools_، حذف کردن تابع :samp:`PyInit_{<modname>}` ممکن است منجر به خطای پیونددهندهی :samp:`LINK : error LNK2001: unresolved external symbol PyInit_{<modname>}` شود. این مشکل به این دلیل رخ میدهد که Setuptools یک پرچم پیونددهندهی ``/EXPORT`` را ارسال میکند که از پایتون ۳.۱۵ به بعد اضافی است (نگاه کنید به :gh:`141671`). یک راه حل جایگزین این است که یک تابع :samp:`PyInit_{<modname>}` نمایشی (dummy) به کد خود اضافه کنید. پایتون ۳.۱۵ به بعد هرگز این تابع را در صورت وجود :samp:`PyModExport_{<modname>}` فراخوانی نخواهد کرد، بنابراین همیشه میتواند با خطا مواجه شود:"
352
353
353
-
#,fuzzy
354
354
msgid""
355
355
"// Workaround for https://github.com/pypa/distutils/issues/387\n"
0 commit comments