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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.