"IronPythonConsole.exe -X:TabCompletion" supports auto-indentation so that you do not have to type the indentation for multi-line statements. This works nicely for interactive manual typing. However, if you paste text blocks (which will already have indentation in them), it will lead to double indentation as the console cannot detect if the text was typed in or pasted as a block.
The workaround is not to use -X:TabCompletion when you will be pasting in text.
We could support an option to enable or disable auto-indentation, but that would be yet another knob you have to deal with.
________
Do you want to help develop Dynamic languages on CLR? ( http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Pete Sheill
Sent: Monday, March 13, 2006 10:07 AM
To: [email protected]
Subject: [IronPython] pasting into interactive console
In Beta3, I recall being able to copy and paste large class definitions from my editor to the interactive console. In Beta4, I get some strange indenting behavior that breaks that usage. Example:
class Item(UserControl):
def __init__(self, id, beetle):
self.id = id
self.Height = 50;
When pasted becomes...
>>> class Item(UserControl):
... def __init__(self, id, beetle):
... self.id = id
... self.Height = 50
and I get a SyntaxError.
My class definition has spaces, not tabs. Is there some workaround?
Thanks.
-Pete
Crush! Zap! Destroy! Junk e-mail trembles before the might of Windows Live(tm) Mail beta. Windows Live(tm) Mail beta
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
