Update of /cvsroot/jython/jython/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv29291
Modified Files:
javaos.py
Log Message:
Added docstring from cpython.
Index: javaos.py
===================================================================
RCS file: /cvsroot/jython/jython/Lib/javaos.py,v
retrieving revision 2.5
retrieving revision 2.6
diff -C2 -r2.5 -r2.6
*** javaos.py 2001/01/31 10:38:36 2.5
--- javaos.py 2001/03/13 20:32:47 2.6
***************
*** 1,2 ****
--- 1,23 ----
+ r"""OS routines for Mac, DOS, NT, or Posix depending on what system we're on.
+
+ This exports:
+ - all functions from posix, nt, dos, os2, mac, or ce, e.g. unlink, stat, etc.
+ - os.path is one of the modules posixpath, ntpath, macpath, or dospath
+ - os.name is 'posix', 'nt', 'dos', 'os2', 'mac', 'ce' or 'riscos'
+ - os.curdir is a string representing the current directory ('.' or ':')
+ - os.pardir is a string representing the parent directory ('..' or '::')
+ - os.sep is the (or a most common) pathname separator ('/' or ':' or '\\')
+ - os.altsep is the alternate pathname separator (None or '/')
+ - os.pathsep is the component separator used in $PATH etc
+ - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
+ - os.defpath is the default search path for executables
+
+ Programs that import and use 'os' stand a better chance of being
+ portable between different platforms. Of course, they must then
+ only use functions that are defined by all platforms (e.g., unlink
+ and opendir), and leave all pathname manipulation to os.path
+ (e.g., split and join).
+ """
+
import java
from java.io import File
|