Re: [Tutor] Excited about python

2011-06-10 Thread Patty
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

Re: [Tutor] Python Extensions in C

2011-05-26 Thread Patty
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

Re: [Tutor] Python Extensions in C

2011-05-26 Thread Patty
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

Re: [Tutor] list of dictionary

2011-02-25 Thread Patty
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[

Re: [Tutor] print "Hello, World!"

2011-02-03 Thread Patty
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

[Tutor] Changing Python icon - 2.6 and 3.2

2011-02-03 Thread Patty
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

Re: [Tutor] Beginning Python and other resources (was Re: SlicingTuples)

2011-01-04 Thread Patty
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

Re: [Tutor] How does it work?

2011-01-03 Thread Patty
' 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

[Tutor] How does it work?

2011-01-03 Thread Patty
- 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

Re: [Tutor] Calling Program within Program

2010-12-10 Thread patty
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

[Tutor] Calling Program within Program

2010-12-09 Thread patty
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 """

Re: [Tutor] Question on tkinter event binding

2010-12-03 Thread 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

Re: [Tutor] How to handle exceptions raised inside a function?

2010-12-01 Thread patty
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

Re: [Tutor] How to handle exceptions raised inside a function?

2010-11-30 Thread Patty
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: &

[Tutor] Python Exercise

2010-11-27 Thread patty
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

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-16 Thread Patty
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

Re: [Tutor] Tutor Digest, Vol 81, Issue 35

2010-11-12 Thread Patty
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

Re: [Tutor] Displaying Pictures & Text

2010-11-06 Thread Patty
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

Re: [Tutor] Programs for Newbies?

2010-11-06 Thread Patty
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

Re: [Tutor] Displaying Pictures & Text

2010-11-06 Thread Patty
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

[Tutor] Displaying Pictures & Text

2010-11-05 Thread Patty
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

[Tutor] Displaying picture and Text & Downloads

2010-11-05 Thread Patty
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

Re: [Tutor] Displaying picture and Text

2010-11-04 Thread Patty
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

[Tutor] Displaying picture and Text

2010-11-03 Thread 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 ___

Re: [Tutor] Python urllib (linux)

2006-06-30 Thread 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

[Tutor] Python urllib (linux)

2006-06-30 Thread 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

Re: [Tutor] MySQLdb question

2006-04-14 Thread Patty
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

[Tutor] MySQLdb question

2006-04-14 Thread Patty
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

Re: [Tutor] Problems when displaying numbers

2006-04-13 Thread Patty
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

Re: [Tutor] html and mod_python

2006-03-27 Thread Patty
> 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

Re: [Tutor] html and mod_python

2006-03-27 Thread Patty
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

Re: [Tutor] html and mod_python

2006-03-23 Thread Patty
> 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

Re: [Tutor] html and mod_python

2006-03-23 Thread Patty
cted_value = '-' tag = """ %s - 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% """ % (selected_value,selected_value)

[Tutor] html and mod_python

2006-03-22 Thread Patty
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

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
close() instead of: conn.commit() and conn.close() Thanks again! Patty ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
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

[Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
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