Path: csiph.com!aioe.org!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Robert Collins Newsgroups: linux.debian.maint.python Subject: Re: Removing some python3-* packages Date: Fri, 03 Jul 2015 05:10:02 +0200 Message-ID: References: X-Original-To: Ben Finney Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, GMAIL=1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .robertcollins. - helo: .mail-oi0-f45.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=W33aQHEXWVxOPTWtSauUnGxcIu+sHRstOvDuLAc3IVY=; b=nDKBWB0+ThLphRWv10i+N68XgoOwZM5zX198ia+cd6Hr1/iCEePLLmYiWsEK544sWb O6DejjLTqbapjWtK/J3vjpfKCwlt2/IWfzpFFpJdV/7goPlch9Ra8wR7D3yMXherr0Ty 7mVKZKvnrMYqPvoZ0E3qPe+cizgM7njWB8GX5QV/dUxiz6U4Ea9R+wb2nIljpcGcKuUd lpaaxEvd3tAknSc0TsPn/mEtezDnx+QQh7pg3jLzkzas/Mu/iDRX7mbIr+gAJOhtr3Wk yj9hSI5y7TliBulyqGCE1oFQXJcYbAtlJ5b553JEwe6X1T5fGiFFNhSMJXJms35Y1zxV hn3Q== X-Gm-Message-State: ALoCoQmXAvkPn/Z3BkwXZ4RvDVXAQ5wFsIy8jrEyHIXgv0ITM2e2GLp+foJPwP2GsLoZYiFt7q4P MIME-Version: 1.0 X-Received: by 10.60.35.8 with SMTP id d8mr32864030oej.37.1435892526923; Thu, 02 Jul 2015 20:02:06 -0700 (PDT) X-Originating-IP: [122.57.100.81] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/12377 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 54 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Fri, 3 Jul 2015 15:02:06 +1200 X-Original-Message-ID: X-Original-References: <20150702155530.4e93b05d@limelight.wooz.org> <85lheyqgb3.fsf@benfinney.id.au> Xref: aioe.org linux.debian.maint.python:7077 On 3 July 2015 at 11:40, Ben Finney wrote: > Barry Warsaw writes: > >> [=E2=80=A6] there's actually no reason to have a Python 3 version of enu= m in >> any version >=3D Python 3.4. [=E2=80=A6] > > Ian Cordasco writes: > >> Probably a silly question, but are other libraries like unittest2 also >> being packaged for python3? Another library is mock. That was included >> in the stdlib in 3.3. > > One consideration is: What code is written to be Python 2 and Python 3 > compatible from the same code base, which achieves this by importing a > module which is backported to Python 2? > > In some of my code I'm doing =E2=80=98import unit2=E2=80=99 to have featu= res from that > library available in Python 2 code. I hope you mean 'import unittest2' - and great, thats the intent. > Since those features are all in Python 3's standard library, the case > could be made that =E2=80=98python3-unit2=E2=80=99 is pointless; but agai= nst that is the > fact that a Python 3 =E2=80=98unit2=E2=80=99 package means that =E2=80=98= import unit2=E2=80=99 will work > the same on both runtime versions. unittest2 also has new features in it for python 3.2, 3.3, 3.4, and will soon have new features for 3.5 as well. > So I'd argue that =E2=80=98python3-mock=E2=80=99 and the like do have a p= lace in Debian: > they make it easier to follow the recommended strategy of having a code > base run unchanged on Python2 and Python 3. +1. -Rob --=20 Robert Collins Distinguished Technologist HP Converged Cloud -- To UNSUBSCRIBE, email to debian-python-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: https://lists.debian.org/CAJ3HoZ04F=S8AF224XL6BCeApg8hqEO+tPv+cdFvgKyOwJiYjQ@mail.gmail.com