mirror of
https://github.com/kennethreitz-archive/parse.git
synced 2026-06-05 23:40:17 +00:00
moar
This commit is contained in:
+4
-3
@@ -29,13 +29,14 @@ And some named parsing:
|
||||
>>> r.fixed
|
||||
('there', )
|
||||
|
||||
A ValueError will be raised if there is no match:
|
||||
None will be returned if there is no match:
|
||||
|
||||
>>> r = parse('hello {name:w}', 'hello 12')
|
||||
ValueError: ...
|
||||
>>> print r
|
||||
None
|
||||
|
||||
See also the unit tests at the end of the module for some more
|
||||
examples.
|
||||
examples. Run those with "python -m parse".
|
||||
|
||||
----
|
||||
|
||||
|
||||
@@ -33,13 +33,14 @@ And some named parsing:
|
||||
>>> r.fixed
|
||||
('there', )
|
||||
|
||||
A ValueError will be raised if there is no match:
|
||||
None will be returned if there is no match:
|
||||
|
||||
>>> r = parse('hello {name:w}', 'hello 12')
|
||||
ValueError: ...
|
||||
>>> print r
|
||||
None
|
||||
|
||||
See also the unit tests at the end of the module for some more
|
||||
examples.
|
||||
examples. Run those with "python -m parse".
|
||||
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user