[IronPython] pasting into interactive console cause double-indentation
Douglas S. Blank
dblank at brynmawr.edu
Tue Mar 14 11:34:13 PST 2006
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
More information about the users