[LLVMdev] Getting Started
Dmitri Gribenko
gribozavr at gmail.com
Thu Nov 29 12:22:54 PST 2012
On Thu, Nov 29, 2012 at 9:34 PM, Joe Abbey <jabbey at arxan.com> wrote:
> I've never written python... but here goes.
This is an awesome idea! I have a shell script for the same purpose,
but I didn't post it because it was not as 'user-friendly'. (And I
suspect lots of other developers have similar scripts.)
> print (msg)
print does not need parentheses.
> curdir=os.getcwd();
> project=target;
Semicolon is not needed.
> os.chdir(orig_dir) #Go back
No need in that, current directory is per-process.
There are other style issues, I hope
<http://www.python.org/dev/peps/pep-0008/> would be helpful.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the llvm-dev
mailing list