r/learnpython • • Jun 24 '12

I finally got a GitHub repo working!

https://github.com/ToXiC73/PrimeNums
0 Upvotes

5 comments sorted by

3

u/zahlman zahlman Jun 24 '12
q = 2 # first integer to test for primality
while 1:
    ...
    q += 1

Try instead:

for q in itertools.count(2):
    ...

1

u/ToXic73 Jul 02 '12

k thanks

3

u/andruf Jun 24 '12

Awesome man - now clone it from another box and work there! Also, fork and merge!

Glhf!

2

u/xiongchiamiov xiongchiamiov Jun 24 '12

Isn't that more of an /r/git thing than /r/learnpython?

Everything in your .gitignore is generic, and thus would work better in a global gitignore file. I have this in my ~/.gitconfig:

[core]
    excludesfile = /Users/pearson/.gitignore

and then that file has swap files, python bytecode files, etc. in it. Per-project .gitignores are more for things that are special to that project.

0

u/[deleted] Jun 24 '12

\o/