Re: Please help me understand this code....
The : is used in Python for slice notation, which is explained pretty thoroughly in the Python tutorial, specifically at: http://www.python.org/doc/2.4/tut/node5.html -- http://mail.python.org/mailman/listinfo/python-list
Please help me understand this code....
Hello, I am a programmer, but not a python guy. So I am a little confused with the following python code. Specifically what does the ":" do in the array arithmetic? new_page = map[opage] old_page = map[opage^1] center = new_page[1:-1,1:-1] origcenter = array(center) center[:]