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
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
?? 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
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
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
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
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. :-(
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
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
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
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
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
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
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
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
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
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
. 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
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. :-)
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
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
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
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
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
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
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
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 -
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
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
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
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
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
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
no good!)
Lisi
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
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
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
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
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
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
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
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
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
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
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
> >>
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
;
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
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
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
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
'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
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
&
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
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
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
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
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
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
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
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
>
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
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
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 """
> >
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
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", &
. :-( ]
Lisi
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
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
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
> >
> &
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
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
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
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
71 matches
Mail list logo