Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62377
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <drsalists@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.021 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'argument': 0.05; 'string': 0.09; 'cc:addr:python-list': 0.11; 'cc:name:python list': 0.16; 'unpack': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'all,': 0.19; 'cc:addr:python.org': 0.22; 'error': 0.23; 'cc:2**0': 0.24; 'performing': 0.26; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'subject:the': 0.34; 'anybody': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'does': 0.39; 'length': 0.61; 'to:addr:gmail.com': 0.65; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+KuIaZN7BqadMi06yOXurAGJ0w1XTZZ90Z+8C7VdpKY=; b=dV8L+iOpD/iyjZpmhpg50qHsOkANtjnUGzOVagR/h+qX7G2tZBqvZdqG3UxfL0HPau bbayGZrVwDECKyvSEgh0C7AknBHT5KPkJR4+e9vh/1fClU6YlotSk+1s+/p1fAboBjU0 m70X/VvymU+Gvj1VbGJJ3SsIGQsfEZlfwW1ie3XA1tBk0TLNh++rZckRDAXn5I0HYsmN tycoAp1u7bb/JYY3w0T7uBobTAKaXlQC71vaLKU2Wbv8aknDDCvxkgx6vl7b1A04mbsK Qy/qI2aponlsW03Id6eqTE1WMZQeqs0spjpwoTjmQgsQsFgSnX8/SOmdQkrSGFiP//OC IRog== |
| MIME-Version | 1.0 |
| X-Received | by 10.194.84.72 with SMTP id w8mr240597wjy.55.1387433753804; Wed, 18 Dec 2013 22:15:53 -0800 (PST) |
| In-Reply-To | <90e2b0ab-700a-4fe9-bc08-fa8fc21e292f@googlegroups.com> |
| References | <90e2b0ab-700a-4fe9-bc08-fa8fc21e292f@googlegroups.com> |
| Date | Wed, 18 Dec 2013 22:15:53 -0800 |
| Subject | Re: Unpacking the structures |
| From | Dan Stromberg <drsalists@gmail.com> |
| To | smilesonisamal@gmail.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | Python List <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4401.1387433761.18130.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1387433761 news.xs4all.nl 2868 [2001:888:2000:d::a6]:41754 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62377 |
Show key headers only | View raw
On Wed, Dec 18, 2013 at 8:32 PM, <smilesonisamal@gmail.com> wrote:
>
> Hi all,
> While performing the packing/unpacking of xdr structures of rpc I get an error as following.
>
>
> x = struct.unpack('>L', data)[0] struct.error: unpack requires a string argument of length 4.
>
> Can anybody help me in this regard?
What does print(len(data)) say?
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Unpacking the structures smilesonisamal@gmail.com - 2013-12-18 20:32 -0800 Re: Unpacking the structures Dan Stromberg <drsalists@gmail.com> - 2013-12-18 22:15 -0800
csiph-web