<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff size=2>Hi Sam
- generally, if you have created an assembly named 'A.B.dll', and the
</FONT></SPAN></DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff size=2>name
of the assembly matches the namespaces it contains ('A', 'A.B'), then you
</FONT></SPAN></DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff size=2>should
just be able to do:</FONT></SPAN></DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff size=2>from
A.B import SomeClass</FONT></SPAN></DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff
size=2>...after making sure that A.B.dll is on the python
path.</FONT></SPAN></DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff size=2>Hope
this helps - the readme.txt that comes with Python for .NET goes into a bit
</FONT></SPAN></DIV>
<DIV><SPAN class=021003518-25052004><FONT face=Arial color=#0000ff size=2>more
detail, if you haven't seen that already.</FONT></SPAN></DIV>
<DIV> </DIV><BR>
<P><FONT size=2>Brian Lloyd
brian@zope.com<BR>V.P. Engineering
540.361.1716 <BR>Zope
Corporation <A href="http://www.zope.com/"
target=_blank>http://www.zope.com</A><BR></FONT></P>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
pythondotnet-bounces+brian=zope.com@python.org
[mailto:pythondotnet-bounces+brian=zope.com@python.org]<B>On Behalf Of </B>Sam
Sungshik Kong<BR><B>Sent:</B> Tuesday, May 25, 2004 11:19 AM<BR><B>To:</B>
pythondotnet@python.org<BR><B>Subject:</B> [Python.NET] Question: How can I
import what I created in C#<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hello!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>PythonDotNet is very imporessive.</FONT></DIV>
<DIV><FONT face=Arial size=2>I was very excited seeing it working with .Net
classes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My question is that how I can import
classes(namespaces) that I made in C#.</FONT></DIV>
<DIV><FONT face=Arial size=2>In C#, I give a compile option for the dll that I
created.</FONT></DIV>
<DIV><FONT face=Arial size=2>How can I do it with Python?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sam</FONT></DIV></BLOCKQUOTE></BODY></HTML>