Skip to content

Commit d7a6454

Browse files
committed
Update README examples to include maiden attribute output
The maiden field was added to HumanName's repr and as_dict() output, but the README's Quick Start examples still showed stale output.
1 parent 72135b3 commit d7a6454

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ Quick Start Example
7171
last: 'de la Vega'
7272
suffix: 'III'
7373
nickname: 'Doc Vega'
74+
maiden: ''
7475
]>
7576
>>> name.last
7677
'de la Vega'
7778
>>> name.as_dict()
78-
{'last': 'de la Vega', 'suffix': 'III', 'title': 'Dr.', 'middle': 'Q. Xavier', 'nickname': 'Doc Vega', 'first': 'Juan'}
79+
{'title': 'Dr.', 'first': 'Juan', 'middle': 'Q. Xavier', 'last': 'de la Vega', 'suffix': 'III', 'nickname': 'Doc Vega', 'maiden': ''}
7980
>>> str(name)
8081
'Dr. Juan Q. Xavier de la Vega III (Doc Vega)'
8182
>>> name.string_format = "{first} {last}"
@@ -97,9 +98,10 @@ and "post-nominal" would probably be better names.)
9798
title: ''
9899
first: '3'
99100
middle: '4 5'
100-
last: '1 & 2'
101+
last: '1 & 2'
101102
suffix: 'Mr.'
102103
nickname: ''
104+
maiden: ''
103105
]>
104106

105107
Customization

0 commit comments

Comments
 (0)