X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Injected-Via-Gmane: http://gmane.org/ To: geda-user AT delorie DOT com From: Rupert Swarbrick Subject: Re: [geda-user] Re: refdes renumber Date: Fri, 31 Jan 2014 20:07:09 +0000 Lines: 31 Message-ID: References: <1391182300 DOT 2023 DOT 11 DOT camel AT AMD64X2 DOT fritz DOT box> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Complaints-To: usenet AT ger DOT gmane DOT org X-Gmane-NNTP-Posting-Host: host-92-16-147-221.as13285.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Reply-To: geda-user AT delorie DOT com --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9 =D0=A5=D0=B0=D1=80=D1=8C=D0=BA= =D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 writes: > This is simple: > In [20]: ~0 > Out[20]: -1 For other readers who (like me) are being slow today, the ~ operator performs unary bitwise NOT. Apparently, integers in Python are explicitly two's complement. Rupert --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iJwEAQECAAYFAlLsAm0ACgkQRtd/pJbYVoZxBwP+JUXDf5LkmOb8ON7ydsoTScjm S67GdfeK0YDz6dotD1HzKt83xaHYQT5YoD1Im724aPKefCwhHY6p0epQSQQYlEMo rYVH3pOlMBLoFykJYE46r3jkkcRolIkxCt4JrC9TleQbq0A0m9OqUhfNg/WD1LA2 mh4wtgbV0oR22z/WMTU= =aPTk -----END PGP SIGNATURE----- --=-=-=--