Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Michael Foord
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 M.-A. Lemburg wrote: On 2008-07-16 02:20, Collin Winter wrote: On Tue, Jul 15, 2008 at 6:58 AM, Ben Finney <[EMAIL PROTECTED]> wrote: Significant updates include removing all reference to the (already-resolved) ne

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 M.-A. Lemburg wrote: > On 2008-07-16 02:20, Collin Winter wrote: >> On Tue, Jul 15, 2008 at 6:58 AM, Ben Finney <[EMAIL PROTECTED]> wrote: >>> Significant updates include removing all reference to the >>> (already-resolved) new-style class issue, addin

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread M.-A. Lemburg
On 2008-07-16 15:12, Ben Finney wrote: "M.-A. Lemburg" <[EMAIL PROTECTED]> writes: On 2008-07-16 14:02, Michael Foord wrote: M.-A. Lemburg wrote: Note that PEP 4 targets deprecating use of whole modules, not single APIs, or - like in your case - more or less the complete existing API of a mod

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Collin Winter
On Wed, Jul 16, 2008 at 5:21 AM, Michael Foord <[EMAIL PROTECTED]> wrote: > Terry Reedy wrote: >> >> >> Michael Foord wrote: >>> >>> Collin Winter wrote: >> Is any provision being made for a 2to3 fixer/otherwise-automated transition for the changes you propose here? >>> >>> As the de

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Collin Winter
On Tue, Jul 15, 2008 at 6:03 PM, Michael Foord <[EMAIL PROTECTED]> wrote: > Collin Winter wrote: >> >> On Tue, Jul 15, 2008 at 6:58 AM, Ben Finney <[EMAIL PROTECTED]> >> wrote: >>> >>> Backwards Compatibility >>> === >>> >>> The names to be obsoleted should be deprecated and rem

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Ben Finney
"M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > On 2008-07-16 14:02, Michael Foord wrote: > > M.-A. Lemburg wrote: > >> Note that PEP 4 targets deprecating use of whole modules, not > >> single APIs, or - like in your case - more or less the complete > >> existing API of a module. > > > > Which PEP

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Ben Finney
"M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > The PEP doesn't mention changing the module name and deprecating > the old one. Right. The intention is to have a PEP-8-conformant 'unittest' module, not an entirely new module. > Instead it wants to deprecate all the old names (and cites PEP 4 for >

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread M.-A. Lemburg
On 2008-07-16 14:02, Michael Foord wrote: M.-A. Lemburg wrote: On 2008-07-16 10:14, Ben Finney wrote: "M.-A. Lemburg" <[EMAIL PROTECTED]> writes: Since this is a major change in the unit test API, I'd also like to suggest that you use a new module name. This is both a precaution to prevent t

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Michael Foord
Terry Reedy wrote: Michael Foord wrote: Collin Winter wrote: Is any provision being made for a 2to3 fixer/otherwise-automated transition for the changes you propose here? As the deprecation is intended for 2.X and 3.X - is 2to3 fixer needed? A fixer will only be needed when it actual

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Michael Foord
M.-A. Lemburg wrote: On 2008-07-16 10:14, Ben Finney wrote: "M.-A. Lemburg" <[EMAIL PROTECTED]> writes: Since this is a major change in the unit test API, I'd also like to suggest that you use a new module name. This is both a precaution to prevent tests failing due to not having been upgrade

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread M.-A. Lemburg
On 2008-07-16 10:14, Ben Finney wrote: "M.-A. Lemburg" <[EMAIL PROTECTED]> writes: Since this is a major change in the unit test API, I'd also like to suggest that you use a new module name. This is both a precaution to prevent tests failing due to not having been upgraded and a way for old co

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread Ben Finney
"M.-A. Lemburg" <[EMAIL PROTECTED]> writes: > Since this is a major change in the unit test API, I'd also like > to suggest that you use a new module name. > > This is both a precaution to prevent tests failing due to not having > been upgraded and a way for old code to continue working by adding

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-16 Thread M.-A. Lemburg
On 2008-07-16 02:20, Collin Winter wrote: On Tue, Jul 15, 2008 at 6:58 AM, Ben Finney <[EMAIL PROTECTED]> wrote: Significant updates include removing all reference to the (already-resolved) new-style class issue, adding footnotes and references, and a Rationale summary of discussion on both side

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Terry Reedy
Michael Foord wrote: Collin Winter wrote: Is any provision being made for a 2to3 fixer/otherwise-automated transition for the changes you propose here? As the deprecation is intended for 2.X and 3.X - is 2to3 fixer needed? A fixer will only be needed when it actually is needed, but wh

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Nick Coghlan
Stephen J. Turnbull wrote: Ben Finney writes: > Removal of ``assert*`` names > > Arguments in favour of retaining only the ``assert*`` names: > > * BDFL preference: The BDFL has stated [#vanrossum-1]_ a preference > for the ``assert*`` names. > > * Prec

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Michael Foord
Collin Winter wrote: On Tue, Jul 15, 2008 at 6:58 AM, Ben Finney <[EMAIL PROTECTED]> wrote: Backwards Compatibility === The names to be obsoleted should be deprecated and removed according to the schedule for modules in PEP 4 [#PEP-4]_. While deprecated, use of the depreca

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Collin Winter
On Tue, Jul 15, 2008 at 6:58 AM, Ben Finney <[EMAIL PROTECTED]> wrote: > Significant updates include removing all reference to the > (already-resolved) new-style class issue, adding footnotes and > references, and a Rationale summary of discussion on both sides of the > divide for 'assert*' versus

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Steven D'Aprano
On Wed, 16 Jul 2008 08:13:22 am Guido van Rossum wrote: > > Tests in the standard distribution which use the deprecated > > style will need to be converted. Steven d'Aprano claims this is > > nontrivial (and thus error- prone) in some cases. I haven't seen > > that claim denied, and it seems pl

[Python-Dev] PEP: Consolidating names in the `unittest` module (updated 2008-07-16)

2008-07-15 Thread Ben Finney
Significant changes are resolving to remove the 'fail*' names, giving recommended name to use for each removed name, and further summary of related discussion. :PEP: XXX :Title: Consolidating names in the `unittest` module :Version: 0.3 :Last-Modified: 2008

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Ben Finney
"Stephen J. Turnbull" <[EMAIL PROTECTED]> writes: > FWIW, I think these are fairly stated. So fairly that I'm surprised > you haven't been persuaded! I'm not persuaded because I find the arguments for 'fail*' more persuasive :-) I am, however, convinced that the consensus of the community is th

Re: [Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Guido van Rossum
On Tue, Jul 15, 2008 at 3:20 PM, Stephen J. Turnbull <[EMAIL PROTECTED]> wrote: > > * Positive admonition: The ``assert*`` names state the intent of how > > the code under test *should* behave, while the ``fail*`` names are > > phrased in terms of how the code *should not* behave. > > FWIW,

[Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Stephen J. Turnbull
Ben Finney writes: > Removal of ``assert*`` names > > Arguments in favour of retaining only the ``assert*`` names: > > * BDFL preference: The BDFL has stated [#vanrossum-1]_ a preference > for the ``assert*`` names. > > * Precedent: The Python standard lib

[Python-Dev] PEP: Consolidating names in the `unittest` module

2008-07-15 Thread Ben Finney
Significant updates include removing all reference to the (already-resolved) new-style class issue, adding footnotes and references, and a Rationale summary of discussion on both sides of the divide for 'assert*' versus 'fail*' names. :PEP: XXX :Title: Consolidating name