<DIV>if you please i want a help</DIV>
<DIV>im a beginner in using python </DIV>
<DIV>i want to know how can i run a GUI module </DIV>
<DIV>i installed python on windows platform </DIV>
<DIV>thanks <BR><BR><B><I>python-list-request@python.org</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Send Python-list mailing list submissions to<BR>python-list@python.org<BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR>http://mail.python.org/mailman/listinfo/python-list<BR>or, via email, send a message with subject or body 'help' to<BR>python-list-request@python.org<BR><BR>You can reach the person managing the list at<BR>python-list-owner@python.org<BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of Python-list digest..."<BR>Today's Topics:<BR><BR>1. ANN: PyGaim released - Gaim Python plugin (Gerrit van Dyk)<BR>2. multi regexp analyzer ? or how to do... (joh12005@yahoo.fr)<BR>3. Re: need help with MySQLdb (Wolfram Kraus)<BR>4. Re: Favorite non-python language trick? (Paddy)<BR>5. Re: need help with MySQLdb (Dennis Lee Bieber)<BR>6. Re: some trouble with MySQLdb (dimitri pater)<BR>7. Re: need help with MySQLdb
 (Dennis Lee Bieber)<BR>8. python install settings... (jtan325)<BR>9. Re: aligning text with space-normalized text (Peter Otten)<BR>10. Re: Inheriting from object (Fuzzyman)<BR>From: Gerrit van Dyk <gvandyk.nospam@agileworks.net><BR>To: python-list@python.org<BR>Date: Thu, 30 Jun 2005 07:36:22 +0200<BR>Subject: ANN: PyGaim released - Gaim Python plugin<BR><BR>PyGaim has been released.<BR><BR>Summary: Gaim Python plug-in. The product provides developers with the <BR>capability to develop python plugins for Gaim<BR><BR>This release is just a get it out there release and a lot of polishing <BR>still needs to be done.<BR><BR>However, it does enable a python developer to develop gaim plugins using <BR>python as the programming language.<BR><BR>The current packages is available from <BR>http://sourceforge.net/projects/pygaim<BR><BR>ToDo:<BR><BR>Web page<BR>CVS<BR>Instructions on installing and using<BR>More examples<BR>A interface to the gaim gui using pygtk<BR>Lots of other
 stuff.<BR><BR>The mailing list should be up in the next 24 hours<BR><BR>From: joh12005@yahoo.fr<BR>To: python-list@python.org<BR>Date: 29 Jun 2005 23:19:50 -0700<BR>Subject: multi regexp analyzer ? or how to do...<BR><BR>Hello,<BR><BR>here is a trouble that i had, i would like to resolve it with python,<BR>even if i still have no clue on how to do it.<BR><BR>i had many small "text" files, so to speed up processes on them, i used<BR>to copy them inside a huge one adding some king of xml separator :<BR><BR><FILE name="..."><BR>[content]<BR></FILE><BR><BR>content is tab separated data (columns) ; data are strings<BR><BR>now here come the tricky part for me :<BR><BR>i would like to be able to create some kind of matching rules, using<BR>regular expressions, rules should match data on one line (the smallest<BR>data unit for me) or a set of lines, say for example :<BR><BR>if on this line , match first column against this regexp and match<BR>second column<BR>and on following line match
 third column<BR>-> trigger something<BR><BR>so, here is how i had tried :<BR><BR>- having all the rules,<BR>- build some kind of analyzer for each rule,<BR>- keep size of longest one L,<BR>- then read each line of the huge file one by one,<BR>- inside a "file", create all the subsets of length <= L<BR>- for each analyzer see if it matches any of the subsets<BR>- if it occurs...<BR><BR>my trouble is here :<BR><BR>"for each analyzer see if it matches any of the subset"<BR><BR>it is really to slow, i had many many rules, and as it is "for loop<BR>inside for loop", and inside each rule also "for loop on subsets lines"<BR>i need to speed up that, have you any idea ?<BR><BR>i am thinking of having "only rules for one line" and to keep traces of<BR>if a rule is a "ending one" (to trigger something) , or a "must<BR>continue" , but is still unclear to me for now...<BR><BR>a great thing could also have been some sort of dict with regexp<BR>keys...<BR><BR>(and actually it would be great
 if i could also use some kind of regexp<BR>operator to tell one can skip the content of 0 to n lines before<BR>matching, just as if in the example i had changed "following..." by<BR>"skip at least 2 lines and match third column on next line - it would<BR>be great, but i still have really no idea on how to even think about<BR>that)<BR><BR>great thx to anybody who could help,<BR><BR>best<BR><BR><BR>From: Wolfram Kraus <kraus@hagen-partner.de><BR>To: python-list@python.org<BR>Date: Thu, 30 Jun 2005 08:41:37 +0200<BR>Subject: Re: need help with MySQLdb<BR><BR>nephish@xit.net wrote:<BR>> Hey there all,<BR>> i have a question about how to point my python install to my sql<BR>> database.<BR>> <BR>> when i enter this: db = MySQLdb.connect(user="user", passwd="pass",<BR>> db="myDB")<BR>> <BR>> i get this:<BR>> Traceback (most recent call last):<BR>> File "<PYSHELL#1>", line 1, in -toplevel-<BR>> db = MySQLdb.connect(user="user", passwd="pass",
 db="MyDB")<BR>> File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line 66,<BR>> in Connect<BR>> return Connection(*args, **kwargs)<BR>> File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line<BR>> 134, in __init__<BR>> super(Connection, self).__init__(*args, **kwargs2)<BR>> OperationalError: (1049, "Unknown database 'MyDB'")<BR>> <BR>> i am using the all in one package from lampp (now xampp) and i have<BR>> tested a couple of python scripts from the cgi, but.... nothing that<BR>> connects to the database.<BR>> <BR>> any ideas?<BR>> <BR>> thanks<BR>> <BR>Try the following from the shell (NOT the python shell):<BR>mysql -u user -p<BR>[Enter passwd]<BR>mysql> show databases;<BR><BR>If MyDB isn't in the list either something went wrong with the xampp <BR>installation or the database for xampp got a different name. (I am no <BR>xampp expert, so I can't help you any further)<BR><BR>HTH,<BR>Wolfram<BR><BR>From:
 "Paddy" <paddy3118@netscape.net><BR>To: python-list@python.org<BR>Date: 29 Jun 2005 23:44:24 -0700<BR>Subject: Re: Favorite non-python language trick?<BR><BR>Sadly, its not a solution that I'm after, but a particular toolkit that<BR>can be used for solving that type of problem.<BR><BR>- Pad.<BR><BR><BR>From: Dennis Lee Bieber <wlfraed@ix.netcom.com><BR>To: python-list@python.org<BR>Date: Thu, 30 Jun 2005 06:47:18 GMT<BR>Subject: Re: need help with MySQLdb<BR><BR>On 29 Jun 2005 21:56:49 -0700, nephish@xit.net declaimed the following<BR>in comp.lang.python:<BR><BR><BR>> any ideas?<BR>><BR>Step 1: show us what the interactive command line tool "mysql"<BR>does with...<BR><BR><BR>mysql user -p<BR>pass<BR>use MyDB;<BR><BR>IOW, verify you can connect to the database using the MySQL<BR>tools first, then figure out what is different with the MySQLdb call.<BR><BR>-- <BR>> ============================================================== <<BR>> wlfraed@ix.netcom.com |
 Wulfraed Dennis Lee Bieber KD6MOG <<BR>> wulfraed@dm.net | Bestiaria Support Staff <<BR>> ============================================================== <<BR>> Home Page: <HTTP: ~wulfraed www.dm.net /><<BR>> Overflow Page: <HTTP: wlfraed.home.netcom.com /><<BR><BR>From: dimitri pater <dimitri.pater@gmail.com><BR>CC: python-list@python.org<BR>To: nephish <nephish@xit.net><BR>Date: Thu, 30 Jun 2005 08:58:41 +0200<BR>Subject: Re: some trouble with MySQLdb<BR><BR>try:<BR>db = MySQLdb.connect(host="localhost", user="user", passwd="pass",<BR>db="myDB")<BR>localhost can be a URL also (if MySQL is set up properly in the first place)<BR>regards,<BR>Dimtiri<BR><BR>
<DIV><SPAN class=gmail_quote>On 6/30/05, <B class=gmail_sendername>nephish</B> <<A href="mailto:nephish@xit.net">nephish@xit.net</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hey there all,<BR>i have a question about how to point my python install to my sql database.<BR><BR>when i enter this: db = MySQLdb.connect(user="user", passwd="pass",<BR>db="myDB")<BR><BR>i get this: <BR>Traceback (most recent call last):<BR>  File "<pyshell#1>", line 1, in -toplevel-<BR>    db = MySQLdb.connect(user="user", passwd="pass", db="MyDB")<BR>  File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line 66, <BR>in Connect<BR>    return Connection(*args, **kwargs)<BR>  File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line<BR>134, in __init__<BR>    super(Connection, self).__init__(*args, **kwargs2)<BR>OperationalError: (1049, "Unknown database 'MyDB'")<BR><BR>i am using the all in one package from lampp (now xampp) and i have<BR>tested
 a couple of python scripts from the cgi, but.... nothing that<BR>connects to the database. <BR><BR>any ideas?<BR><BR>thanks<BR>--<BR><A href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</A><BR></BLOCKQUOTE></DIV><BR><BR><BR>-- <BR>Please visit dimitri's website: <A href="http://www.serpia.com/">www.serpia.com</A> From: Dennis Lee Bieber <wlfraed@ix.netcom.com><BR>To: python-list@python.org<BR>Date: Thu, 30 Jun 2005 06:57:54 GMT<BR>Subject: Re: need help with MySQLdb<BR><BR>On Thu, 30 Jun 2005 06:47:18 GMT, Dennis Lee Bieber<BR><WLFRAED@IX.NETCOM.COM>declaimed the following in comp.lang.python:<BR><BR>> On 29 Jun 2005 21:56:49 -0700, nephish@xit.net declaimed the following<BR>> in comp.lang.python:<BR>> <BR>> <BR>> > any ideas?<BR>> ><BR>> Step 1: show us what the interactive command line tool "mysql"<BR>> does with...<BR>> <BR>> <BR>> mysql user -p<BR>> pass<BR>> use
 MyDB;<BR>> <BR>> IOW, verify you can connect to the database using the MySQL<BR>> tools first, then figure out what is different with the MySQLdb call.<BR><BR>{okay, slight error in the command line string -- I haven't ported MySQL<BR>from the old W98 machine to the WinXP machine yet}<BR><BR>-- <BR>> ============================================================== <<BR>> wlfraed@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <<BR>> wulfraed@dm.net | Bestiaria Support Staff <<BR>> ============================================================== <<BR>> Home Page: <HTTP: ~wulfraed www.dm.net /><<BR>> Overflow Page: <HTTP: wlfraed.home.netcom.com /><<BR><BR>From: "jtan325" <mr.jasontan@gmail.com><BR>To: python-list@python.org<BR>Date: 30 Jun 2005 00:01:43 -0700<BR>Subject: python install settings...<BR><BR>hi,<BR><BR>i am running Linux Ubuntu Hoary and am trying to build the Python<BR>numarray package, v. 1.3.2 by hand since ubuntu's
 repos won't be<BR>updated until breezy.<BR><BR>i have python 2.4, and gcc 3.3.5<BR><BR>after unpacking the tar, i run "python setup.py install", as it says in<BR>the installation instructions. i get the following:<BR><BR>[colfax 53] numarray-1.3.2 > python setup.py install<BR>Using EXTRA_COMPILE_ARGS = []<BR>running install<BR>running build<BR>running build_py<BR>copying Lib/numinclude.py -> build/lib.linux-i686-2.4/numarray<BR>running build_ext<BR>Traceback (most recent call last):<BR>File "setup.py", line 222, in ?<BR>main()<BR>File "setup.py", line 213, in main<BR>setup(**p)<BR>File "/usr/lib/python2.4/distutils/core.py", line 149, in setup<BR>dist.run_commands()<BR>File "/usr/lib/python2.4/distutils/dist.py", line 946, in<BR>run_commands<BR>self.run_command(cmd)<BR>File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command<BR>cmd_obj.run()<BR>File "/usr/lib/python2.4/distutils/command/install.py", line 506, in<BR>run<BR>self.run_command('build')<BR>File
 "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command<BR>self.distribution.run_command(command)<BR>File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command<BR>cmd_obj.run()<BR>File "/usr/lib/python2.4/distutils/command/build.py", line 112, in<BR>run<BR>self.run_command(cmd_name)<BR>File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command<BR>self.distribution.run_command(command)<BR>File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command<BR>cmd_obj.run()<BR>File "/usr/lib/python2.4/distutils/command/build_ext.py", line 254,<BR>in run<BR>customize_compiler(self.compiler)<BR>File "/usr/lib/python2.4/distutils/sysconfig.py", line 174, in<BR>customize_compiler<BR>cc_cmd = cc + ' ' + opt<BR>TypeError: cannot concatenate 'str' and 'NoneType' objects<BR><BR><BR>I had a similiar (but different) error earlier, but then I learned I<BR>had to set my "CC" environment variable. So I set that to "gcc". i have<BR>tried setting my "OPT" setting to
 something like "-g 02" (no idea what<BR>it means just found it somewhere, but it still didn't work.<BR><BR>upon closer inspection of Python's distutils sysconfig.py, is the error<BR>being caused by the ' ' in "cc_cmd = cc + ' ' + opt"? Any ideas on this<BR>new error? Are there packages/settings I need to take care of before i<BR>can use Python's distutils to install stuff?<BR><BR>Thanks,<BR>Jason<BR><BR><BR>From: Peter Otten <__peter__@web.de><BR>To: python-list@python.org<BR>Date: Thu, 30 Jun 2005 09:07:04 +0200<BR>Subject: Re: aligning text with space-normalized text<BR><BR>Steven Bethard wrote:<BR><BR>> I have a string with a bunch of whitespace in it, and a series of chunks<BR>> of that string whose indices I need to find.  However, the chunks have<BR>> been whitespace-normalized, so that multiple spaces and newlines have<BR>> been converted to single spaces as if by ' '.join(chunk.split()).  Some<BR><BR>If you are willing to
 get your hands dirty with regexps:<BR><BR>import re<BR>_reLump = re.compile(r"\S+")<BR><BR>def indices(text, chunks):<BR>lumps = _reLump.finditer(text)<BR>for chunk in chunks:<BR>lump = [lumps.next() for _ in chunk.split()]<BR>yield lump[0].start(), lump[-1].end()<BR><BR><BR>def main():<BR>text = """\<BR>aaa bb ccc<BR>dd eee. fff gggg<BR>hh i.<BR>jjj kk.<BR>"""<BR>chunks = ['aaa bb', 'ccc dd eee.', 'fff gggg hh i.', 'jjj', 'kk.']<BR>assert list(indices(text, chunks)) == [(3, 10), (11, 22), (24, 40), (44,<BR>47), (48, 51)]<BR><BR>if __name__ == "__main__":<BR>main()<BR><BR>Not tested beyond what you see.<BR><BR>Peter<BR><BR><BR>From: "Fuzzyman" <fuzzyman@gmail.com><BR>To: python-list@python.org<BR>Date: 30 Jun 2005 00:36:34 -0700<BR>Subject: Re: Inheriting from object<BR><BR>The reason I ask is that I often (well... a couple of times anyway) see<BR>cryptic omments like :<BR><BR>and if you inherit from object you get all the benefits of new<BR>style classes<BR><BR>Now I know
 about the advantages of inheriting from the built in types<BR>(if that's what you want to do) -but am a bit fuzzier on the 'general<BR>benefits'.<BR><BR>I'm vaguely aware of properties.... I'll have to explore them at some<BR>point.<BR><BR>Best Regards,<BR><BR>Fuzzy<BR>http://www.voidspace.org.uk/python<BR><BR><BR>-- <BR>http://mail.python.org/mailman/listinfo/python-list</BLOCKQUOTE><p>
                <hr size=1>Yahoo! Mail Mobile<br> 
<a href="http://us.rd.yahoo.com/evt=31132/*http://mobile.yahoo.com/learn/mail">Take Yahoo! Mail with you!</a> Check email on your mobile phone.