Did I find the right examples for you? yes no

All Samples(259559)  |  Call(0)  |  Derive(0)  |  Import(259559)
OS routines for Mac, NT, or Posix depending on what system we're on.

This exports:
  - all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.
  - os.path is one of the modules posixpath, or ntpath
  - os.name is 'posix', 'nt', 'os2', '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.extsep is the extension separator ('.' 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
  - os.devnull is the file path of the null device ('/dev/null', etc.)

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).

src/a/n/antisocial-HEAD/ve/share/doc/ipython/examples/parallel/demo/dependencies.py   antisocial(Download)
def checkpid(pid):
    """return the pid of the engine"""
    import os
    return os.getpid() == pid
 
def getpid():
    import os
    return os.getpid()
 
pid0 = client[0].apply_sync(getpid)
 
# this will depend on the pid being that of target 0:
@depend(checkpid, pid0)
def getpid2():
    import os

src/a/n/antisocial-HEAD/ve/share/doc/ipython/examples/widgets/directview/directview.py   antisocial(Download)
#-----------------------------------------------------------------------------
 
import os
import uuid
 
 
 
import os, sys
from IPython.core.display import Javascript
 

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/pylint/test/input/func_w0405.py   modern-python-example(Download)
__revision__ = 0
 
import os
from os.path import join, exists
 
import os
def func(yooo):
    """reimport in different scope"""
    import os as ass
    ass.remove(yooo)
    import re

src/i/p/ipython-py3k-HEAD/docs/examples/newparallel/demo/dependencies.py   ipython-py3k(Download)
def checkpid(pid):
    """return the pid of the engine"""
    import os
    return os.getpid() == pid
 
def getpid():
    import os
    return os.getpid()
 
pid0 = client[0].apply_sync(getpid)
 
# this will depend on the pid being that of target 0:
@depend(checkpid, pid0)
def getpid2():
    import os

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/isapi/samples/test.py   main(Download)
from isapi import isapicon
from isapi.simple import SimpleExtension
import sys, os, stat
 
if hasattr(sys, "isapidllhandle"):

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/isapi/samples/advanced.py   main(Download)
from isapi import isapicon
from isapi.simple import SimpleExtension
import sys, os, stat
 
if hasattr(sys, "isapidllhandle"):

src/i/p/ipython-2.0.0/examples/Parallel Computing/dependencies.py   ipython(Download)
def checkpid(pid):
    """return the pid of the engine"""
    import os
    return os.getpid() == pid
 
def getpid():
    import os
    return os.getpid()
 
pid0 = client[0].apply_sync(getpid)
 
# this will depend on the pid being that of target 0:
@depend(checkpid, pid0)
def getpid2():
    import os

src/i/p/ipython-HEAD/examples/Parallel Computing/dependencies.py   ipython(Download)
def checkpid(pid):
    """return the pid of the engine"""
    import os
    return os.getpid() == pid
 
def getpid():
    import os
    return os.getpid()
 
pid0 = client[0].apply_sync(getpid)
 
# this will depend on the pid being that of target 0:
@depend(checkpid, pid0)
def getpid2():
    import os

src/n/e/neutron-drive-HEAD/google_appengine/lib/PyAMF/doc/tutorials/examples/general/helloworld/python/server.py   neutron-drive(Download)
 
if __name__ == '__main__':
    import os
    from pyamf.remoting.gateway.wsgi import WSGIGateway
    from wsgiref import simple_server

src/n/e/neutron-drive-HEAD/google_appengine/lib/PyAMF/doc/tutorials/examples/gateways/appengine/demo/settings.py   neutron-drive(Download)
# Django settings for google_appengine project.
 
import os, sys
 
DEBUG = True

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next