@@ -229,7 +229,7 @@ synchronization between C (``std*``) and C++ (``std::c*``) streams using: ::
229
229
Python
230
230
------
231
231
232
- Python supports Unicode since its version 2.0 released in october 2000.
232
+ Python supports Unicode since its version 2.0 released in October 2000.
233
233
:ref: `Byte <bytes >` and :ref: `Unicode <str >` strings store their length, so
234
234
it's possible to embed nul byte/character.
235
235
@@ -263,7 +263,7 @@ In Python 2, ``str + unicode`` gives ``unicode``: the byte string is
263
263
because it was the source of a lot of confusion. At the same time, it was not
264
264
possible to switch completely to Unicode in 2000: computers were slower and
265
265
there were fewer Python core developers. It took 8 years to switch completely to
266
- Unicode: Python 3 was relased in december 2008.
266
+ Unicode: Python 3 was relased in December 2008.
267
267
268
268
Narrow build of Python 2 has a partial support of :ref: `non-BMP <bmp >`
269
269
characters. The unichr() function raises an error for code bigger than U+FFFF,
@@ -331,7 +331,7 @@ It is possible to make Python 2 behave more like Python 3 with
331
331
Codecs
332
332
''''''
333
333
334
- The ``codecs `` and ``encodings `` module provide text encodings. They supports a lot of
334
+ The ``codecs `` and ``encodings `` modules provide text encodings. They support a lot of
335
335
encodings. Some examples: ASCII, ISO-8859-1, UTF-8, UTF-16-LE,
336
336
ShiftJIS, Big5, cp037, cp950, EUC_JP, etc.
337
337
@@ -411,7 +411,7 @@ filesystem encoding, ``sys.getfilesystemencoding()``:
411
411
Python uses the ``strict `` :ref: `error handler <errors >` in Python 2, and
412
412
``surrogateescape `` (PEP 383) in Python 3. In Python 2, if ``os.listdir(u'.') ``
413
413
cannot decode a filename, it keeps the bytes filename unchanged. Thanks to
414
- ``surrogateescape ``, decode a filename does never fail in Python 3. But
414
+ ``surrogateescape ``, decoding a filename never fails in Python 3. But
415
415
encoding a filename can fail in Python 2 and 3 depending on the filesystem
416
416
encoding. For example, on Linux with the C locale, the Unicode filename
417
417
``"h\xe9.py" `` cannot be encoded because the filesystem encoding is ASCII.
@@ -496,7 +496,7 @@ In PHP 5, a literal string (e.g. ``"abc"``) is a :ref:`byte string <bytes>`.
496
496
PHP has no :ref: `character string <str >` type, only a "string" type which is a
497
497
:ref: `byte string <bytes >`.
498
498
499
- PHP have "multibyte" functions to manipulate byte strings using their encoding.
499
+ PHP has "multibyte" functions to manipulate byte strings using their encoding.
500
500
These functions have an optional encoding argument. If the encoding is not
501
501
specified, PHP uses the default encoding (called "internal encoding"). Some
502
502
multibyte functions:
@@ -522,7 +522,7 @@ process byte strings as UTF-8 encoded strings.
522
522
523
523
.. todo :: u flag: instead of which encoding?
524
524
525
- PHP includes also a binding of the :ref: `iconv <iconv >` library.
525
+ PHP also includes a binding for the :ref: `iconv <iconv >` library.
526
526
527
527
* ``iconv() ``: :ref: `decode <decode >` a :ref: `byte string <bytes >` from an
528
528
encoding and :ref: `encode <encode >` to another encoding, you can use
0 commit comments