Skip to content

Conversation

@zhanpon
Copy link

@zhanpon zhanpon commented Dec 20, 2025

"iterable"のカタカナ表記なので「イテラブル」のほうが適切だと思いました。もし意図した訳語でしたらご放念ください。

チケットへのリンク: 無し

このレビューで確認して欲しい点

  • 私はtypoだと判断しましたが意図した訳語でしたらご放念ください

contributorに追加を希望する場合は、以下にチェックを入れてsource/organize/3_contributers.mdに自分の名前を入れた変更をこのPull Requestに加えること

  • contributorに追加を希望する

"iterable"のカタカナ表記なので「イテラブル」のほうが適切
https://docs.python.org/3/glossary.html#term-iterable
Copy link
Member

@takanory takanory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。コメントしました

```

各メソッドの戻り値はイテレータブルオブジェクトです
各メソッドの戻り値はイテラブルオブジェクトです
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

調べてみたところ、各メソッドの戻り値はビューオブジェクトと言うらしいです。

https://docs.python.org/ja/3.14/library/stdtypes.html#dict.keys
https://docs.python.org/ja/3.14/library/stdtypes.html#dictionary-view-objects

```{admonition} コラム: イテレータブルオブジェクト
`.keys()` 、 `.values()` 、 `.items()` の戻り値の型はリストやタプルではなくそれぞれ `dict_keys` 、 `dict_values`、 `dict_items` ですが、いずれも `for` 文でデータを取り出すことができます。Pythonの `for` 文は、「イテレータブルオブジェクト」という連続したデータ構造を表すオブジェクトであれば扱えるため、このような動きになります。
```{admonition} コラム: イテラブルオブジェクト
`.keys()` 、 `.values()` 、 `.items()` の戻り値の型はリストやタプルではなくそれぞれ `dict_keys` 、 `dict_values`、 `dict_items` ですが、いずれも `for` 文でデータを取り出すことができます。Pythonの `for` 文は、「イテラブルオブジェクト」という連続したデータ構造を表すオブジェクトであれば扱えるため、このような動きになります。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for文に渡せるのは「イテラブルオブジェクト」または「反復可能なオブジェクト」ですね。
公式ドキュメントにあわせて「反復可能なオブジェクト(iterable object)」とするのはどうでしょうか。

https://docs.python.org/ja/3.14/reference/compound_stmts.html#the-for-statement

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「辞書のビューオブジェクトは反復可能なオブジェクトなので、for文でデータを取り出すことができます。」
みたいな文章にするのはどうでしょうか

@takanory
Copy link
Member

contributors.mdに名前の追加もぜひお願いします 🙇

@zhanpon zhanpon changed the title 「イテレータブル」を「イテラブル」に修正 「イテレータブルオブジェクト」」を「反復可能なオブジェクト」に修正 Dec 20, 2025
@zhanpon
Copy link
Author

zhanpon commented Dec 20, 2025

@takanory レビューありがとうございます!

いただいたアドバイスを参考に、次のように直してみました: 0657d32

またお言葉に甘えて contributors.md にも名前を追加しておきましたー

@zhanpon zhanpon requested a review from takanory December 20, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants