[IPython-user] Macros & slice notation

skip at pobox.com skip at pobox.com
Fri Dec 30 12:29:10 CST 2005

    >> we could change the range syntax in %macro and %save to use 
    >> N-M

    Alan> Maybe N--M?

    >> instead of N:M 

I'm not exactly sure of the Python context where these will be operational,
but both n-m and n--m are already valid Python expressions:

    >>> n=3
    >>> m=-7
    >>> n--m
    >>> 3---7


More information about the IPython-user mailing list