Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59889

Byteorder of audioop functions

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <michi.schwarz@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'matches': 0.07; 'sys,': 0.09; "system's": 0.09; 'byteorder': 0.16; 'module': 0.19; '>>>': 0.22; 'import': 0.22; 'to:name:python-list@python.org': 0.22; '(or': 0.24; 'somewhere': 0.26; 'michael': 0.29; 'specified': 0.30; 'anyone': 0.31; 'received:google.com': 0.35; 'charset:us- ascii': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'header:Message-Id:1': 0.63; 'different': 0.65; 'received:10.100': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=eidMQnSonEdkqjOQIuFndWTu2FgC/naQMDhGswgQfR4=; b=N4JXL/bfCfeyL5ewE4upPYmHta0nAp1ZlW8Cs6jkSK2d7qVB97Mbw3+Mx7RkPvzGBH EM1qt+v0qZF9IaIfLf2gGpajJEuKQHd5zYt6pdqV+YndrqOIjvRVXvhsfTGnvmHm8HXl bYMl/JpdTSgmbo7J48Z6PDkGC1HozE+QhiaoZB0UDq8XN4iEN6iS8SGEfPIMCfYkBMzc YHX//SVqODeHDVWetFUG7ZtiyYKsUG+06eOY+ziN5V7aDKOrkCk3UW7B5msnk8/wbR57 MNZQcjKNlFqCG1y/mfE9OtkZK51gmjp/AsHH/z6akNUbBhE+qvPLecKIVnEQreQKE8kM NEXA==
X-Received by 10.14.172.133 with SMTP id t5mr13878197eel.35.1384793515645; Mon, 18 Nov 2013 08:51:55 -0800 (PST)
From Michael Schwarz <michi.schwarz@gmail.com>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding quoted-printable
Subject Byteorder of audioop functions
Date Mon, 18 Nov 2013 17:51:45 +0100
To "python-list@python.org" <python-list@python.org>
Mime-Version 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer Apple Mail (2.1510)
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.2853.1384793523.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384793523 news.xs4all.nl 15990 [2001:888:2000:d::a6]:48962
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:59889

Show key headers only | View raw


Hi

Is the byteorder (or endianness) of the functions in the audioop module somewhere specified or does anyone know how it behaves on different systems?

On my little-endian system it matches the system's endianness:

>>> import sys, audioop
>>> sys.byteorder
'little'
>>> audioop.lin2lin(b'\xff', 1, 2)
b'\x00\xff'

Michael

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Byteorder of audioop functions Michael Schwarz <michi.schwarz@gmail.com> - 2013-11-18 17:51 +0100

csiph-web