[IronPython] style question - site.py
Carl Trachte
ctrachte at gmail.com
Sat Apr 14 23:02:33 CEST 2007
On 4/14/07, Thane Plummer <thane at tkpcorp.com> wrote:
>
> 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.
This makes sense. It was a real newb question; the idea of importing
> something twice under different names (clr) made me wonder, and that's why I
> asked. Plus, I'm trying to get my arms around the whole dotNet thing. The
> automatically generated code out of Visual Studio for C# and VB.NET can be
> pretty ornate - things aren't always intuitive from the code.
Again, thanks.
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.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070414/2fc1a1a4/attachment.html>
More information about the Ironpython-users
mailing list