In Python, how to do that ?
sys.platform only gives 'win32', no info about 32-bit or 64 bit ?
Thanks.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Try right-clicking on the shortcut, select properties, and change the "start
in" value.
Matthew
P.S. When posting to the list, please use plain text format.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of learner404
Sent: 15 June 20
>I have been reading though the PyGTK tutorial.
> Can anyone explain how lambda is being used in this
> statement:
>
> button.connect("clicked", lambda w: gtk.main_quit())
lambda is being used to create an anonymous function.
The code could be rewritten like this:
def f(w): gtk.main_quit()
butto
> [ The only SOA/XML book that addresses this side of XML usage
> is the excellent "SOA - A Field Guide" by Peter Erls. Erls also
> suggests some mitigating strategies to get round it.]
Oops, don't rely on memory...
That is Thomas Erl not Peter Erls.
And of course there may be other SOAP/XML boo
Hi
I want to run a script on one machine and log output messages to a
remote file located on another machine. Is there any easy method of
doing this ?.
Thanks
Kieran-- "Behind every great man, there is a great woman. Behind that woman is Mr.T."
___
Tut
kieran flanagan wrote:
> Hi
>
> I want to run a script on one machine and log output messages to a
> remote file located on another machine. Is there any easy method of
> doing this ?.
Depends on the details, I suppose...
If the remote file is on a network file system accessible to the machine
Hi,I need to delete a directory and its sub directories. However all dir's, sub dir;s and files have read only access. How do i do this efficeintly using the os.walk command. I cannot run this command on the dir as it gives me an error due to the read only attribute. Is there any other way to do th
Amresh Kulkarni wrote:
> Hi,
>
> I need to delete a directory and its sub directories. However all dir's,
> sub dir;s and files have read only access. How do i do this efficeintly
> using the os.walk command.
> I cannot run this command on the dir as it gives me an error due to the
> read only
You must change the directory and file permissions before attempting to remove
them;
even if you are using a python script.
Take a look at os.chmod()
-mtw
On Fri, Jun 16, 2006 at 10:26:34AM -0500, Amresh Kulkarni ([EMAIL PROTECTED])
wrote:
> Hi,
>
> I need to delete a directory and its sub di
On Fri, 2006-06-16 at 14:47 +0100, kieran flanagan wrote:
> Hi
>
> I want to run a script on one machine and log output messages to a
> remote file located on another machine. Is there any easy method of
> doing this ?.
http://docs.python.org/lib/module-logging.html
If the remote machine is a fi
Lloyd Kvam wrote:
> On Fri, 2006-06-16 at 14:47 +0100, kieran flanagan wrote:
>> Hi
>>
>> I want to run a script on one machine and log output messages to a
>> remote file located on another machine. Is there any easy method of
>> doing this ?.
> Scanning the logging module docs, it looks like you
Greetings:
> -Original Message-
> Date: Fri, 16 Jun 2006 00:05:41 +0100
> From: "Alan Gauld" <[EMAIL PROTECTED]>
> Subject: Re: [Tutor] XML: Expletive Deleted (OT)
> To: tutor@python.org
> Message-ID: <[EMAIL PROTECTED]>
>
> Just picked this up after being out for most of the week...
>
>
Amresh,
I had this problem a few months back. I
approached it backwards. Maybe not the right way to do it. I removed
all the files and directories and then had my exception handle the file if
it was read only. The exception handler changes the file from
read-only to not read only and
John Corry wrote:
>
> Amresh,
>
> I had this problem a few months back. I approached it backwards. Maybe
> not the right way to do it. I removed all the files and directories and
> then had my exception handle the file if it was read only. The
> exception handler changes the file from re
Thanks guys,Error handling seems to be a nice idea to approach this problem. i checked Kent's code and it works fine.I was using a more crude method.def removeDir(dirName) : #Remove any read-only permissions on file.
removePermissions(dirName) for name in os.listdir(dirName): file
> I need to delete a directory and its sub directories. However all
> dir's, sub
> dir;s and files have read only access. How do i do this efficeintly
> using
> the os.walk command.
You can'ty since the reasoin the files are read-only is to prevent
them
being over-written or deleted! You need t
> > Almost anything beats the human eye IME :-)
> > Actually if you must use eyes do so on a hex dump of the file,
> > that
> > is usually reliable enough if you can read hex...
> If I gave the impression that the human eye is the only useful means
> of
> examining and verifying stored data, I ap
I understand this:
>
> def f(w): gtk.main_quit()
> button.connect("clicked", f)
>
> lambda simply saves cluttering up the code with lots
> of tiny function
> derfinitions which are never referred to apart from
> in the binding
> operation.
>
Now my question is what is "w"? What is being passe
On 17/06/06, Christopher Spears <[EMAIL PROTECTED]> wrote:
> I understand this:
> >
> > def f(w): gtk.main_quit()
> > button.connect("clicked", f)
> >
> Now my question is what is "w"? What is being passed
> to the function?
I don't know GTK, but I would guess some kind of event class. Other
GUI
19 matches
Mail list logo