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


Groups > linux.debian.maint.python > #7077

Re: Removing some python3-* packages

From Robert Collins <robertc@robertcollins.net>
Newsgroups linux.debian.maint.python
Subject Re: Removing some python3-* packages
Date 2015-07-03 05:10 +0200
Message-ID <pHZwu-36m-15@gated-at.bofh.it> (permalink)
References <pHSOm-6Yq-13@gated-at.bofh.it> <pHWoV-X2-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 3 July 2015 at 11:40, Ben Finney <ben+debian@benfinney.id.au> wrote:
> Barry Warsaw <barry@debian.org> writes:
>
>> […] there's actually no reason to have a Python 3 version of enum in
>> any version >= Python 3.4. […]
>
> Ian Cordasco <graffatcolmingov@gmail.com> 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 ‘import unit2’ to have features 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 ‘python3-unit2’ is pointless; but against that is the
> fact that a Python 3 ‘unit2’ package means that ‘import unit2’ 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 ‘python3-mock’ and the like do have a place 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



-- 
Robert Collins <rbtcollins@hp.com>
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

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Find similar


Thread

Re: Removing some python3-* packages Ben Finney <ben+debian@benfinney.id.au> - 2015-07-03 01:50 +0200
  Re: Removing some python3-* packages Ian Cordasco <graffatcolmingov@gmail.com> - 2015-07-03 02:10 +0200
    Re: Removing some python3-* packages Robert Collins <robertc@robertcollins.net> - 2015-07-03 05:10 +0200
  Re: Removing some python3-* packages Robert Collins <robertc@robertcollins.net> - 2015-07-03 05:10 +0200

csiph-web