source: trunk/packages/sipb-xen-python-pydhcplib/examples/strlist_example.py @ 926

Last change on this file since 926 was 361, checked in by broder, 17 years ago

Splitting pydhcplib off into its own package

Hold onto your hats, folks - this could get messy

  • Property svn:executable set to *
File size: 468 bytes
RevLine 
[361]1#!/usr/bin/python
2
3from pydhcplib.type_strlist import strlist
4
5
6word = strlist()
7print "a0 : ",word
8
9word1 = strlist("azerty")
10print "a1 : ",word1
11
12word2 = strlist("qwerty")
13print "a2 : ",word2
14
15word3 = strlist([97, 122, 101, 114, 116, 121])
16print "a3 : ",word3
17
18if word1 == word2 : print "test 1 : ",word1, "==",word2
19else : print "test 1 : " ,word1, "!=",word2
20
21if word1 == word3 : print "test 2 : ", word1, "==",word3
22else : print "test 2 : ", word1, "!=",word3
23
24
25
Note: See TracBrowser for help on using the repository browser.