inicio mail me! sindicaci;ón

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]

Related posts

  • Updates from Python SVN, Part 12
  • Updates from Python SVN, Part 6
  • Updates from Python SVN, Part 10
  • Updates from Python SVN, Part 11
  • Updates from Python SVN, Part 16
  • Gravatar

    Mike’s Musings » Updates from Python SVN, Part 15 said,

    September 17, 2007 @ 6:56 pm

    [...] Perps wrote an interesting post today onHere’s a quick excerpt[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): … [...]

    RSS feed for comments on this post · TrackBack URI

    Leave a Comment