[IronPython] style question - site.py

Thane Plummer thane at tkpcorp.com
Sat Apr 14 20:18:47 CEST 2007

One problem with A) lies in the ambiguity of the contents of site.py --
portability issues could be large.  Also, remember that site.py was
implemented as a solution to give IronPython access to the standard libs.
This may change at some point and solution A) could be deprecated.

-----Original Message-----
From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Friday, April 13, 2007 11:44 PM
To: Discussion of IronPython
Subject: Re: [IronPython] style question - site.py

2007/4/14, ctrachte at gmail.com <ctrachte at gmail.com>:
> Which is most correct and why?
> A) >>> site.clr.AddReference(<reference name>)
> B) >>> import clr.
>     >>> clr.AddReference
> C) neither

B is correct.

Well, I can't articulate exactly why, but A just looks wrong.

Seo Sanghyeon
users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list