Re: How to access installed scripts on Windows?

2017-02-18 Thread eryk sun
On Sat, Feb 18, 2017 at 8:38 PM, ddbug wrote: > I am very perplexed by inability to tell the Windows installer (bdist_wininst > or pip) where to > install scripts (or "entry points"). > > By default (and I don't see other options) scripts go to > %USERPROFILE%/Appdata/Roaming/Python/Scripts. Tha

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread Peter Otten
TTaglo wrote: > i = 1 > f = open ('rosalind_ini5(1).txt') > for line in f.readlines(): > if i % 2 == 0: > print line > i += 1 > > > How do i get output without breaks between the lines? I'm late to the show, but here are a few unsolicited remarks to your code. (1) The best way

How to access installed scripts on Windows?

2017-02-18 Thread ddbug
I am very perplexed by inability to tell the Windows installer (bdist_wininst or pip) where to install scripts (or "entry points"). By default (and I don't see other options) scripts go to %USERPROFILE%/Appdata/Roaming/Python/Scripts. Ok. Now what? How the user is going to call these scripts: a

Re: How to inherit classmethod constructors?

2017-02-18 Thread Peter Otten
Daniel Andersson wrote: > > I have a class "A" below, that have a very simple > __init__ method, which only wants a "needle". > > > class A: > def __init__(self, needle): > self.needle = needle > > @classmethod > def from_haystack(cls, haystack): > # ... > #

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread TTaglo
Op zaterdag 18 februari 2017 18:55:46 UTC+1 schreef boB Stepp: > On Sat, Feb 18, 2017 at 11:38 AM, TTaglo wrote: > > i = 1 > > f = open ('rosalind_ini5(1).txt') > > for line in f.readlines(): > > if i % 2 == 0: > > print line > > i += 1 > > > > > > How do i get output without break

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread TTaglo
Op zaterdag 18 februari 2017 18:38:43 UTC+1 schreef TTaglo: > i = 1 > f = open ('rosalind_ini5(1).txt') > for line in f.readlines(): > if i % 2 == 0: > print line > i += 1 > > > How do i get output without breaks between the lines? > > Result: > > Other things just make you swea

How to inherit classmethod constructors?

2017-02-18 Thread Daniel Andersson
I have a class "A" below, that have a very simple __init__ method, which only wants a "needle". class A: def __init__(self, needle): self.needle = needle @classmethod def from_haystack(cls, haystack): # ... # Many lines of code (omitted here) # that p

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread Wildman via Python-list
On Sat, 18 Feb 2017 09:38:32 -0800, TTaglo wrote: > i = 1 > f = open ('rosalind_ini5(1).txt') > for line in f.readlines(): > if i % 2 == 0: > print line > i += 1 > > > How do i get output without breaks between the lines? > > Result: > > Other things just make you swear and cur

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread alister
On Sat, 18 Feb 2017 11:55:34 -0600, boB Stepp wrote: > On Sat, Feb 18, 2017 at 11:38 AM, TTaglo wrote: >> i = 1 f = open ('rosalind_ini5(1).txt') >> for line in f.readlines(): >> if i % 2 == 0: >> print line >> i += 1 >> >> >> How do i get output without breaks between the lines?

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread boB Stepp
On Sat, Feb 18, 2017 at 11:38 AM, TTaglo wrote: > i = 1 > f = open ('rosalind_ini5(1).txt') > for line in f.readlines(): > if i % 2 == 0: > print line > i += 1 > > > How do i get output without breaks between the lines? If you use "print line," (Note the trailing comma.), this sho

print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread TTaglo
i = 1 f = open ('rosalind_ini5(1).txt') for line in f.readlines(): if i % 2 == 0: print line i += 1 How do i get output without breaks between the lines? Result: Other things just make you swear and curse When you're chewing on life's gristle, don't grumble give a whistle This

Re: PTH files: Abs paths not working as expected. Symlinks needed?

2017-02-18 Thread Cem Karan
On Feb 16, 2017, at 9:55 PM, Rustom Mody wrote: > On Friday, February 17, 2017 at 3:24:32 AM UTC+5:30, Terry Reedy wrote: >> On 2/15/2017 7:42 AM, poseidon wrote: >> >>> what are pth files for? >> >> They are for extending (mainly) lib/site-packages. > > > Hey Terry! > This needs to get in