What does "::" mean?

could ildg could.net at gmail.com
Wed Jul 20 02:50:37 CEST 2005

I know that ":" can do slice works.
But I saw "::" today and it puzzled me much,
I can't find it in the python doc,
so I raise this question here.
The code is as below:
Jython 2.2a1 on java1.5.0_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> live='live';print live
>>> live=live[::-1];print live
"[::-1]" can reverse a string magicly, how did it do it?

More information about the Python-list mailing list