Re: Saving a file "in the background" -- How?
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
Re: What is description attribute in python?
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 a Cursor.description attribute: https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.description > This read-only attribute provides the column names of the last query. > To remain compatible with the Python DB API, it returns a 7-tuple for > each column where the last six items of each tuple are None. > > It is set for SELECT statements without any matching rows as well. You'll have to read the documentation from the library you're using to determine what it actually does. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python modules
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 the program is compiled. But I understand that Python is an interpreted language, and If I wrote a program in Python like that, and wanted to run it on another computer, how would it find all the modules to import at run-time, unless I copied the whole directory structure over to the other computer? You copy over the directory structure, or wrap it in a compressed archive. -- https://mail.python.org/mailman/listinfo/python-list
