PLD-Guide python.xml,1.24,1.25

Artur Wróblewski wrobell w tldp.org
Pią, 16 Maj 2003, 11:07:49 CEST


Module name:    PLD-Guide
Changes by:     wrobell

Changed RCS file: /cvsroot/LDP/guide/docbook/PLD-Guide/devel/python.xml,v
----------------------------
revision 1.25
date: 2003/05/16 09:07:47;  author: wrobell;  state: Exp;  lines: +24 -1
- added, not finished, examples of thrown exception to illustrate module byte
  compilation under different directories
 

Index: python.xml
===================================================================
RCS file: /cvsroot/LDP/guide/docbook/PLD-Guide/devel/python.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- python.xml	30 Dec 2002 13:17:20 -0000	1.24
+++ python.xml	16 May 2003 09:07:47 -0000	1.25
@@ -405,12 +405,35 @@
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}</screen>
                 </example>
+            </para>
+            <para>
                 Please note, that compilation must be performed after module source files installation, because
                 the directory path, where the sources reside, is put into binary files
                 during byte compilation.
                 Information about correct directory path in compiled modules is useful, due to
                 thrown exceptions which display it.
-                <!-- todo: example of thrown exception -->
+                <!--Consider following
+                examples:
+                <programlisting>
+                    <![CDATA[
+Traceback (most recent call last):
+  File "tracedir.py", line 6, in ?
+    logging.setLoggerClass(X)
+  File "/home/users/user/tmp/python-2.3b1-root-user/usr/lib/python2.3/logging/__init__.py", line 729, in setLoggerClass
+TypeError: logger not derived from logging.Logger: X
+]]>
+                </programlisting>
+                <programlisting>
+                    <![CDATA[
+Traceback (most recent call last):
+  File "tracedir.py", line 6, in ?
+    logging.setLoggerClass(X)
+  File "/usr/lib/python2.3/logging/__init__.py", line 729, in setLoggerClass
+TypeError: logger not derived from logging.Logger: X
+]]>
+                </programlisting>
+                First example shows exception thrown by code compiled under
+                -->
             </para>
         </section>
         <section id='python.macros.pyrequires_eq'>



Więcej informacji o liście dyskusyjnej pld-doc