Re: A unique instance of Python GUI program

2008-09-17 Thread r0g
akineko wrote: > Again, thank you for many postings to my question. > I have reviewed solutions provided. > Well, I like the named Mutex solution under Windows. > That is a clean and straight-forward approach to the challenge. > (I cannot believe that I'm saying good thing about Windows ;-) ) > >

Re: How to Determine Name of the Day in the Week

2008-09-17 Thread Steven D'Aprano
On Wed, 17 Sep 2008 20:34:02 -0700, Mensanator wrote: > And technically, weeks begin on Sunday, not Monday, but business likes > to think of Monday as day 0 of the week and it doesn't conflict with any > prior date format. There's no "technically" about it. It's an arbitrary starting point, and

RELEASED Python 2.6rc2 and 3.0rc1

2008-09-17 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team and the Python community, I am happy to announce the second and final planned release candidate for Python 2.6, as well as the first release candidate for Python 3.0. These are release candidates, so whil

Re: decorator and API

2008-09-17 Thread George Sakkis
On Sep 17, 5:56 pm, Lee Harr <[EMAIL PROTECTED]> wrote: > I have a class with certain methods from which I want to select > one at random, with weighting. > > The way I have done it is this > > import random > > def weight(value): > def set_weight(method): > method.weight = value

XML-schema 'best practice' question

2008-09-17 Thread Frank Millman
Hi all This is not strictly a Python question, but as I am writing in Python, and as I know there are some XML gurus on this list, I hope it is appropriate here. XML-schemas are used to define the structure of an xml document, and to validate that a particular document conforms to the schema. The

member functions in a class

2008-09-17 Thread Karl Kobata
I am new to python and am wondering. When I create a class, with 'def' functions and if this class is instantiated say 50 times. Does this mean that all the 'def' functions code within the class is duplicated for each instance? Can someone give me a short and simple answer as to what happens in

Re: Problem occured while sending mail

2008-09-17 Thread sui
On Sep 17, 8:04 pm, Peter Pearson <[EMAIL PROTECTED]> wrote: > On Wed, 17 Sep 2008 05:28:05 -0700 (PDT), sui <[EMAIL PROTECTED]> wrote: > > On Sep 17, 5:04 pm, sui <[EMAIL PROTECTED]> wrote: > >> this is my code > > >> import sys, os, glob, datetime, time > >> import smtplib > >> ## Parameters for

<    1   2