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

Commit85889cd

Browse files
committed
Refine how tree[subscript] is introduced
This drops the newly introduced precision in Python terminology,likening usage to that of a list or dict (experienced Python userswill already know about sequences and mappings, and inexperiencedusers will, with these terms, be able to understand what is said).Note that this does not undo the broader effect of the previouscommit, which is to make clear that subscripting a tree supportsboth list-like and dict-like usage, not just list-like usage.
1 parent6f3a20f commit85889cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/objects/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Tree(IndexObject, git_diff.Diffable, util.Traversable, util.Serializable):
164164
R"""Tree objects represent an ordered list of :class:`~git.objects.blob.Blob`\s and
165165
other :class:`Tree`\s.
166166
167-
Subscripting is supported, as with amapping orsequence:
167+
Subscripting is supported, as with alist ordict:
168168
169169
* Access a specific blob using the ``tree["filename"]`` notation.
170170
* You may likewise access by index, like ``blob = tree[0]``.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp