From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Date: Wed, 3 Feb 2010 11:50:35 +0300 From: "Ivan A. Melnikov" To: devel@lists.altlinux.org Message-ID: <20100203115035.20e2e80a@deimos.localdomain> In-Reply-To: <8d778a621002022349p685cdefka80ab266d9cdb64f@mail.gmail.com> References: <8d778a621002022349p685cdefka80ab266d9cdb64f@mail.gmail.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.6; x86_64-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] python3.x(qwe) vs python3(qwe) X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 08:50:37 -0000 Archived-At: List-Archive: List-Post: =D0=92 Wed, 3 Feb 2010 14:49:39 +0700 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=A0=D0=BE=D1=81=D1=82=D0=BE= =D0=B2=D1=86=D0=B5=D0=B2 =D0=BF=D0=B8=D1=88= =D0=B5=D1=82: >=20 > =D0=94=D0=B5=D0=BB=D0=BE =D0=BD=D0=B5 =D0=B2 =D1=85=D0=B0=D0=BB=D1=8F=D0= =B2=D0=B5. =D0=94=D0=B5=D0=BB=D0=BE =D0=B2 =D1=80=D0=B0=D0=B7=D1=80=D0=B0= =D0=B1=D0=BE=D1=82=D0=BA=D0=B5 =D0=BC=D0=B5=D1=85=D0=B0=D0=BD=D0=B8=D0=B7= =D0=BC=D0=B0 =D0=B2=D1=8B=D1=8F=D0=B2=D0=BB=D0=B5=D0=BD=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7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=D1=85 =D0=B1=D0=B0=D0=B9=D1=82-=D0=BA=D0=BE=D0=B4=D0=B0, =D1=81=D0=BC. =D0=BA=D0= =BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B9, =D0=BD=D0=B0=D0= =BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80, =D1=82=D1=83=D1=82: http://git.altlinux.org/people/real/packages/python3.git?p=3Dpython3.git;a= =3Dblob;f=3DPython/Python/import.c;h=3Dcbfb7615e2551356ccfdad4684f2cbb70dfe= 2cf8;hb=3D9453d77099036baa2461e3ddd2f01701a8aa0549#l33 =D0=B8=D0=BB=D0=B8, =D1=87=D1=82=D0=BE =D1=82=D0=BE =D0=B6=D0=B5 =D1=81=D0= =B0=D0=BC=D0=BE=D0=B5, http://tinyurl.com/python3-MAGIC . =D0=95=D1=81=D1=82=D1=8C =D0=B8=D0=B4=D0=B5=D1=8F =D0=B4=D0=B5=D0=BB=D0=B0= =D1=82=D1=8C =D0=BF=D0=B8=D1=82=D0=BE=D0=BD=D0=BE=D0=B2=D1=81=D0=BA=D0=B8= =D0=B5 =D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B8 = =D0=B2=D0=B8=D0=B4=D0=B0 python3.${MAGIC}(qwe) =D0=B3=D0=B4=D0=B5 MAGIC =D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B0=D0=B5=D1=82= =D1=81=D1=8F, =D0=BD=D0=B0=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80, =D1=82=D0= =B0=D0=BA (=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80 =D0=B4=D0=BB=D1=8F =D1=82= =D0=B5=D0=BA=D1=83=D1=89=D0=B5=D0=B3=D0=BE python 2.6): >>> import imp >>> ''.join("%02x" % ord(i) for i in imp.get_magic()) 'd1f20d0a' =D0=9F=D1=80=D0=B0=D0=B2=D0=B4=D0=B0, =D0=BC=D0=B5=D1=85=D0=B0=D0=BD=D0=B8= =D0=B7=D0=BC =D1=82=D1=80=D0=B5=D0=B1=D1=83=D0=B5=D1=82 =D1=83=D1=82=D0=BE= =D1=87=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F -- =D0=B3=D0=BE=D0=B2=D0=BE=D1=80=D1= =8F=D1=82, magic =D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D1=82 =D0=BE=D1=82 = =D0=BE=D0=BF=D1=86=D0=B8=D0=B9 =D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D1=8F=D1=82=D0=BE=D1=80=D0=B0 =D0=B8 = =D1=87=D0=B5=D0=B3=D0=BE-=D1=82=D0=BE =D0=B5=D1=89=D1=91... --=20 WBR, Ivan A. Melnikov linux, c++, argentine tango -- in no particular order