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

Commit6f3a20f

Browse files
committed
Change how tree[subscript] is introduced
This modifies the Tree docstring to replace the phrase "Tree as alist" with a phrase that:- Encompasses the use where subscripts are not integers or slices.- Is more precise in its terminology.The former advantage--not leaving out the case where one can passa string--is the rationale.
1 parent01cc8e2 commit6f3a20f

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-
Treeasa list:
167+
Subscripting is supported,aswith a mapping or sequence:
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