zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 45 forks source link

Let default python template do common imports like the other languages. #42

Closed vexorian closed 10 years ago

vexorian commented 11 years ago

Python users need libraries too. It is common to use math and itertools. The others can be included too as it is just one line.

zen0wu commented 11 years ago

@wookayin What do you think? These things will work both in Python 2 & 3 and they're common used?

zen0wu commented 10 years ago

@wookayin Please let me know what you think about this. @vexorian Could you also test it on both Python 2 and 3 and report it back. If they're both OK, I'll merge it.

vexorian commented 10 years ago

Tested in Python 3.2.3 and Python 2.7.3

wookayin commented 10 years ago

Sorry for the late response. Well, the styles are bad (one import per line is guided, and whitespaces required), but imports themselves are fairly good. It is just a default template, so user can configure his own template.

zen0wu commented 10 years ago

That's OK. We're planning on a new major release 2.0, and all the the templates will be refined.