in part of the contented majority who love |
`\anybody who is worth a billion dollars.” —John Kenneth |
_o__)Galbraith, 1992-05-23 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
e of any distinction made between ‘r’ or ‘R’ in this
context.
--
\ “Give a man a fish, and you'll feed him for a day; give him a |
`\religion, and he'll starve to death while praying for a fish.” |
_o__) —Anonymous |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
urn ‘False’.
FYI, ‘foo in bar.keys()’ is easier to spell as ‘foo in bar’.
--
\ “It is wrong to think that the task of physics is to find out |
`\ how nature *is*. Physics concerns what we can *say* about |
_o__) nature…” —Niels Bohr |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ber that the entire universe, with one |
`\ trifling exception, is composed of others.” —John Andrew Holmes |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ediately and help you get to the meat of the problem.
--
\ “We now have access to so much information that we can find |
`\ support for any prejudice or opinion.” —David Suzuki, 2008-06-27 |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
d make facts harmonise with my |
_o__) aspirations.“ —Thomas Henry Huxley, 1860-09-23 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
where it understood |
`\ nuclear physics, but it would still be a very stupid thing to |
_o__) do!” —The Doctor, _The Two Doctors_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ce!” “Why?” “Shut up! I don't need your fucking |
`\ *input*, I need you to roll dice!” —Luke Crane, demonstrating |
_o__) his refined approach to play testing, 2009 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ive by: Don't make it worse.” —Hazel |
`\ Woodcock |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
erating systems use Python 2.4 as their implementation of
‘python’?
--
\ “Anyone who believes exponential growth can go on forever in a |
`\finite world is either a madman or an economist.” —Kenneth |
_o__) Boulding |
Ben
use.
--
\ “When I get new information, I change my position. What, sir, |
`\ do you do with new information?” —John Maynard Keynes |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
the demand.” —Josh Billings |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
development, 2002 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
good ideas.” —anonymous |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
cial conventions was to
limit the scale of the damage already done.
--
\ “Facts do not cease to exist because they are ignored.” —Aldous |
`\Huxley |
_o__) |
rface attached to the end of a long stick.” |
_o__) —Jack Handey |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
me a bicycle with three speeds is |
_o__) just so unlikely that I can't go along with it.” —Quentin Crisp |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin writes:
> Ben Finney writes:
> > So how should I be sorting a list with entries of “unequal types”
> > such that it will work in Python 3?
>
> Um, what ordering do you want?
The same ordering I'd get in Python 2; that is, determined by the types
of t
ki.com/wiki/No_True_Scotsman>,
thanks in advance.
--
\ “Natural catastrophes are rare, but they come often enough. We |
`\ need not force the hand of nature.” —Carl Sagan, _Cosmos_, 1980 |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
porting it to Python 3 :-)
Thanks for the helpful responses.
--
\“Most people, I think, don't even know what a rootkit is, so |
`\ why should they care about it?” —Thomas Hesse, Sony BMG, 2006 |
_o__) |
Steven D'Aprano writes:
> On Fri, 29 Jan 2010 08:33:58 +1100, Ben Finney wrote:
> > Perhaps Steven could tell you about a lovely Australian meaning for
> > the word “date”.
>
> This is a family list, so perhaps I shouldn't. :)
>
> In Australia slang, "da
ylight in my apartment. The people who live |
`\ above me are furious!” —Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
nothing, for I no verbs.” —Peter Ellis |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Mr. Brave man, I guess I'm a coward.” —Jack Handey |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
yte ordering.
--
\ “I got up the other day, and everything in my apartment has |
`\ been stolen and replaced with an exact replica.” —Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ng |
`\ them down? We might, if they screamed all the time, for no good |
_o__) reason.” —Jack Handey |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
better than inheritance.
--
\ “He may look like an idiot and talk like an idiot but don't let |
`\ that fool you. He really is an idiot.” —Groucho Marx |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
t it was no match for me |
`\ at kick boxing.” —Emo Philips |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
can *install* them at the same time, but
please don't *duplicate* them, forking them as though they're part of
your code base.
--
\ “We are not gonna be great; we are not gonna be amazing; we are |
`\ gonna be *amazingly* amazing!” —Zaphod Beeblebrox, _The |
_o__)Hitch-Hiker's Guide To The Galaxy_, Douglas Adams |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
\ the demand.” —Josh Billings |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
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
Ben Finney writes:
> There are many epochs that have been used in computing
> http://en.wikipedia.org/wiki/Epoch_(reference_date)#Notable_epoch_dates_in_computing>,
> all of which have their problems. Switching from the Unix epoch to some
> other involves data conversion, and (a
s this implementation better than the one using ‘super’?
--
\“I was once walking through the forest alone and a tree fell |
`\ right in front of me, and I didn't hear it.” —Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
an uninterrupted number line)
--
\ “When we talk to God, we're praying. When God talks to us, |
`\ we're schizophrenic.” —Jane Wagner, via Lily Tomlin, 1985 |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
” —Steven Wright |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
so needs reforming as other people's habits.” —Mark |
`\ Twain, _Pudd'n'head Wilson_ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
object is not callable".
Nothing in your example code is calling a tuple object. This makes me
suspect that what you showed us is not what you actually tried.
You might want to try the above session yourself and paste the resulting
session *literally* (rather than re-typing) as I did abo
, I think so |
`\ Brain, but this time, you wear the tutu.” —_Pinky and The Brain_ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
StarWing writes:
> On 10月18日, 下午12时19分, Ben Finney wrote:
> > Jabba Laci writes:
> > > Right, it was my bad. After removal the tuple() function works
> > > perfectly.
> >
> > Note that, though it is callable, ‘tuple’ is not a function but a
> > type
deration for the selfishness of |
`\ others.” —Ambrose Bierce, _The Devil's Dictionary_, 1906 |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
“We must become the change we want to see.” —Mahatma Gandhi |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Jive Dadson writes:
> Ben Finney wrote:
> > >>> friday_weekday = 4
> > >>> len([
> > ... date for date in (
> > ... begin_date + datetime.timedelta(days)
> > ... for days in range((end_date - begin_date).d
ex cases where they are compound expressions, that can therefore
raise other errors depending on what those expressions contain.
--
\ “Don't be afraid of missing opportunities. Behind every failure |
`\ is an opportunity somebody wishes they had missed.” —Jane |
_o__) Wagner, via Lily Tomlin |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
cage.” —Henry L. Mencken |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
d |
`\ despise the groups they identify with and belong to.” —George |
_o__) Carlin, 2007 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Richard Riley writes:
> Ben Finney writes:
> > Reported to service provider as spam.
>
> Please don't reply to SPAM. You just make it visible to those of us
> with better filters. Hint : spammers do not read your reply.
I didn't quote the spam except to be clear whi
ntil now).
* A document answering Frequently Asked Questions is now added.
--
\ “Any intelligent fool can make things bigger and more complex… |
`\It takes a touch of genius – and a lot of courage – to move in |
_o__)the opposite direction.” —Albert Einste
t appear there.
--
\ “What I have to do is see, at any rate, that I do not lend |
`\ myself to the wrong which I condemn.” —Henry Thoreau, _Civil |
_o__) Disobedience_ |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
standard library?
--
\ “I've always wanted to be somebody, but I see now that I should |
`\ have been more specific.” —Jane Wagner, via Lily Tomlin |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
, rebellious, and immature.” —Tom Robbins |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
s in our released software that |
`\ any significant number of users want fixed.” —Bill Gates, |
_o__) 1995-10-23 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney writes:
> Steven D'Aprano writes:
>
> > On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote:
> > > class formLoader():
> >
> > Idiomatic Python is to use CamelCase for classes.
>
> Or rather: Instead of camelCase names, idiomatic P
e when you don't yet know which
one you want.
--
\ “The fact that I have no remedy for all the sorrows of the |
`\ world is no reason for my accepting yours. It simply supports |
_o__) the strong probability that yours is a fake.” —Henry L. Mencken |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
—Niels Bohr |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
be great; we are not gonna be amazing; we are |
`\ gonna be *amazingly* amazing!” —Zaphod Beeblebrox, _The |
_o__)Hitch-Hiker's Guide To The Galaxy_, Douglas Adams |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
nny here and a penny there, but look at |
`\ me: I've worked myself up from nothing to a state of extreme |
_o__) poverty.” —Groucho Marx |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
n/support.
--
\ “We are all agreed that your theory is crazy. The question that |
`\ divides us is whether it is crazy enough to have a chance of |
_o__)being correct.” —Niels Bohr (to Wolfgang Pauli), 1958 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
“Simplicity is prerequisite for reliability.” —Edsger W. |
`\ Dijkstra |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Albert Hopkins writes:
> On Sat, 2009-10-31 at 10:08 +1100, Ben Finney wrote:
> > Yes, it would be nice if the ‘time’, ‘datetime’, and ‘calendar’
> > modules were all much more unified and consumed a common set of
> > primitive date+time types. It's a wart, and fixing i
hange, not covered by PEP 3108 nor any Python 2→3 PEP
to my knowledge.
--
\ “Alternative explanations are always welcome in science, if |
`\ they are better and explain more. Alternative explanations that |
_o__) explain nothing are not welcome.” —Victor J. Stenger, 2001-11-05 |
B
dule anyway.
--
\ “We demand rigidly defined areas of doubt and uncertainty!” |
`\—Vroomfondel, _The Hitch-Hiker's Guide To The Galaxy_, Douglas |
_o__) Adams |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ting up new walled
gardens.
--
\“None can love freedom heartily, but good men; the rest love |
`\ not freedom, but license.” —John Milton |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/list
+ b) for (a, b) in zip(operandlist1, operandlist2)]
>>> resultlist
[6, 6, 6, 6, 6]
--
\ “Creativity can be a social contribution, but only in so far as |
`\society is free to use the results.” —Richard Stallman |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ile, you should probably marry
them as being your soul mate.
--
\ “We tend to scoff at the beliefs of the ancients. But we can't |
`\scoff at them personally, to their faces, and this is what |
_o__) annoys me.” —Jack Handey |
Bruno Desthuilliers writes:
> Ben Finney a écrit :
> > (Does anyone know of a counter-example, a ‘map()’ operation that
> > doesn't have a correspondingly simple list comprehension?)
>
> ... depends on your definition of "simple". There are things I'd
&
s case.
--
\ “He may look like an idiot and talk like an idiot but don't let |
`\ that fool you. He really is an idiot.” —Groucho Marx |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> On Mon, 02 Nov 2009 19:19:41 +1100, Ben Finney wrote:
>
> > "Jon P." writes:
> >
> >> I'd like to do:
> >>
> >> resultlist = operandlist1 + operandlist2
> >
> > That's an unfortun
ectorsum([1,2], [3,4], [5,6])
[9, 12]
>>> vectorsum([1,2], [3,4], [5,6], [7,8])
[16, 20]
--
\ “The apparent lesson of the Inquisition is that insistence on |
`\ uniformity of belief is fatal to intellectual, moral, and |
_o__)spiritual health.” —_The Uses Of The
e output to be?
--
\ “Remorse: Regret that one waited so long to do it.” —Henry L. |
`\ Mencken |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
", "", "baz"]
>>> [s for s in (s.strip() for s in lines) if s]
['foo', 'bar', 'baz']
--
\ “[I]t is impossible for anyone to begin to learn that which he |
`\ thinks he already knows.” —Epictetus, _Dis
`\ —Mark Twain, _Following the Equator_ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
o believe and take |
`\ for granted … but to weigh and consider.” —Francis Bacon |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
essly inadequate for showing |
_o__) their absence.” —Edsger W. Dijkstra |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
|
`\ them in the same room and let them fight it out.” —Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
do you do with new information?” —John Maynard Keynes |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
—Henry L. Mencken |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
-
\ “If I had known what it would be like to have it all... I might |
`\ have been willing to settle for less.” —Jane Wagner, via Lily |
_o__) Tomlin |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
culinary arts.” —Michael Bacarella |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
--
\ “Just because nobody complains doesn't mean all parachutes are |
`\ perfect.” —Benny Hill |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> On Wed, 04 Nov 2009 23:08:54 +1100, Ben Finney wrote:
>
> > Steven D'Aprano writes:
> >> Why would I want to use an already existing library that is fast,
> >> well- written and well-supported, when I can toss together a nasty
&g
l: %(url)s
user status: %(status)s
""") % vars(user)
--
\ “My classmates would copulate with anything that moved, but I |
`\ never saw any reason to limit myself.” —Emo Philips |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
t |
`\ how nature *is*. Physics concerns what we can *say* about |
_o__) nature…” —Niels Bohr |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
t forget to say what you expect the
code to do differently.
--
\ “I can picture in my mind a world without war, a world without |
`\ hate. And I can picture us attacking that world, because they'd |
_o__) never expect it.” —Jack Handey |
Ben Fi
icode.html>.
--
\ “We must respect the other fellow's religion, but only in the |
`\ sense and to the extent that we respect his theory that his |
_o__) wife is beautiful and his children smart.” —Henry L. Mencken |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
(since the reference only exists while the function is executing).
--
\ “Roll dice!” “Why?” “Shut up! I don't need your fucking |
`\ *input*, I need you to roll dice!” —Luke Crane, demonstrating |
_o__) his refined approach to play testing, 2009 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
ely unfamiliar with the details of ‘upstart’. Can
you point me to whatever you used to understand it?
--
\ “I bought some batteries, but they weren't included; so I had |
`\to buy them again.” —Steven Wright |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
x27;re going into databases off the deep end
with a problem domain like this :-)
--
\ “I distrust those people who know so well what God wants them |
`\to do to their fellows, because it always coincides with their |
_o__) own desires.” —Susan Brownell Anthony, 1896 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
d talk and the next twelve years |
_o__) telling them to sit down and shut up.” —Phyllis Diller |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
>
and what assignment statements do
http://docs.python.org/reference/simple_stmts.html#assignment-statements>.
--
\ “As we enjoy great advantages from the inventions of others, we |
`\ should be glad to serve others by any invention of ours; and |
_o__) this we should do freely
e-hash the same tired topic.
Thank you.
--
\ “What I resent is that the range of your vision should be the |
`\ limit of my action.” —Henry James |
_o__) |
Ben Finney
--
http://mail.python
the Subject field is an entirely
relevant concise description of the information being sought.
--
\ “bash awk grep perl sed, df du, du-du du-du, vi troff su fsck |
`\ rm * halt LART LART LART!” —The Swedish BOFH, |
_o__) al
se for boredom, |
_o__) ever.” —Viggo Mortensen |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
|
`\ somebody turns it on, I go to the library and read a book.” |
_o__) —Groucho Marx |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
“If society were bound to invent technologies which could only |
`\ be used entirely within the law, then we would still be sitting |
_o__) in caves sucking our feet.” —Gene Kan, creator of Gnutella |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
nes and the conventions of the language.
--
\ “Hey Homer! You're late for English!” “Pff! English, who needs |
`\ that? I'm never going to England!” —Barney & Homer, _The |
_o__) Simpsons_ |
Ben Finney
--
http:
Steven D'Aprano writes:
> On Thu, 19 Nov 2009 10:56:35 +1100, Ben Finney wrote:
>
> > It's quite improper (though syntactically null, in Python) to have
> > trailing whitespace on lines. That includes blank lines.
>
> Blank lines are far from improper in Pyth
s the still voice |
`\ within.” —Mahatma Gandhi |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
himself, without regard to the |
_o__) prevailing superstitions and taboos.” —Henry L. Mencken |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
hzbhe-vzcnverq nzbat lbh)
--
\ “Courteous and efficient self-service.” —café, southern France |
`\ |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
3501 - 3600 of 4138 matches
Mail list logo