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 '/')(more...)

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