Debian Codegraph @

pypy/doc/release-pypy2.7-v5.6.0.rst

raw
1 ============
2 PyPy2.7 v5.6
3 ============
4
5 We have released PyPy2.7 v5.6, about two months after PyPy2.7 v5.4.
6 This new PyPy2.7 release includes the upstream stdlib version 2.7.12.
7
8 We continue to make incremental improvements to our C-API
9 compatibility layer (cpyext). We pass all but a few of the tests in the
10 upstream numpy test suite.
11
12 Work proceeds at a good pace on the PyPy3.5
13 version due to a grant_ from the Mozilla Foundation, and some of those
14 changes have been backported to PyPy2.7 where relevant.
15
16 The PowerPC and s390x backend have been enhanced_ with the capability use SIMD instructions
17 for micronumpy loops.
18
19 We changed ``timeit`` to now report average +- standard deviation, which is
20 better than the misleading minimum value reported in CPython.
21
22 We now support building PyPy with OpenSSL 1.1 in our built-in _ssl module, as
23 well as maintaining support for previous versions.
24
25 CFFI_ has been updated to 1.9, improving an already great package for
26 interfacing with C.
27
28 As always, this release fixed many issues and bugs raised by the
29 growing community of PyPy users. We strongly recommend updating.
30
31 You can download the PyPy2.7 v5.6 release here:
32
33 https://pypy.org/download.html
34
35 We would like to thank our donors for the continued support of the PyPy
36 project.
37
38 We would also like to thank our contributors and
39 encourage new people to join the project. PyPy has many
40 layers and we need help with all of them: `PyPy`_ and `RPython`_ documentation
41 improvements, tweaking popular `modules`_ to run on pypy, or general `help`_
42 with making RPython's JIT even better.
43
44 .. _CFFI: https://cffi.readthedocs.io/en/latest/whatsnew.html
45 .. _grant: https://morepypy.blogspot.com/2016/08/pypy-gets-funding-from-mozilla-for.html
46 .. _`PyPy`: https://doc.pypy.org
47 .. _`RPython`: https://rpython.readthedocs.org
48 .. _`modules`: https://doc.pypy.org/project-ideas.html#make-more-python-modules-pypy-friendly
49 .. _`help`: https://doc.pypy.org/project-ideas.html
50 .. _`enhanced`: https://morepypy.blogspot.co.at/2016/11/vectorization-extended-powerpc-and-s390x.html
51
52 What is PyPy?
53 =============
54
55 PyPy is a very compliant Python interpreter, almost a drop-in replacement for
56 CPython 2.7. It's fast (`PyPy and CPython 2.7.x`_ performance comparison)
57 due to its integrated tracing JIT compiler.
58
59 We also welcome developers of other `dynamic languages`_ to see what RPython
60 can do for them.
61
62 This release supports:
63
64 * **x86** machines on most common operating systems
65 (Linux 32/64 bits, Mac OS X 64 bits, Windows 32 bits, OpenBSD, FreeBSD)
66
67 * newer **ARM** hardware (ARMv6 or ARMv7, with VFPv3) running Linux,
68
69 * big- and little-endian variants of **PPC64** running Linux,
70
71 * **s390x** running Linux
72
73 .. _`PyPy and CPython 2.7.x`: https://speed.pypy.org
74 .. _`dynamic languages`: https://rpython.readthedocs.io/en/latest/examples.html
75
76 Other Highlights (since 5.4 released Aug 31, 2016)
77 =========================================================
78
79 * New features
80
81 * Allow tests run with `-A` to find `libm.so` even if it is a script not a
82 dynamically loadable file
83 * Backport fixes to rposix on windows from py3.5
84 * Allow user-defined ``__getitem__`` on subclasses of ``str`` and ``unicode``
85 * Add ``inode`` to ``scandir()`` on posix systems
86 * Support more attributes on ``super``
87 * Issue #2386: non-latin1 unicode keys were ignored in ``unicode.format(**d)``
88 * Restore the ability to translate with CPython
89 * Update to CFFI 1.9.0
90 * Support the new buffer protocol in cpyext and numpypy
91 * Add ``rposix.sync()``
92 * Support full-precision nanosecond times in os.stat()
93 * Add documentation about the assembler backends to RPYthon
94 * Search for the stdlibs from the libpypy shared object rather than the pypy-c exe,
95 changes downstream packaging requirements
96 * Add ``try_inline``, like ``always_inline`` and ``dont_inline`` to RPython
97 * Reject ``'a'.strip(buffer(' '))`` like cpython (the argument to strip must
98 be ``str`` or ``unicode``)
99 * Allow ``warning.warn(('something', 1), Warning)`` like on CPython
100 * Refactor ``rclock`` and add some more ``CLOCK_xxx`` constants on
101 relevant platforms
102 * Backport the ``faulthandler`` module from py3.5
103 * Improve the error message when trying to call a method where the ``self``
104 parameter is missing in the definition
105 * Implement ``rposix.cpu_count``
106 * Support translation on FreeBSD running on PowerPC
107 * Implement ``__rmod__`` on ``str`` and ``unicode`` types
108 * Issue warnings for stricter handling of ``__new__``, ``__init__`` args
109 * When using ``struct.unpack('q', ...`` try harder to prefer int to long
110 * Support OpenSSL version 1.1 (in addition to version 1.0)
111
112 * Bug Fixes
113
114 * Tweak a float comparison with 0 in `backendopt.inline` to avoid rounding errors
115 * Fix translation of the sandbox
116 * Fix for an issue where `unicode.decode('utf8', 'custom_replace')` messed up
117 the last byte of a unicode string sometimes
118 * fix some calls to functions through window's COM interface
119 * fix minor leak when the C call to socketpair() fails
120 * make sure (-1.0 + 0j).__hash__(), (-1.0).__hash__() returns -2
121 * Fix for an issue where PyBytesResize was called on a fresh pyobj
122 * Fix bug in codewriter about passing the ``exitswitch`` variable to a call
123 * Don't crash in ``merge_if_blocks`` if the values are symbolics
124 * Issue #2325/2361: __class__ assignment between two classes with the same
125 slots
126 * Issue #2409: don't leak the file descriptor when doing ``open('some-dir')``
127 * Windows fixes around vmprof
128 * Don't use ``sprintf()`` from inside a signal handler
129 * Test and fix bug from the ``guard_not_forced_2`` branch, which didn't
130 save the floating-point register
131 * ``_numpypy.add.reduce`` returns a scalar now
132
133 * Performance improvements:
134
135 * Improve method calls on oldstyle classes
136 * Clean and refactor code for testing cpyext to allow sharing with py3.5
137 * Refactor a building the map of reflected ops in ``_numpypy``
138 * Improve merging of virtual states in the JIT in order to avoid jumping to the
139 preamble
140 * In JIT residual calls, if the called function starts with a fast-path like
141 ``if x.foo != 0: return x.foo``, then inline the check before doing the
142 ``CALL``.
143 * Ensure ``make_inputargs`` fails properly when given arguments with type
144 information
145 * Makes ``optimiseopt`` iterative instead of recursive so it can be reasoned
146 about more easily and debugging is faster
147 * Refactor and remove dead code from ``optimizeopt``, ``resume``
148
149
150 .. _resolved: https://doc.pypy.org/whatsnew-5.6.0.html
151
152 Please update, and continue to help us make PyPy better.
153
154 Cheers