diff --git a/README.rst b/README.rst index a5cd2e6..f9b387b 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ Parse strings using a specification based on the Python format() syntax. ``parse()`` is the opposite of ``format()`` The module is set up to only export ``parse()``, ``search()`` and -``findall()`` when "import *" is used: +``findall()`` when ``import *`` is used: >>> from parse import * @@ -36,7 +36,7 @@ compile it once: >>> p.parse("It's spam, I love it!") -("compile" is not exported for "import *" usage as it would override the +("compile" is not exported for ``import *`` usage as it would override the built-in ``compile()`` function) @@ -229,8 +229,8 @@ with the same identifier. **Version history (in brief)**: -- 1.3 added search() and findall(); removed compile() from "import *" export - as it overwrites builtin. +- 1.3 added search() and findall(); removed compile() from ``import *`` + export as it overwrites builtin. - 1.2 added ability for custom and override type conversions to be provided; some cleanup - 1.1.9 to keep things simpler number sign is handled automatically; diff --git a/parse.py b/parse.py index b6fba9b..a4c94bf 100644 --- a/parse.py +++ b/parse.py @@ -3,7 +3,7 @@ ``parse()`` is the opposite of ``format()`` The module is set up to only export ``parse()``, ``search()`` and -``findall()`` when "import *" is used: +``findall()`` when ``import *`` is used: >>> from parse import * @@ -32,7 +32,7 @@ compile it once: >>> p.parse("It's spam, I love it!") -("compile" is not exported for "import *" usage as it would override the +("compile" is not exported for ``import *`` usage as it would override the built-in ``compile()`` function) @@ -225,8 +225,8 @@ with the same identifier. **Version history (in brief)**: -- 1.3 added search() and findall(); removed compile() from "import *" export - as it overwrites builtin. +- 1.3 added search() and findall(); removed compile() from ``import *`` + export as it overwrites builtin. - 1.2 added ability for custom and override type conversions to be provided; some cleanup - 1.1.9 to keep things simpler number sign is handled automatically;