Re: get each pair from a string.

2012-10-22 Thread Daniel Nogues
Hello rusi This is a little bit faster: s = "apple" [s[i:i+2] for i in range(len(s)-1)] >>> timeit("""s = "apple" ... [a+b for a,b in zip(s, s[1:])]""",number=1) 0.061038970947265625 >>> timeit("""s = "apple" ... [s[i:i+2] for i in range(len(s)-1)]""",number=1) 0.0467379093170166 Reg

Re: Does python have built command for package skeleton creation?

2012-09-24 Thread Daniel Nogues
alternatively you can use virtualenv to create virtual environments http://www.virtualenv.org/en/latest/index.html however, if what you want is automated generation of some of the code, you can adopt an IDE or create some macros in your text editor of choice. From: alex23 Date: 24 Septem