readme.htm 3.7 KB

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