Re: [Tutor] Writing decorators?

2016-07-20 Thread Ben Finney
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

Re: [Tutor] OOP help needed

2016-07-26 Thread Ben Finney
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

Re: [Tutor] project directory structure

2016-08-25 Thread Ben Finney
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

Re: [Tutor] project directory structure

2016-08-26 Thread Ben Finney
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

Re: [Tutor] Running Python code without python installed

2016-08-27 Thread Ben Finney
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

Re: [Tutor] Questions as to how to run the same unit test multiple times on varying input data.

2016-09-24 Thread Ben Finney
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

Re: [Tutor] python coding problem

2016-09-26 Thread Ben Finney
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 | `\

[Tutor] Google is not your friend (was: NumPy and SciPy)

2016-09-27 Thread Ben Finney
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

Re: [Tutor] Passing functions as arguments to other functions

2016-09-29 Thread Ben Finney
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

Re: [Tutor] Passing functions as arguments to other functions

2016-09-30 Thread Ben Finney
ger, 2001-11-05 | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] How to employ a Python programmer to help (was: Help please)

2016-10-20 Thread Ben Finney
obs/>. -- \ “I was trying to daydream, but my mind kept wandering.” —Steven | `\Wright | _o__) | Ben Finney ___

[Tutor] Attaching program text to messages (was: Python v3 Tkinter GUI program)

2016-10-24 Thread 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__)

Re: [Tutor] Attaching program text to messages

2016-10-24 Thread Ben Finney
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

Re: [Tutor] Alternative to for/while loop

2016-10-25 Thread Ben Finney
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

Re: [Tutor] What is wrong with my Python program that causes it to run but not give results?

2016-10-25 Thread Ben Finney
| _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Assessing local variable outside function

2016-10-28 Thread Ben Finney
| _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Turn off digest mode before participating in the forum (was: Module webbrowser.os)

2016-11-03 Thread Ben Finney
-- \ “The future always arrives too fast, and in the wrong order.” | `\—Alvin Toffler | _o__) | Ben Finney ___ Tutor mailli

Re: [Tutor] compress directory

2016-11-03 Thread Ben Finney
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

Re: [Tutor] tar a directory

2016-11-03 Thread Ben Finney
aviour. -- \ “Try to learn something about everything and everything about | `\ something.” —Thomas Henry Huxley | _o__) | Ben Finney ___ Tutor mai

[Tutor] Call an external program and capture its output (was: Q regarding external program calling)

2016-11-05 Thread Ben Finney
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

Re: [Tutor] Python Help

2016-11-16 Thread Ben Finney
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

Re: [Tutor] Python code

2016-11-24 Thread Ben Finney
xley | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] file opened by open() are closed automaticaly

2017-01-14 Thread Ben Finney
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

Re: [Tutor] Lock File Usage

2017-01-30 Thread Ben Finney
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__)

Re: [Tutor] Lock File Usage

2017-02-01 Thread Ben Finney
“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

Re: [Tutor] Syntax error while attempting to type in multiline statements in the interactive interpreter

2017-02-04 Thread Ben Finney
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 __

Re: [Tutor] Test for type(object) == ???

2017-02-10 Thread 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

[Tutor] The benefits of a junior programmer (was: Learning Objectives?)

2017-02-28 Thread 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@

Re: [Tutor] pygrib issues involving wind

2017-02-28 Thread Ben Iannitelli
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

Re: [Tutor] python on ipad

2013-03-10 Thread Ben Fishbein
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

Re: [Tutor] python on ipad

2013-03-10 Thread Ben Fishbein
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

Re: [Tutor] Python shell wont open IDLE or an exisiting .py files

2014-01-29 Thread Ben Finney
\ 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

Re: [Tutor] when is "pythondontwritebytecode" useful?

2014-02-17 Thread Ben Finney
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

[Tutor] Assignment, references, binding (was: is an alias a variable)

2014-02-17 Thread Ben Finney
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 __

[Tutor] Programmatic access to email archives (was: constructing semi-arbitrary functions)

2014-02-19 Thread 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

Re: [Tutor] Function help

2014-02-23 Thread Ben Finney
lings | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] I can't understand where python class methods come from

2014-02-23 Thread Ben Finney
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 ___

Re: [Tutor] Editing values from a dictionary

2014-02-26 Thread 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

Re: [Tutor] Python help

2014-02-28 Thread Ben Finney
on, shares the crime.” —Erasmus Darwin, | `\ grandfather of Charles Darwin | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] running unittests on multiple OS, including non-Posix

2014-02-28 Thread Ben Finney
ify some people, and astonish | `\the rest.” —Mark Twain | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or chang

Re: [Tutor] Help with "Guess the number" script

2014-02-28 Thread Ben Finney
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

Re: [Tutor] Help with "Guess the number" script

2014-03-01 Thread Ben Finney
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’

Re: [Tutor] Help with "Guess the number" script

2014-03-01 Thread Ben Finney
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

Re: [Tutor] Equality Check.

2014-03-02 Thread Ben Finney
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

Re: [Tutor] Help with "Guess the number" script

2014-03-03 Thread 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

Re: [Tutor] numerical problem

2014-03-03 Thread Ben Finney
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 __

Re: [Tutor] numerical problem

2014-03-03 Thread 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

Re: [Tutor] Convert os.random output to a string

2014-03-06 Thread Ben Finney
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

Re: [Tutor] Help with Guess the number script

2014-03-07 Thread Ben Finney
—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

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
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

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
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

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
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

Re: [Tutor] educational

2014-03-09 Thread Ben Finney
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

[Tutor] Python implementations (was: Help with Guess the number script)

2014-03-10 Thread Ben Finney
- \“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 -

Re: [Tutor] Python implementations

2014-03-10 Thread Ben Finney
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

Re: [Tutor] Project suggestions

2014-03-12 Thread Ben Finney
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 _

Re: [Tutor] Printing from python

2014-03-14 Thread 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

Re: [Tutor] PLEASE remove me from your e-mailing list

2014-03-20 Thread Ben Finney
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

Re: [Tutor] Understanding code line

2014-03-21 Thread Ben Finney
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__)

[Tutor] Expressions, literals, operator precedence (was: __abs__() not acting as expected)

2014-03-23 Thread Ben Finney
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__)

Re: [Tutor] __abs__() not acting as expected

2014-03-23 Thread Ben Finney
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

[Tutor] SyntaxError with indentation (was: 2 Very basic queries)

2014-03-25 Thread Ben Finney
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

Re: [Tutor] Help Noob Question

2014-03-27 Thread Ben Finney
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

Re: [Tutor] Writing to text files

2014-03-28 Thread Ben Finney
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

Re: [Tutor] while loop

2014-03-28 Thread Ben Finney
mean. -- \ “Truth would quickly cease to become stranger than fiction, | `\ once we got as used to it.” —Henry L. Mencken | _o__) | Ben Finney ___ Tut

Re: [Tutor] question about strip() and list comprehension

2014-04-08 Thread Ben Finney
—Steven Wright | `\ | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] difference between expressions and statements

2014-04-09 Thread Ben Finney
`\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

Re: [Tutor] A Byte of Python or Learn python the hard way

2014-04-13 Thread Ben Finney
the annoyance of a | `\ good example.” —Mark Twain, _Pudd'n'head Wilson_ | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Python & algorithms (Lang line simplification algorithm)

2014-04-14 Thread Ben Finney
swim without getting wet?” —Steven | `\Wright | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] Fwd: Puzzle - Next Step to our interviewing process - Pramati Technologies!

2014-04-15 Thread Ben Finney
I would be on the other side of you.” | `\ —Groucho Marx | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe o

[Tutor] ORFs Python question

2014-05-17 Thread ani ben
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

[Tutor] Pulling items from a dict in a print command

2014-06-18 Thread Ben Sherman
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

[Tutor] Ending a loop with a condition not at the top

2014-07-20 Thread Ben Finney
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

Re: [Tutor] Ending a loop with a condition not at the top

2014-07-20 Thread Ben Finney
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 _

Re: [Tutor] Unhandled exception

2014-07-21 Thread 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 _

[Tutor] Python functions are first-class citizens (was: dict.get() vs. dict.get)

2014-07-31 Thread 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

Re: [Tutor] Python functions are first-class citizens

2014-07-31 Thread Ben Finney
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

Re: [Tutor] Python functions are first-class citizens

2014-08-01 Thread Ben Finney
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

Re: [Tutor] Using subprocess on a series of files with spaces

2014-08-01 Thread Ben Finney
self-contained. -- \ “I bought some batteries, but they weren't included; so I had | `\to buy them again.” —Steven Wright | _o__) | Ben Finney

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread 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

Re: [Tutor] Python = {0}.format

2014-08-17 Thread Ben Finney
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

Re: [Tutor] print string

2014-08-17 Thread Ben Finney
oes | `\ knowledge.” —Charles Darwin, _The Descent of Man_, 1871 | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: ht

Re: [Tutor] Tutor

2014-08-18 Thread Ben Finney
tionality.” —Bertrand Russell | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] simple unicode question

2014-08-22 Thread Ben Finney
"", 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'

Re: [Tutor] Good Text Editor/IDE for Python

2014-08-31 Thread Ben Finney
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

[Tutor] Whack-a-mole

2014-10-01 Thread Ben Smith
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

Re: [Tutor] A question about using stdin/out/err vs named files

2014-10-18 Thread Ben Finney
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 ___

Re: [Tutor] Is there a convenient table of Python 3.4 exceptions?

2014-10-23 Thread 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

Re: [Tutor] Is there a convenient table of Python 3.4 exceptions?

2014-10-23 Thread Ben Finney
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

[Tutor] How to anticipate and deal with unexpected exceptions (was: Is there a convenient table of Python 3.4 exceptions?)

2014-10-24 Thread Ben Finney
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

Re: [Tutor] User Input with Multiple Lines

2014-10-26 Thread Ben Finney
rates the problem, and show it here? -- \ “The cost of education is trivial compared to the cost of | `\ ignorance.” —Thomas Jefferson | _o__) | B

Re: [Tutor] don't understand iteration

2014-11-09 Thread Ben Finney
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

[Tutor] “has a value of True” versus “evaluates true” (was: don't understand iteration)

2014-11-10 Thread Ben Finney
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

Re: [Tutor] Tutor Digest, Vol 129, Issue 22

2014-11-11 Thread Ben Smith
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

Re: [Tutor] “has a value of True” versus “evaluates true”

2014-11-11 Thread Ben Finney
en Wright | _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Creating Lists

2014-11-12 Thread Ben Finney
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

Re: [Tutor] “has a value of True” versus “evaluates true”

2014-11-13 Thread Ben Finney
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

Re: [Tutor] emacs and tabs/spaces

2014-12-04 Thread Ben Finney
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 ___

Re: [Tutor] Tutor

2014-12-05 Thread Ben Finney
| _o__) | Ben Finney ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Parsing JSON with Python

2014-12-11 Thread Ben Finney
uot;, "address": "111 Street" } -- \ “For fast acting relief, try slowing down.” —Jane Wagner, via | `\ Lily Tomlin | _o__) | Ben Finney __

<    1   2   3   4   >