I am wondering if there is a good tutorial on Py2Exe and its functions?
I have not been able to find one. I have samples but that is not good
enough. It would be nice to have something explain all the functions for
including directories, modules and all that stuff when making an executable.
János Juhász wrote:
> Dear Marty,
Hi Janos,
>> ... Or, by extending Alan's solution ...
>>
>> def splitStringByN(s, n):
>>for m in range(0, len(s), n):
>>yield s[m:m+n]
>>
>> k = 'abcdefghi'
>> list(splitStringByN(k, 2))
>
> It seems to be the most readable solution for me.
For comp
Dear Marty,
>... Or, by extending Alan's solution ...
>
>def splitStringByN(s, n):
>for m in range(0, len(s), n):
>yield s[m:m+n]
>
>k = 'abcdefghi'
>list(splitStringByN(k, 2))
It seems to be the most readable solution for me.
>As it turns out, this is similar to an ASPN Cookbook r
János Juhász wrote:
> It is nice place to use a generator:
>
> def pairs(sliceit):
> streamlist = list(sliceit)
> streamlist.reverse()
> while streamlist:
> pair = streamlist.pop()
> try:pair += streamlist.pop()
> except: pass
> yield pair
>
> ##
Dear Emil,
> I want to be capable of converting a string into a list where all
> the items, in the list, have a fixed length not equal to 1 e.g i
> have k = 'abcdefgh' and I want the fixed length for all the the
> items to be 2 then the list would look like ['ab', 'cd', 'ef, 'gh'].
> How do i