Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: Doc/whatsnew/3.3.rst

Issue 15573: Support unknown formats in memoryview comparisons
Patch Set: Created 7 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/stdtypes.rst ('k') | Lib/test/test_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 **************************** 1 ****************************
2 What's New In Python 3.3 2 What's New In Python 3.3
3 **************************** 3 ****************************
4 4
5 :Author: Raymond Hettinger 5 :Author: Raymond Hettinger
6 :Release: |release| 6 :Release: |release|
7 :Date: |today| 7 :Date: |today|
8 8
9 .. Rules for maintenance: 9 .. Rules for maintenance:
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 * With some restrictions, the cast() method allows changing of format and 119 * With some restrictions, the cast() method allows changing of format and
120 shape of C-contiguous arrays. 120 shape of C-contiguous arrays.
121 121
122 * Multi-dimensional list representations are supported for any array type. 122 * Multi-dimensional list representations are supported for any array type.
123 123
124 * Multi-dimensional comparisons are supported for any array type. 124 * Multi-dimensional comparisons are supported for any array type.
125 125
126 * All array types are hashable if the exporting object is hashable 126 * All array types are hashable if the exporting object is hashable
127 and the view is read-only. (Contributed by Antoine Pitrou in 127 and the view is read-only. (Contributed by Antoine Pitrou in
128 :issue:`13411`) 128 :issue:`13411`)
129
130 129
131 * Arbitrary slicing of any 1-D arrays type is supported. For example, it 130 * Arbitrary slicing of any 1-D arrays type is supported. For example, it
132 is now possible to reverse a memoryview in O(1) by using a negative step. 131 is now possible to reverse a memoryview in O(1) by using a negative step.
133 132
134 API changes 133 API changes
135 ----------- 134 -----------
136 135
137 * The maximum number of dimensions is officially limited to 64. 136 * The maximum number of dimensions is officially limited to 64.
138 137
139 * The representation of empty shape, strides and suboffsets is now 138 * The representation of empty shape, strides and suboffsets is now
140 an empty tuple instead of None. 139 an empty tuple instead of None.
141 140
142 * Accessing a memoryview element with format 'B' (unsigned bytes) 141 * Accessing a memoryview element with format 'B' (unsigned bytes)
143 now returns an integer (in accordance with the struct module syntax). 142 now returns an integer (in accordance with the struct module syntax).
144 For returning a bytes object the view must be cast to 'c' first. 143 For returning a bytes object the view must be cast to 'c' first.
144
145 * memoryview comparisons now use the logical structure of the operands
146 and compare all array elements by value. All format strings in struct
147 module syntax are supported. Views with unrecognised format strings
148 are still permitted, but will always compare as unequal, regardless
149 of view contents.
145 150
146 * For further changes see `Build and C API Changes`_ and `Porting C code`_ . 151 * For further changes see `Build and C API Changes`_ and `Porting C code`_ .
147 152
148 .. _pep-393: 153 .. _pep-393:
149 154
150 PEP 393: Flexible String Representation 155 PEP 393: Flexible String Representation
151 ======================================= 156 =======================================
152 157
153 The Unicode string type is changed to support multiple internal 158 The Unicode string type is changed to support multiple internal
154 representations, depending on the character with the largest Unicode ordinal 159 representations, depending on the character with the largest Unicode ordinal
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1921 ------------ 1926 ------------
1922 1927
1923 .. Issue #11591: When :program:`python` was started with :option:`-S`, 1928 .. Issue #11591: When :program:`python` was started with :option:`-S`,
1924 ``import site`` will not add site-specific paths to the module search 1929 ``import site`` will not add site-specific paths to the module search
1925 paths. In previous versions, it did. See changeset for doc changes in 1930 paths. In previous versions, it did. See changeset for doc changes in
1926 various files. Contributed by Carl Meyer with editions by Éric Araujo. 1931 various files. Contributed by Carl Meyer with editions by Éric Araujo.
1927 1932
1928 .. Issue #10998: the -Q command-line flag and related artifacts have been 1933 .. Issue #10998: the -Q command-line flag and related artifacts have been
1929 removed. Code checking sys.flags.division_warning will need updating. 1934 removed. Code checking sys.flags.division_warning will need updating.
1930 Contributed by Éric Araujo. 1935 Contributed by Éric Araujo.
OLDNEW
« no previous file with comments | « Doc/library/stdtypes.rst ('k') | Lib/test/test_buffer.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+