[IronPython] pasting into interactive console causes double-indentation
Shri.Borde at microsoft.com
Wed Mar 15 12:17:54 PST 2006
IronPython supports IRONPYTHONSTARTUP. "ironpythonconsole.exe -?" lists all the supported environment variables.
A new option sounds like the best approach for auto-indentation so everyone gets just what they ask for. I shall take a look at this for the next beta.
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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Douglas S. Blank
Sent: Tuesday, March 14, 2006 11:34 AM
To: Discussion of IronPython
Subject: Re: [IronPython] pasting into interactive console cause double-indentation
This sounds more like a job for PYTHONSTARTUP. Does IronPython support
that? For those that will be using IronPython with other users, you
might not want to (or might not be able to) change the site-wide
Also, are you saying that "-X:TabCompletion" adds indents in addition to
completing tabs? That sounds like two unrelated things that should have
Finally, is it possible to set items like TabCompletion in site.py? Or
is that a command-line only option? It would be great if it was
I am hoping that IronPython will behave very similarly to CPython (and
Jython for that matter) so that educators will be able to move between
them. Is there any commitment or coordination into compatibility between
the versions? I certainly don't want to see the language bogged down by
a standards committee, but I also don't want to see the language (and
related bits) fragment.
Thanks for the progress on this nice contribution to the community,
On Tue, 2006-03-14 at 10:59 -0800, Jim Hugunin wrote:
> Two things that I use to help with this are site.py and execfile.
> Site.py is a Python file that will be automatically executed when you
> start IronPython. It's a standard Python feature. I use this to add
> the standard Python 2.4 directory to my path as well as to add
> refererences (using clr.AddReference) to frequently used assemblies.
> Execfile will execute a file as if it was typed at the interactive
> prompt. So you want have your standard code in a startup.py fille
> that you execute.
> Let us know how these suggestions work out for you - Jim
Douglas S. Blank Computer Science
Assistant Professor Bryn Mawr College
users mailing list
users at lists.ironpython.com
More information about the users