<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008>I'd strongly disagree.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008>SWIG is very useful for wrapping large scale projects 
in a non-interfering manner. If you have to generate bindings for 1000+ classes, 
it is by far the easiest way to do things.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008>It isn't clear what you are doing that requires the 
PyObject*, or which one you'd like.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008>In general, the output one is found in $result, and 
$input is input PyObject for that typemap.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=969543420-11032008></SPAN></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Michael Wieher 
[mailto:michael.wieher@gmail.com] <BR><B>Sent:</B> Tuesday, March 11, 2008 3:09 
PM<BR><B>To:</B> python-list@python.org<BR><B>Subject:</B> Re: Obtaining the 
PyObject * of a class<BR></FONT><BR></DIV>
<DIV></DIV>2 things:<BR><BR>1st. there is a python mailing list for people 
interested in C++ extension type stuff<BR>2nd. SWIG is useless and overly 
complicated, its much easier to just generate your own C++ code by hand, less 
confusion, and much more clarity.  I find no value in using anything 
else.<BR>People complain about the "boilerplate" code, but honestly, copy & 
paste, change three characters, and you're done.  And you know exactly what 
is happening, how when and why.<BR><BR>
<DIV><SPAN class=gmail_quote>2008/3/11, Chris Mellon <<A 
href="mailto:arkanes@gmail.com">arkanes@gmail.com</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">On 
  Tue, Mar 11, 2008 at 12:13 PM, Terry Reedy <<A 
  href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</A>> 
  wrote:<BR>><BR>>  "Cooper, Andrew" <<A 
  href="mailto:ACooper@cimtek.com">ACooper@cimtek.com</A>> wrote in 
  message<BR>>  news:C03234BF0E2A8C419C4C307D0914EB730251D3A9@MAILSERVER.cimtek.on.ca...<BR>><BR>> 
  | Are there any Python C API experts/SWIG experts out there that can 
  help<BR>>  | me with this issue please.<BR>><BR>> | I',m 
  currently using SWIG to generate a python interface to a C 
  DLL.<BR>><BR>>  Some people have switched to using ctypes for 
  this, and many other SWIG<BR>>  users have stopped reading 
  clp.  But I hope someone answers who can.<BR>><BR><BR><BR>Using 
  Pyrex or Cython is likely to be much easier than using SWIG for 
  this.<BR><BR>--<BR><A 
  href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.

--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.