Skip to content

Updates from Python SVN, Part 17

  • decimal module:

    • There’s a bunch of is_* methods (like is_signed()) in Decimal class returning a boolean value.
    • Added an internal class to store the digits of log(10), so that they can be made available when necessary without recomputing.
  • enumerate() is no longer bounded to using sequences shorter than LONG_MAX. Formerly, it raised an OverflowError. Now, automatically shifts from ints to longs.

  • itertools.count() is no longer bounded to LONG_MAX. Formerly, it raised an OverflowError. Now, automatically shifts from ints to longs.

  • collections module:

    • NamedTuple became named_tuple.
    • named_tuple field specification can be a string or a list of strings.
    • _ _ asdict _ _() have been added to convert a named tuple instance to dict.
    • Add maxlen support to deque().
  • Splits Modules/_bsddb.c up into bsddb.h and _bsddb.c and adds a C API object available as bsddb.db.api.

One Trackback/Pingback

  1. A song for the lovers » Updates from Python SVN, Part 18 on Saturday, November 24, 2007 at 4:55 pm

    [...] been definitely a while since my last update but having a new job changes a lot my [...]

Additional comments powered by BackType