Re: Parsing an HTML a tag

2005-09-24 Thread Stephen Prinster
George wrote: > How can I parse an HTML file and collect only that the A tags. I have a > start for the code but an unable to figure out how to finish the code. > HTML_parse gets the data from the URL document. Thanks for the help Have you tried using Beautiful Soup? http://www.crummy.com/softwar

Re: AJAX => APAX? Or: is there support for python in browsers?

2005-11-15 Thread Stephen Prinster
Roger Erens wrote: > > I'm asking because of all the AJAX hype going on. I'd like rather not > delve too deep into JavaScript and use Python instead. > > Any insights to be shared? > > Cheers, > Roger In addition to the others already mentioned, you might want to check out Nevow. Quoting from

Re: Sending an event from a python COM server to a VB COM client

2005-11-15 Thread Stephen Prinster
Gary Kshepitzki wrote: > Hello > I am trying to send an event from a Python COM server to a VB (or VB.NET) > COM client. > I am a newbie both in VB and in python. > Can anyone give me a simple (but complete) code example both of the Python > server side and the VB client side for raising a single

Re: UUID?

2005-11-28 Thread Stephen Prinster
Huang Zhen wrote: > Hello, > How can I get a UUID with python? > Thanks! I've never used this, but I just saw it on Planet Python this morning: http://www.livejournal.com/users/zestyping/157957.html HTH, Steve P. -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposal: Inline Import

2005-12-09 Thread Stephen Prinster
Shane Hathaway wrote: > Do you have any ideas on how to improve the process of maintaining > imports? Benji's suggestion of jumping around doesn't work for moving > code and it interrupts my train of thought. Sprinkling the code with > import statements causes a speed penalty and a lot of clutter

Re: Office COM automatisation - calling python from VBA

2005-06-24 Thread Stephen Prinster
guy lateur wrote: > So, ideally, I'd like to program as much as possible in python (I'm > pretty new to that, too, btw), and only use VBA if needed - say, to > call python objects/methods (+ wxGUI, please). > If you are new to Python and want to use it with COM, definitely get yourself a copy of

Re: Python library/module for MSAccess

2005-08-26 Thread Stephen Prinster
Jonathon Blake wrote: > [ Editing/creating msaccess databases on a Linux Box, and WINE _not_ > installed.] I'm pretty sure I don't understand what you are wanting to do. You say you have "msaccess databases on a Linux Box" and you are not using the Jet Database engine. As far as I know, MS A

Re: Can't seem to insert rows into a MySQL table

2005-03-12 Thread Stephen Prinster
grumfish wrote: The rowcount of the cursor is 1 after the execute is 1 and the table's auto_increment value is increased for each insert done. If the auto_increment is increased, then it seems like the row was inserted. Are you sure the problem is not with your SELECT attempt? Just a guess, b

Re: Question about python code distribution...

2005-04-28 Thread Stephen Prinster
[EMAIL PROTECTED] wrote: > Hi, > > I am sure that this question might have come up repeatedly. Companies > may not want to distribute their python code in source form. Even > though pyc files are one option, it gets inconvenient to distribute > bunch of them . If there is some way to bundle pyc fi

Re: MySQLdb - Query/fetch don't return result when it *theorically* should

2006-01-18 Thread Stephen Prinster
Have you tried doing a "connection.commit()" after each query attempt? I believe mysqldb also has a connection.autocommit feature. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to extract 2 integers from a string in python?

2006-06-08 Thread Stephen Prinster
[EMAIL PROTECTED] wrote: > Hi, > > how can I extract 2 integers from a string in python? > > for example, my source string is this: > Total size: 173233 (371587) > > I want to extract the integer 173233 and 371587 from that soource > string, how can I do that? > Use split() to split the string

Re: Python Impact Analysis Tool ?

2005-05-25 Thread Stephen Prinster
Paul McNett wrote: > Terry Hancock wrote: > >> On Wednesday 25 May 2005 08:27 am, [EMAIL PROTECTED] wrote: >> >>> Is there an impact analysis tool out there that can cross reference >>> python -- VB has a couple of these tools (eg. Visual Expert) >> >> >> I could be wrong, but my first impression

Re: Beginner question: Logs?

2005-06-01 Thread Stephen Prinster
Svens wrote: > Hey thanks... > > Still getting an error message though. Here's what i'm doing: > -- > import math > log10(15625) > -- > -It says that log10 is not defined, but it is since the module is > imported, right? > try this: import math math.log10(15625) -- http://mail.python.

Re: (question) How to use python get access to google search without query quota limit

2006-05-05 Thread Stephen Prinster
Per wrote: > I am doing a Natural Language processing project for academic use, > > I think google's rich retrieval information and query-segment might be > of help, I downloaded google api, but there is query limit(1000/day), > How can I write python code to simulate the browser-like-activity to

Re: Do I Need This?

2006-04-08 Thread Stephen Prinster
Terry Reedy wrote: There > may be a page at python.com that explains more. > I think you meant python.org. -- http://mail.python.org/mailman/listinfo/python-list