python-docs-zh-tw icon indicating copy to clipboard operation
python-docs-zh-tw copied to clipboard

Translate the first half of howto/descriptor

Open Copilot opened this issue 5 months ago • 3 comments

This PR completes the translation of the first half of the Python descriptor guide (howto/descriptor.po) from English to Traditional Chinese (Taiwan).

What was translated

The first half includes:

1. Introduction & Contents Section

  • Guide overview explaining the four major sections
  • Clear navigation guidance for readers new to descriptors

2. Primer Section (Complete)

  • Simple example: Basic descriptor that returns a constant
  • Dynamic lookups: Descriptors that run computations
  • Managed attributes: Using descriptors to control access to instance data
  • Customized names: Leveraging __set_name__ for automatic field naming
  • Closing thoughts: Core descriptor concepts and their usage throughout Python

Translation Quality

  • Build tested: No syntax errors or warnings
  • Terminology consistency: Established standard Chinese translations for key technical terms
  • reST formatting preserved: All Sphinx markup and cross-references maintained
  • Code examples preserved: Programming examples left in English as per project conventions

Key Technical Terms Established

English 繁體中文
descriptor 描述器
attribute lookup 屬性查找
class variable 類別變數
instance 實例
dynamic lookup 動態查找
managed attributes 受管理的屬性
dot operator 點運算子
callback 回呼

The translation makes descriptor concepts accessible to Chinese-speaking Python developers, covering all fundamental examples and explanations needed to understand how descriptors work.

Fixes #450.

[!WARNING]

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot avatar Jul 15 '25 10:07 Copilot