Re: regular expression

2006-12-19 Thread Kleine Aap
Asper Faner wrote: I seem to always have hard time understaing how this regular expression works, especially how on earth do people bring it up as part of computer programming language. Natural language processing seems not enough to explain by the way. Why no eliminate it ? I.M.H.O. anyone

Re: Control-C alternative in Windows

2006-12-17 Thread Kleine Aap
Vlad Dogaru wrote: I've written a simple, standalone wiki server in Python. It runs a BaseHTTPServer's serve_forever() method until a KeyboardInterrupt is caught, at which point it writes changes to a file and exits. This works as expected in Linux. However, in Windows I cannot stop the

Re: (newbie) class with a single instance ?!

2006-12-15 Thread Kleine Aap
Andrea Tomadin wrote: This works, but isn't it weird to define a class if I know from the very beginning that there will be no more than an instance of that class? Singleton http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52558 -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe / Tkinter problem

2006-12-06 Thread Kleine Aap
[EMAIL PROTECTED] wrote: I've got a python GUI working with Tkinter, and I need to package it as an executable file, preferably a single file. Why not use an installer to bundle the python interpreter (with TKinter) and your code in a single executable file? If you don't want to distribute

Re: True Division in Python

2006-12-06 Thread Kleine Aap
[EMAIL PROTECTED] wrote: Use ./ for true division. syntax error... -- http://mail.python.org/mailman/listinfo/python-list