Re: [Tutor] quick OO pointer

2006-08-07 Thread Alan Gauld
> If my script that needs to call a function from another module, and > the > module itself both require, say, the string module do i need to > import > it in both? Yes, importing just makes the name visible in the module where it is imported. So if you import your module the stuff that it

Re: [Tutor] quick OO pointer

2006-08-07 Thread shawn bright
Way cool, thanks a lot. I have one more small question.If my script that needs to call a function from another module, and the module itself both require, say, the string module do i need to import it in both?If i just import string on my original script, will the module know what to do with it

Re: [Tutor] quick OO pointer

2006-08-07 Thread Alan Gauld
> now, i have a few functions in some scripts that i would like to > reuse > across the board. But, they dont really fit the "object" thing, i > dont > thing. Basically, i have a bunch of functions that do different > things and i > would like one script to hold them all. You can put normal fun

Re: [Tutor] quick OO pointer

2006-08-07 Thread Jordan Greenberg
shawn bright wrote: > Hello there, > > a while back i wrote a module called DbConnector.py that allowed me to run > different types of SQL queries. Cool enough. > i did it mostly to handle the open and close of a db connection so i > wouldn't have to worry about 'too many connection' errors. > it