Skip to content

デスクリプタでカスタマイズできるものを属性の検索・保存・削除とより明確にする提案 #1017

@ftnext

Description

@ftnext

概要

デスクリプタガイド冒頭の以下の文章です。

デスクリプタ を使うと、オブジェクトの属性検索、保存、削除をカスタマイズできます。

問題のある箇所 (URLで指定すること)

https://docs.python.org/ja/3/howto/descriptor.html

問題の詳細

デスクリプタでカスタマイズできるものが、以下3つのようにもとれてしまうと思いました。

  • オブジェクトの属性検索
  • オブジェクトの保存
  • オブジェクトの削除

__get__(), __set__(), __delete__()でやりたいことは、属性アクセスのカスタマイズという理解ですので、

  • オブジェクトの属性の検索
  • オブジェクトの属性の保存
  • オブジェクトの属性の削除

の並列として読めるように工夫できないかと考えました。

なお英語は
https://docs.python.org/3/howto/descriptor.html

Descriptors let objects customize attribute lookup, storage, and deletion.

  • attribute lookup
  • attribute storage
  • attribute deletion

修正案

「デスクリプタ を使うと、オブジェクトの属性の検索、保存、削除をカスタマイズできます。」

または

「デスクリプタ を使うと、オブジェクト属性の検索、保存、削除をカスタマイズできます。」

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions