Re: [Tutor] [Python-ideas] Terminology for "earthshattering" [was: Add from __experimental__ import bla]

2011-09-02 Thread Lisi
On Friday 02 September 2011 14:19:55 Christopher King wrote: > it just sounds awesome. ??? To me it sounds like alphabet soup! Which is, of course, what, I would argue, it is. ;-) Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or cha

[Tutor] SOLVED and thank you was: Re: meaning of % in: if n % x == 0:

2011-09-01 Thread Lisi
This was meant to go to the list. I did notrealise that it had not until I looked at the list just now and couln't see my reply. Sorry, "delegbede", and sorry list. On Wednesday 31 August 2011 Lisi wrote: > ?? If either n or x or both were 0, and % were the same thing as

[Tutor] meaning of % in: if n % x == 0:

2011-08-31 Thread Lisi
?? If either n or x or both were 0, and % were the same thing as *, the statement would be true, but from the context I don't think that % does mean the same as *, because * appears very soon after in the same fragment of code. Lisi I'm sorry I am making such heavy weather o

Re: [Tutor] Tutor Digest, Vol 90, Issue 97

2011-08-29 Thread Lisi
On Tuesday 30 August 2011 02:21:15 Steven D'Aprano wrote: > Heh, well different people find different approaches useful. To coin a cliché, it would be a dull world if we were all the same. :-) Lisi ___ Tutor maillist - Tutor@python.org To uns

Re: [Tutor] Intro

2011-08-29 Thread Lisi
me as being almost sexist. It is after all, a good way to keep women out! ;-) And what have you got against corporate types??? ;-) Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor Digest, Vol 90, Issue 97

2011-08-29 Thread Lisi
ric about Python to a list of Python users. And you do seem to have gone wa OT over that particular book, which I bought and found unusable. But it didn't _offend_ me, it just struck me as spam. Lisi ___ Tutor maillist - Tutor@python.or

Re: [Tutor] Intro

2011-08-29 Thread Lisi
On Monday 29 August 2011 16:45:17 Lisi wrote: > Is it just me, or is this a blatant plug for a specific book, and is it > therefore Spam? Given that remark, I ought not to have included the full text in my reply. I apologise to our spam filters. :-(

Re: [Tutor] Intro

2011-08-29 Thread Lisi
Is it just me, or is this a blatant plug for a specific book, and is it therefore Spam? For what it is worth, I hate all those games. Alan seems to use address books (anyhow initially). Now I can see the point in that. Lisi On Monday 29 August 2011 16:26:55 Cranky Frankie wrote: > Hi Pyt

Re: [Tutor] One basic question about the Python's PID of Process object.

2011-08-29 Thread Lisi
ner myself, but I am sure that someone will correct me if I am wrong. Should it not be self.pid rather than self._pid? Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Still stuck - but a bit further on.

2011-08-28 Thread Lisi
On Sunday 28 August 2011 16:20:45 Alan Gauld wrote: > > Notice the space at the start of the string? > The stored entry is keyed on "Lisi" the search was for " Lisi" > which doesn't exist. I thought that I had tried that, but I obviously hadn't. I cle

[Tutor] Still stuck - but a bit further on.

2011-08-28 Thread Lisi
input("Which name to display?(blank to finish)") while name !="": print name, AddressBook[name] name = raw_input("Which name to display?(blank to finish)") I started with: lisi@Tux:/usr/local/bin$ AddressBook Type the Name - leave blank to finishLisi Type

Re: [Tutor] Can't find error :-(

2011-08-28 Thread Lisi
On Sunday 28 August 2011 13:01:38 Peter Otten wrote: > Lisi wrote: > > Here is the error message: > > /usr/local/bin/AddressBook: line 6: syntax error near unexpected token > > `(' /usr/local/bin/AddressBook: line 6: `name = raw_input("Type the Name > > - le

[Tutor] Can't find error :-(

2011-08-28 Thread Lisi
the Name - leave blank to finish") Here is what I was copying: name = raw_input("Type the Name - leave blank to finish") Help!! All three are copied and pasted from their relevant places to eliminate mis-copying at this stage. What have I miscopied?? The original and my c

Re: [Tutor] Raw input query (?)

2011-08-25 Thread Lisi
On Thursday 25 August 2011 15:17:04 Alan Gauld wrote: > On 25/08/11 10:46, Lisi wrote: > > I copied and ran the following script: > > > > multiplier = 12 > > > > for j in range(1,13): > > print "%d x %d = %d" %(j, multiplier, j*multiplier) &g

[Tutor] Raw input query (?)

2011-08-25 Thread Lisi
rote and ran: print "Which times table do you want?" multiplier = raw_input () for j in range(1,13): print "%d x %d = %d" %(j, multiplier, j*multiplier) The j in range section of code is identical, but I now get: lisi@Tux:~/Python$ python multiplier.py Which times tab

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
nted back in the 1960's when most > folks were used to assembler. So _that's_ why I understand it. It is many years since I did any programmimg at all, but way back before the ark I did a bit of programming in both Basic and machine code. (And I mean machin

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
Thanks, Steven, for an extremely helpful email. I _think_ that I have now grasped it; tho' teh proof of teh pudding is in the eating. :-/ On Monday 22 August 2011 19:55:02 Steven D'Aprano wrote: > Lisi wrote: [snip] > Are you using Windows or Linux or Mac? Linux Debian 6

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
. I stand corrected. But saving 6 keystrokes is still a fairly pointless thing to do. If several subroutines can be stored in a module and imported together, then that is quite another matter. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
On Monday 22 August 2011 15:09:45 Emile van Sebille wrote: > Actually, sys retains a reference to all imported modules in sys.modules > and that gives a pretty good idea of where stuff comes from(tm).  :) [snip interesting file] Thanks, Emile. :-)

Re: [Tutor] Where is sys.py?

2011-08-22 Thread Lisi
the text that I was working from (I am still turning over in my mind the exercise I got hung up on) and focus only on Alan's, the sooner I am going to make some kind of progress!! Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How have I transgressed??

2011-08-21 Thread Lisi
must just remain one of life's little mysteries. :-/ Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] How have I transgressed??

2011-08-21 Thread Lisi
have transgressed, I'll try harder in future. Thanks, Lisi *Your message for tutor@python.org, the Python programming tutor list, has been received and is being delivered. This automated response is sent to those of you new to the Tutor list, to point out a few resources that can help with answerin

Re: [Tutor] Where is sys.py?

2011-08-21 Thread Lisi
On Sunday 21 August 2011 12:57:50 Lisi wrote: > If sys.py is a file, it must be somewhere; but I can't find it. Where is > it? I would like to look at it. > > The modules within it must surely be somewhere too. But since I can't find > sys, I obviously can't find th

[Tutor] Where is sys.py?

2011-08-21 Thread Lisi
relevant, I am using Python 2.5.2 on Debian 5. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Modules and Python tutorial by S. Thurlow - opinions please

2011-08-21 Thread Lisi
On Saturday 20 August 2011 23:53:53 Alan Gauld wrote: > On 20/08/11 15:25, Lisi wrote: > > ridiculous. I think that I understand how to write a basic function, but > > I can't work out how to save and call it. [snip] > There is a full worked example in the Functions an

Re: [Tutor] Modules and Python tutorial by S. Thurlow - opinions please

2011-08-20 Thread Lisi
Thanks, Steven. :-) I'll get back to this this evening. Lisi On Saturday 20 August 2011 16:51:07 Steven D'Aprano wrote: > Lisi wrote: > > I have got myself well and truly bogged down. I need to change the angle > > from which I am looking. I only have a short while lef

[Tutor] Modules and Python tutorial by S. Thurlow - opinions please

2011-08-20 Thread Lisi
aps 744) Either move the file into a directory on your path, or add the directory that the file is in to your path. It will now run. Can anyone point me to a similar set of basic instructions for Python modules?? Thanks, Lisi ___ Tutor maillist -

Re: [Tutor] which version do i have and how do i change it

2011-08-16 Thread Lisi
On Tuesday 16 August 2011 21:53:46 Jerry Hill wrote: > On Tue, Aug 16, 2011 at 4:35 PM, Lisi wrote: > > lisi@Tux:~$ aptitude why python > > i   reportbug Depends python (>= 2.5) > > lisi@Tux:~$ > > Keep in mind that that command only shows you a single depen

Re: [Tutor] which version do i have and how do i change it

2011-08-16 Thread Lisi
system I would hardly have come to the conclusion that Python was essential. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] which version do i have and how do i change it

2011-08-16 Thread Lisi
On Tuesday 16 August 2011 17:06:42 Alan Gauld wrote: > It can be hard to tell, sometimes distro designers just think something > is useful. lisi@Tux:~$ aptitude why python i reportbug Depends python (>= 2.5) lisi@Tux:~$ !! Lisi ___ Tutor

Re: [Tutor] which version do i have and how do i change it

2011-08-16 Thread Lisi
t it is a dependancy of various packages. If it was already on the system , I wonder why the OP needed to install it? Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] which version do i have and how do i change it

2011-08-15 Thread Lisi
also uninstall Python 2.7.1. You do not say what version of what distro you are using, nor what method you used to install Python 2, so I can't be more explicit. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] What's the difference between %s and %r?

2011-07-23 Thread Lisi
e! I have recently worked through that exact question myself. And it isn't well explained. So - the simplistic answer, gleaned (hopefully not erroneously) from this list: s means a string, d means a number and r can be either or both. y has only words, so is a string, and x has a number (specifically referred to as d) and words, so needs r. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-21 Thread Lisi
no good!) Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Good Book

2011-07-18 Thread Lisi
llous people on this list, with help also from my local Linux User Group. The book provides the exercises and structure. But, as has been said, your choice will depend on your own style. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or ch

Re: [Tutor] what is 'doubleword alignment'?

2011-07-17 Thread Lisi
low. Blame virtually no sleep last night ;-( But even were the power of two bit correct (and I see subsequently that it is not), how is 18 a power of two? Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hello World in Python without space

2011-07-17 Thread Lisi
a what I am talking about, I apologise. It is so long since I used Windows that I have forgotten much of what it can and cannot do; and I don't know whether it can do this. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subs

Re: [Tutor] broken script - curiouser and curiouser

2011-07-10 Thread Lisi
On Thursday 07 July 2011 15:36:06 Michael M Mason wrote: > Maybe you've been editing ex25 and then executing ex26. That'd get you the > same error in the same place over and over again. Doh! They do say that there is one born every minute

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Lisi
On Thursday 07 July 2011 15:42:12 Michael M Mason wrote: > > Maybe you've been editing ex25 and then executing ex26. That'd get you > > the same error in the same place over and over again. > > Looks like this might be it. In your earlier post the error reported i

[Tutor] Python conundrum

2011-07-07 Thread Lisi
es)? Or, put another way, twice as many words? :-/ It is obviously an alternative, but I just don't get that it is a shortcut. Thanks, Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Lisi
e 10 has a missing colon. So _how_ did a missing colon in ex26 cause problems in ex25 Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Lisi
On Thursday 07 July 2011 11:46:01 Marc Tompkins wrote: > On Thu, Jul 7, 2011 at 3:15 AM, Lisi wrote: > > There must have been > > something, but I cannot fathom what. What difference does inserting a > space > > > and then deleting it make? > > I wonder wheth

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Lisi
On Thursday 07 July 2011 10:21:59 Walter Prins wrote: > Hi Lisi > > On 7 July 2011 08:52, Lisi wrote: > > > > You could obviously see something wrong > > > > > > The posted error report had no colon. > > > > Yes - but the script had one, w

Re: [Tutor] broken script - curiouser and curiouser

2011-07-07 Thread Lisi
On Thursday 07 July 2011 00:48:24 Alan Gauld wrote: > "Lisi" wrote > > >> : File "ex26.py", line 10 > >> : def print_first_word(words) > >> : ^ > >> : SyntaxError: invalid syntax > >>

Re: [Tutor] broken script - curiouser and curiouser

2011-07-06 Thread Lisi
Thanks very much Martin. I did "solve" the problem after you kindly emailed - but the solution has puzzled me more that the original problem. On Tuesday 05 July 2011 23:23:41 Martin wrote: > : lisi@Tux:~/Python/LearnPythonTheHardWay$ python ex26.py > : File "ex26.py&q

[Tutor] broken script

2011-07-05 Thread Lisi
; return sorted(words) def print_first_word(words): """Prints the first word after popping it off.""" word=words.pop(0) print word I am testing at the end of each section as I type it. As far as line 9 it was fine - but, once I have typed up to line 14

Re: [Tutor] Help with making emacs work with python syntax checking?

2011-07-04 Thread Lisi
27;t cut it for me. Do you know how to access hidden files, or is that the problem? In fact, do you know what hidden files are? If you can give me some indication of your skill level (see above questions) and your distro (including version) and DE, I might be able to help you; or

[Tutor] Thank you. Was: Re: problem reading script

2011-07-01 Thread Lisi
ork through the rest of your advice. I might even end up being able to code in Python - but if I do it will be because you have all hauled me over the fences. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: ht

Re: [Tutor] 2to3 conversion

2011-07-01 Thread Lisi
much!! I was trying to find the original. Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] problem reading script

2011-07-01 Thread Lisi
's font for when I am having difficulty seeing this particular distinction. I am used to having to look at just one word in a different font to distinguish between I and l (which currently look identical to me), where the context doesn't help. All I have to do now is work out

Re: [Tutor] problem reading script

2011-07-01 Thread Lisi
On Friday 01 July 2011 10:15:08 Lisi wrote: > I am supposed to be looking at scripts on-line, reading them and making > sure that I understand them. I think taht most of teh things I can't make > more than a guess at, are modules taht I don't know, and I can mostly make &

[Tutor] problem reading script

2011-07-01 Thread Lisi
w/head:/apport/source_bzr.py and I have copied and pasted the function definition in which it is to be found after my signature. I would be extremely grateful for an explanation/translation! Lisi def _add_log_tail(report): # may have already been added in-process if &#

Re: [Tutor] Defining a "format string"

2011-06-26 Thread Lisi
On Sunday 26 June 2011 17:15:14 Alan Gauld wrote: > "Lisi" wrote > Umm, nearly... > The format string contains format specifiers. They are not variables. > The specifiers define the type of data to be inserted into the string > as well as how the data will be formatted

Re: [Tutor] Defining a "format string"

2011-06-26 Thread Lisi
Thanks, Noah and Steven. :-) On Sunday 26 June 2011 12:24:12 Steven D'Aprano wrote: > Lisi wrote: > > In the following excerpt from a program in the book I am following: > > > >print "If I add %d, %d, and %d I get %d." % ( > > my_age

[Tutor] Defining a "format string"

2011-06-26 Thread Lisi
g? If not, then I still haven't "got" it, and I would be very grateful if someone could define "format string" for me - preferably in words of one syllable, because I seem to be being a bit thick about this. :-( Lisi ___ Tut

Re: [Tutor] line continuation characters

2011-06-20 Thread Lisi
On Monday 20 June 2011 00:03:47 Steven D'Aprano wrote: > Lisi wrote: > > I am having problems with line continuation characters. Error message: > > > > SyntaxError: unexpected character after line continuation character > > Then delete it ;) > > Seriously. Y

[Tutor] line continuation characters

2011-06-19 Thread Lisi
about it in general, but at one particular point everywhere seems to be wrong. Is there any way I can make these wretched continuation characters visible, so that I know where and what I am up against? Lisi ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] nitinchandra rubbish on list

2011-06-19 Thread Lisi
Never reply to emails from this particular person. (I can quite understand your not wanting to add yourself to any list.) Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Closing triple quotation marks.

2011-06-19 Thread Lisi
On Sunday 19 June 2011 14:23:25 col speed wrote: > On 19 June 2011 14:46, Lisi wrote: > > On Sunday 19 June 2011 08:39:43 Alan Gauld wrote: > > > "Lisi" wrote > > > > > > > It does indeed. Thank you, both of you. I have clearly not got the >

Re: [Tutor] Closing triple quotation marks.

2011-06-19 Thread Lisi
On Sunday 19 June 2011 08:39:43 Alan Gauld wrote: > "Lisi" wrote > > > It does indeed. Thank you, both of you. I have clearly not got the > > terms > > command, method, function (and feature?) clearly sorted out in my > > mind, so > > that is obvi

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Lisi
On Saturday 18 June 2011 15:58:23 Alan Gauld wrote: > "Lisi" wrote > > > But I still can't write to the file. > > > > If I do: > > target.write(line1) > > > > The value of the variable line1 is written to the file. > > That will

Re: [Tutor] Closing triple quotation marks.

2011-06-18 Thread Lisi
On Saturday 18 June 2011 13:37:38 Steven D'Aprano wrote: > Lisi wrote: > [...] > > > Fair enough. the closing quotation marks are not there. > > > > But when they _are_ there, i.e. when that stanza reads: > > > > target.write """ > >

[Tutor] Closing triple quotation marks.

2011-06-18 Thread Lisi
do. If I leave the target.write without the final """, I get the error (which I would indeed expect): lisi@Tux:~/Python/LearnPythonTheHardWay$ python extra-credit_16a.py learning.txt File "extra-credit_16a.py", line 42 ^ SyntaxError: EOF while scanning trip

Re: [Tutor] Reading opened files

2011-06-17 Thread Lisi
On Friday 17 June 2011 17:42:29 Walter Prins wrote: > On 17 June 2011 17:20, Lisi wrote: > > >>> file=open("/home/lisi/CHOOSING_SHOES.txt", "r") > > >>> file.close() > > >>> file=open("/home/lisi/CHOOSING_SHOES.txt", &

[Tutor] Reading opened files (SOLVED)

2011-06-17 Thread Lisi
. :-( ] Lisi ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Reading opened files

2011-06-17 Thread Lisi
Hello :-) I have got as far as I have,i.e. apparently succeeding in both opening and closing two different files, thanks to google, but my struggles to _do_ something with a file that I have opened are getting me nowhere. Here is my latest failure: >>> file=open(&q

Re: [Tutor] Beginner puzzle with unpacking argv

2011-06-16 Thread Lisi
On Thursday 16 June 2011 19:03:27 Joel Goldstick wrote: > On Thu, Jun 16, 2011 at 1:10 PM, Lisi wrote: > > Copied and pasted: > > >From text of Learn Python the Hard Way > > > > 1 from sys import argv > > 2 > > 3 script, user_name = argv > > > &

Re: [Tutor] File parsing

2011-06-16 Thread Lisi
Thanks, Neha. I am sending this back on list so that those who are more knowledgeable than I am can help you. On Thursday 16 June 2011 18:47:39 Neha P wrote: > Hi Lisi, > Below is the code and I have prefixed(-->) to the line code which i'm > mainly concerned about and hav

[Tutor] Beginner puzzle with unpacking argv

2011-06-16 Thread Lisi
ion of white space I could think of that might have looked like the original, but I always get the same error: lisi@Tux:~/Python/LearnPythonTheHardWay$ python ex14.py Traceback (most recent call last): File "ex14.py", line 3, in script, user_name=argv ValueError: need more than 1

Re: [Tutor] Floating point exercise 3 from Learn python the hard way

2011-06-14 Thread Lisi
estions. I have taken the attitude that if I can't do any of the extra credit questions, having successfully done the questions in the chapter, I pass on and will come back to them when I know a bit more. Lisi ___ Tutor maillist - Tutor@python.or

Re: [Tutor] Python Interview Questions..

2011-05-28 Thread Lisi
nguage just isn't that significant. > > Sorry Alan, you confuse me. Do you mean Java isn't that *insignificant*? Surely he is saying that it doesn't make much difference to this which language you are using? Lisi ___ Tutor maill