|
Original |
Translation |
|
2889
|
Added a new :cfunc:`PyOS_string_to_double` function to replace the deprecated functions :cfunc:`PyOS_ascii_strtod` and :cfunc:`PyOS_ascii_atof`.
|
|
|
2890
|
(Contributed by Mark Dickinson; :issue:`5914`.)
|
|
|
2891
|
Added :ctype:`PyCapsule` as a replacement for the :ctype:`PyCObject` API. The principal difference is that the new type has a well defined interface for passing typing safety information and a less complicated signature for calling a destructor. The old type had a problematic API and is now deprecated.
|
|
|
2892
|
(Contributed by Larry Hastings; :issue:`5630`.)
|
|
|
2893
|
|
2894
|
The new floating point string representations can break existing doctests. For example::
|
|
|
2895
|
def e(): '''Compute the base of natural logarithms. >>> e() 2.7182818284590451 ''' return sum(1/math.factorial(x) for x in reversed(range(30))) doctest.testmod() ********************************************************************** Failed example: e() Expected: 2.7182818284590451 Got: 2.718281828459045 **********************************************************************
|
|
|
2896
|
The automatic name remapping in the pickle module for protocol 2 or lower can make Python 3.1 pickles unreadable in Python 3.0. One solution is to use protocol 3. Another solution is to set the *fix_imports* option to **False**. See the discussion above for more details.
|
|
|
2897
|
|
|
|
2898
|
This article explains the new features in Python 3.2, compared to 3.1.
|
|