[Tutor] How do use c/c++ methods in Python?

2005-08-29 Thread terence zhu
Function Test(Struct A *a,int b). I want to use this function in Python,What should be the firt parameter? _ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

Re: [Tutor] How do use c/c++ methods in Python?

2005-08-29 Thread Alan G
> Subject: [Tutor] How do use c/c++ methods in Python? > > Function Test(Struct A *a,int b). > I want to use this function in Python,What > should be the firt parameter? I'm not sure what you are asking here. To use a C++ function/method from Python you will need to write a wrapper around the

Re: [Tutor] "Lock"ing threads

2005-08-29 Thread Kent Johnson
Hans Dushanthakumar wrote: > Hi, >In a multithreaded program, how do I ensure that a block of code in a > thread is always executed fully before passing control to another > thread. Does "Lock" serve this purpose? No, not exactly. It is used to prevent threading errors but not in the way you

[Tutor] hi

2005-08-29 Thread bobby arocha
hello i am new to python very new as in my first time ever using it and no experience in programming at all and i woul dliek some help to understand how th eprogram works and how to use pythin to thelimits of its capabilitys and i woul dlike some help my name is bobby and i am serious about learnin

Re: [Tutor] Importing a List from Module

2005-08-29 Thread Tom Strickland
The problem has been solved. It turned out that I made a newbie mistake that had nothing to do with importing lists. I have a function, sma, which calculates the moving average for a list of prices. I passed the "close" (subsequently changed to "cloze") list to the function as an argument. Ther

Re: [Tutor] New Tutorial topic

2005-08-29 Thread Terry Carroll
On Sun, 28 Aug 2005, Alan G wrote: > I've just uploaded two new files to my tutorial the second is the > first of these and introduces databases, SQL and using the Python DBI > interface. Alan, thanks for this. I was just casting around for a tutorial on SQLite, and its use in Python. I've

Re: [Tutor] hi

2005-08-29 Thread Danny Yoo
On Sat, 27 Aug 2005, bobby arocha wrote: > hello i am new to python very new as in my first time ever using it and > no experience in programming at all and i woul dliek some help to > understand how th eprogram works and how to use pythin to thelimits of > its capabilitys and i woul dlike some

Re: [Tutor] hi

2005-08-29 Thread Alan Gauld
Hi Bobby, > hello i am new to python very new as in my first time ever > using > it and no experience in programming at all In that case go to the Non Programmers web page on the Python site and follow one of the non programmers tutorials there, possibly mine! :-) http://wiki.python.org/moin/B

Re: [Tutor] How do use c/c++ methods in Python?

2005-08-29 Thread terence zhu
Sorry for puzzling you! I want to know how to map the C struct to a Python type within the wrapper or other methods? From: "Alan G" <[EMAIL PROTECTED]> To: "terence zhu" <[EMAIL PROTECTED]>, Subject: Re: [Tutor] How do use c/c++ methods in Python? Date: Mon, 29 Aug 2005 11:24:37 +0100 Subje

[Tutor] Killing a thread from main - was RE: "Lock"ing threads

2005-08-29 Thread Hans Dushanthakumar
Thanks Kent How do I send a signal from the main thread to stop execution of a child thread? I tried the foll:, but got an error: Other than by this method, is there any other mechanism to stop a thread? import threading import time class shownum(threading.Thread): def __init__(self

Re: [Tutor] Killing a thread from main - was RE: "Lock"ing threads

2005-08-29 Thread Hans Dushanthakumar
Oops - the error was probably due to using 'stop' as a method name. :) -Original Message- From: Hans Dushanthakumar Sent: Tuesday, 30 August 2005 2:18 p.m. To: tutor@python.org Subject: Killing a thread from main - was RE: [Tutor] "Lock"ing threads Thanks Kent How do I send a signal

Re: [Tutor] Killing a thread from main - was RE: "Lock"ing threads

2005-08-29 Thread Kent Johnson
Hans Dushanthakumar wrote: > Thanks Kent > > How do I send a signal from the main thread to stop execution of a child > thread? You have the right idea - set some kind of flag that the thread checks - but you reused the name 'stop' so when you execute incr_num_thread.stop() you are retrieving t

[Tutor] MS Access......

2005-08-29 Thread Eric Walker
I want to know what modules are available to connect and talk with MSAccess databases... Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___