Re: Issues With Threading
This is a complete shot in the dark but you might want to sys.stdout.flush() between print calls? -- http://mail.python.org/mailman/listinfo/python-list
Re: Freeze
What happens when you take a copy of python23.dll and put it in the path on that machine? Does the program run? If so, (and I am not familiar with freeze) it seems freeze did not put the dll into the .exe file. -- http://mail.python.org/mailman/listinfo/python-list
Re: Script for generating WSDL
Is that possible? In order to access a web service it seems like you need to know how it is defined (IE through the WSDL) -- http://mail.python.org/mailman/listinfo/python-list
Whats up with re module vs pre
This is a very generic observation as I don't have a lot of specifics with me right now. I have noticed over the past two years that the python "re" module is somewhat unreliable. At the suggestion of someone quite some time ago, I started to use the deprecated "pre" module. "import pre as re". All my problems went away. So here I am two years later, writing another script and I had forgotten about "pre" and wallah $ python proc.py Traceback (most recent call last): File "proc.py", line 39, in ? c = collect("nohup.out") File "proc.py", line 20, in collect m = p.search(cont) RuntimeError: maximum recursion limit exceeded As soon as I switched "import re" to "import pre as re" my program worked as expected. In the words of Jerry Sienfeld, what's up with that? -- http://mail.python.org/mailman/listinfo/python-list
Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python
Some quick thoughts. 1- Python is not new relatively speaking. 2)- Python is a natural language for learning basic scripting, but can carry you through to object oriented program. 3)- Knowing python, instantly gets you access to jython. I've found jython incredibly helpful in learning java. Finally, jython seems to be the defacto test scripting language for java. Cheers. -- http://mail.python.org/mailman/listinfo/python-list
Re: [Fwd: Re: [Uuu-devel] languages] <-- Why Python
I see your point. Consider points 2 and 3 a nice side effect. The language I favor actually ties into the environment I am working in: Python for rapid prototyping, java for larger projects where the eclipse IDE comes in very handy. -- http://mail.python.org/mailman/listinfo/python-list
Re: Whats up with re module vs pre
Like I said, I don't have a lot of specifics. This is more of an over time experience. I do know that any problem I had with "re" was always resolved by "pre". Maybe they all had to do with recursion though. Thanks for the heads up on python2.4. Now all I have to do is get our admins to install... sigh -- http://mail.python.org/mailman/listinfo/python-list
Re: xmlrpc.server.work() does not seem to handle multiple requests
Unfortunately no because this is a single threaded http server. It's great for testing stuff out, but it doesn't scale unless you make it scale. I am assuming you could use the Zope application server to scale your code. -- http://mail.python.org/mailman/listinfo/python-list
jython question (interesting behavior)
Is this the correct place to post a jython question? I posted the following in the jython group, but I figured I'd post here too: _ I am assuming that the PythonInterpreter environment is not a unique environment from within a jvm. Here is some pseudo code to show what I am talking about 1) create a jython module file, lets call it "mytest" with a simple static class class simpleS: myVar = "test01" 2) Now set up two interpreter environments from within the same jvm PythonInterpreter py = new PythonInterpreter() PythonInterpreter py1 = new PythonInterpreter() 3) now in both interpreters, import the module py.exec("import mytest") py1.exec("import mytest") Now for both interpreters run "print mytest.simpleS.myVar" 4) Now for the crazy part. in the py interpreter run "mytest.simpleS.myVar = 'test02' in py1 look at the value "print mytest.simpleS.myVar" Very interesting behavior. So it seems that each python interpreter instance does not act as its own seperate space. Maybe I just have not gotten there yet with the docs. I did notice something about the initialize() function associated with the interpreter which is only supposed to be run once. -- http://mail.python.org/mailman/listinfo/python-list
Re: jython question (interesting behavior)
Hmm, now that I think about this, maybe it's not so crazy. It would be the equivalent of modifying a static variable in the same JVM. Sorry to bother. -- http://mail.python.org/mailman/listinfo/python-list
Re: problem running the cgi module
I will take a guess that you might 1) make sure cgi is enabled in your webserver configuration 2) Probably must place the cgi script under $WEBSERVERDOCS/cgi-bin unless you alter the configuration. Also, the webserver might need to be configured to understand what interpreter uses .py files. (not an issue on windows) Good luck -- http://mail.python.org/mailman/listinfo/python-list
Re: Programming Language for Systems Administrator
Python is great, but having much "admin" type experience, I've found python to be less than Ideal when dealing with system calls and standard Input Ouput. For example, I've written complex tools that use perforce, I've taken advantage of both regular IO and the perforce marshalled IO. Under heavy load, some of the threads in my scripts experience IO hang (Linux and WIndows) (solaris and BSD were fine). I did not get the same behavior with Perl. Having said that I still do 99% of my utilities in python. Just be aware. -- http://mail.python.org/mailman/listinfo/python-list
Re: goto statement
Hi, Have you tried the triple quote comment technique? I am assuming you want to skip some code for the time being. Here is an example print "hello world" ''' COMMENT OUT FOR NOW someFunction() someOtherFunction() ''' print "goodbye world" This means that you have only two locations to remove the blocked out code. This is identical to having to remove the goto statement and the marker. Hope that helps. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Win32 and Condor
It's been a while since I've experimented with Condor, but it looks like " 'Access is denied.'", You might want to figure out what user the condor service is running as and log in as that user and try to run your code. -- http://mail.python.org/mailman/listinfo/python-list