[Tutor] Vista UAC

2009-09-10 Thread Dj Gilcrease
privileges. Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Finding an object by ID

2007-05-02 Thread Dj Gilcrease
I was wondering if it was possible to find and object by it's ID. what I want to do is something like def incomingConnection(self, stuff): (incSock, incAdder) = self.__sock.accept() #Add the adder socket ID and other info to a DB def sendMessage(self, adder, message): #query the DB

[Tutor] token parser

2007-02-11 Thread Dj Gilcrease
How would I go about writing a fast token parser to parse a string like "[4d6.takeHighest(3)+(2d6*3)-5.5]" and get a list like ['+', ['takeHighest', ['d', 4, 6 ], 3 ], ['-', ['*', ['d', 2,

[Tutor] Embedding Python

2007-02-24 Thread Dj Gilcrease
I am attempting to embed Python in a C++ app and have a question before I get too far into it. Is is possible to to dynamically create an extension module? eg, I want a module name spam and I have a stuct that contains all my method names, and a pointer to the proper c++ function to call ### Suto

Re: [Tutor] Embedding Python

2007-02-25 Thread Dj Gilcrease
On 2/25/07, Dave Kuhlman <[EMAIL PROTECTED]> wrote: > If you have not already, you will want to look at SWIG > (http://www.swig.org/). SWIG will generate C or C++ code from a > header file containing structs and classes and function > declarations. That generated code can then be compiled and lin

Re: [Tutor] optional parameter in list comprehension

2008-12-29 Thread Dj Gilcrease
def myfiles(directory,extension=None): for x in [os.path.join(x,i) for x,y,z in os.walk(directory)\ if extension: for i in z if i.endswith(extension)]:print x Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com ___ Tutor maillist

Re: [Tutor] help with getting python to run from command prompt onWindows XP

2009-01-15 Thread Dj Gilcrease
oes not propagate to existing instances Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 15, 2009 at 9:48 AM, Brian van den Broek wrote: > Brian van den Broek said unto the world at 15/01/09 11:27 AM: >> >> Alan Gauld said unto the world at 14/01/09 07:34 PM: