[Tutor] MySQLdb : I finally got it to work.

2006-02-18 Thread Servando Garcia
Hello list It seems that true understanding must , at times, be painful. Danny Yoo thank you for not just giving me the answer but rather making me work for it. Here is how I got the code to run. 1. With my configuration, I need quotes around the values that are to be placed into the datab

Re: [Tutor] MySQLdb: at a complete loss

2006-02-18 Thread Servando Garcia
w chun wrote: > On 2/18/06, Servando Garcia <[EMAIL PROTECTED]> wrote: > >> Hello List >> I am at a complete loss. Here is a recap, just to be clear, I have >> been unable insert into a database using MySQLdb. I can only view the >> database. >>

[Tutor] MySQLdb: at a complete loss

2006-02-18 Thread Servando Garcia
Hello List I am at a complete loss. Here is a recap, just to be clear, I have been unable insert into a database using MySQLdb. I can only view the database. My current configuration: 1. Windows XP 2. Python 2.4.2 3 MySQLdb current version 4. mysql 5.0.18-nt 5. DEV-c++ cu

[Tutor] MySQLdb update

2006-02-17 Thread Servando Garcia
Here is an update concerning my MySQLdb issue.( unable to insert data into database using Python and MySQLdb) I have tested the scripts that I posted here on both my Mac and Linux machines the script functioned as expected, ran without error and inserted data into database. It is my conclusion

[Tutor] Once again I am in error

2006-02-17 Thread Servando Garcia
not a reply to the list. Please forgive this error it will not happen again. Servando Garcia ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] unable to insert data into database

2006-02-17 Thread Servando Garcia
Hello to all I have been trying to insert data into a database using MySQLdb with no success. I have no idea why this script is not working. I took it from a tutorial from DEV Shed. #!/usr/bin/python import MySQLdb # connect db = MySQLdb.connect(host="localhost", user="root", passwd="*

[Tutor] pylibpcap

2005-10-06 Thread Servando Garcia
Hello List I need to use pylibpcap. I am looking for any documentation at all, tutorial would be nice. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Thanks

2005-09-03 Thread Servando Garcia
My thanks to the list. With your help each day I convert another C++ die hard to python. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] convert binary to ascii

2005-09-02 Thread Servando Garcia
Hello List it has been a long time. Here is my question : sam in binary is 01110011 0111 01101101. if given 01110011 0111 01101101 how would I go back to ascii. I guess am asking is there a module that will do this conversion for me. I have looked at binascii but have been up ab

[Tutor] regular expressions

2005-07-17 Thread Servando Garcia
Hello Using regular expressions how do I represent Floats. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] regular expressions

2005-07-14 Thread Servando Garcia
blem I am having is, how do I code the Non-Terminals of the BNF. Terminal states like are easy to code using regular expression. Here is my function for state def t_Letter(self,s): r"[A-Za-z]+" self.rv.append(Token('Letter',s)) Servando Garcia 251 Highway 46 N Sherid

[Tutor] reading comments

2005-05-28 Thread Servando Garcia
Hello list How do I read the comments attached to a zipfile or for any file .? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] increment operator

2005-05-27 Thread Servando Garcia
Hello Is there a increment operator in python similar to c++ like so "SomeVariable++" ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] main()

2005-05-21 Thread Servando Garcia
if __name__ == '__main__': what is the meaning and importance of this code line. I have been able to glean some information. When you call a script __name__ is set to the "Name" of the script called. example: python Hope.py __name__ = Hope but why would I want to do this if __n

[Tutor] URLLIB

2005-05-13 Thread Servando Garcia
Hello list I am on challenge 5. I think I need to some how download a file. I have been trying like so X=urllib.URLopener(name,proxies={'http':'URL').distutils.copy_file('SomeFileName') but with no luck. Servando Garcia John 3

[Tutor] following the chain

2005-05-10 Thread Servando Garcia
Thanks to the many hints from the list I have made it to level four, of the python challenges. Many thanks to all. I truly have been looking for a solid example to follow on the use of the URL module. I don't feel am using it correctly or I am not understanding/using the clue correctly. Here

[Tutor] need a example of translate or maketrans

2005-05-09 Thread Servando Garcia
Hello list As you can guess I am working on the riddles. I have looked in vain for a simple example and or a explanation of the string function "translate" or even "maketrans" Can someone please send me a working example,please. thanks _

[Tutor] input() : part two

2005-04-30 Thread Servando Garcia
Hello everyone Thank you for the quick response to my last request. Here is an update, the program I am writing takes three values from the user than produces the source code for another program. THE PROBLEM: I needed to prompt the user for three values. I used input() like so M= input("Matrix=")

[Tutor] input()

2005-04-29 Thread Servando Garcia
Hello and thanks in advance. I am trying to prompt the user for some input. I need three values from the user so,I used input() like so; Matrix = input("Matrix=") error=input("error=") alpha= input("alpha=") using Macpython it works fine but when I use a terminal all I get is a blank line. Wh