CHANGES 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. Changelog for six
  2. =================
  3. This file lists the changes in each six version.
  4. 1.9.0
  5. -----
  6. - Issue #106: Support the `flush` parameter to `six.print_`.
  7. - Pull request #48 and issue #15: Add the `python_2_unicode_compatible`
  8. decorator.
  9. - Pull request #57 and issue #50: Add several compatibility methods for unittest
  10. assertions that were renamed between Python 2 and 3.
  11. - Issue #105 and pull request #58: Ensure `six.wraps` respects the *updated* and
  12. *assigned* arguments.
  13. - Issue #102: Add `raise_from` to abstract out Python 3's raise from syntax.
  14. - Issue #97: Optimize `six.iterbytes` on Python 2.
  15. - Issue #98: Fix `six.moves` race condition in multi-threaded code.
  16. - Pull request #51: Add `six.view(keys|values|itmes)`, which provide dictionary
  17. views on Python 2.7+.
  18. 1.8.0
  19. -----
  20. - Issue #90: Add `six.moves.shlex_quote`.
  21. - Issue #59: Add `six.moves.intern`.
  22. - Add `six.urllib.parse.uses_(fragment|netloc|params|query|relative)`.
  23. - Issue #88: Fix add_metaclass when the class has `__slots__` containing
  24. `__weakref__` or `__dict__`.
  25. - Issue #89: Make six use absolute imports.
  26. - Issue #85: Always accept *updated* and *assigned* arguments for `wraps()`.
  27. - Issue #86: In `reraise()`, instantiate the exception if the second argument is
  28. `None`.
  29. - Pull request #45: Add `six.moves.email_mime_nonmultipart`.
  30. - Issue #81: Add `six.urllib.request.splittag` mapping.
  31. - Issue #80: Add `six.urllib.request.splituser` mapping.
  32. 1.7.3
  33. -----
  34. - Issue #77: Fix import six on Python 3.4 with a custom loader.
  35. - Issue #74: `six.moves.xmlrpc_server` should map to `SimpleXMLRPCServer` on Python
  36. 2 as documented not `xmlrpclib`.
  37. 1.7.2
  38. -----
  39. - Issue #72: Fix installing on Python 2.
  40. 1.7.1
  41. -----
  42. - Issue #71: Make the six.moves meta path importer handle reloading of the six
  43. module gracefully.
  44. 1.7.0
  45. -----
  46. - Pull request #30: Implement six.moves with a PEP 302 meta path hook.
  47. - Pull request #32: Add six.wraps, which is like functools.wraps but always sets
  48. the __wrapped__ attribute.
  49. - Pull request #35: Improve add_metaclass, so that it doesn't end up inserting
  50. another class into the hierarchy.
  51. - Pull request #34: Add import mappings for dummy_thread.
  52. - Pull request #33: Add import mappings for UserDict and UserList.
  53. - Pull request #31: Select the implementations of dictionary iterator routines
  54. at import time for a 20% speed boost.
  55. 1.6.1
  56. -----
  57. - Raise an AttributeError for six.moves.X when X is a module not available in
  58. the current interpreter.
  59. 1.6.0
  60. -----
  61. - Raise an AttributeError for every attribute of unimportable modules.
  62. - Issue #56: Make the fake modules six.moves puts into sys.modules appear not to
  63. have a __path__ unless they are loaded.
  64. - Pull request #28: Add support for SplitResult.
  65. - Issue #55: Add move mapping for xmlrpc.server.
  66. - Pull request #29: Add move for urllib.parse.splitquery.
  67. 1.5.2
  68. -----
  69. - Issue #53: Make the fake modules six.moves puts into sys.modules appear not to
  70. have a __name__ unless they are loaded.
  71. 1.5.1
  72. -----
  73. - Issue #51: Hack around the Django autoreloader after recent six.moves changes.
  74. 1.5.0
  75. -----
  76. - Removed support for Python 2.4. This is because py.test no longer supports
  77. 2.4.
  78. - Fix various import problems including issues #19 and #41. six.moves modules
  79. are now lazy wrappers over the underlying modules instead of the actual
  80. modules themselves.
  81. - Issue #49: Add six.moves mapping for tkinter.ttk.
  82. - Pull request #24: Add __dir__ special method to six.moves modules.
  83. - Issue #47: Fix add_metaclass on classes with a string for the __slots__
  84. variable.
  85. - Issue #44: Fix interpretation of backslashes on Python 2 in the u() function.
  86. - Pull request #21: Add import mapping for urllib's proxy_bypass function.
  87. - Issue #43: Add import mapping for the Python 2 xmlrpclib module.
  88. - Issue #39: Add import mapping for the Python 2 thread module.
  89. - Issue #40: Add import mapping for the Python 2 gdbm module.
  90. - Issue #35: On Python versions less than 2.7, print_ now encodes unicode
  91. strings when outputing to standard streams. (Python 2.7 handles this
  92. automatically.)
  93. 1.4.1
  94. -----
  95. - Issue #32: urllib module wrappings don't work when six is not a toplevel file.
  96. 1.4.0
  97. -----
  98. - Issue #31: Add six.moves mapping for UserString.
  99. - Pull request #12: Add six.add_metaclass, a decorator for adding a metaclass to
  100. a class.
  101. - Add six.moves.zip_longest and six.moves.filterfalse, which correspond
  102. respectively to itertools.izip_longest and itertools.ifilterfalse on Python 2
  103. and itertools.zip_longest and itertools.filterfalse on Python 3.
  104. - Issue #25: Add the unichr function, which returns a string for a Unicode
  105. codepoint.
  106. - Issue #26: Add byte2int function, which complements int2byte.
  107. - Add a PY2 constant with obvious semantics.
  108. - Add helpers for indexing and iterating over bytes: iterbytes and indexbytes.
  109. - Add create_bound_method() wrapper.
  110. - Issue #23: Allow multiple base classes to be passed to with_metaclass.
  111. - Issue #24: Add six.moves.range alias. This exactly the same as the current
  112. xrange alias.
  113. - Pull request #5: Create six.moves.urllib, which contains abstractions for a
  114. bunch of things which are in urllib in Python 3 and spread out across urllib,
  115. urllib2, and urlparse in Python 2.
  116. 1.3.0
  117. -----
  118. - Issue #21: Add methods to access the closure and globals of a function.
  119. - In six.iter(items/keys/values/lists), passed keyword arguments through to the
  120. underlying method.
  121. - Add six.iterlists().
  122. - Issue #20: Fix tests if tkinter is not available.
  123. - Issue #17: Define callable to be builtin callable when it is available again
  124. in Python 3.2+.
  125. - Issue #16: Rename Python 2 exec_'s arguments, so casually calling exec_ with
  126. keyword arguments will raise.
  127. - Issue #14: Put the six.moves package in sys.modules based on the name six is
  128. imported under.
  129. - Fix Jython detection.
  130. - Pull request #4: Add email_mime_multipart, email_mime_text, and
  131. email_mime_base to six.moves.
  132. 1.2.0
  133. -----
  134. - Issue #13: Make iterkeys/itervalues/iteritems return iterators on Python 3
  135. instead of iterables.
  136. - Issue #11: Fix maxsize support on Jython.
  137. - Add six.next() as an alias for six.advance_iterator().
  138. - Use the builtin next() function for advance_iterator() where is available
  139. (2.6+), not just Python 3.
  140. - Add the Iterator class for writing portable iterators.
  141. 1.1.0
  142. -----
  143. - Add the int2byte function.
  144. - Add compatibility mappings for iterators over the keys, values, and items of a
  145. dictionary.
  146. - Fix six.MAXSIZE on platforms where sizeof(long) != sizeof(Py_ssize_t).
  147. - Issue #3: Add six.moves mappings for filter, map, and zip.
  148. 1.0.0
  149. -----
  150. - Issue #2: u() on Python 2.x now resolves unicode escapes.
  151. - Expose an API for adding mappings to six.moves.
  152. 1.0 beta 1
  153. ----------
  154. - Reworked six into one .py file. This breaks imports. Please tell me if you
  155. are interested in an import compatibility layer.