forked from google/skylark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skylark: range(...) no longer materializes the sequence as a list (go…
…ogle#25) * skylark: range(...) no longer materializes the sequence as a list Skylark now follows the Python3, not Python2, semantics for range. Also: fix an off-by-one error. * range: allow membership tests 'x in range(n)' Change-Id: I0dffe70510f723c00da4153bcc0a17478cceb986 * range: allow floating point numbers for x in 'x in range(y)' - use ConvertToInt to convert x to an integer. - change ConvertToInt not to accept a bool. This affects string interpolation. e.g. "%d" % True now (correctly) results in an error. - rename ConvertToInt to NumberToInt Change-Id: Ie9e9d40d993c227b834bb720e5dbe3714032836a * range: doc tweaks Change-Id: I3f242d38a5969fa228167b72be6cb78aa4677eb6
- Loading branch information
Showing
8 changed files
with
179 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters