From 0dd8ed0d6207658e185de3564df6adc93873a5b9 2008-08-14 18:33:05 From: Ville M. Vainio Date: 2008-08-14 18:33:05 Subject: [PATCH] ILeo: comment out format_for_leo for list (bad idea!) --- diff --git a/IPython/Extensions/ipy_leo.py b/IPython/Extensions/ipy_leo.py index 934bc64..b0da8f5 100644 --- a/IPython/Extensions/ipy_leo.py +++ b/IPython/Extensions/ipy_leo.py @@ -70,9 +70,10 @@ def format_for_leo(obj): """ Convert obj to string representiation (for editing in Leo)""" return pprint.pformat(obj) -@format_for_leo.when_type(list) -def format_list(obj): - return "\n".join(str(s) for s in obj) +# Just an example - note that this is a bad to actually do! +#@format_for_leo.when_type(list) +#def format_list(obj): +# return "\n".join(str(s) for s in obj) attribute_re = re.compile('^[a-zA-Z_][a-zA-Z0-9_]*$')