From cb523dafc3756a04167ea3eaa6a873a79ae7a4ae Mon Sep 17 00:00:00 2001 From: alandonovan Date: Mon, 1 Apr 2019 23:09:56 -0400 Subject: starlark: make dir return a sorted list (#182) Updates bazelbuild/starlark#40 --- doc/spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/spec.md b/doc/spec.md index ca641b8..0c2b8a3 100644 --- a/doc/spec.md +++ b/doc/spec.md @@ -2940,7 +2940,7 @@ With no arguments, `dict()` returns a new empty dictionary. ### dir -`dir(x)` returns a list of the names of the attributes (fields and methods) of its operand. +`dir(x)` returns a new sorted list of the names of the attributes (fields and methods) of its operand. The attributes of a value `x` are the names `f` such that `x.f` is a valid expression. For example, -- cgit v1.2.3