Stack trace in C

2006-07-25 Thread Andre Poenitz
Bear with me - I am new to Python. (And redirect me to a more suitable newsgroup in case this one is not appropriate.) I am trying to embed Python into a C++ application and want to get back a backtrace in case of errors in the python code. This works well with e.g. import sys def u3():

Loading module via full path

2006-08-21 Thread Andre Poenitz
Hi all. Is there a way to load a module given a full path to the module without extending sys.path first? Andre' -- http://mail.python.org/mailman/listinfo/python-list

Re: Stack trace in C

2006-08-21 Thread Andre Poenitz
Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Tue, 25 Jul 2006 14:20:41 +0200, Andre Poenitz <[EMAIL PROTECTED]> wrote: >> >> >>Bear with me - I am new to Python. (And redirect me to a more suitable >>newsgroup in case this one is not appropriate.) &g

Re: Stack trace in C

2006-08-21 Thread Andre Poenitz
Just <[EMAIL PROTECTED]> wrote: > >> On Tue, 25 Jul 2006 14:20:41 +0200, Andre Poenitz wrote: >> > >> > >> >Bear with me - I am new to Python. (And redirect me to a more suitable >> >newsgroup in case this one is not appropriate.) >> >

Re: Loading module via full path

2006-08-21 Thread Andre Poenitz
Andre Poenitz <[EMAIL PROTECTED]> wrote: > Hi all. > > Is there a way to load a module given a full path to the module > without extending sys.path first? Ok. imp.find_module() and imp.load_module() seem to do what I need. Andre' -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading module via full path

2006-08-22 Thread Andre Poenitz
Gary Herron <[EMAIL PROTECTED]> wrote: > Andre Poenitz wrote: >> Hi all. >> >> Is there a way to load a module given a full path to the module >> without extending sys.path first? > > The standard module named "imp" can help you with this. Tha

Re: wxWindow GetPosition() bug???

2006-08-22 Thread Andre Poenitz
mardif <[EMAIL PROTECTED]> wrote: > Hi, > I've found a strange behavior in method GetPosition() of wxWindow class > > ( and derived ). > On windows, if you create a window object > > frame = wx.Frame(None, -1, "TESTING") > > and you set the position to: > frame.SetPosition( (300, 45000) ) > > I