Re: Why does my compiler say invalid syntax then highlight...?

2008-03-10 Thread Wubbulous
I may have your problem: if prime < 0: primes.append(x) else: print x, "is not prime. " # highlights the final " you have to separate each output with a comma, so try adding one after x. -- http://mail.python.org/mailman

Re: Open a file with default handler app?

2008-03-11 Thread Wubbulous
On Mar 11, 9:24 pm, [EMAIL PROTECTED] wrote: > Hi, I searched for this on google and in this group, but my awesome > google-fu powers failed me. Is there a way to open any file using > default program that'd open it? In other words, to do the same action > as double-clicking in windows explorer? An

Re: Are .pyc files portable?

2008-11-07 Thread Wubbulous
print "hello" py_compile.compile("test_compile.py", "C:\test_compile.pyc") The manual page for py_compile.compile() can be found on this page: http://www.python.org/doc/2.5.2/lib/module-pycompile.html Hope that helps. Cheers, Wubbulous -- http://mail.python.org/mailman/listinfo/python-list

Re: Are .pyc files portable?

2008-11-08 Thread Wubbulous
Yes, apologies, I overlooked that detail. If using a different version of the binary, (i.e. 3.0 vs 2.6) you will have to re-compile the source code. -- http://mail.python.org/mailman/listinfo/python-list