[Tutor] What algorithm suits here

2011-07-13 Thread Amit Sethi
I have a list of dictionaries in this form. { message : xyz parent : 23 id : 25 } or { message : abc parent : None id : 25 } { message : cde parent : 28 id : 32 } { message : cde parent : 23 id : 35 } I want to make seperate the lists such that messages in same thread( The parent message a

Re: [Tutor] What algorithm suits here

2011-07-13 Thread Steven D'Aprano
Amit Sethi wrote: I have a list of dictionaries in this form. { message : xyz parent : 23 id : 25 } or { message : abc parent : None id : 25 } { message : cde parent : 28 id : 32 } { message : cde parent : 23 id : 35 } I want to make seperate the lists such that messages in same thread(

Re: [Tutor] compare and arrange file

2011-07-13 Thread Edgar Almonte
On Tue, Jul 12, 2011 at 10:32 PM, Emile van Sebille wrote: > On 7/12/2011 4:01 PM Edgar Almonte said... >> >> On Tue, Jul 12, 2011 at 5:44 AM, Peter Otten<__pete...@web.de>  wrote: > > >>> >>> import csv > > imports the comma separated values (csv) file handler utilities module > >>> >>> def sort

[Tutor] GUI selection help

2011-07-13 Thread Shwinn Ricci
Hey all, I am browsing through the large list of apps for creating GUIs from python on http://wiki.python.org/moin/GuiProgramming but unfortunately don't know which one is the best for my project, which involves mapping a point on a 2-Dimensional surface to a 3-Dimensional structure by having user

Re: [Tutor] compare and arrange file

2011-07-13 Thread Peter Otten
Edgar Almonte wrote: > fist time i saw the statement "with" , is part of the module csv ? , > that make a loop through the file ? is not the sortkey function > waiting for a paramenter ( the row ) ? i don't see how is get pass , > the "key" is a parameter of sorted function ? , reader is a functio

Re: [Tutor] GUI selection help

2011-07-13 Thread Wayne Werner
On Wed, Jul 13, 2011 at 9:41 AM, Shwinn Ricci wrote: > Hey all, > > I am browsing through the large list of apps for creating GUIs from python > on http://wiki.python.org/moin/GuiProgramming but unfortunately don't know > which one is the best for my project, which involves mapping a point on a >

[Tutor] Get file last user

2011-07-13 Thread Susana Iraiis Delgado Rodriguez
Hello list!!! I want to get the last user who accessed to a file, I already have the way to know who owns the file, but I really need to get this information. To get file user I'm using: os.environ.get("USERNAME") and to get the machine host: socket.gethostname() Is there a way to find out who use

Re: [Tutor] Get file last user

2011-07-13 Thread Steven D'Aprano
Susana Iraiis Delgado Rodriguez wrote: Hello list!!! I want to get the last user who accessed to a file, I already have the way to know who owns the file, but I really need to get this information. To get file user I'm using: os.environ.get("USERNAME") and to get the machine host: socket.gethost

[Tutor] copy and paste excel worksheet using win32

2011-07-13 Thread Pirritano, Matthew
Pythonistas, I have a nicely formatted report in excel that is designed to be filled in by an excel macro. But first I need to get the report worksheet into 52 separate excel workbooks. Here's what I've tried so far. I'm snipping the code a bit. I have a wx dialog that gets a directory where the

Re: [Tutor] Get file last user

2011-07-13 Thread Alan Gauld
Susana Iraiis Delgado Rodriguez wrote: Hello list!!! I want to get the last user who accessed to a file, ... Is there a way to find out who used the file for the last time? You don't say wgich OS you are using, which bis alklimportant.l Heavy duty industrial OS like OS.390,Pick and VAX VMS do

Re: [Tutor] Get file last user

2011-07-13 Thread Alan Gauld
Susana Iraiis Delgado Rodriguez wrote: Hello list!!! I want to get the last user who accessed to a file, ... Is there a way to find out who used the file for the last time? You don't say which OS you are using, which is allimportant. Heavy duty industrial OS like OS.390,Pick and VAX VMS do re

Re: [Tutor] Get file last user

2011-07-13 Thread Alan Gauld
Susana Iraiis Delgado Rodriguez wrote: Hello list!!! I want to get the last user who accessed to a file, ... Is there a way to find out who used the file for the last time? You don't say wgich OS you are using, which bis alklimportant.l Heavy duty industrial OS like OS.390,Pick and VAX VMS do

Re: [Tutor] Get file last user

2011-07-13 Thread Alan Gauld
Susana Iraiis Delgado Rodriguez wrote: Hello list!!! I want to get the last user who accessed to a file, ... Is there a way to find out who used the file for the last time? You don't say which OS you are using, which bis alklimportant.l Heavy duty industrial OS like OS.390,Pick and VAX VMS do