Re: Python modules

2014-11-09 Thread Deepfriedice
On 10/11/14 14:55, Steve Hayes wrote: I have a book on Python that advocates dividing programs into modules, and importing them when needed. I have a question about this. I can understand doing that in a compiled language, where different modules can be imported from all sorts of places when th

Re: What is description attribute in python?

2014-11-09 Thread Deepfriedice
On 09/11/14 20:59, Steven D'Aprano wrote: It's an attribute called "description". You would need to read the documentation for curs to know what it does. What is curs? Where does it come from? It looks like a cursor from an SQL DB library. For example, sqlite3 in the standard library provides

Re: Saving a file "in the background" -- How?

2014-10-30 Thread Deepfriedice
Why not just call the save function as a separate thread? threading.Thread(target=save, args=(data)).start() -- https://mail.python.org/mailman/listinfo/python-list