CodingStyle: Add some notes about Python 2.4 compatibility.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 13 Oct 2011 21:08:45 +0000 (23:08 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 13 Oct 2011 22:22:57 +0000 (00:22 +0200)
README.Coding

index 12997ccf9addaa925f62d1622c5cb55f51aaa29e..8416290861026cd262916f2e8df2872644999516 100644 (file)
@@ -21,9 +21,13 @@ coding style (See Documentation/CodingStyle in the kernel source tree). This
 closely matches what most Samba developers use already anyways, with a few
 exceptions as mentioned below.
 
 closely matches what most Samba developers use already anyways, with a few
 exceptions as mentioned below.
 
-The coding style for Python code is documented in PEP8, http://www.python.org/pep/pep8.
-If you have ever worked on another free software python project, you are probably
-already familiar with it.
+The coding style for Python code is documented in PEP8,
+http://www.python.org/pep/pep8 (with spaces). 
+If you have ever worked on another free software Python project, you are
+probably already familiar with it.
+
+We try to stay compatible with Python 2.4, so please don't rely on any
+features that were introduced later, such as the "with" statement.
 
 But to save you the trouble of reading the Linux kernel style guide, here
 are the highlights.
 
 But to save you the trouble of reading the Linux kernel style guide, here
 are the highlights.