inicio mail me! sindicaci;ón

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.

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

    A song for the lovers » Updates from Python SVN, Part 18 said,

    November 24, 2007 @ 4:55 pm

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

    RSS feed for comments on this post · TrackBack URI

    Leave a Comment