todo.txt 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. .. -*- mode: rst -*-
  2. ====================================
  3. Boost.Python_ TODO list |(logo)|__
  4. ====================================
  5. .. |(logo)| image:: ../../boost.png
  6. :alt: Boost
  7. :class: boost-logo
  8. __ ../../index.htm
  9. .. _`Boost.Python`: index.html
  10. :copyright: Copyright David Abrahams 2003. Use, modification, and
  11. distribution are subject to the Boost Software License, Version
  12. 1.0. (See accompanying file `LICENSE_1_0.txt`_ or copy at
  13. http://www.boost.org/LICENSE_1_0.txt)
  14. .. contents:: Outline
  15. .. _`LICENSE_1_0.txt`: ../../LICENSE_1_0.txt
  16. Class Support
  17. =============
  18. Base Class for Virtual Function Callback Wrappers
  19. -------------------------------------------------
  20. * http://aspn.activestate.com/ASPN/Mail/Message/c++-sig/1456023
  21. (bottom of message)
  22. * http://mail.python.org/pipermail/c++-sig/2003-August/005297.html
  23. (search for ``VirtualDispatcher``) describes how callback classes
  24. can swap ownership relationship with their Python wrappers.
  25. * http://aspn.activestate.com/ASPN/Mail/Message/c++-sig/1860301
  26. describes how this can also be used to considerably simplify
  27. callback classes, solve some "dangling reference" problems, and
  28. optimize the calling of non-overridden virtual functions.
  29. Miscellaneous
  30. =============
  31. Support for Enums with Duplicate Values
  32. ---------------------------------------
  33. Scott Snyder provided a patch; Dave was dissatisfied for some
  34. reason, but maybe it should just be applied if no further action
  35. occurs http://aspn.activestate.com/ASPN/Mail/Message/1824616.
  36. Functions
  37. =========
  38. Wrapping Function Objects
  39. --------------------------
  40. It should be possible to wrap classes which support ``operator()``
  41. as Python methods.
  42. http://mail.python.org/pipermail/c++-sig/2003-August/005184.html
  43. "Best Match" Overload Resolution
  44. --------------------------------
  45. Overload resolution currently depends on the order in which ``def``
  46. calls are made (preferring later overloads). This should be
  47. changed so that the best-matching overload is always selected.
  48. This may await Langbinding_ integration, since the technology is
  49. already in Luabind_.
  50. .. _Luabind: http://luabind.sf.net
  51. Type Converters
  52. ===============
  53. Lvalue conversions from non-const ``PyTypeObject*``\ s
  54. ------------------------------------------------------
  55. http://aspn.activestate.com/ASPN/Mail/Message/C++-sig/1662717
  56. Converter Scoping
  57. -----------------
  58. http://article.gmane.org/gmane.comp.python.c++/2044
  59. If this gets done at all, it is going to happen in conjunction
  60. with `Luabind integration`__.
  61. __ Langbinding_
  62. ``boost::tuple``
  63. ----------------
  64. Conversions to and from Python would be nice. See
  65. http://news.gmane.org/find-root.php?message_id=%3cuvewak97m.fsf%40boost%2dconsulting.com%3e
  66. ``FILE*`` conversions
  67. ---------------------
  68. http://aspn.activestate.com/ASPN/Mail/Message/1411366
  69. ``void*`` conversions
  70. ---------------------
  71. Pointers to *cv* ``void`` should be able to be passed and
  72. returned as opaque values.
  73. Post-Call Actions
  74. -----------------
  75. From-Python converters should be passed an extra reference to a
  76. chain of post-call actions in the Policies object, where they can
  77. register an additional action. See the end of
  78. http://aspn.activestate.com/ASPN/Mail/Message/C++-sig/1755435
  79. ``PyUnicode`` Support
  80. ---------------------
  81. Review and possibly incorporate changes from `Lijun Qin`_ at
  82. http://aspn.activestate.com/ASPN/Mail/Message/C++-sig/1771145
  83. .. _`Lijun Qin`: mailto:qinlj-at-solidshare.com
  84. Ownership Metadata
  85. ------------------
  86. In the thread at
  87. http://aspn.activestate.com/ASPN/Mail/Message/c++-sig/1860301,
  88. Niall Douglas describes an idea for solving some "false"
  89. dangling pointer/reference return errors by attaching data about
  90. objects which lets the framework determine that the reference
  91. count on an object doesn't tell us anything about the lifetime
  92. of its data.
  93. Documentation
  94. =============
  95. Builtin Converters
  96. ------------------
  97. Builtin correspondences between builtiin Python types and C++
  98. types need to be documented
  99. Internals
  100. ---------
  101. The structure of the framework needs to get documented; `Brett
  102. Calcott`_ has promised to turn `this document`__ into something fit
  103. for users
  104. __ doc/internals.html
  105. .. _`Brett Calcott`: mailto:brett.calcott-at-paradise.net.nz
  106. Large Scale
  107. ===========
  108. Full Threading Support
  109. ----------------------
  110. Various people have proposed patches to improve threading support
  111. in Boost.Python: see the thread at
  112. http://aspn.activestate.com/ASPN/Mail/Message/1826544 and
  113. http://aspn.activestate.com/ASPN/Mail/Message/1865842 for some
  114. examples. The only problem is that these are incomplete
  115. solutions and verifying that we *do* have a complete solution is
  116. going to take some time and attention.
  117. Langbinding
  118. -----------
  119. This project to generalizes Boost.Python to work for other
  120. languages, initially Lua. See discussions at
  121. http://lists.sourceforge.net/lists/listinfo/boost-langbinding
  122. Refactoring and Reorganization
  123. ------------------------------
  124. http://aspn.activestate.com/ASPN/Mail/Message/c++-sig/1673338
  125. NumArray Support Enhancements
  126. -----------------------------
  127. Consider integrating the enhancements described in
  128. http://aspn.activestate.com/ASPN/Mail/Message/C++-sig/1757092
  129. ``PyFinalize`` Safety
  130. ---------------------
  131. Currently Boost.Python has several global (or function-static)
  132. objects whose existence keeps reference counts from dropping to
  133. zero until the Boost.Python shared object is unloaded. This can
  134. cause a crash because when the reference counts *do* go to zero,
  135. there's no interpreter. In order to make it safe to call
  136. ``PyFinalize()`` we must register an ``atexit`` routine which
  137. destroys these objects and releases all Python reference counts
  138. so that Python can clean them up while there's still an
  139. interpreter. `Dirk Gerrits`_ has promised to do this job.
  140. .. _`Dirk Gerrits`: mailto:dirk-at-gerrits.homeip.net