Re: [Tutor] Before I start

2007-01-10 Thread Tor Hildrum
On 1/9/07, Hemantharaju Subbanna <[EMAIL PROTECTED]> wrote: > Hi, > Before I jump into the investigation, I wanted to ask > experts and get help/direction. > > I am looking to develop a simple web application. > What would be my best approach? What package/s is good > to explore? > > Need HTML GUI

Re: [Tutor] Noobie projects

2006-12-15 Thread Tor Hildrum
On 12/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there a set of more basic projects for flexing one's novice Python skills? They key to finding a project is to find something you will enjoy doing. I used statistics to get to know Python. The code parsed some text, added some number

Re: [Tutor] User identification and running in the background.

2006-12-13 Thread Tor Hildrum
On 12/12/06, Tim Golden <[EMAIL PROTECTED]> wrote: > But this is all quite Win32-specific (as well as > being hand-wavingly unspecific). I don't know > how you'd go about it on *nix but I bet it's nothing > like the same. The same general principle applies. You need to get a UID or similar from a

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Tor Hildrum
On 12/11/06, Jordan Greenberg <[EMAIL PROTECTED]> wrote: > Tor Hildrum wrote: > > The full pathname is in sys.argv[0] > At least on my system, it only includes the filename if executed from > the current directory. Hm, yeah, I thought the full path was standard behavior b

Re: [Tutor] Getting the directory the program is in

2006-12-11 Thread Tor Hildrum
On 12/11/06, Toon Pieton <[EMAIL PROTECTED]> wrote: > Hey friedly users! > > I was wondering: how can I get the directory the program is in? For example > "C:\Python Programs\Calculator\". >>> os.path.split.__doc__ 'Split a pathname. Returns tuple "(head, tail)" where "tail" is\n everything after

Re: [Tutor] help

2006-12-11 Thread Tor Hildrum
On 12/9/06, Kamran Haider <[EMAIL PROTECTED]> wrote: > > Hi > > I have got some python related queries. I am working on an MRes project > which involves a bit of programing in python. Actually, I am using a > python program developed by someone, which gives pairwise genetic > distances between a se

[Tutor] Of integers, relations and trees

2006-12-08 Thread Tor Hildrum
I have this problem which I thought would be trivial, but I can't seem to figure out a decent way to do it. Say I have the following file: 10 -100 -101 -103 -108 --1080 ---1080.10 ---1080.11 12 -120 -125 20 30 -300 --3010 ---3010.3 These numbers represents a tree-like structure. In lack of a bet

Re: [Tutor] Best Known Method for Filtering redundant list items.

2006-12-01 Thread Tor Hildrum
On 11/30/06, John Fouhy <[EMAIL PROTECTED]> wrote: > For the same reason that dictionaries don't preserve order. > Basically, sets are (I think) implemented using a hash table. You can > read about hash tables on wikipedia (or many other places), but one of > the components of a hash table is a f