On 28.07.2011 22:02, Chris Nelson wrote:
trac.db.api.IDatabaseConnector and the source (line 176 of
http://trac.edgewall.org/browser/trunk/trac/db/api.py) says:

   class IDatabaseConnector(Interface):

So where does the namespace (trac.db.api) that prefixes the function
name come from?


From the file and directory names. See http://docs.python.org/tutorial/modules.html: > A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended.
E.g. api.py

The other parts (trac.db) denote the "package" name and are inferred from the directory structure, if the directories contains __init__.py files.

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to