Mercurial > python-for-js-programmers
changeset 20:6dc91d39b055
Removed unneeded whitespace.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 05 Jun 2008 22:53:12 -0700 |
parents | 017ab6a2c727 |
children | 58825cbccd10 |
files | PythonForJsProgrammers.txt |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/PythonForJsProgrammers.txt Thu Jun 05 22:51:27 2008 -0700 +++ b/PythonForJsProgrammers.txt Thu Jun 05 22:53:12 2008 -0700 @@ -414,13 +414,10 @@ >>> "hello"[2:4] # Just like "hello".slice(2,4) in JS 'll' - >>> "hello"[2:] # Just like "hello".slice(2) in JS 'llo' - >>> "hello"[:4] # Just like "hello".slice(0,4) in JS 'hell' - >>> [1, 2, 3][1:2] # Works on lists, too! [2]