File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ Example Usage
1212-------------
1313
1414The main object that the library deals with is a ` PhoneNumber ` object. You can create this from a string
15- representing a phone number using the ` parse ` function, but you normally also need to specify the country
16- that the phone number is from (unless the number is in E.164 format).
15+ representing a phone number using the ` parse ` function, but you also need to specify the country
16+ that the phone number is being dialled from (unless the number is in E.164 format, which is globally
17+ unique).
1718
1819``` pycon
1920>>> import phonenumbers
@@ -27,6 +28,9 @@ Country Code: 44 National Number: 2083661177 Leading Zero: False
2728Country Code: 44 National Number: 2083661177 Leading Zero: False
2829>>> x == y
2930True
31+ >>> z = phonenumbers.parse(" 00 1 650 253 2222" , " GB" ) # as dialled from GB, not a GB number
32+ >>> print z
33+ Country Code: 1 National Number: 6502532222 Leading Zero(s): False
3034```
3135
3236The ` PhoneNumber ` object that ` parse ` produces typically still needs to be validated, to check whether
You can’t perform that action at this time.
0 commit comments