You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
910 B

From: fdrake at (Fred L. Drake)
Date: Tue, 20 Apr 1999 13:18:38 GMT
Subject: Can't work this XDR out
In-Reply-To: <>
References: <>
Message-ID: <>
X-UID: 34
Matthew Robert Gallagher writes:
> Whilst trying to pack a list xdr packer asks for
> (list, pack_item)
> what is the pack_item can't work this out as there are no examples
pack_item will typically be another method from the same packer
object. For example, to pack a list of ints, use this:
import xdrlib
p = xdrlib.Packer()
p.pack_list([1, 2, 3], p.pack_int)
I hope this helps. I'll add an example to the documentation.
Fred L. Drake, Jr. <fdrake at>
Corporation for National Research Initiatives