readme.html
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <title>win32com Readme</title> 5 </head> 6 <body> 7 8 <p><img width="551" height="99" id="_x0000_i1025" 9 src="html%5Cimage%5Cpycom_blowing.gif" 10 alt="Python and COM - Blowing the others away"> </p> 11 12 <h1>Python COM Extensions Readme </h1> 13 14 <p>This is the readme for win32com. Please check out the <a 15 href="html/docindex.html">win32com documentation index</a></p> 16 17 <p>The <a href="test/.">win32com/test directory</a> contains some interesting 18 scripts (and a new <a href="test/readme.txt">readme.txt</a>). Although these 19 are used for testing, they do show a variety of COM techniques.</p> 20 21 <h3>VARIANT objects</h3> 22 <p>win32com.client now has explicit VARIANT objects which can be used in 23 situations where you need more control over the argument types passed when 24 calling COM methods. See the <a href="html/variant.html">documentation on 25 this object</a> 26 27 <a name="currency"><h3>Important Currency changes</h3></a> 28 <p> 29 In all builds prior to 204, a COM currency value was returned as a tuple of 30 integers. Working with 2 integers to represent a currency object was a poor 31 choice, but the alternative was never clear. Now Python ships with the 32 <a href="http://www.python.org/dev/doc/devel/lib/module-decimal.html">decimal</a> 33 module, the alternative has arrived! 34 </p> 35 <p> 36 Up until build 212, code could set <code>pythoncom.__future_currency__ = True</code> 37 to force use of the decimal module, with a warning issued otherwise. In 38 builds 213 and later, the decimal module is unconditionally used when 39 pythoncon returns you a currency value. 40 </p> 41 42 <h3>Recent Changes</h3> 43 44 <h4>Lots of internal changes on the road to py3k</h4> 45 46 <h4>win32com.axcontrol and win2con.internet</h4> 47 Many more interfaces for hosting AX controls and the interfaces 48 used by Internet Explorer. 49 50 <h4>win32com.shell</h4> 51 The shell interfaces have undergone a number of enhancements and changes. 52 A couple of methods have changed signature between the first build with shell support (200) and later builds. 53 SHGetFileInfo was broken in its result handling, so had to be changed - this 54 is the only function used by the samples that changed, but others not used by the samples also have changed. 55 These shell interfaces are now generally stable. 56 <h4>New win32com.taskscheduler module</h4> 57 Roger Upole has contributed an interface to the Windows task scheduler. This is actually very neat, and it allows 58 Python to edit the task list as shown by Windows Control Panel. Property page suppport may even appear later, 59 now that the win32 library has the new win32rcparser module. 60 <h4>ActiveX Scripting </h4> 61 62 <p>Python only supports "trusted" execution hosts - thus, it will no longer work 63 as an engine inside IE (Python itself no longer has a restricted execution environment). 64 Python continues to work fine as an Active Scripting Engine in all other 65 applications, including Windows Scripting Host, and ASP. 66 67 <p>There is also support for Python as an ActiveX Scripting Host.</p> 68 69 <p>Active Debugging seems to be fully functional.</p> 70 71 <h4>Older stuff</h4> 72 <ul> 73 </li> 74 <li>Unexpected exceptions in Python COM objects will generally now dump 75 the exception and traceback to stdout. This is useful for debugging 76 and testing - it means that in some cases there will be no need to register 77 an object with <span style="font-style: italic;">--debug</span> to see these 78 tracebacks. Note that COM objects used by server processes (such as 79 ASP) generally have no valid stdout, so will still need to use <span 80 style="font-style: italic;">--debug</span> as usual.<br> 81 </li> 82 <li>universal gateway support has been improved - we can now work as an 83 Outlook Addin<br> 84 </li> 85 86 </body> 87 </html>