and's style more and have a book
being shipped to me by Hetland called Python Algorithms.
Good Luck
Patty
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ever and it wasn't working!
Alan G.
Yikes!
Patty
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
to Rachel-Mikel for that really nice piece of code to save for
the future.
Regards,
Patty
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
rack of these things (used in other programming languages) - and
realizing the difference between counter/iterator variables and variables that
I really care about like
'd = []' .
Thanks!
Patty
for subitem in d:
if item[subitem] != 0.0:
qty = item[
Nick Parlante - Here is the link:
http://code.google.com/edu/languages/google-python-class/
I was not really happy with the actual course I took. You can contact me
offline about this.
Regards,
Patty
- Original Message -
From: "Doug Marvel"
To: ;
Sent: Thursday, February
Hello Folks - I have Python 2.6.6 on my Windows 7 system and installed Python
3.2. Now I want to be able to differentiate between the versions and the icon
for each version of Python is the same. I figured I would change the the four
application files in the C:\Python26 directory - python; pyt
Hi David - I was looking for the book you recomended below - "Python 3
Object Oriented Programming" by Dusty Phillips - and found it on Amazon for
$43 new on up and $70 for used but maybe that was hardback? Do you happen
to know of some other way to obtain it for less than $45?
Tha
' in my notes and read up on
these for sure.
Thanks,
Patty
- Original Message -----
From: "Dave Angel"
To: "Patty"
Cc:
Sent: Monday, January 03, 2011 9:52 AM
Subject: Re: [Tutor] How does it work?
On 01/-10/-28163 02:59 PM, Patty wrote:
for c in 'a
- Original Message -
From: "Patty"
To: "Alan Gauld"
Sent: Monday, January 03, 2011 9:05 AM
Subject: Re: [Tutor] How does it work?
Hi Folks - I read this code and tried to parse it as a pop quiz for myself
;) and have a question, maybe 2 clarifications, bel
y question which
is what directory/directories to place files that are part of a program,
actually an application. As if you were creating a source code hierarchy
for the first time :} If I have more questions about that I will email
again and change the subject header.
Thanks for the repl
me 'BeveragesMenu' is not defined'
when I run this in IDLE. I suppose I _could_ make this a function :} but
it is likely doable to call a program as a program, right? I am also
compiling to a .pyw file where applicable.
Thanks for the help.
Patty
"""
with English language email group :) How would
you do that? Or would you try and find a Dutch language resource?
Besides that, I am definitely saving your code segments for the future. Thanks
for sharing.
Patty
- Original Message -
From: Albert-Jan Roskam
To: Albert-Jan Roskam
were to try this, do you have to
return digits? You can't return an mvar (and hope it doesn't change on
you while going back to calling program)?
Thanks for confirming my understanding or confusion as the case may be!!
Patty
> Patty wrote:
>> This is very interesting to m
ning this value _to_ (where I actually placed this snippet
of code like you wrote above) - a function or module I wrote or main().
So, could you expand on this for me? I would have to dig around to find the
actual program I was working on.
Thanks,
Patty
- Original Message -
From: &
Hi - I just wanted to add to Mac's comment. I don't have Google
mail/gmail and don't want to create a mail account with them. I was also
wondering if I should just try clicking on links anyway and changed my
mind and exited.
Regards,
Patty
> On Sat, 27 Nov 2010 22:00:03
e additional
software packages out there? I mean are they coming from some third
companies? And why? If the software is free. I'm not understanding the
history or business part of these Python modules and libraries. Isn't there
one organization who is discussing or approving s
at is found, it
will give you the email with just the header and a note in the body that AVG
didn't allow the message through because it detected a virus or malicious
something or other.
Patty
- Original Message -
From:
To: "tutor"
Sent: Friday, November 12, 2010
Thanks for the explanation. I will go ahead and trying using these
functions in my program.
Patty
- Original Message -
From: "Alan Gauld"
To:
Sent: Saturday, November 06, 2010 10:55 AM
Subject: Re: [Tutor] Displaying Pictures & Text
"Patty" wrote
I
For my first program, I liked creating a number game, simple and where the
user made a choice. That was good for learning how to interact with the
user. The raw_input() function.
Patty
- Original Message -
From: "Steven D'Aprano"
To:
Sent: Friday, November 05
addon libraries and
their doc, how do you organize this on your computer system? I can imagine
that in corporations there are guidelines for this, but I am wondering what you
all do? You could end up with addon libraries, doc and Readmes all over your
hard disk
Patty
- Original Me
t;, line 3226, in __init__
raise RuntimeError, 'Too early to create image'
RuntimeError: Too early to create image
>>>
>>
>
"Alan Gauld" wrote in message
news:ib270l$p3...@dough.gmane.org...
>
> "Patty" wrote
>
>> I had a foll
I just realized I did the same thing - must have hit reply to one instead of
reply to all :}
I had a followup question for you all - and would like to know the answer to
Alan's question about print quality - below -
Patty
- Original Message -
From: "Patty"
To: &qu
or I
will use a workaround of skipping the picture part temporarily, I am sure
with time it will all come together.
I am liking Python programming! I pretty much consider myself a C
programmer plus know several other programming and database querying
languages.
Patty
active text responses with the user. Also this is a test .gif file,
I may want to just edit the source file and change this to a .jpg.
I don't want to change the system defaults for this, maybe for the picture
itself if that is necessary.
Thanks
Patty
___
Hi again,
> > problem?
> import socket
> if not socket.getdefaulttimeout():
> socket.setdefaulttimeout(25.0)
>
I'm sorry I forgot to mention that I'm using python 2.2.3, and this version
doesn't have those methods.
Patty
e ethernet cable from my machine (client),
the script hangs. Is there a way I can implement a timeout to handle this
problem?
I'd appreciate any suggestions because I'm clueless.
Thanks,
Patty
___
Tutor maillist - Tutor@python.org
http://mai
In my database, target_name is the
name of a column, not the name of a target.
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
WHERE target_name = %s """, (ahost, target)) # I tried this, but it
didn't work.
I also tried this, but got a error:
cursor.execute("""SELECT %s FROM targets
WHERE target_name = %s """ % (ahost, target))
Can anybody show me the right way to do it?
Thanks,
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi:
>it would be really helpful to see an example of 'result' before and
>after the call to calc_numbers() as well as the code for calc_numbers if
>possible.
An example of result before the call to calc_numbers is: [50L, -1, 1, -1]
an example after the call is: [50L, 25, ' ', 25]
the code
> Can you please give me a quick example of how to do this:
Nevermind. I figured it out. Thanks anyway :-)
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
want, I don't like the way the value is display.
Thanks,
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> So, replace all the 10%, 20% etc in your string
> with 10%% and 20%%.
>
Thanks That fixed it all.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
cted_value = '-'
tag = """
%s
-
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
""" % (selected_value,selected_value)
drop down boxes should display the recent values entered. I'm not sure how to
do it, and I'm really hoping that someone can point me to the right direction.
Thanks,
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
close()
instead of: conn.commit() and conn.close()
Thanks again!
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi Danny,
I downloaded the latest version of mysqldb and my code worked. btw, I changed
it to %s instead of %d.
Thanks!
Patty
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi!
I'm new to python and MySQl and have problems trying to figure out what is wrong
with my code. I have two files:
***control.py***
#!/usr/bin/python
import MySQLdb
def addpercent(mp, lp):
conn = MySQLdb.connect(host = "localhost", user = "root", passwd = "",db
="my_db")
cursor
37 matches
Mail list logo