Re: Regular Expressions: large amount of or's

2005-03-23 Thread Daniel Yoo
: Done. 'startpos' and other bug fixes are in Release 0.7: : http://hkn.eecs.berkeley.edu/~dyoo/python/ahocorasick/ahocorasick-0.7.tar.gz Ok, I stopped working on the Aho-Corasick module for a while, so I've just bumped the version number to 0.8 and posted it up on PyPI. I did add some prelimin

PyPI errors?

2005-03-20 Thread Daniel Yoo
Does anyone know why PyPI's doesn't like my PKG-INFO file? Here's what I have: ## mumak:~/work/aho/src/python/dist/ahocorasick-0.8 dyoo$ cat PKG-INFO Metadata-Version: 1.0 Name: ahocorasick Version: 0.8 Summary: Aho-Corasick automaton implementation Home-page: http://hkn.eecs.berkeley.edu/~

Re: Regular Expressions: large amount of or's

2005-03-14 Thread Daniel Yoo
Scott David Daniels <[EMAIL PROTECTED]> wrote: : I have a (very high speed) modified Aho-Corasick machine that I sell. : The calling model that I found works well is: : def chases(self, sourcestream, ...): : '''A generator taking a generator of source blocks, : yielding (

Re: Regular Expressions: large amount of or's

2005-03-14 Thread Daniel Yoo
Daniel Yoo <[EMAIL PROTECTED]> wrote: : John Machin <[EMAIL PROTECTED]> wrote: : : tree.search("I went to alpha beta the other day to pick up some spam") : : could use a startpos (default=0) argument for efficiently restarting : : the search after finding the first match

Re: Regular Expressions: large amount of or's

2005-03-13 Thread Daniel Yoo
John Machin <[EMAIL PROTECTED]> wrote: : tree.search("I went to alpha beta the other day to pick up some spam") : could use a startpos (default=0) argument for efficiently restarting : the search after finding the first match Ok, that's easy to fix. I'll do that tonight. -- http://mail.python

Re: Regular Expressions: large amount of or's

2005-03-13 Thread Daniel Yoo
: Otherwise, you may want to look at a specialized data structure for : doing mutiple keyword matching; I had an older module that wrapped : around a suffix tree: :http://hkn.eecs.berkeley.edu/~dyoo/python/suffix_trees/ : It looks like other folks, thankfully, have written other : implementat

Re: Regular Expressions: large amount of or's

2005-03-01 Thread Daniel Yoo
Kent Johnson <[EMAIL PROTECTED]> wrote: :> Given a string, I want to find all ocurrences of :> certain predefined words in that string. Problem is, the list of :> words that should be detected can be in the order of thousands. :> :> With the re module, this can be solved something like this: :>

Re: Google Technology

2005-03-01 Thread Daniel Yoo
[EMAIL PROTECTED] wrote: : I am just wondering which technologies google is using for gmail and : Google Groups??? Hello Vijay, You may want to look at: http://adaptivepath.com/publications/essays/archives/000385.php which appears to collect a lot of introductory material about the client-s

Re: Flushing print()

2005-02-24 Thread Daniel Yoo
gf gf <[EMAIL PROTECTED]> wrote: : Is there any way to make Python's print() flush : automatically, similar to...mmm...that other : language's $|=1 ? Hello gf gf, Yes; you can use the '-u' command line option to Python, which will turn off stdout/stderr buffering. : If not, how can I flush it

Re: Multidimensional arrays - howto?

2005-02-14 Thread Daniel Yoo
[EMAIL PROTECTED] wrote: : Hello all, : I am trying to convert some C code into python. Since i am new to : python, i would like to know how to deal with multidimensional arrays? Here you go: http://python.org/doc/faq/programming.html#how-do-i-create-a-multidimensional-list Also, if your tab

Re: [NewBie] Tut0r Thing

2005-02-14 Thread Daniel Yoo
: if you're talking about the "tutor at python.org" mailing list, it's a mailing list : that you send mail to and get mails from, as explained on the tutor mailing : list page: :http://mail.python.org/mailman/listinfo/tutor Hello, Also, from the odd spelling of the subject line, I suspect

webbrowser._iscommand(): is there a public version?

2005-02-14 Thread Daniel Yoo
Hi everyone, I was curious to know: does the functionality of webbrowser._iscommand() live anywhere else in the Standard Library? webbrowser._iscommand() is a helper function that searches through PATH, and seems useful enough that I was surprised that it didn't live in a more public place like