Re: [Tutor] Python Job Scheduling package

2011-10-13 Thread Vince Spicer
You could take a peak at these. Both work without external dependencies http://packages.python.org/APScheduler/#features http://pypi.python.org/pypi/TGScheduler/1.6.2 VInce On Thu, Oct 13, 2011 at 3:53 AM, harish bansal wrote: > Has anyone seen a python job scheduling framework that could provi

[Tutor] Python Job Scheduling package

2011-10-13 Thread harish bansal
Has anyone seen a python job scheduling framework that could provide the following features - Add/remove job from the queue - View job list - check job status - Run concurrent jobs. I am looking for something similar to coalition( http://code.google.com/p/coalition/) -- Harry __

Re: [Tutor] Pyinstaller Database

2011-10-13 Thread Prasad, Ramit
>Hi guys: >Im a beginner in coding and wanted to distribute some of my code to >friends on linux distros. Pyinstaller works well enough. Theres a >situation where I use pickle module to save data to an external file. >The file is not a py file and when I use pyinstaller, it does nt >compile the fil

[Tutor] Pyinstaller Database

2011-10-13 Thread George Nyoro
Hi guys: Im a beginner in coding and wanted to distribute some of my code to friends on linux distros. Pyinstaller works well enough. Theres a situation where I use pickle module to save data to an external file. The file is not a py file and when I use pyinstaller, it does nt compile the file too.

[Tutor] Pyinstaller Database

2011-10-13 Thread George Nyoro
Hi guys: Im a beginner in coding and wanted to distribute some of my code to friends on linux distros. Pyinstaller works well enough. Theres a situation where I use pickle module to save data to an external file. The file is not a py file and when I use pyinstaller, it does nt compile the file too.

[Tutor] ctypes and arrays of pointers

2011-10-13 Thread Albert-Jan Roskam
Hi, I have a question about ctypes. I am trying to call a C function but I am not able to construct the arguments in ctypes. I need to construct two pointers. Each is a pointer to an array of pointers to character values. I did it like this (I tried numerous ways; this seemed the cleanest way):

Re: [Tutor] problem with using set

2011-10-13 Thread Prasad, Ramit
Original Message- From: tutor-bounces+ramit.prasad=jpmorgan@python.org [mailto:tutor-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of Prasad, Ramit Sent: Thursday, October 13, 2011 10:09 AM To: tutor@python.org Subject: Re: [Tutor] problem with using set Approach:- >>> a='h

Re: [Tutor] problem with using set

2011-10-13 Thread Dave Angel
On 10/13/2011 10:44 AM, Praveen Singh wrote: 2. a='microsoft' set(a) set(['c', 'f', 'i', 'm', 'o', 's', 'r', 't']) print ''.join(set(a)) cfimosrt When i print "Hello", i get the output as "helo"(in same sequence) but when i write "microsoft" i get this-"cfimosrt". So, it means i can't pred

Re: [Tutor] map one file and print it out following the sequence

2011-10-13 Thread Dave Angel
On 10/13/2011 09:09 AM, lina wrote: I think your final version of sortfile() might look something like: def sortfile(infilename=**INFILENAME, outfilename=OUTFILENAME): infile = open(infilename, "r") intext = infile.readlines() outfile = open(OUTFILENAME, "w") for chainid in CH

Re: [Tutor] problem with using set

2011-10-13 Thread delegbede
+1 Ramit. Sent from my BlackBerry wireless device from MTN -Original Message- From: "Prasad, Ramit" Sender: tutor-bounces+delegbede=dudupay@python.org Date: Thu, 13 Oct 2011 11:09:24 To: tutor@python.org Subject: Re: [Tutor] problem with using set Approach:- >>> a='hello' >>> set(a

Re: [Tutor] problem with using set

2011-10-13 Thread Prasad, Ramit
Approach:- >>> a='hello' >>> set(a) set(['h', 'e', 'l', 'o']), so i am thinking somehow if i remove 'l' and i join the string, i will get the desired output. 2. >>> a='microsoft' >>> set(a) set(['c', 'f', 'i', 'm', 'o', 's', 'r', 't']) >>> print ''.join(set(a)) cfimosrt When i print "Hello", i g

Re: [Tutor] map one file and print it out following the sequence

2011-10-13 Thread Andreas Perstinger
On 2011-10-13 15:09, lina wrote: $ python3 map-to-itp.py {'O4': '2', 'C19': '3', 'C21': '1'} C Traceback (most recent call last): File "map-to-itp.py", line 55, in sortfile() File "map-to-itp.py", line 17, in sortfile sortoneblock(chainid,intext,OUTFILENAME) File "map-to-itp.py

Re: [Tutor] problem with using set

2011-10-13 Thread delegbede
What exactly do you intend to get as an output? Sent from my BlackBerry wireless device from MTN -Original Message- From: Praveen Singh Sender: tutor-bounces+delegbede=dudupay@python.org Date: Thu, 13 Oct 2011 10:44:53 To: Subject: [Tutor] problem with using set ___

[Tutor] problem with using set

2011-10-13 Thread Praveen Singh
i have two questions- 1.>>> removeLetter("hello", "l") >>>'heo' To tackle this problem i am using set so that i can remove duplicates. def removeLetter(word,letter) set(word).remove(letter) return ''.join(set(word)) I am not getting right answer.I think i am not using sets correctly.pl

Re: [Tutor] map one file and print it out following the sequence

2011-10-13 Thread lina
> I think your final version of sortfile() might look something like: > > def sortfile(infilename=**INFILENAME, outfilename=OUTFILENAME): >infile = open(infilename, "r") >intext = infile.readlines() >outfile = open(OUTFILENAME, "w") >for chainid in CHAINID: >print("chain i

Re: [Tutor] Retrieve data from log file

2011-10-13 Thread Peter Otten
Abe Miranda wrote: > Hi there, > > I'm sorry to ask this, I tried and example that was posted in 2009 but I > couldn't make it work. I'm trying to parse a log file and retrieve what I > just need. > > Hope you can help me with this, this is part of the log file: > It repeats itself for every tra