mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
Spelling.
This commit is contained in:
parent
a0266335f5
commit
68f1e8d87f
1 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ legacy code that depends on it.
|
||||||
|
|
||||||
Here's an annotated example parser showing features like limiting results to a
|
Here's an annotated example parser showing features like limiting results to a
|
||||||
set of choices, specifying a *metavar* in the help screen, validating that one
|
set of choices, specifying a *metavar* in the help screen, validating that one
|
||||||
or more postional arguments is present, and making a required option::
|
or more positional arguments is present, and making a required option::
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
|
@ -351,7 +351,7 @@ Other Language Changes
|
||||||
|
|
||||||
Some smaller changes made to the core Python language are:
|
Some smaller changes made to the core Python language are:
|
||||||
|
|
||||||
* :class:`bytes` and :class:`str` now have two net methods, *tranform* and *untransform*.
|
* :class:`bytes` and :class:`str` now have two net methods, *transform* and *untransform*.
|
||||||
These provided analogues to *encode* and *decode* but are used for general purpose
|
These provided analogues to *encode* and *decode* but are used for general purpose
|
||||||
string-to-string and bytes-to-bytes transformations rather than Unicode codecs.
|
string-to-string and bytes-to-bytes transformations rather than Unicode codecs.
|
||||||
|
|
||||||
|
@ -753,7 +753,7 @@ New, Improved, and Deprecated Modules
|
||||||
a new :attr:`~unittest.TestCase.maxDiff` attribute which sets maximum length of
|
a new :attr:`~unittest.TestCase.maxDiff` attribute which sets maximum length of
|
||||||
diffs.
|
diffs.
|
||||||
|
|
||||||
In addition the naming in the module has ungone a number of clean-ups. For
|
In addition the naming in the module has undergone a number of clean-ups. For
|
||||||
example, :meth:`~unittest.TestCase.assertRegex` is the new name for
|
example, :meth:`~unittest.TestCase.assertRegex` is the new name for
|
||||||
:meth:`~unittest.TestCase.assertRegexpMatches` which was misnamed because the
|
:meth:`~unittest.TestCase.assertRegexpMatches` which was misnamed because the
|
||||||
test uses :func:`re.search`, not :func:`re.match`.
|
test uses :func:`re.search`, not :func:`re.match`.
|
||||||
|
@ -915,7 +915,7 @@ New, Improved, and Deprecated Modules
|
||||||
listing source code.
|
listing source code.
|
||||||
- new commands: ``display`` and ``undisplay`` for showing or hiding
|
- new commands: ``display`` and ``undisplay`` for showing or hiding
|
||||||
the value of an expression if it has changed.
|
the value of an expression if it has changed.
|
||||||
- new command: ``interact`` for starting an interative interpreter containing
|
- new command: ``interact`` for starting an interactive interpreter containing
|
||||||
the global and local names found in the current scope.
|
the global and local names found in the current scope.
|
||||||
- breakpoints can be cleared by breakpoint number
|
- breakpoints can be cleared by breakpoint number
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue