Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb366a1d

Browse files
committed
resolve fuzzy entries
1 parentcb73f1a commitb366a1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+251
-611
lines changed

‎c-api/allocation.po

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ msgstr ""
4747
"度資訊。"
4848

4949
#:../../c-api/allocation.rst:32
50-
#,fuzzy
5150
msgid""
5251
"Allocate a new Python object using the C structure type *TYPE* and the "
5352
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
@@ -58,8 +57,8 @@ msgid ""
5857
msgstr""
5958
"使用 C 結構型別 *TYPE* 和 Python 型別物件 *typeobj* (``PyTypeObject*``) 分配"
6059
"一個新的 Python 物件。未在該 Python 物件標頭 (header) 中定義的欄位不會被初始"
61-
"化;物件的參照計數將為一。記憶體分配大小由 type 物件的 :c:member:"
62-
"`~PyTypeObject.tp_basicsize` 欄位來指定。"
60+
"化;呼叫者會擁有那個對於物件的唯一參照(物件的參照計數為一)。記憶體分配大小"
61+
"由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位來指定。"
6362

6463
#:../../c-api/allocation.rst:43
6564
msgid""

‎c-api/code.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ msgstr ""
7272

7373
#:../../c-api/code.rst:48
7474
msgid"Added ``qualname`` and ``exceptiontable`` parameters."
75-
msgstr""
75+
msgstr"新增 ``qualname`` 和 ``exceptiontable`` 參數。"
7676

7777
#:../../c-api/code.rst:55
7878
msgid""
@@ -93,7 +93,7 @@ msgstr ""
9393

9494
#:../../c-api/code.rst:68
9595
msgid"Added ``qualname`` and ``exceptiontable`` parameters."
96-
msgstr""
96+
msgstr"新增 ``qualname`` 和 ``exceptiontable`` 參數。"
9797

9898
#:../../c-api/code.rst:73
9999
msgid""

‎c-api/intro.po

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ msgid "Reference Counts"
439439
msgstr"參照計數"
440440

441441
#:../../c-api/intro.rst:290
442-
#,fuzzy
443442
msgid""
444443
"The reference count is important because today's computers have a finite "
445444
"(and often severely limited) memory size; it counts how many different "
@@ -454,15 +453,15 @@ msgid ""
454453
"that.\")"
455454
msgstr""
456455
"參照計數很重要,因為現今的電腦記憶體大小是有限的(而且通常是非常有限的);它"
457-
"計算有多少個不同的地方參照了一個物件。這樣的地方可以是另一個物件,或者全域"
458-
"(或靜態)C 變數,或者某個 C 函式中的本地變數。當一個物件的參照計數變為零時,"
459-
"該物件將被釋放 (deallocated)。如果它包含對其他物件的參照,則它們的參照計數會"
460-
"減少。如果這樣的減少使它們的參照計數變為零,則可以依次釋放那些其他物件,依此"
461-
"類推。 (此處相互參照物件的存在是個明顯的問題;目前,解決方案是「就不要那樣"
462-
"做」。)"
456+
"計算有多少個不同的地方用有了一個物件的\\ :term:`強參照 <strong reference>`。"
457+
"這樣的地方可以是另一個物件,或者全域(或靜態)C 變數,或者某個 C 函式中的本地"
458+
"變數。當一個物件的最後一個\\ :term:`強參照 <strong reference>`\\ 被釋放時(即"
459+
"其的參照計數變為零),該物件將被解除配置 (deallocated)。如果它包含對其他物件"
460+
"的參照,則它們的參照會被釋放。如果這樣的釋放使得再也沒有任何對於它們的參照,"
461+
"則可以依次為那些其他物件解除配置,依此類推。 (此處相互參照物件的存在是個明顯"
462+
"的問題;目前,解決方案是「就不要那樣做」。)"
463463

464464
#:../../c-api/intro.rst:307
465-
#,fuzzy
466465
msgid""
467466
"Reference counts are always manipulated explicitly. The normal way is to "
468467
"use the macro :c:func:`Py_INCREF` to take a new reference to an object (i.e. "
@@ -480,17 +479,17 @@ msgid ""
480479
"``sizeof(Py_ssize_t) >= sizeof(void*)``). Thus, the reference count "
481480
"increment is a simple operation."
482481
msgstr""
483-
"參照計數總是被明確地操作。正常的方法是使用巨集 :c:func:`Py_INCREF` 將物件的參"
484-
"照計數加一,並使用巨集 :c:func:`Py_DECREF` 來將其減一。:c:func:`Py_DECREF` 巨"
485-
"集比 incref 巨集複雜得多,因為它必須檢查參照計數是否變為零,然後呼叫物件的釋"
486-
"放器 (deallocator)。釋放器是包含在物件型別結構中的函式指標。特定型別的釋放"
487-
"器,在如果是一個複合物件型別(例如 list)時負責減少物件中包含的其他物件的參照"
488-
"計數,並執行任何需要的額外完結步驟。參照計數不可能溢出;至少與虛擬記憶體中用"
489-
"來保存參照計數的不同記憶體位置數量一樣多的位元會被使用(假設 "
490-
"``sizeof(Py_ssize_t) >= sizeof(void*)``)。因此參照計數增加是一個簡單的操作。"
482+
"參照計數總是被明確地操作。正常的方法是使用巨集 :c:func:`Py_INCREF` 來取得對於"
483+
"物件的參照(即參照計數加一),並使用巨集 :c:func:`Py_DECREF` 來釋放參照(即將"
484+
"參照計數減一)。:c:func:`Py_DECREF` 巨集比 incref 巨集複雜得多,因為它必須檢"
485+
"查參照計數是否變為零,然後呼叫物件的釋放器 (deallocator)。釋放器是包含在物件"
486+
"型別結構中的函式指標。特定型別的釋放器,在如果是一個複合物件型別(例如 list)"
487+
"時負責釋放物件中包含的其他物件的參照,並執行任何需要的額外完結步驟。參照計數"
488+
"不可能溢出;至少與虛擬記憶體中用來保存參照計數的不同記憶體位置數量一樣多的位"
489+
"元會被使用(假設 ``sizeof(Py_ssize_t) >= sizeof(void*)``)。因此參照計數增加"
490+
"是一個簡單的操作。"
491491

492492
#:../../c-api/intro.rst:323
493-
#,fuzzy
494493
msgid""
495494
"It is not necessary to hold a :term:`strong reference` (i.e. increment the "
496495
"reference count) for every local variable that contains a pointer to an "
@@ -507,16 +506,16 @@ msgid ""
507506
"that are called from Python; the call mechanism guarantees to hold a "
508507
"reference to every argument for the duration of the call."
509508
msgstr""
510-
"沒有必要為每個包含物件指標的本地變數增加物件的參照計數。理論上,當變數指向它"
511-
"時,物件的參照計數會增加 1,而當變數離開作用域時就會減少 1。然而這兩者會相互"
512-
"抵消,所以最後參照計數沒有改變。使用參照計數的唯一真正原因是防止物件還有變數"
513-
"指向它時被釋放。如果我們知道至少有一個物件的其他參照生存了至少與我們的變數一"
514-
"樣久,就不需要臨時增加參照計數。出現這種情況的一個重要情況是在從 Python 呼叫"
515-
"的擴充模組中作為引數傳遞給 C 函式的物件;呼叫機制保證在呼叫期間保持對每個參數"
516-
"的參照。"
509+
"沒有必要為每個包含物件指標的本地變數物件都持有一個\\ :term:`強參照 <strong "
510+
"reference>`\\ (即增加參照計數)。理論上,當變數指向它時,物件的參照計數會增"
511+
"加 1,而當變數離開作用域時就會減少 1。然而這兩者會相互抵消,所以最後參照計數"
512+
"沒有改變。使用參照計數的唯一真正原因是防止物件還有變數指向它時被解除配置。如"
513+
"果我們知道至少有一個物件的其他參照生存了至少與我們的變數一樣久,就不需要臨時"
514+
"增加建立新的\\ :term:`強參照 <strong reference>`\\ (即增加參照計數)。出現這"
515+
"種情況的一個重要情況是在從 Python 呼叫的擴充模組中作為引數傳遞給 C 函式的物"
516+
"件;呼叫機制保證在呼叫期間保持對每個參數的參照。"
517517

518518
#:../../c-api/intro.rst:339
519-
#,fuzzy
520519
msgid""
521520
"However, a common pitfall is to extract an object from a list and hold on to "
522521
"it for a while without taking a new reference. Some other operation might "
@@ -526,14 +525,13 @@ msgid ""
526525
"code path which allows control to flow back to the user from a :c:func:"
527526
"`Py_DECREF`, so almost any operation is potentially dangerous."
528527
msgstr""
529-
"然而,一個常見的陷阱是從一個 list中提取一個物件並保留它一段時間而不增加其參"
530-
"照計數。某些其他操作可能會從列表中刪除該物件,減少其參照計數並可能取消分配"
531-
"它。真正的危險是看似無害的操作可能會呼叫可以執行此操作的任意 Python 程式碼;"
532-
"有一個程式碼路徑允許控制權從 :c:func:`Py_DECREF` 回歸使用者,因此幾乎任何操作"
533-
"都有潛在危險。"
528+
"然而,一個常見的陷阱是從一個 list中提取一個物件並保留它一段時間而不取得其參"
529+
"。某些其他操作可能會從列表中刪除該物件,減少其參照計數並可能取消分配它。真"
530+
"正的危險是看似無害的操作可能會呼叫可以執行此操作的任意 Python 程式碼;有一個"
531+
"程式碼路徑允許控制權從 :c:func:`Py_DECREF` 回歸使用者,因此幾乎任何操作都有潛"
532+
"在危險。"
534533

535534
#:../../c-api/intro.rst:347
536-
#,fuzzy
537535
msgid""
538536
"A safe approach is to always use the generic operations (functions whose "
539537
"name begins with ``PyObject_``, ``PyNumber_``, ``PySequence_`` or "
@@ -543,16 +541,16 @@ msgid ""
543541
"when they are done with the result; this soon becomes second nature."
544542
msgstr""
545543
"一種安全的方法是都使用通用 (generics) 操作(名稱以 ``PyObject_``、"
546-
"``PyNumber_``、``PySequence_`` 或 ``PyMapping_`` 開頭的函式)。這些操作總是增"
547-
"加它們回傳的物件的參照計數。這讓呼叫者有責任在處理完結果後呼叫 :c:func:"
548-
"`Py_DECREF`;這就成為第二本質。"
544+
"``PyNumber_``、``PySequence_`` 或 ``PyMapping_`` 開頭的函式)。這些操作總是建"
545+
"立新的對於它們回傳物件的\\ :term:`強參照 <strong reference>`\\ (即增加其參照"
546+
"計數)。這讓呼叫者有責任在處理完結果後呼叫 :c:func:`Py_DECREF`;這就成為第二"
547+
"本質。"
549548

550549
#:../../c-api/intro.rst:358
551550
msgid"Reference Count Details"
552551
msgstr"參照計數詳細資訊"
553552

554553
#:../../c-api/intro.rst:360
555-
#,fuzzy
556554
msgid""
557555
"The reference count behavior of functions in the Python/C API is best "
558556
"explained in terms of *ownership of references*. Ownership pertains to "
@@ -572,7 +570,7 @@ msgstr ""
572570
"於參照而非物件(物件並非被擁有,它們總是共享的)。「擁有參照」意味著當不再需"
573571
"要該參照時,負責在其上呼叫 Py_DECREF。所有權也可以轉移,這意味著接收參照所有"
574572
"權的程式碼最終會負責在不需要參照時透過呼叫 :c:func:`Py_DECREF` 或 :c:func:"
575-
"`Py_XDECREF`減少參照 --- 或者將這個責任再傳遞出去(通常是給它的呼叫者)。當"
573+
"`Py_XDECREF`釋放參照 --- 或者將這個責任再傳遞出去(通常是給它的呼叫者)。當"
576574
"一個函式將參照的所有權傳遞給它的呼叫者時,呼叫者被稱為接收到一個\\ *新*\\ 參"
577575
"照。當沒有所有權轉移時,呼叫者被稱為\\ *借用*\\ 參照。如果是\\ :term:`借用參"
578576
"照 <borrowed reference>`\\ 就不需要做任何事情。"
@@ -653,7 +651,6 @@ msgstr ""
653651
"::"
654652

655653
#:../../c-api/intro.rst:422
656-
#,fuzzy
657654
msgid""
658655
"It is much more common to use :c:func:`PyObject_SetItem` and friends with "
659656
"items whose references you are only borrowing, like arguments that were "
@@ -664,9 +661,9 @@ msgid ""
664661
"sequence) to a given item::"
665662
msgstr""
666663
"更常見的是以那些借用參照的項目來使用 :c:func:`PyObject_SetItem` 及其系列函"
667-
"式,比如傳遞給你正在編寫的函式的引數。在那種情況下,他們關於參照計數的行為會"
668-
"比較穩健,因為你不必增加參照計數就可以放棄參照(「讓它被竊取」)。例如,此函"
669-
"式將 list(實際上是任何可變序列)的所有項目設定於給定項目:"
664+
"式,比如傳遞給你正在編寫的函式的引數。在那種情況下,他們關於參照的行為會比較"
665+
"穩健,因為你不取得新的一個參照就可以放棄參照(「讓它被竊取」)。例如,此函式"
666+
" list(實際上是任何可變序列)的所有項目設定於給定項目:"
670667

671668
#:../../c-api/intro.rst:452
672669
msgid""

‎c-api/sys.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ msgstr ""
476476

477477
#:../../c-api/sys.rst:407
478478
msgid"Process Control"
479-
msgstr"行程(Process)控制"
479+
msgstr"行程控制"
480480

481481
#:../../c-api/sys.rst:414
482482
msgid""

‎c-api/typeobj.po

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,8 @@ msgid "[:c:member:`~PyTypeObject.tp_watched`]"
579579
msgstr"[:c:member:`~PyTypeObject.tp_watched`]"
580580

581581
#:../../c-api/typeobj.rst:150
582-
#,fuzzy
583582
msgid"unsigned char"
584-
msgstr"unsignedint"
583+
msgstr"unsignedchar"
585584

586585
#:../../c-api/typeobj.rst:155
587586
msgid""
@@ -3300,7 +3299,7 @@ msgstr ""
33003299

33013300
#:../../c-api/typeobj.rst:2455
33023301
msgid"Return ``0``."
3303-
msgstr""
3302+
msgstr"回傳 ``0``。"
33043303

33053304
#:../../c-api/typeobj.rst:2457
33063305
msgid""
@@ -3572,6 +3571,3 @@ msgstr "repr"
35723571
#:../../c-api/typeobj.rst:874
35733572
msgid"hash"
35743573
msgstr"hash(雜湊)"
3575-
3576-
#~ msgid "char"
3577-
#~ msgstr "char"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp