:PEP: XXX
:Title: Consolidating names and classes in the `unittest` module
:Version: 0.0
:Last-Modified: 2008-07-14
:Author:Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type: test/x-rst
:Created: 2008
|
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
_Following the Equator_ |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/opt
"Benjamin Peterson" <[EMAIL PROTECTED]> writes:
> On Mon, Jul 14, 2008 at 8:25 AM, Ben Finney <[EMAIL PROTECTED]> wrote:
> > Use new-style classes throughout
> >
> >
> > The following classes will inherit explicitly
asses in the `unittest` module
:Version: 0.0
:Last-Modified: 2008-07-15
:Author:Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type: test/x-rst
:Created: 2008-07-14
:Python-Version:2.7, 3.1
:Post-
"Benjamin Peterson" <[EMAIL PROTECTED]> writes:
> On Mon, Jul 14, 2008 at 6:42 PM, Ben Finney <[EMAIL PROTECTED]> wrote:
> > The `unittest` module will gain the following attribute, to set the
> > default metaclass for classes in the module and thus make all
t; (IMO).
Yes, this is something that deserves consideration.
--
\ “Why was I with her? She reminds me of you. In fact, she |
`\reminds me more of you than you do!” —Groucho Marx |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Eric Smith <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > "Benjamin Peterson" <[EMAIL PROTECTED]> writes:
> >> Line 94-95 in unittest.py (trunk):
> >> # All classes defined herein are 'new-style' classes, allowing use of
> >&
"Stephen J. Turnbull" <[EMAIL PROTECTED]> writes:
> Ben Finney writes:
>
> > Removal of ``assert*`` names
> >
> >
> > There is no overwhelming consensus on whether to remove the
> > ``assert*`` names or th
redundant names in the API.
--
\ “It's dangerous to be right when the government is wrong.” |
`\ —Francois Marie Arouet Voltaire |
_o__) |
Ben Finney
___
Nick Coghlan <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > What makes that happen in the case where a class declares no
> > superclass? Is there an invisible enforced "__metaclass__ = type"
> > for every module? Where can I read about this change?
>
Andrew Bennetts <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > "Stephen J. Turnbull" <[EMAIL PROTECTED]> writes:
> > > Message-ID: <[EMAIL PROTECTED]>
> > > From: Antoine Pitrou <[EMAIL PROTECTED]>
> >
> > That mea
Consolidating names in the `unittest` module
:Version: 0.2
:Last-Modified: 2008-07-15
:Author: Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type: test/x-rst
:Created: 2008-07-14
:Python-Version:
ts.
Yes. While I prefer the 'fail*' names, I would prefer to lose *either*
of 'assert*' or 'fail*' than to retain redundant names in the API.
--
\ “If I had known what it would be like to have it all... I might |
`\ have been willing to settle for less.” —
#x27;) in the
standard library, they can accept the burden of implementing one that
behaves the way they like.
--
\ “I never forget a face, but in your case I'll be glad to make |
`\ an exception.” —Groucho Ma
ot;. I'm
making statements about behaviour of the program, not about permitting
or denying something.
--
\“The industrial system is profoundly dependent on commercial |
`\ television and could not exist in its present form without it.” |
_o__)
e removal of
redundant names is not made in the name of consistency, but of API
simplicity.
--
\ “Under democracy one party always devotes its chief energies to |
`\ trying to prove that the other party is unfit to rule--and both |
_o__) commonly
es, so
this name consolidation seems a natural prerequisite.
--
\ “Are you pondering what I'm pondering?” “Well, I think so |
`\ Brain, but what if we stick to the seat covers?” —_Pinky and |
_o__)
#x27;s concern that PEP 8 names are quite a
> bit longer.
Noted both of these, thanks.
--
\ “The best way to get information on Usenet is not to ask a |
`\ question, but to post the wrong information.” —Aahz |
_o__) |
B
t-Modified: 2008-07-16
:Author: Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type: test/x-rst
:Created: 2008-07-14
:Python-Version:2.7, 3.1
:Post-History:
.. contents::
Abstract
This PEP propose
:PEP: XXX
:Title: Frequently-requested additional features for the `unittest`
module
:Version: 0.3
:Last-Modified: 2008-07-16
:Author:Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type: test/x-rst
:Requires:
human.” —David Bowie |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
reasoning (or reference to others' reasoning) on this.
--
\ “The process by which banks create money is so simple that the |
`\ mind is repelled.” —John Kenneth Galbraith, _Money: Whence It |
_o__) Came, Where It Went_, 1975 |
Ben Finney
ary of this argument as is in the PEP.
--
\ “Holy unrefillable prescriptions, Batman!” —Robin |
`\ |
_o__) |
Ben Finney
___
st`
module
:Version: 0.4
:Last-Modified: 2008-07-16
:Author:Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type: test/x-rst
:Requires: PEP XXX (Consolidating names in the `unittest` module)
:Created: 2008-07-14
:Po
tely if not true", which 'check' lacks.
--
\“I used to work in a fire hydrant factory. You couldn't park |
`\ anywhere near the place.” —Steven Wright |
_o__) |
Ben Finney
equested additions to unittest"
(which seeks *only* to add functionality, not change existing names).
--
\ “An expert is a man who has made all the mistakes which can be |
`\ made in a very narrow field.” —Niels Bohr |
_o__)
to it by comedy. To label any subject |
_o__)unsuitable for comedy is to admit defeat.” —Peter Sellers |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.o
d to do, you'd |
`\ better not start writing it.” —Edsger W. Dijkstra |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.o
es"
has no basis in the use of "fail" in unittest.
--
\ “It was half way to Rivendell when the drugs began to take |
`\hold” —Hunter S. Tolkien, _Fear and Loathing in Barad-Dûr_ |
_o__) |
Ben Finne
quot; is not creating a "double negative".
--
\ “It's dangerous to be right when the government is wrong.” |
`\ —Francois Marie Arouet Voltaire |
_o__) |
Ben Finney
___
nd arms |
`\ from the statues that are in all the other museums.” —Steven |
_o__) Wright |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
“I fly Air Bizarre. You buy a combination one-way round-trip |
`\ticket. Leave any Monday, and they bring you back the previous |
_o__) Friday. That way you still have the weekend.” —Steven Wright |
Ben Finney
___
Python-Dev mailing li
jected
http://mail.python.org/pipermail/python-dev/2008-April/078485.html>.
I'm inclined to agree that it's not right for 2.x. I'll revise the PEP
accordingly.
--
\ “First they came for the verbs, and I said nothing, for verbing |
`\weirds language. T
in pursuit of the goal.” —Friedrich Nietzsche |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
minors, Batman!” —Robin |
`\ |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Rodrigo Bernardo Pimentel <[EMAIL PROTECTED]> writes:
> On Tue, Jul 15 2008 at 07:38:59PM BRT, Ben Finney <[EMAIL PROTECTED]> wrote:
> > The "consistency" argument leads to the PEP 8 names. The removal
> > of redundant names is not made in the name of c
the changes.
Thanks, everyone, for the lively discussion.
--
\ “The way to build large Python applications is to componentize |
`\ and loosely-couple the hell out of everything.” —Aahz |
_o__) |
Ben Finney
7;t see the unittest API
getting anything except increasingly hideous and painful to use.
--
\ “Never do anything against conscience even if the state demands |
`\ it.” —Albert Einstein |
_o__)
: 2008-07-17
:Author:Ben Finney <[EMAIL PROTECTED]>
:Status:Rejected
:Type: Standards Track
:Content-Type: test/x-rst
:Created: 2008-07-14
:Python-Version:3.1
:Post-History:
.. contents::
Abstract
This PEP proposes to consolida
:PEP: XXX
:Title: Frequently-requested additional features for the `unittest`
module
:Version: 0.5
:Last-Modified: 2008-07-16
:Author: Ben Finney <[EMAIL PROTECTED]>
:Status:Draft
:Type: Standards Track
:Content-Type:
“In case you haven't noticed, [the USA] are now almost as |
`\ feared and hated all over the world as the Nazis were.” —Kurt |
_o__) Vonnegut, 2004 |
Ben Finney
___
Python-Dev mailing list
Python-De
Andrew Bennetts <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > Andrew Bennetts <[EMAIL PROTECTED]> writes:
> >
> > > This one is easily solved by making assertRaises return the
> > > exception it caught.
> >
> > That breaks one
Andrew Bennetts <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > Andrew Bennetts <[EMAIL PROTECTED]> writes:
> [...]
> > > How is returning None a feature?
> >
> > A test method having exactly one meaning is a feature. If it's
> &g
u have changed the API. Test code is particularly
> sensitive to such changes.
I agree entirely with this.
--
\ “Smoking cures weight problems. Eventually.” —Steven Wright |
`\ |
_o__)
Ben Finney <[EMAIL PROTECTED]> writes:
> You're proposing to give "assertRaises" a *new* meaning, without
> changing its name to "assertRaisesAndReturnExceptionIfRaises".
This might be misunderstood, so I'll make it clearer.
The name "assert r
"Guido van Rossum" <[EMAIL PROTECTED]> writes:
> On Wed, Jul 16, 2008 at 7:42 PM, Ben Finney <[EMAIL PROTECTED]> wrote:
> > The result I'm trying to avoid by this is that of having the
> > externally visible behaviour of functions drift from the promise
"Steven D'Aprano" <[EMAIL PROTECTED]> writes:
> On Tue, 15 Jul 2008 09:26:45 am Raymond Hettinger wrote:
> > From: "Ben Finney" <[EMAIL PROTECTED]>
> >
> > > Right, so I'm putting up a separate PEP just for the renaming.
> &
“Well, my brother says Hello. So, hooray for speech therapy.” |
`\ —Emo Philips |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python
on to
participate in the discussion forums.
--
\ “The truth is the most valuable thing we have. Let us economize |
`\ it.” —Mark Twain, _Following the Equator_ |
_o__)
authentication internally. So, no patches were
forthcoming from me on that.
--
\ “An eye for an eye would make the whole world blind.” —Mahatma |
`\Gandhi |
_o__)
paragraph
.. Comment
.. foo::
bar
=
--
\ “I was the kid next door's imaginary friend.” —Emo Philips |
`\ |
_o__) |
Ben Finney
___
7;t used for the “Permalink to this
headline” link.
Perhaps a bug report to the Docutils folks is in order.
--
\ “Nature is trying very hard to make us succeed, but nature does |
`\ not depend on us. We are not the only experiment.” —Richard |
_o__)
arguments”.
So:
Library for parsing command-line options and arguments
--
\“Please to bathe inside the tub.” —hotel room, Japan |
`\ |
_o__)
wants.
--
\“The fact of your own existence is the most astonishing fact |
`\you'll ever have to confront. Don't dare ever see your life as |
_o__)boring, monotonous, or joyless.” —Richard Dawkins, 2010-03-10 |
Ben Finney
___
Steven D'Aprano writes:
> Ben Finney wrote:
> > "M.-A. Lemburg" writes:
>
> >> No, you tell them: "If you want Unicode 6 semantics, use regex, if
> >> you're fine with Unicode 2.0/3.0 semantics, use re".
> >
> > What
Faith_, 2004 |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
is an opportunity somebody wishes they had missed.” —Jane |
_o__) Wagner, via Lily Tomlin |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsu
like.
--
\ “We can't depend for the long run on distinguishing one |
`\ bitstream from another in order to figure out which rules |
_o__) apply.” —Eben Moglen, _Anarchism Triumphant_, 1999 |
Ben Finney
___
Python-De
it's worth.
--
\ “God was invented to explain mystery. God is always invented to |
`\ explain those things that you do not understand.” —Richard P. |
_o__) Feynman, 1988 |
Ben Finney
_
not more, to do with common convention as with some
> absolute metric. The "contributor's discretion" must yield.
+1
--
\ “Those who write software only for pay should go hurt some |
`\ other field.” —Erik Naggum, in _gnu.misc.discuss_ |
_o__)
hat?
--
\“I washed a sock. Then I put it in the dryer. When I took it |
`\ out, it was gone.” —Steven Wright |
_o__) |
Ben Finney
___
Python-Dev mailing list
Pyt
ng years to life, and |
`\ more about adding life to years.” —Arthur C. Clarke, 2001 |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailma
Brian Curtin writes:
> On Wed, Feb 15, 2012 at 19:19, Ben Finney wrote:
> > Charles-François Natali writes:
> >
> >> […] using rename() on POSIX systems and MoveFileEx() on Windows
> >> (which are now available through os.replace()). It would also use
> >
;ll come in again.
--
\ “Why should I care about posterity? What's posterity ever done |
`\for me?” —Groucho Marx |
_o__) |
Ben Finney
__
“Kill myself? Killing myself is the last thing I'd ever do.” |
`\—Homer, _The Simpsons_ |
_o__) |
Ben Finney
___
Python-Dev
-priority binding operator is the better place to break the
line. The binary logical operators bind at lower priority than the
equality operator.
--
\ “If you do not trust the source do not use this program.” |
`\—Microsoft Vista security dialogue |
ain, because later you might think you're having a |
_o__) good idea but it's just eggs hatching.” —Jack Handey |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscr
r preferentially for one minority over others.
--
\ “Come on Milhouse, there’s no such thing as a soul! It’s just |
`\ something they made up to scare kids, like the Boogie Man or |
_o__) Michael Jackson.” —Bart, _The Simpsons_ |
Ben Finney
_
own desires.” —Susan Brownell Anthony, 1896 |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
omplaints are justified?
--
\“… Nature … is seen to do all things herself and through |
`\ herself of own accord, rid of all gods.” —Titus Lucretius |
_o__) Carus, c. 40 BCE |
Ben Finney
___
direction.” —Alvin Toffler |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
r message appeared. So, no need to
send them another copy individually.
--
\ “There is something wonderful in seeing a wrong-headed majority |
`\ assailed by truth.” —John Kenneth Galbraith, 1989-07-28 |
_o__) |
B
ng
list fields are present. That's one possible solution; but anything that
gets more people to “Reply to list” when appropriate is acceptable to me.
--
\ “Don't you try to outweird me, I get stranger things than you |
`\ free with my breakfast
ltering drug is truth.” —Jane Wagner, via Lily |
`\Tomlin |
_o__) |
Ben Finney
___
Python-Dev mailing list
Python-Dev@pyt
_Following the Equator_ |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Ben Finney writes:
> Georg Brandl writes:
>
> > list of possible features for 3.3 as specified by PEP 398:
> >
> > Candidate PEPs:
> […]
>
> > * PEP 3143: Standard daemon process library
>
> Our porting work will not be done in time for Python 3.3.
aspirations.“ —Thomas Henry Huxley, 1860-09-23 |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Guido van Rossum writes:
> On Mon, Jun 11, 2012 at 7:10 PM, Ben Finney
> wrote:
> > Unambiguous storage of absolute time can be achieved with POSIX
> > timestamps, but that is certainly not the only nor best way to do
> > it.
> >
> > For example, RFC 5322 sp
le, and simply disbelieve them.” —Jessica Litman, |
_o__) _Digital Copyright_ |
Ben Finney
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
301 - 380 of 380 matches
Mail list logo