Home | Trees | Indices | Help |
---|
|
object --+ | Field --+ | String --+ | Pattern --+ | IP
Represents an IP address.
Currently only IPv4 addresses in decimal notation are accepted.>>> ip = IP('dummy') >>> ip.validate('127.0.0.1') True >>> ip.validate('10.0.0.1') True >>> ip.validate('255.17.101.199') True >>> ip.validate('1.1.1.1') True >>> ip.validate('1.2.3') != True True >>> ip.validate('1.2.3.4.5') != True True >>> ip.validate('1.2.3.256') != True True >>> ip.validate('1.2.3.-1') != True True >>> ip.validate('1.2..3') != True True >>> ip.validate('.1.2.3.4') != True True >>> ip.validate('1.2.3.4.') != True True >>> ip.validate('1.2.3.-') != True True >>> ip.validate('01.2.3.4') != True True >>> ip.validate('1.02.3.4') != True True
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sun Sep 7 23:26:45 2008 | http://epydoc.sourceforge.net |