[IPython-dev] IPyAutocall-like dispatching with simplegeneric
Ville M. Vainio
vivainio at gmail.com
Wed May 16 11:55:43 EDT 2007
And more brainstorming... imagine if we got
@ipycmd.when_type(list):
def list_append(item, ip,iFun, rest):
# check for 'list of strings, else raise ipapi.TryNext...
item.append(rest)
Then you could accumulate a list by the shorthand:
l = []
l hello
l world
# l is now ['hello','world']
I bet you can think of quite a few enhancements like this, without
adding any code to core IPython itself.
More information about the IPython-dev
mailing list