Re: [Tutor] Obssfurcatedpuytthonlessons nneeded

2008-01-20 Thread Alan Gauld
"Kirk Bailey" <[EMAIL PROTECTED]> wrote >I aam writing some software which calls for some unreadable code >in > it to let me secretly set a registration key- it is to be > shareware. You don;t need to use a registration key for shareware. Other much easier options are: 1) Rely on the honest

Re: [Tutor] [tutor] Pointers in python ??

2008-01-20 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote >Does python has concept of pointers like c/cpp ?? If yes > how.. can > anyone give me a small example to how we can use pointers in python. No, not really. It does have the concept of C++ references however and in fact thats how Pyhon variable

[Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Varsha Purohit
Hi, I just read about how to call python from a c program. This is the function for that int main() { Py_Initialize(); PyRun_SampleString("print 76"); Py_Finalize(); return 0; } But i am getting an error of header file. python.h not found. Can anybody tell me where can i get

Re: [Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Varsha Purohit
I got the python.h file but i am getting linking errors for my program On Jan 20, 2008 1:18 AM, Varsha Purohit <[EMAIL PROTECTED]> wrote: > Hi, >I just read about how to call python from a c program. This is the > function for that > > int main() > { > Py_Initialize(); > PyRun_Sa

Re: [Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Kent Johnson
Varsha Purohit wrote: > I got the python.h file but i am getting linking errors for my program It might help to tell us - what platform you are using - what compiler - what link errors Kent > > On Jan 20, 2008 1:18 AM, Varsha Purohit <[EMAIL PROTECTED] > > wrote:

Re: [Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote > I just read about how to call python from a c program. Where did you read it? There are several sources of info on embedding Python in C, some better than others. > And how can i call the python interpreter screen > from c program ?? You don't

Re: [Tutor] Obssfurcatedpuytthonlessons nneeded

2008-01-20 Thread Michael Langford
This is one of the few things I suggest going with a professional software library for. I remember reading about one in the sub $200 range you could also get source for a little extra...but I've looked for 45 minutes and can't find it. They are called "License Managers" and many of them can just

Re: [Tutor] Pointers in python ??

2008-01-20 Thread Michael H. Goldwasser
On Sunday January 20, 2008, Alan Gauld wrote: >"Varsha Purohit" <[EMAIL PROTECTED]> wrote > >>Does python has concept of pointers like c/cpp ?? If yes >> how.. can >> anyone give me a small example to how we can use pointers in python. > >No, not really. >

Re: [Tutor] Pointers in python ??

2008-01-20 Thread Alan Gauld
"Michael H. Goldwasser" <[EMAIL PROTECTED]> wrote >>It does have the concept of C++ references however and in fact >>thats how Pyhon variables work. They are all references. > However I strongly disagree with your suggestion that Python's > variables work like C++ reference variables. Yo

Re: [Tutor] [tutor] Calling python from a c program

2008-01-20 Thread Varsha Purohit
I am gettng following linking errors [Linker error] undefined reference to `_imp__Py_Initialize' [Linker error] undefined reference to `PyRun_SampleString' [Linker error] undefined reference to `_imp__Py_Finalize' I think i need to set the path to the linker... may be i need to pass lin

[Tutor] Program Review: startup_user script -and- TimedMultiChoiceDialog class

2008-01-20 Thread ethan s
Hi folks. I'd love some feedback for two scripts. -startup_user: Intended to be called from a users logon script to present a list of apps to launch. List items can be set to default on or off. I run it from my system logon script like this: if exist "c:\_utils\scripts\logon_%USERNAME%.py" pytho