necessarily running as
root.
What does the 'os.setsid()' gain me? How can I get that without being
the root user?
--
\ "I went to a general store. They wouldn't let me buy anything |
`\ specifically." -- Steven Wright |
_o__)
"Leo Kislov" <[EMAIL PROTECTED]> writes:
> On Mar 22, 11:19 pm, Ben Finney <[EMAIL PROTECTED]> wrote:
> > The problem I'm having is that 'os.setsid()' fails with 'OSError:
> > [Errno 1] Operation not permitted' unless I run the
Ben Finney <[EMAIL PROTECTED]> writes:
> Hmm. I typed the example program in as a simplified version of what
> I'm doing; but didn't actually *run* it. When I do run it, I get no
> exception, as you say.
>
> Now I'll have to find out what significant differenc
`\an expiration date." -- Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
"If nothing changes, everything will remain the same." -- |
`\ Barne's Law |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
confirm that the module under test has actually used the module as
expected.
--
\ "A politician is an animal which can sit on a fence and yet |
`\ keep both ears to the ground." -- Henry L. Mencken |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
://trac.whitetree.org/gracie/>.
--
\ "When I turned two I was really anxious, because I'd doubled my |
`\ age in a year. I thought, if this keeps up, by the time I'm six |
_o__) I'll be ninety." -- Steven Wright |
Ben Finney <[EM
t;>> foo = ["eggs", "beans", "beans", "eggs", "spam"]
>>> counts = [(foo.count(val), val) for val in set(foo)]
>>> sorted(counts)[-1][1]
'eggs'
--
\ "Anger makes dull men witty, but it keeps them poor." -- |
`\ Elizabeth Tudor |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
, it was a satellite |
`\ picture of the entire Earth. On the back he wrote, 'Wish you |
_o__) were here'." -- Steven Wright |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Traceback (most recent call last):
File "", line 1, in ?
NameError: name 'bar' is not defined
>>> foo()
>>> bar
10
--
\ "I'm beginning to think that life is just one long Yoko Ono |
`\ album; no rhyme or reason, just a lot of incoherent shrieks and |
_o__) then it's over." -- Ian Wolff |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
specific
about what you're looking for.
--
\ "Success is going from one failure to the next without a loss |
`\ of enthusiasm." -- Winston Churchill |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Tue, 03 Apr 2007 12:26:47 +1000, Ben Finney wrote:
>
> > "Steve" <[EMAIL PROTECTED]> writes:
> >
> >> Yes it is [a homework question].
> >>
> >> Where else to ask for hel
should I care about posterity? What's posterity ever done |
`\ for me?" -- Groucho Marx |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
of liberty." -- Thomas Jefferson |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
'foo'.
This doesn't preclude importing the module (e.g. for unit
testing), though it is a little more convoluted than a simple
'import' statement.
--
\ "Dad always thought laughter was the best medicine, which I |
`\ guess is why sever
for me?" -- Groucho Marx |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
--
\ "You've got to think about big things while you're doing small |
`\ things, so that all the small things go in the right |
_o__) direction." -- Alvin Toffler |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
e surest way to corrupt a youth is to instruct him to hold |
`\ in higher esteem those who think alike than those who think |
_o__)differently." -- Friedrich Nietzsche |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
nd |
`\ action, where it often substitutes for both." -- John Andrew |
_o__) Holmes, _Wisdom in Small Doses_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
en we call others dogmatic, what we really object to is |
`\ their holding dogmas that are different from our own." -- |
_o__) Charles Issawi |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Sun, 16 Sep 2007 15:05:55 +1000, Ben Finney wrote:
> > The compiler for a dynamic language like Python has very little
> > absolute "no significant side-effect in these specific cases"
> > guarantee of the
sionalism has no place in art, and hacking is art. |
`\ Software Engineering might be science; but that's not what I |
_o__)do. I'm a hacker, not an engineer." -- Jamie W. Zawinski |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
within." -- Mahatma Gandhi |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
e type is built-in.
--
\ "The trouble with the rat race is that even if you win, you're |
`\still a rat." -- Jane Wagner, via Lily Tomlin |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
badly misnamed, and falsely documented.
Can anyone point me to a counter-argument to the above article?
--
\"The World is not dangerous because of those who do harm but |
`\ because of those who look at it without doing anything." |
_o__) —Albert Einstein |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Evan Klitzke <[EMAIL PROTECTED]> writes:
> On Tue, 2007-09-18 at 14:15 +1000, Ben Finney wrote:
> > Why does the documentation of 'super' say that it returns the
> > superclass when *that's not true*? It doesn't return the
> > superclass, it retu
"Quidquid latine dictum sit, altum viditur." ("Whatever is |
`\ said in Latin, sounds profound.") -- Anonymous |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
responding to.
--
\ "Even if the voices in my head are not real, they have pretty |
`\ good ideas." —anonymous |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
, orthogonal to whether OOP is involved.
--
\ "Our task must be to free ourselves from our prison by widening |
`\our circle of compassion to embrace all humanity and the whole |
_o__) of nature in its beauty." —Albert Einstein |
Ben Finney
--
http://m
Sorry, I read your message too fast and responded to the wrong point
:-)
[EMAIL PROTECTED] (Alex Martelli) writes:
> Ben Finney <[EMAIL PROTECTED]> wrote:
> > Am I mistaken in thinking that "superclass of foo" is equivalent
> > to "parent class of foo"
> so most people use your example
1.
--
\"The most merciful thing in the world... is the inability of |
`\ the human mind to correlate all its contents." -- Howard |
_o__)Philips Lovecraft |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
> Ben Finney a écrit :
> > Evan Klitzke <[EMAIL PROTECTED]> writes:
> >> On Tue, 2007-09-18 at 14:15 +1000, Ben Finney wrote:
> >>> [the 'super' function] doesn't return the superclass, it
the Lord doesn't work that way so I stole |
_o__)one and asked Him to forgive me." -- Emo Philips |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
hen visually scanning the code, and fails
the "explicit" principle.
--
\"I have the simplest tastes. I am always satisfied with the |
`\best." -- Oscar Wilde |
_o__)
\ "An eye for an eye would make the whole world blind." -- |
`\Mahatma Gandhi |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
gn: 'Rest Area 25 Miles'. That's pretty big. Some |
`\ people must be really tired." -- Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
[Jonathan, please don't send me copies of messages sent to the
discussion thread. I follow comp.lang.python via a non-mail interface,
and it's irritating to get unwanted copies of messages via email.]
Jonathan Fine <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> &
?" won't be misled into trying to use *the wrong
function for that purpose*.
--
\ "If you can't annoy somebody there is little point in writing." |
`\ -- Kingsley Amis |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Hrvoje Niksic <[EMAIL PROTECTED]> writes:
> Ben Finney <[EMAIL PROTECTED]> writes:
>
> > Evan is claiming that "the next class in the MRO _is_ a superclass",
> > apparently by his definition or some other that I've not seen.
>
> The defi
Scott David Daniels <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > [EMAIL PROTECTED] (Alex Martelli) writes:
> >
> >> In general, "a superclass of foo" means "a class X such that foo is a
> >> sublass of X"
> >
> > Sure
Scott David Daniels <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > [EMAIL PROTECTED] (Alex Martelli) writes:
> >
> >> In general, "a superclass of foo" means "a class X such that foo is a
> >> sublass of X"
> >
> > Sure
Scott David Daniels <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > [EMAIL PROTECTED] (Alex Martelli) writes:
> >
> >> In general, "a superclass of foo" means "a class X such that foo is a
> >> sublass of X"
> >
> > Sure
I am canceling my own article.
--
http://mail.python.org/mailman/listinfo/python-list
I am canceling my own article.
--
http://mail.python.org/mailman/listinfo/python-list
-
\ "As we enjoy great advantages from the inventions of others, we |
`\ should be glad to serve others by any invention of ours." -- |
_o__) Benjamin Franklin |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Thu, 20 Sep 2007 12:00:40 +1000, Ben Finney wrote:
>
> > In its latter form, it is worthless to me when I'm looking for
> > "get superclass of A", but its name and parameters and
> > documentat
d for someone looking to do what mixin classes do?
--
\ "In case you haven’t noticed, [the USA] are now almost as |
`\ feared and hated all over the world as the Nazis were." -- |
_o__) Kurt Vonnegut, 2004 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Michele Simionato <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > What do you see as an appropriate use of mixin classes, and what
> > an abuse?
>
> An example of fine usage of mixin is Tkinter; an example of bad
> usage if Zope 2.
Which parts of those two ver
--
\ "The best way to get information on Usenet is not to ask a |
`\question, but to post the wrong information." -- Aahz |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ccess"?
Also, some similar events involving the instance that would *not*
trigger the same thing.
--
\ "The generation of random numbers is too important to be left |
`\ to chance." -- Robert R. Coveyou |
_o__)
ion of knowledge to an elite group destroys the |
`\ spirit of society and leads to its intellectual |
_o__) impoverishment." —Albert Einstein |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
" "Well, I think so, |
`\Brain, but if Jimmy cracks corn, and no one cares, why does he |
_o__)keep doing it?" -- _Pinky and The Brain_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
authority." —Richard Dawkins, Big Mistake (The Guardian) |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
module http://docs.python.org/lib/module-optparse> from the
standard library.
--
\ "Holy knit one purl two, Batman!" -- Robin |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
-- The Goon Show, _Rommel's Treasure_ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
blem.
Only then should you post the code — if, of course, you haven't yet
seen the solution with your own eyes.
--
\"Laurie got offended that I used the word 'puke.' But to me, |
`\ that's what her dinner tasted like." -- Jack Handey |
_o__)
want." --Larry Wall |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ion
--
\"I have one rule to live by: Don't make it worse." -- Hazel |
`\ Woodcock |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
--
\ "My mother was like a sister to me, only we didn't have sex |
`\ quite so often." -- Emo Philips |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
http://www.w3.org/TR/REC-xml/#sec-comments>
--
\ "Demagogue: One who preaches doctrines he knows to be untrue to |
`\ men he knows to be idiots." -- Henry L. Mencken |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
'Gestalt' verstehen Sie nicht? [What part of |
`\ 'gestalt' don't you understand?]" -- Karsten M. Self |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ess", there's no OS-independent way to
do that. You'll need to write code that depends on a particular way of
getting at keypresses that won't work on all operating systems.
--
\ "Those who write software only for pay should go hurt some |
`\ other
ithin the 'setup.py' program, so my users don't
have to be aware of this unexpected default behaviour?
--
\ "I disapprove of what you say, but I will defend to the death |
`\ your right to say it." -- Evelyn Beatrice Hall, _The Friends |
_o__)
Ben Finney <[EMAIL PROTECTED]> writes:
> How can I, as the distributor of a package using setuptools, gain
> the benefits of dependency declaration and checking, without the
> drawback of unexpected and potentially unwanted download and
> installation?
To clarify: I want to
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
> Ben Finney schrieb:
> > To clarify: I want to retain the "assert the specified
> > dependencies are satisfied" behaviour, without the "... and, if
> > not, download and install them the Setupto
every dependency with every separate
application.
--
\ "If [a technology company] has confidence in their future |
`\ ability to innovate, the importance they place on protecting |
_o__) their past innovations really should decline." -- Gary Barnett |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > How would I modify my 'setup.py' script so that its default
> > behaviour, when dependencies are not met, is not "download and
> > install dependencies via
vant to any
programmer trying to adopt the practice. Its "web links" section is
also a useful starting point.
--
\ "I hope that after I die, people will say of me: 'That guy sure |
`\ owed me a lot of money.'" -- Jack Handey |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > So, if fifteen different programs depend on library X, we'd have
> > fifteen *separate* installations of library X on the same machine?
> >
> You need to get your opinions up to date. Fifteen copi
pecify IPv4 or IPv6.
If argparse treats those as numeric arguments instead of options,
that's violating the Principle of Least Astonishment for established
command-line usage (hyphen introduces an option).
--
\ "I went to a general store. They wouldn't let me buy anything |
9/>,
http://www.python.org/dev/peps/pep-3110/>
- Abstract Base Classes
http://www.python.org/dev/peps/pep-3119/>
- everything that's being added to 2.6 :-)
--
\ "I bought a self learning record to learn Spanish. I turned it |
`\ on and went to sle
on |
`\ technology as a McDonalds Certified Food Specialist is to the |
_o__) culinary arts." —Michael Bacarella |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
as an option (unless it follows an explicit '--'
option), and complain if the option is unknown.
--
\ "When I was a kid I used to pray every night for a new bicycle. |
`\Then I realised that the Lord doesn't work that way so I stole |
_o__)one and asked Hi
type on a command line will be treated as an option or an argument.
--
\"When I was crossing the border into Canada, they asked if I |
`\ had any firearms with me. I said, 'Well, what do you need?'" |
_o__) -- Ste
invocation.
--
\"Members of the general public commonly find copyright rules |
`\ implausible, and simply disbelieve them." -- Jessica Litman, |
_o__) _Digital Copyright_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Carl Banks <[EMAIL PROTECTED]> writes:
> On Sep 28, 6:19 pm, Ben Finney <[EMAIL PROTECTED]>
> wrote:
> > Steven Bethard <[EMAIL PROTECTED]> writes:
> > > A user shouldn't have to go out of their way to specify regular
> > > numbers on the comma
"exact
representation" problem, it doesn't solve it.
--
\ "Facts do not cease to exist because they are ignored." -- |
`\ Aldous Huxley |
_o__) |
Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
> Ben Finney a écrit :
> > Both Emacs and Vim are highly customisable text editors. They are
> > configurable with complete programming languages specific to the
> > program, and both have a huge community of pro
s |
`\ relevant as the question of whether submarines can swim." |
_o__)—Edsger W. Dijkstra |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
uot; Test cases for FooBar """
def test_slices_spam(self):
""" FooBar should slice spam """
self.failUnless(sends_spam)
def test_eats_eggs(self):
""" FooBar should eat eggs "
|
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ine)
--
\ "The cost of a thing is the amount of what I call life which is |
`\ required to be exchanged for it, immediately or in the long |
_o__)run." -- Henry David Thoreau |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
is contagious ... if the government becomes a |
`\lawbreaker, it breeds contempt for the law." -- Justice Louis |
_o__) Brandeis |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
;Philosophy is questions that may never be answered. Religion |
`\ is answers that may never be questioned." —anonymous |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
er necessary, since the same object is now also
available by the name 'Foo' directly from 'mypackage' because you
explicitly put it there.
--
\ "Pinky, are you pondering what I'm pondering?" "Uh, I think so, |
`\ Brain, but we'll never get a monkey to use dental floss." -- |
_o__)_Pinky and The Brain_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
uot; does *not* describe them in the absence of those
necessary and non-default qualifiers, and is misleading.
--
\ "I wish there was a knob on the TV to turn up the intelligence. |
`\ There's a knob called 'brightness' but it doesn't work." -- |
_o__)
gt;
--
\"I'd take the awe of understanding over the awe of ignorance |
`\ any day." -- Douglas Adams |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
try:
>thingy()
>assert 42 == 43
Clearer would be:
assert False
> except GoodException:
>pass
--
\"Some people, when confronted with a problem, think 'I know, |
`\ I'll use regular expressions'. Now they have
Ben Finney <[EMAIL PROTECTED]> writes:
> Paul Rubin <http://[EMAIL PROTECTED]> writes:
>
> > Giampaolo Rodolà <[EMAIL PROTECTED]> writes:
> > > What's the equivalent of unittest's "assertRaises"?
> >
> > def test_raises():
&
Paul Rubin <http://[EMAIL PROTECTED]> writes:
> Ben Finney <[EMAIL PROTECTED]> writes:
> > Or even better:
> >
> > def test_raises_good_exception():
> > try:
> > thingy()
>
> Well if we're grading on style, m
d creating the instance is to seed it with anything you *don't*
want returned as a Mock.
--
\ "Laugh and the world laughs with you; snore and you sleep |
`\ alone." -- Anonymous |
_o__)
(Please don't send me personal copies of messages that are sent to the
forum; I read via the newsgroup, and it's annoying to also get replies
in email when I didn't send an email message.)
"Simon Brunning" <[EMAIL PROTECTED]> writes:
> On 10/12/07, Ben Finney &
nly the final delivery host gets to say whether it's valid or not.
--
\ "Saying that Java is nice because it works on all OSes is like |
`\saying that anal sex is nice because it works on all genders" |
_o__) -- http://bash.org/ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney <[EMAIL PROTECTED]> writes:
> I've had good results with Ian Bicking's 'minimock.py'
> http://blog.ianbicking.org/minimock.html>. It uses the existing
> 'doctest' functionality for its output [...]
That doesn't make much sense,
ime.timedelta(4, 25526)
>>> value - datetime.datetime(2007, 11, 26, 0, 0, 0)
datetime.timedelta(-41, 55845)
--
\ "Experience is that marvelous thing that enables you to |
`\ recognize a mistake when you make it again." -- Franklin P. |
_o__)Jones |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
are part of the
module I'm trying to learn about, and which are not.
--
\ "I'm beginning to think that life is just one long Yoko Ono |
`\ album; no rhyme or reason, just a lot of incoherent shrieks and |
_o__) then it's over." -- Ian Wolff |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
s program." |
`\—Microsoft Vista security dialogue |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] (Joan M. Garcia) writes:
> Ben Finney <[EMAIL PROTECTED]> writes:
> > Please don't ever recommend 'from foo import *' in end-user
> > documentation. [...]
>
> Got it, and solved. Thanks.
Thanks for the quick response.
A further
Brain, but what kind of rides do they have in Fabioland?" -- |
_o__)_Pinky and The Brain_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney <[EMAIL PROTECTED]> writes:
> A further issue, that requires a change of interface: Please comply
> with PEP 8 http://www.python.org/dev/peps/pep-0008/> for your
> module interface. In particular, please name classes with TitleCase,
> and functions, methods, an
2501 - 2600 of 4138 matches
Mail list logo