Skip to content

Updates from Python SVN, Part 15

  • Added support for linking the bsddb module against BerkeleyDB 4.5.x and 4.6.x.

  • Added set_completion_display_matches_hook and get_completion_type to readline module.

  • Added a c_longdouble type to the ctypes module.

  • abc.py and isinstance/issubclass overloading have been backported. See PEP 3119 for details about Abstract Base Classes.

  • generator’s throw() doesn’t support string exceptions anymore:

[code lang="python"] Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information.

def f(): yield 1 ... a = f() a.throw("error") Traceback (most recent call last): File "", line 1, in File "", line 1, in f error

Python 2.6a0 (trunk:58159M, Sep 15 2007, 13:43:25) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information.

def f(): yield 1 ... a = f() a.throw("error") Traceback (most recent call last): File "", line 1, in TypeError: exceptions must be classes, or instances, not str [/code]

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • Facebook
  • Twitter
  • Google Bookmarks
  • FriendFeed
  • Google Buzz
  • HackerNews
  • Posterous
  • Reddit
  • Slashdot
  • Tumblr