rec.humor.oracle.d |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
tance’.
--
\ “I believe our future depends powerfully on how well we |
`\ understand this cosmos, in which we float like a mote of dust |
_o__) in the morning sky.” —Carl Sagan, _Cosmos_, 1980 |
Ben Finney
___
Tutor
s, so that all the small things go in the right |
_o__) direction.” —Alvin Toffler |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
me at chess, but it was no match for me |
`\ at kick boxing.” —Emo Philips |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or
sts can do to weaken the hold of |
`\religion should be done and may in the end be our greatest |
_o__) contribution to civilization.” —Steven Weinberg |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or cha
f fear.” —Mark Twain, _Pudd'n'head Wilson_ |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
It does indeed cease executing the function, but that's because it
continues elsewhere (back at the site where the function was called).
--
\ “No smoothen the lion.” —lion cage, zoo, Czech Republic |
`\
we can test our ideas.… But |
`\ until we do, until we have data, it is just one more proposal.” |
_o__) —Darren Saunders, 2015-12-02 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
o education.” —Alvin |
_o__)Toffler, _Future Shock_, 1970 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ger, 2001-11-05 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
obs/>.
--
\ “I was trying to daydream, but my mind kept wandering.” —Steven |
`\Wright |
_o__) |
Ben Finney
___
e
message. So I'd say that is inferior to attaching the program text.
--
\ “Now Maggie, I’ll be watching you too, in case God is busy |
`\ creating tornadoes or not existing.” —Homer, _The Simpsons_ |
_o__)
Intellectual property is to the 21st century what the slave |
`\ trade was to the 16th.” —David Mertz |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change sub
to the end of a long stick.” |
_o__) —Jack Handey |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
|
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
|
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
--
\ “The future always arrives too fast, and in the wrong order.” |
`\—Alvin Toffler |
_o__) |
Ben Finney
___
Tutor mailli
is, so |
`\ why should they care about it?” —Thomas Hesse, Sony BMG, 2006 |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
h
aviour.
--
\ “Try to learn something about everything and everything about |
`\ something.” —Thomas Henry Huxley |
_o__) |
Ben Finney
___
Tutor mai
le.” —Mark Twain, _Pudd'n'head Wilson_ |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
en it.” —Steven |
_o__) Wright |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
xley |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ght that he is unwilling to accord to |
`\ his fellow-men is dishonest and infamous.” —Robert G. |
_o__) Ingersoll, _The Liberty of Man, Woman and Child_, 1877 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
cs.io/en/latest/examples.html#lock-decorator>
seem to be what you want.
--
\“… Nature … is seen to do all things Herself and through |
`\ herself of own accord, rid of all gods.” —Titus Lucretius |
_o__)
“I think it would be a good idea.” —Mohandas K. Gandhi (when |
`\asked what he thought of Western civilization) |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
to a text file, and execute
that.
--
\ “Nature is trying very hard to make us succeed, but nature does |
`\ not depend on us. We are not the only experiment.” —Richard |
_o__) Buckminster Fuller, 1978-04-30 |
Ben Finney
__
ll different.
https://en.wikipedia.org/wiki/The_Treachery_of_Images>
--
\ “Programs must be written for people to read, and only |
`\incidentally for machines to execute.” —Abelson & Sussman, |
_o__) _Structure and Interpretation of Computer Programs_ |
Ben Finney
“Firmness in decision is often merely a form of stupidity. It |
`\indicates an inability to think the same thing out twice.” |
_o__) —Henry L. Mencken |
Ben Finney
___
Tutor maillist - Tutor@
exactly, you might rule case sensitivity out.
Traceback (most recent call last):
File "testgrib.py", line 16, in
uwind = grbs.select(name='U-Component of wind')[0]
File "pygrib.pyx", line 609, in pygrib.open.select (pygrib.c:6175)
ValueError: no matches found
HTH,
-Ben I.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Thanks. Pythonista looks good. Do you know if it can use any module? Besides
the standard libraries that come with python I also use selenium. I'm not sure
if it would work with pythonista.
In my mac selenium needs at least python 2.7. I wasn't able to get selenium to
work for a while and it tur
Btw I don't have any GUI so that's not an issue.
Sent from my iPad
On Mar 10, 2013, at 6:07 PM, William Ray Wing wrote:
> On Mar 10, 2013, at 6:18 PM, Sven wrote:
>
>> On 10 March 2013 21:42, Benjamin Fishbein wrote:
>>> Hello. I wrote some python programs for my small business that I run on
\ his fellow-men is dishonest and infamous.” —Robert G. |
_o__) Ingersoll, _The Liberty of Man, Woman and Child_, 1877 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
e at a penny.” —Cato, 234–149 BCE, Relique |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ject,
without any name having a special status.
--
\ “True greatness is measured by how much freedom you give to |
`\ others, not by how much you can coerce others to do what you |
_o__) want.” —Larry Wall |
Ben Finney
__
nothing for faith.” —Saint Bernard, 1090–1153 |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
lings |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
aware of that.
Hope that helps!
--
\“Choose mnemonic identifiers. If you can't remember what |
`\mnemonic means, you've got a problem.” —Larry Wall |
_o__) |
Ben Finney
___
other field.” —Erik Naggum, in _gnu.misc.discuss_ |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
on, shares the crime.” —Erasmus Darwin, |
`\ grandfather of Charles Darwin |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe
ify some people, and astonish |
`\the rest.” —Mark Twain |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or chang
e world… is the inability of the |
`\human mind to correlate all its contents.” —Howard Philips |
_o__) Lovecraft |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or cha
Scott W Dunning writes:
> On Mar 1, 2014, at 12:47 AM, Ben Finney wrote:
>
> > You've bound the name ‘current_guess’ to the user's input, but then do
> > nothing with it for the rest of the function; it will be discarded
> > without being used.
> Hmm, I’
Ben Finney writes:
> So, you have one name ‘guess_number’ bound to the function's parameter.
> Don't bind anything else to it!
By which I mean, don't bind that name to anything else in the function
(don't re-assign any other value to that name in the function). K
n file object is an iterable, but is not a sequence.
--
\ “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__) —Eugene P. Gallagher |
Ben Finney
d; it takes me as much |
`\ as a week sometimes to make it up.” —Mark Twain, _The Innocents |
_o__) Abroad_ |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
is: What are you expecting? What are you experiencing instead?
--
\ “Not using Microsoft products is like being a non-smoker 40 or |
`\ 50 years ago: You can choose not to smoke, yourself, but it's |
_o__) hard to avoid second-hand smoke.” —Michael Tiemann |
Ben Finney
__
`\ ability to innovate, the importance they place on protecting |
_o__) their past innovations really should decline.” —Gary Barnett |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mai
nius – and a lot of courage – to move in |
_o__)the opposite direction.” —Albert Einstein |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
—Richard Buckminster Fuller, _Critical Path_, 1981 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
even know what a rootkit is, so |
`\ why should they care about it?” —Thomas Hesse, Sony BMG, 2006 |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or c
Ben Finney writes:
> It's best not to guess what attributes are in a type (otherwise known as
> the “API” for the type). Instead, consult the documentation. For
> Tkinter, that is http://www.python.org/topics/tkinter/>.
My apologies; there's a broken link in the documentat
Peter Otten <__pete...@web.de> writes:
> Ben Finney wrote:
> > And Python is correct, the ‘Image’ type has no ‘open’ attribute. What
> > leads you to think that would work? If there is some article online
> > telling you to use that, it's incorrect; please help us
Alan Gauld writes:
> On 09/03/14 19:56, Ben Finney wrote:
> > Now all I need is for the Tkinter-using community to change itself
> > to fix this confusing practice [‘from tkinter import *’]. I won't
> > hold my breath.
>
> I don't find everyone in the
-
\“There are no significant bugs in our released software that |
`\ any significant number of users want fixed.” —Bill Gates, |
_o__) 1995-10-23 |
Ben Finney
___
Tutor maillist -
Scott W Dunning writes:
> On Mar 10, 2014, at 8:52 PM, Ben Finney wrote:
> >
> > What does the Python interactive prompt display when you first launch an
> > interactive Python shell?
>
> Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54)
> [GCC 4.2.1
uing through the tutorial.
--
\“Humanity has advanced, when it has advanced, not because it |
`\ has been sober, responsible, and cautious, but because it has |
_o__)been playful, rebellious, and immature.” —Tom Robbins |
Ben Finney
_
gly* amazing!” —Zaphod Beeblebrox, _The |
_o__)Hitch-Hiker's Guide To The Galaxy_, Douglas Adams |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
d. Sad, yes. Angry, yes. |
`\Depressed, yes. Crazy, yes. But there's no excuse for boredom, |
_o__) ever.” —Viggo Mortensen |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or chan
es are *currently* bound to at the time of evaluation.
--
\“When in doubt tell the truth. It will confound your enemies |
`\ and astound your friends.” —Mark Twain, _Following the Equator_ |
_o__)
0 positional, 0 keyword pair)
9 UNARY_NEGATIVE
10 RETURN_VALUE
--
\ “When I get new information, I change my position. What, sir, |
`\ do you do with new information?” —John Maynard Keynes |
_o__)
Dave Angel writes:
> Ben is right, dunder methods don't belong in introductory texts.
[…]
> But he didn't show you the simplest fix:
>
> (-3).__abs__()
I disagree; the simplest fix is not to call that method directly, and
just use::
abs(-3)
--
\ “C
but will be very
> grateful if I am helped.
Hope that helps you!
--
\ “Two hands working can do more than a thousand clasped in |
`\ prayer.” —Anonymous |
_o__) |
Ben
roperty is to the 21st century what the slave |
`\ trade was to the 16th.” —David Mertz |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsu
He approve ours.” —Helga Bergold Gross |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
mean.
--
\ “Truth would quickly cease to become stranger than fiction, |
`\ once we got as used to it.” —Henry L. Mencken |
_o__) |
Ben Finney
___
Tut
—Steven Wright |
`\ |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
`\others of exclusive property, it is the action of the thinking |
_o__) power called an idea” —Thomas Jefferson |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
the annoyance of a |
`\ good example.” —Mark Twain, _Pudd'n'head Wilson_ |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
swim without getting wet?” —Steven |
`\Wright |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or
I would be on the other side of you.” |
`\ —Groucho Marx |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe o
Hello,
So I thought it would be cool to read a sequence at three different frames,
which I have pasted below. However, I've come across a conundrum: how to
make a list of lists. See, I'd like a final output that displays data of
the type of frame with a + or a - to signify the direction of the rea
Whats a more pythony way to do this? I have a dict with a few dozen
elements, and I want to pull a few out. I've already shortened it with
itemgetter, but it still seems redundant. I feel like I can do something
like I've seen with *kwargs, but I'm not sure.
I'm using old style sprintf formatti
he far side of some new |
`\ horizon, we remember those who prepared the way – seeing for |
_o__) them also.” —Carl Sagan, _Cosmos_, 1980 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription op
proposals need
to meet in order to be accepted.
--
\ “I got some new underwear the other day. Well, new to me.” —Emo |
`\ Philips |
_o__) |
Ben Finney
_
ntrol flow, and often they
are exactly what is needed.
--
\ “The Things to do are: the things that need doing, that you see |
`\ need to be done, and that no one else seems to see need to be |
_o__) done.” —Richard Buckminster Fuller, 1970-02-16 |
Ben Finney
_
that His will be done, but |
`\ that He approve ours.” —Helga Bergold Gross |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https
memilanuk writes:
> On 07/31/2014 08:22 PM, Ben Finney wrote:
> >> max_key = max(counts, key=counts.get)
> >
> > This specifies ‘counts.get’, without calling it. The expression
> > ‘counts.get’ evaluates to that function object.
> >
> > That va
memilanuk writes:
> On 07/31/2014 11:46 PM, Ben Finney wrote:
>
> > The ‘max’ function can be told how to determine the ordering of
> > items, by specifying a key parameter. The parameter is specified by
> > giving a value; that value is a function.
>
> Hmmm... mi
self-contained.
--
\ “I bought some batteries, but they weren't included; so I had |
`\to buy them again.” —Steven Wright |
_o__) |
Ben Finney
think.” —Niels Bohr |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
it in the right way, did not become still |
_o__) more complicated.” —Paul Anderson |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
oes |
`\ knowledge.” —Charles Darwin, _The Descent of Man_, 1871 |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
ht
tionality.” —Bertrand Russell |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
"", line 9, in convert
ValueError: Unexpected type for data 12
>>> convert('Spam')
Traceback (most recent call last):
File "", line 1, in
File "", line 9, in convert
ValueError: Unexpected type for data 'Spam'
ithout |
_o__) evidence.” —Sam Harris, _Letter to a Christian Nation_ 2006 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi, Can anyone help explain why you can keep hitting the Mole even when
hittable should be False?
from tkinter import *
root = Tk()
#root.state('zoomed')
sec = 0
points=0
pic=PhotoImage(file='Dirt.gif')
pic2=PhotoImage(file='Mole.gif')
hittable=False
def HIT():
if hittable==True:
gl
uestion from what you seem to be
asking, so I don't know.
--
\ “The best is the enemy of the good.” —Voltaire, _Dictionnaire |
`\Philosophique_ |
_o__) |
Ben Finney
___
st not fool yourself, and you are the |
_o__) easiest person to fool.” —Richard P. Feynman, 1964 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
olifically as a
flow control method, for code to let its call stack know something
unusual occurred.
--
\ “I went camping and borrowed a circus tent by mistake. I didn't |
`\ notice until I got it set up. People complained because they |
_o__) couldn
that is priceless.
--
\ “Very few things happen at the right time, and the rest do not |
`\ happen at all. The conscientious historian will correct these |
_o__) defects.” —Mark Twain, _A Horse's Tale_ |
Ben Finney
___
Tutor
rates the problem, and show it here?
--
\ “The cost of education is trivial compared to the cost of |
`\ ignorance.” —Thomas Jefferson |
_o__) |
B
arms |
`\ from the statues that are in all the other museums.” —Steven |
_o__) Wright |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
an unfortunate accident.” —Geoffrey Robertson, 2010-09-18 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
gt;software, and I don't know what that is.
>
>
>--
>Steve
>___
>Tutor maillist - Tutor@python.org
>To unsubscribe or change subscription options:
>https://mail.python.org/mailman/listinfo/tutor
en Wright |
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
This is a forum for *tutoring*, which means you still have to do the
work.
--
\ “We must find our way to a time when faith, without evidence, |
`\disgraces anyone who would claim it.” —Sam Harris, _The End of |
_o__) Faith_, 2004 |
B
use |
`\ Perl!”. Now they have some number of problems but they're not |
_o__) sure whether it's a string or an integer.” —Benno Rice, 2011 |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
dering of U+0009 characters.
--
\ “I went to a restaurant that serves ‘breakfast at any time’. So |
`\I ordered French Toast during the Renaissance.” —Steven Wright |
_o__) |
Ben Finney
___
|
_o__) |
Ben Finney
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
uot;, "address": "111 Street" }
--
\ “For fast acting relief, try slowing down.” —Jane Wagner, via |
`\ Lily Tomlin |
_o__) |
Ben Finney
__
201 - 300 of 367 matches
Mail list logo