Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
488a4f01
Commit
488a4f01
authored
Aug 27, 2008
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add various items
parent
c9b41106
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
Doc/whatsnew/2.6.rst
Doc/whatsnew/2.6.rst
+20
-8
No files found.
Doc/whatsnew/2.6.rst
View file @
488a4f01
...
@@ -951,6 +951,11 @@ and some of the methods of lists, such as :meth:`append`,
...
@@ -951,6 +951,11 @@ and some of the methods of lists, such as :meth:`append`,
>>> b
>>> b
bytearray(b'ABCde')
bytearray(b'ABCde')
There's also a corresponding C API, with
:cfunc:`PyByteArray_FromObject`,
:cfunc:`PyByteArray_FromStringAndSize`,
and various other functions.
.. seealso::
.. seealso::
:pep:`3112` - Bytes literals in Python 3000
:pep:`3112` - Bytes literals in Python 3000
...
@@ -993,14 +998,14 @@ the :mod:`io` module:
...
@@ -993,14 +998,14 @@ the :mod:`io` module:
It supports all of the methods of :class:`RawIOBase`,
It supports all of the methods of :class:`RawIOBase`,
and adds a :attr:`raw` attribute holding the underlying raw object.
and adds a :attr:`raw` attribute holding the underlying raw object.
There are f
our concrete classes implementing this ABC:
There are f
ive concrete classes implementing this ABC.
:class:`BufferedWriter` and
:class:`BufferedWriter` and
:class:`BufferedReader` are for objects
:class:`BufferedReader` for objects that only support
that only support writing or reading and don't support random
writing or reading and don't support random access,
access. :class:`BufferedRandom` adds the :meth:`seek` method for
:class:`BufferedRandom` for objects that support the :meth:`seek` method
random access, and :class:`BufferedRWPair` is for objects such as
for random access,
TTYs that have both read and write operations that act upon
and :class:`BufferedRWPair` for objects such as TTYs that have
unconnected streams of data. The :class:`BytesIO`
both read and write operations that act upon unconnected streams of data
.
class supports reading, writing, and seeking over an in-memory buffer
.
* :class:`TextIOBase`: Provides functions for reading and writing
* :class:`TextIOBase`: Provides functions for reading and writing
strings (remember, strings will be Unicode in Python 3.0),
strings (remember, strings will be Unicode in Python 3.0),
...
@@ -2807,6 +2812,13 @@ where various combinations of ``(start, stop, step)`` are supplied.
...
@@ -2807,6 +2812,13 @@ where various combinations of ``(start, stop, step)`` are supplied.
.. Revision 57769
.. Revision 57769
All :mod:`ctypes` data types now support
:meth:`from_buffer` and :meth:`from_buffer_copy`
methods that create a ctypes instance based on a
provided buffer object. :meth:`from_buffer_copy` copies
the contents of the object,
while :meth:`from_buffer` will share the same memory area.
A new calling convention tells :mod:`ctypes` to clear the ``errno`` or
A new calling convention tells :mod:`ctypes` to clear the ``errno`` or
Win32 LastError variables at the outset of each wrapped call.
Win32 LastError variables at the outset of each wrapped call.
(Implemented by Thomas Heller; :issue:`1798`.)
(Implemented by Thomas Heller; :issue:`1798`.)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment