protocolbuffers / protocolbuffers/protocolbuffers.github.io
Protocol Buffer Basics: Python refers to __metaclass__ but there is none of that in the code snippet
@jguamie がすでに取り組んでいます。
2025年10月17日 から。
- 主要言語
- HTML
- スター
- 69
- フォーク
- 179
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Looking at the rendered output of the Python Tutorial today, I see the following paragraph, which still references __metaclass__. I think some more cleanup in needed, but I'm not sure what...
The important line in each class is
__metaclass__ = reflection.GeneratedProtocolMessageType. While the details of how Python metaclasses work is beyond the scope of this tutorial, you can think of them as like a template for creating classes. At load time, theGeneratedProtocolMessageTypemetaclass uses the specified descriptors to create all the Python methods you need to work with each message type and adds them to the relevant classes.
It looks like some cleanup was done in response to #124 in commit 654b896, but there are still some lingering references to __metaclass__ that makes the documentation confusing.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。