Re: Packet definition variable length list on output
Stephen Wood <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
On 9/21/05, Joe Pham <[email protected]> wrote: > > > Assuming you know that it's the last one (while building the object), one > approach could be: > > * LIST {'createdefault': True} +numbers: > P BOOL { 'default': false } last_number > * CSVINT +numbertype > if self.last_number: > * CSVSTRING {'quotechar': None, 'default': "", 'terminator': None } > +number > if not self.last_number: > * CSVSTRING {'quotechar': None, 'default': ""} +number > > -Joe Pham That works! Thanks, Stephen