Re: Have a variable column length in printf

2009-05-31 Thread Emile van Sebille
On 5/30/2009 10:58 PM Cameron Pulsford said... Hello all, I'm trying to pretty print a list, so I am doing something like print '%3d' % integer only I would like that 3 to be a variable, instead of hardcoded. Is this possible, or are there any other ways to accomplish this? Thanks! >>> int

Re: How do I sample randomly based on some probability(wightage)?

2009-05-31 Thread Sumitava Mukherjee
On May 28, 3:52 pm, Antoon Pardon wrote: > Op 2009-05-26, Arnaud Delobelle schreef : > > > > > Sumitava Mukherjee writes: > > >> On May 26, 11:39 pm, Sumitava Mukherjee wrote: > >>> Hi all, > >>> I need to randomly sample from a list where all choices have weights > >>> attached to them. The pro

Re: How do I sample randomly based on some probability(wightage)?

2009-05-31 Thread Sumitava Mukherjee
On May 27, 8:08 pm, Scott David Daniels wrote: > Sumitava Mukherjee wrote: > > I need to randomly sample from a list where all choices have weights > > attached to them. The probability of them being choosen is dependent > > on the weights. > > I am not sure why everybody is normalizing by dividin

Re: Metaclass mystery

2009-05-31 Thread Arnaud Delobelle
LittleGrasshopper writes: > On May 30, 6:15 pm, Carl Banks wrote: >> On May 30, 5:32 pm, LittleGrasshopper wrote: >> >> >> >> > On May 30, 4:01 pm, LittleGrasshopper wrote: >> >> > > I am experimenting with metaclasses, trying to figure out how things >> > > are put together. Have you read Gu

Re: Have a variable column length in printf

2009-05-31 Thread Gary Herron
Cameron Pulsford wrote: Hello all, I'm trying to pretty print a list, so I am doing something like print '%3d' % integer only I would like that 3 to be a variable, instead of hardcoded. Is this possible, or are there any other ways to accomplish this? Thanks! Use a '*' instead of fixed widt

Re: Have a variable column length in printf

2009-05-31 Thread Steven D'Aprano
Apologies for breaking threading, the original post to this thread is not on my newserver. Cameron Pulsford wrote: > Hello all, I'm trying to pretty print a list, so I am doing something > like > > print '%3d' % integer Instead of re-inventing the wheel, have you looked at the pretty-print m

Re: try except inside exec

2009-05-31 Thread Michele Petrazzo
Emile van Sebille wrote: Write the string out to a .py file and import it? I don't think that it's possible. I want to create an env that are accessible only from that peace of code and not from the code that "execute" the third-party one. Emile Michele -- http://mail.python.org/mailman/l

Re: try except inside exec

2009-05-31 Thread Michele Petrazzo
David Stanek wrote: Is the thirdparty function the entire STR or just the a_funct part? Just the a_funct. Only for try and for see if it's possible to catch all the (possible) exception(s), I add the "try/except" clause that include the a_funct external code. Michele -- http://mail.python.org

Re: How to reuse TCP listening socket immediately after it was connected at least once?

2009-05-31 Thread Lawrence D'Oliveiro
In message , Thomas Bellman wrote: > We weren't exactly keen on rebooting the machine, but it was the > fastest way of getting out of that situation that we could figure > out. How *should* we have dealt with it in your opinion? Remember, the timed_wait timeout is there for a reason, and trying

Re: hash and __eq__

2009-05-31 Thread Steven D'Aprano
On Sun, 31 May 2009 07:24:09 +0100, Arnaud Delobelle wrote: > AFAIK, 'complexity' means 'worst case complexity' unless otherwise > stated. No, it means "average or typical case" unless otherwise specified. Consult almost any comp sci text book and you'll see hash tables with chaining (like Pyth

Re: decoding keyboard input when using curses

2009-05-31 Thread Arnaud Delobelle
Chris Jones writes: Hi Chris, thanks for your detailed reply. > On Sat, May 30, 2009 at 04:55:19PM EDT, Arnaud Delobelle wrote: > >> Hi all, > > Disclaimer: I am not familiar with the curses python implementation and > I'm neither an ncurses nor a "unicode" expert by a long shot. > > :-) > >> I

Re: Only run one specific test

2009-05-31 Thread Yinon Ehrlich
> > Yes, that works indeed. But in practice the modules_to_import list is > filled by parsing the contents of a test/*.py directory. That's why I > import dynamically with __import__. > > Nevertheless, you got me on the right track. After I explicitly added > the modules to the global namespace (g

Re: try except inside exec

2009-05-31 Thread Michele Petrazzo
Aaron Brady wrote: Exceptions are only caught when raised in a 'try' statement. If you don't raise the exception in a try statement, it won't be caught. The function you posted will raise an exception. If you are making the call yourself, that is, if only the definition is foreign, then sim

Re: Optimizing math functions

2009-05-31 Thread Beni Cherniavsky
On May 23, 4:22 pm, Esmail wrote: > > Is there some sort of simple Python module that would allow me to > evaluate this type of function? > > In this particular instance I am interested in the minimum of > >    x * sin(4*x) + 1.1 * sin(2*y), where x,y in range 0-10 > > though in other problems the

Re: Optimizing math functions

2009-05-31 Thread Beni Cherniavsky
On May 31, 12:41 pm, Beni Cherniavsky wrote: > > Take a look athttp://openopt.org(python-scikits-openopt on debian/ > ubuntu) - a lot of optimization engines under one interface, so you > can try different engines easily and without learning many interfaces. > Correction: don't use the debian pack

Re: Have a variable column length in printf

2009-05-31 Thread Terry Reedy
Gary Herron wrote: Cameron Pulsford wrote: Hello all, I'm trying to pretty print a list, so I am doing something like print '%3d' % integer only I would like that 3 to be a variable, instead of hardcoded. Is this possible, or are there any other ways to accomplish this? Thanks! Use a '*' i

Re: hash and __eq__

2009-05-31 Thread Arnaud Delobelle
Steven D'Aprano writes: > On Sun, 31 May 2009 07:24:09 +0100, Arnaud Delobelle wrote: > >> AFAIK, 'complexity' means 'worst case complexity' unless otherwise >> stated. > > No, it means "average or typical case" unless otherwise specified. > Consult almost any comp sci text book and you'll see h

Re: which database is suitable for small applications

2009-05-31 Thread Lawrence D'Oliveiro
In message <52801358-c037-458d-8857- a78c2d881...@z16g2000prd.googlegroups.com>, Ankit wrote: > If your application does not require you to add very heavy data then > you can also use flat files to do your stuff. > Its always a better to use Databases ... It's not always better to use databases.

Re: Q: finding distance between 2 time's

2009-05-31 Thread martin
On May 30, 4:10 pm, Steven D'Aprano wrote: > On Sat, 30 May 2009 12:06:55 +0200, jkv wrote: > > I added a few lines to your script, and now it ought to only print files > > newer than 3601 seconds (3600 seconds is one hour). > ... > >     #if file newer than one hour print a line > >     if time_d

Re: Q: finding distance between 2 time's

2009-05-31 Thread martin
On May 30, 11:37 pm, jkv wrote: > mar...@hvidberg.net wrote: > > Thanks both > > > The first answer is quite instuctive, the other one might be the one > > I'll use in t > > I didn't receive the other answer, could you please forward it to me?> So 2x > thanks. > > You are welcome. > > I took anot

Re: Q: finding distance between 2 time's

2009-05-31 Thread martin
> > http://en.wikipedia.org/wiki/Subtraction > Only one problem, wise arse: TypeError: unsupported operand type(s) for -: 'time.struct_time' and 'time.struct_time' Like I didn't try that... -- http://mail.python.org/mailman/listinfo/python-list

Re: Q: finding distance between 2 time's

2009-05-31 Thread John Machin
On May 31, 10:19 pm, mar...@hvidberg.net wrote: > >http://en.wikipedia.org/wiki/Subtraction > > Only one problem, wise arse: > TypeError: unsupported operand type(s) for -: 'time.struct_time' and > 'time.struct_time' > > Like I didn't try that... The point being that you can subtract them in other

Class Methods help

2009-05-31 Thread bdsatish
Hi, I have a question regarding the difference b/w "class methods" and "object methods". Consider for example: class MyClass: x = 10 Now I can access MyClass.x -- I want a similar thing for functions. I tried class MyClass: def some_func(x): return x+2 When I call MyClass

Re: Class Methods help

2009-05-31 Thread Tim Chase
class MyClass: def some_func(x): return x+2 When I call MyClass.some_func(10) -- it fails, with error message: TypeError: unbound method some_func() must be called with MyClass instance as first argument (got int instance instead) OK. I figured out that something like this works:

Re: Class Methods help

2009-05-31 Thread Lie Ryan
bdsatish wrote: > Hi, > > I have a question regarding the difference b/w "class methods" and > "object methods". Consider for example: > > class MyClass: > x = 10 > > Now I can access MyClass.x -- I want a similar thing for functions. I > tried > > class MyClass: > def some_func(x

Re: Class Methods help

2009-05-31 Thread bd satish
Thanks to Tim Chase & Lie Ryan !! That was exactly what I was looking for !! It's time for me to now read the documentation of "decorators" and @classmethod and also @staticmethod. I'm quite new to decorators... -- Satish BD On Sun, May 31, 2009 at 4:44 PM, Lie Ryan wrote: > bdsatish wrote:

Re: How do I sample randomly based on some probability(wightage)?

2009-05-31 Thread Scott David Daniels
Sumitava Mukherjee wrote: On May 27, 8:08 pm, Scott David Daniels wrote: Sumitava Mukherjee wrote: I need to randomly sample from a list where all choices have weights attached to them. The probability of them being choosen is dependent on the weights. I am not sure why everybody is normalizi

Re: hash and __eq__

2009-05-31 Thread Scott David Daniels
Arnaud Delobelle wrote: Steven D'Aprano writes: On Sun, 31 May 2009 07:24:09 +0100, Arnaud Delobelle wrote: AFAIK, 'complexity' means 'worst case complexity' unless otherwise stated. No, it means "average or typical case" unless otherwise specified. I think you both are standing on opposi

Re: How do I sample randomly based on some probability(wightage)?

2009-05-31 Thread Peter Otten
Scott David Daniels wrote: > raise ValueError('Samplng more than %d without replacement?' % ( > sum(1 for w in weights))) That would be len(weights) > There were two mistakes, both related to the definition of combined: > (1) Combined only holds positive values, so testing in sum is silly. but

Re: Metaclass mystery

2009-05-31 Thread LittleGrasshopper
On May 31, 12:19 am, Arnaud Delobelle wrote: > LittleGrasshopper writes: > > On May 30, 6:15 pm, Carl Banks wrote: > >> On May 30, 5:32 pm, LittleGrasshopper wrote: > > >> > On May 30, 4:01 pm, LittleGrasshopper wrote: > > >> > > I am experimenting with metaclasses, trying to figure out how th

Re: Have a variable column length in printf

2009-05-31 Thread Cameron Pulsford
Thanks all, I think I'l stick with the '*' method because this is just a one time thing for a __repr__ function and it seems easiest. On Sun, May 31, 2009 at 6:32 AM, Terry Reedy wrote: > Gary Herron wrote: > >> Cameron Pulsford wrote: >> >>> Hello all, I'm trying to pretty print a list, so I am

Re: decoding keyboard input when using curses

2009-05-31 Thread Chris Jones
On Sun, May 31, 2009 at 04:05:20AM EDT, Arnaud Delobelle wrote: [..] > Thanks for this. When I test it on my machine (BTW it is MacOS 10.5.7), > if I type an ASCII character (e.g. 'A'), I get its ASCII code (0x41), > but if I type a non-ascii character (e.g. '§') I get back to the prompt > immed

problem with python com and python extensions

2009-05-31 Thread tristan625
hi all, Here is my problem,i have developed a python extension using vs2003 ,iam using python 2.5.2,the extension enumerates the certificates in the windows certificate store and returns a list of tuples containing a tuple for each certificate found containing the certificates display name,subject

Re: decoding keyboard input when using curses

2009-05-31 Thread Arnaud Delobelle
Chris Jones writes: [...] > Try this: > > #include > #include > #include > #include > #include /* Here I need to add the following include to get wint_t on macOS X*/ #include > > int ct; > wint_t unichar; > > int main(int argc, char *argv[]) > { > setlocale(LC_ALL, "");

automated web with python?

2009-05-31 Thread CoolGenie
Hello, Recently my company changed the system. It is better for the management, but for us workers it is a nightmare. For example, we are required to enter a huge database (nested) using a web form! Make one mistake and you have to edit it and then use 4 mouse clicks, not counting the time it takes

Re: How do I sample randomly based on some probability(wightage)?

2009-05-31 Thread Scott David Daniels
Peter Otten wrote: Scott David Daniels wrote: [a real correction and a bogus one] raise ValueError('Samplng more than %d without replacement?' % ( sum(1 for w in weights))) That would be len(weights) Yup, probably I should have just saved len(combined). but I think your first version was cor

Re: Q: finding distance between 2 time's

2009-05-31 Thread Anders J. Munch
jkv wrote: Hi Martin, What i usally do is to convert the two times to seconds since epoch and compare the two values in seconds. You can use time.mktime to convert localtime to seconds since epoch. There's no need to convert - simply retrieve the times as absolute times to begin with: fil

Re: automated web with python?

2009-05-31 Thread MRAB
CoolGenie wrote: Hello, Recently my company changed the system. It is better for the management, but for us workers it is a nightmare. For example, we are required to enter a huge database (nested) using a web form! Make one mistake and you have to edit it and then use 4 mouse clicks, not countin

Generating all combinations

2009-05-31 Thread Johannes Bauer
Hello group, I'm trying to write a function in Python which does the following: For a number of arguments which are all lists, return a list (or generator) which yields all tuples of combination. E.g: foofunction() # returns [ ] foofunction([1, 2, 3]) # returns [ (1), (2), (3) ] foofunction([1,

Re: Generating all combinations

2009-05-31 Thread Scott David Daniels
Johannes Bauer wrote: Hello group, I'm trying to write a function in Python which does the following: For a number of arguments which are all lists, return a list (or generator) which yields all tuples of combination. E.g: Look here: http://docs.python.org/library/itertools.html#itertools.pr

Re: Metaclass mystery

2009-05-31 Thread LittleGrasshopper
On May 31, 9:24 am, LittleGrasshopper wrote: > On May 31, 12:19 am, Arnaud Delobelle wrote: > > > > > LittleGrasshopper writes: > > > On May 30, 6:15 pm, Carl Banks wrote: > > >> On May 30, 5:32 pm, LittleGrasshopper wrote: > > > >> > On May 30, 4:01 pm, LittleGrasshopper wrote: > > > >> > >

RFID and Python

2009-05-31 Thread Ronn Ross
I'm looking to play around with RFID and Python. Can anyone offer any suggestions on the cheap? I'm possibly looking for a starter kit. -- http://mail.python.org/mailman/listinfo/python-list

Re: Metaclass mystery

2009-05-31 Thread Aahz
In article , LittleGrasshopper wrote: >> On May 31, 12:19=A0am, Arnaud Delobelle wrote: >>> >>> [1]http://www.python.org/download/releases/2.2.3/descrintro/ > >I'm about 2/3 of the way through this paper (although I don't claim to >understand all of it.) There is some heavy duty material in ther

Re: Generating all combinations

2009-05-31 Thread Mark Dickinson
On May 31, 9:23 pm, Johannes Bauer wrote: > I'm trying to write a function in Python which does the following: For a > number of arguments which are all lists, return a list (or generator) > which yields all tuples of combination. E.g: > > foofunction() > # returns [ ] Are you sure that's what yo

Re: PyOpenGL Installation

2009-05-31 Thread Mike C. Fletcher
Roastie wrote: > The web info I have found for downloading/installing PyOpenGL and > its dependencies for Windows is a nightmare. Is there a place where > all of > the endless dependencies are packaged nicely with PyOpenGL? > Hmm, "endless"? * Python (with ctypes, standard on everything >=

Unzip Files

2009-05-31 Thread Brock
Hi all, I am new to python, so please don't attack me if this question is easy or basic. How can I go about extracting the contents of a zip file to the same directory? Can I extend this question to a zip file that sits on the internet? Point being I need to work with the files inside the zippe

Re: RFID and Python

2009-05-31 Thread Kevin MacPhail
On Sun, May 31, 2009 at 3:55 PM, Ronn Ross wrote: > I'm looking to play around with RFID and Python. Can anyone offer any > suggestions on the cheap? I'm possibly looking for a starter kit. > The Phidgets RFID starter kit sounds like it might meet your needs. There's a

Re: Generating all combinations

2009-05-31 Thread member thudfoo
On 5/31/09, Scott David Daniels wrote: > Johannes Bauer wrote: > > > Hello group, > > > > I'm trying to write a function in Python which does the following: For a > > number of arguments which are all lists, return a list (or generator) > > which yields all tuples of combination. E.g: > > > > Loo

Re: decoding keyboard input when using curses

2009-05-31 Thread Chris Jones
On Sun, May 31, 2009 at 02:30:54PM EDT, Arnaud Delobelle wrote: > Chris Jones writes: > [...] > > Try this: > > > > #include > > #include > > #include > > #include > > #include > > /* Here I need to add the following include to get wint_t on macOS X*/ > > #include Ah.. interesting. My p

Re: Unzip Files

2009-05-31 Thread Chris Rebert
On Sun, May 31, 2009 at 2:42 PM, Brock wrote: > Hi all, > > I am new to python, so please don't attack me if this question is easy > or basic.  How can I go about extracting the contents of a zip file to > the same directory?  Can I extend this question to a zip file that > sits on the internet? >

Re: Unzip Files

2009-05-31 Thread Tim Chase
I am new to python, so please don't attack me if this question is easy or basic. How can I go about extracting the contents of a zip file to the same directory? Can I extend this question to a zip file that sits on the internet? While the ZipFile object can take a file-like object, it looks l

Re: Metaclass mystery

2009-05-31 Thread LittleGrasshopper
On May 31, 2:03 pm, a...@pythoncraft.com (Aahz) wrote: > In article > , > > LittleGrasshopper   wrote: > >> On May 31, 12:19=A0am, Arnaud Delobelle wrote: > > >>> [1]http://www.python.org/download/releases/2.2.3/descrintro/ > > >I'm about 2/3 of the way through this paper (although I don't claim

Simple metaclass code failing

2009-05-31 Thread LittleGrasshopper
This is some simple code which I got from Guido's paper on the unification of classes and types, which Arnaud suggested to improve my knowledge of metaclasses: class M1(type): pass class M2(M1): pass class M3(M2): pass class C1: __metaclass__ = M1 class C2(C1): __metaclass__ =

Re: Simple metaclass code failing

2009-05-31 Thread LittleGrasshopper
On May 31, 3:52 pm, LittleGrasshopper wrote: > This is some simple code which I got from Guido's paper on the > unification of classes and types, which Arnaud suggested to improve my > knowledge of metaclasses: > > class M1(type): >     pass > class M2(M1): >     pass > class M3(M2): >     pass >

Re: Simple metaclass code failing

2009-05-31 Thread Carl Banks
On May 31, 3:52 pm, LittleGrasshopper wrote: > This is some simple code which I got from Guido's paper on the > unification of classes and types, which Arnaud suggested to improve my > knowledge of metaclasses: > > class M1(type): >     pass > class M2(M1): >     pass > class M3(M2): >     pass >

Re: Simple metaclass code failing

2009-05-31 Thread LittleGrasshopper
On May 31, 3:59 pm, Carl Banks wrote: > On May 31, 3:52 pm, LittleGrasshopper wrote: > > > > > This is some simple code which I got from Guido's paper on the > > unification of classes and types, which Arnaud suggested to improve my > > knowledge of metaclasses: > > > class M1(type): > >     pass

Re: How do I change the behavior of the 'python-docs' action in IDLE?

2009-05-31 Thread samwyse
On Apr 16, 2:02 pm, samwyse wrote: > In the Windows version of Python 2.5, pressing F1 brought up the > python.chm file.  I've just installed 2.6, and the same action > openshttp://www.python.org/doc/current/.  I'd prefer the former behavior. > I know how to change the key bindings in config-keys

Re: Generating all combinations

2009-05-31 Thread Scott David Daniels
member thudfoo wrote: On 5/31/09, Scott David Daniels wrote: Johannes Bauer wrote: I'm trying to write a function in Python which ... Look here: http://docs.python.org/library/itertools.html#itertools.product (new in 2.6, but code works in lower versions). How would one go about installin

Re: hash and __eq__

2009-05-31 Thread Steven D'Aprano
On Sun, 31 May 2009 12:08:33 +0100, Arnaud Delobelle wrote: > Anyway, it's good to know that quicksort is O(n^2) in the worst case - > and that this worst case can crop up very easily in some situations, > especially if not too much care has been taken implementing it. The naive quicksort algorit

Re: (windows) How to get information as string from a GreenHills project?

2009-05-31 Thread Gabriel Genellina
En Sat, 30 May 2009 23:28:23 -0300, Jebel escribió: I use python to start a GreenHills project in command line. And the GreenHills project create a string which is include the information that needed to be analyzed. How Can I return this string from GreenHills project to python? I have no ide

Turning HTMLParser into an iterator

2009-05-31 Thread samwyse
I'm processing some potentially large datasets stored as HTML. I've subclassed HTMLParser so that handle_endtag() accumulates data into a list, which I can then fetch when everything's done. I'd prefer, however, to have handle_endtag() somehow yield values while the input data is still streaming

Re: Q: finding distance between 2 time's

2009-05-31 Thread CTO
On May 30, 8:49 pm, John Machin wrote: >   > import time >   You are in a maze of twisty little functions, all alike. Quote of the week. Perhaps the year. I hope you don't mind me using it in the future. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: (windows) How to get information as string from a GreenHills project?

2009-05-31 Thread Jebel
On Jun 1, 9:33 am, "Gabriel Genellina" wrote: > En Sat, 30 May 2009 23:28:23 -0300, Jebel escribió: > > > I use python to start a GreenHills project in command line. And the > > GreenHills project create a string which is include the information > > that needed to be analyzed. How Can I return th

Re: Simple metaclass code failing

2009-05-31 Thread LittleGrasshopper
On May 31, 4:11 pm, LittleGrasshopper wrote: > On May 31, 3:59 pm, Carl Banks wrote: > > > > > On May 31, 3:52 pm, LittleGrasshopper wrote: > > > > This is some simple code which I got from Guido's paper on the > > > unification of classes and types, which Arnaud suggested to improve my > > > kn

Re: how to find the last decorator of a chain

2009-05-31 Thread samwyse
On May 30, 6:16 pm, Gabriel wrote: > I have something like this: > > @render(format="a") > @render(format="b") > @ > def view(format, data): >   return data > In my understanding this equivalent to: > > render('a', >  render('b', >   view(***))) Not quite. 'render' is a function of one arg

Re: hash and __eq__

2009-05-31 Thread Terry Reedy
Steven D'Aprano wrote: On Sun, 31 May 2009 12:08:33 +0100, Arnaud Delobelle wrote: Anyway, it's good to know that quicksort is O(n^2) in the worst case - and that this worst case can crop up very easily in some situations, especially if not too much care has been taken implementing it. The na

Re: [Tutor] Challenge supporting custom deepcopy with inheritance

2009-05-31 Thread Michael H . Goldwasser
Hi Kent, Thanks for your thoughts. For the original example code, you are correct that we could make it work by having B provide the one-arg constructor to match A's constructor signature. But I don't see this as a general solution. Having B.__deepcopy__() make a call to A.__deepcopy__() assu

Re: try except inside exec

2009-05-31 Thread alex23
Michele Petrazzo wrote: > I want to execute a python code inside a string and so I use the exec > statement. The strange thing is that the try/except couple don't catch > the exception and so it return to the main code. > Is there a solution to convert or make this code work? > > My code: > > STR

Re: pygame error: file is not a windows bmp file

2009-05-31 Thread Aahz
In article , Djames Suhanko wrote: > >"pygame error: file is not a windows bmp file" > > I couldn't found a solution for this problem. >My python script run fine in local machine using cxfreeze, but don't >work when copied to my live linux system. >If I put bmp image, works fine, but png don't. >

Re: Compiling and transporting modules/libraries in python

2009-05-31 Thread alex23
On May 31, 2:27 am, Abe wrote: >     I use python at a home office and in a university computer lab, > but I don't have the administrative rights to install libraries on the > lab computers.  It would be really nice if there were a way I could > put, say, all of numpy into a file "my_numpy.pyc" an

Re: automated web with python?

2009-05-31 Thread P. Kaminski
OK, thanks, I'll give it a try, -- http://mail.python.org/mailman/listinfo/python-list

Re: Turning HTMLParser into an iterator

2009-05-31 Thread Stefan Behnel
samwyse wrote: > I'm processing some potentially large datasets stored as HTML. I've > subclassed HTMLParser so that handle_endtag() accumulates data into a > list, which I can then fetch when everything's done. I'd prefer, > however, to have handle_endtag() somehow yield values while the input >

Is there any module for sea tides?

2009-05-31 Thread alejandro
I found some in C but could not find in Python -- http://mail.python.org/mailman/listinfo/python-list