Re: distributed development methodology

2016-10-29 Thread Cameron Simpson
On 29Oct2016 00:11, Adam Jensen wrote: On 10/28/2016 11:59 PM, Cameron Simpson wrote: Sync the virtualenv prerequisites file with your DVCS. Have a tiny script to update the local virtualenv prereq file and run its update command to honour any new prereqs. Cool. I didn't mention that I am a p

Re: distributed development methodology

2016-10-29 Thread Paul Rubin
Adam Jensen writes: > So what are some of the more successful distributed. multi-platform, > development models? Use an orchestration program to keep the systems in sync: I use ansible (ansible.com) which is written in Python and fairly simple once you get used to it, but there are lots of other

Re: Need help in python program

2016-10-29 Thread Veek M
id_1, clk, val = foo_function() id_2, key, units, delay = bar_function() if id_1 == id_2: print id_1, clk, val, key, units, delay -- https://mail.python.org/mailman/listinfo/python-list

Re: distributed development methodology

2016-10-29 Thread Adam Jensen
On 10/29/2016 12:31 AM, Adam Jensen wrote: > On 10/28/2016 11:59 PM, Cameron Simpson wrote: >> Sync the virtualenv prerequisites file with your DVCS. Have a tiny >> script to update the local virtualenv prereq file and run its update >> command to honour any new prereqs. > > Cool. I didn't mention

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 02:04, Steve D'Aprano wrote: On Fri, 28 Oct 2016 05:09 am, BartC wrote: For years I've had discussions in comp.lang.c about things that C should or should not have. Bart, don't be naive. The C language isn't going to "acquire a slick new enhancement" based on a few emails on c

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Steve D'Aprano
On Sat, 29 Oct 2016 10:53 pm, BartC wrote: > On 29/10/2016 02:04, Steve D'Aprano wrote: >> On Fri, 28 Oct 2016 05:09 am, BartC wrote: > >>> For years I've had discussions in comp.lang.c about things that C should >>> or should not have. > >> Bart, don't be naive. The C language isn't going to "a

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 14:51, Dennis Lee Bieber wrote: On Sat, 29 Oct 2016 12:53:35 +0100, BartC declaimed the following: BTW what does reading three integers from the user look like in Python? On one line, or on three lines? (Python 2.7) ln = raw_input("Enter three integers separated by s

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Chris Angelico
On Sun, Oct 30, 2016 at 1:32 AM, BartC wrote: > BTW the functionality of my 'readln a,b,c' differs from the above. > Separators can be anything reasonable. When eol is encountered, it will read > zeros. And errors are not handled: any non-numeric will yield zero. People will disagree as to what i

what does type(subprocess.Popen)== mean?

2016-10-29 Thread oyster
why does not type(subprocess.Popen)==? Thanks [quote] Python 3.4.4 |Anaconda 2.3.0 (64-bit)| (default, Feb 16 2016, 09:54:04) [MSC v.1 600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> type(subprocess.Popen) >>> import os

EuroPython 2017 will be held in Rimini, Italy

2016-10-29 Thread M.-A. Lemburg
After carefully reviewing all proposals we had received and intense discussions with the teams, the EuroPython Society (EPS) is happy to announce the decision to accept the proposal from the Italian on-site team, backed by the Python Italia APS, to hold EuroPython 2017 in Rimini, Italy. The EPS wo

Re: what does type(subprocess.Popen)== mean?

2016-10-29 Thread Steve D'Aprano
On Sun, 30 Oct 2016 01:55 am, oyster wrote: > why does not type(subprocess.Popen)==? Thanks Because Popen is not a module. Why do you expect it to be a module? py> type(int) py> type(float) py> type(str) py> class X(object): ... pass ... py> type(X) type(subprocess.Popen) > Po

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Steve D'Aprano
On Sun, 30 Oct 2016 01:32 am, BartC wrote: > (BTW the functionality of my 'readln a,b,c' differs from the above. > Separators can be anything reasonable. When eol is encountered, it will > read zeros. And errors are not handled: any non-numeric will yield zero. Ah, in other words it is a toy, utt

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 15:19, Steve D'Aprano wrote: On Sat, 29 Oct 2016 10:53 pm, BartC wrote: But I'd like to see Python running on a 64KB system (Micropython doesn't count!). Hmmm. So tell me... how do you expect Python to run on tiny systems by *adding* new features? Regardless of how "small" thi

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Christian Gollwitzer
Am 29.10.16 um 16:32 schrieb BartC: I still think a beginner would much prefer something along the lines of 'readln a,b,c' (and I still think that's more intuitive). (The first programming exercises I ever did involved typing in integers from the user, and sorting them or working out if they mad

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 16:24, Steve D'Aprano wrote: On Sun, 30 Oct 2016 01:32 am, BartC wrote: (BTW the functionality of my 'readln a,b,c' differs from the above. Separators can be anything reasonable. When eol is encountered, it will read zeros. And errors are not handled: any non-numeric will yield ze

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 15:53, Chris Angelico wrote: On Sun, Oct 30, 2016 at 1:32 AM, BartC wrote: BTW the functionality of my 'readln a,b,c' differs from the above. Separators can be anything reasonable. When eol is encountered, it will read zeros. And errors are not handled: any non-numeric will yield

comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-29 Thread dishaacharya96
Code: A = 0 B= 0 i=0 j=0 # opening the files infile1 = open("CDSsrebf1.txt") infile2 = open("PROsrebf1.txt") infile3 = open("mutant.txt") print(" 1st line of WT SREBF1 (CDS):",infile1.readline()) print ("1st line of mutant protein of SREBF1: ", infile3.readline()) print ("1st line of protein of S

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 17:27, Dennis Lee Bieber wrote: On Sat, 29 Oct 2016 15:32:16 +0100, BartC declaimed the following: I still think a beginner would much prefer something along the lines of 'readln a,b,c' (and I still think that's more intuitive). Then I would suggest using something lik

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread breamoreboy
On Tuesday, October 25, 2016 at 11:02:47 AM UTC+1, BartC wrote: > On 25/10/2016 07:39, Steven D'Aprano wrote: > > >> I gather that non-blocking keyboard input functions aren't the easiest > >> thing > >> to implement. They seem to depend on the operating system. Still, ease of > >> use is a pri

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-29 Thread MRAB
On 2016-10-29 20:38, dishaachary...@gmail.com wrote: Code: A = 0 B= 0 i=0 j=0 # opening the files infile1 = open("CDSsrebf1.txt") infile2 = open("PROsrebf1.txt") infile3 = open("mutant.txt") print(" 1st line of WT SREBF1 (CDS):",infile1.readline()) print ("1st line of mutant protein of SREBF1: "

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread BartC
On 29/10/2016 23:21, Dennis Lee Bieber wrote: On Sat, 29 Oct 2016 22:11:31 +0100, BartC declaimed the following: (Non-line-oriented would mean it just keeps sitting there until it's read three values, damn it, no matter how many times you press Enter, and it's not going to shift until it has

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-29 Thread Michael Torrie
On 10/29/2016 06:16 PM, BartC wrote: > An editor is either line-oriented or it isn't. Free-flowing English text > usually isn't, but most program code is. And a line-oriented editor > should have hard stops at the line ends. (IMO which apparently isn't > shared by anyone else on the planet.) Vi

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-29 Thread John Ladasky
Disha, Before you struggle to reinvent the wheel, you might want to check out the Biopython package. http://biopython.org/wiki/Biopython I haven't used it for a few years, but the version that I did use was very comprehensive. -- https://mail.python.org/mailman/listinfo/python-list

modifying images in a pdf file

2016-10-29 Thread Ethan Furman
I'd like to modify some images in pdf files -- specifically, extract the image, process it to give it a comic strip type of coloring (using pillow), and then put it back. I see there are several pdf libraries, but a cursory examination did not reveal which, if any, had a method for extraction