All Samples(108486) | Call(0) | Derive(0) | Import(108486)
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/i/p/ipython-0.13.1/docs/examples/parallel/demo/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-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/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/jython/ant/embedded/src/python/server.py gaesdk-python(Download)
if __name__ == '__main__':
import os
import logging
from pyamf.remoting.gateway.wsgi import WSGIGateway
src/i/p/ipython-0.13.1/docs/examples/widgets/directview/directview.py ipython(Download)
#----------------------------------------------------------------------------- import os import uuid
import os, sys from IPython.core.display import Javascript
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/general/helloworld/python/server.py gaesdk-python(Download)
if __name__ == '__main__':
import os
from pyamf.remoting.gateway.wsgi import WSGIGateway
from wsgiref import simple_server
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/gateways/appengine/demo/settings.py gaesdk-python(Download)
# Django settings for google_appengine project. import os, sys DEBUG = True
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/actionscript/shared-object/python/server.py gaesdk-python(Download)
import os import logging
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/actionscript/recordset/python/db.py gaesdk-python(Download)
""" import os, datetime from sqlalchemy import *
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/actionscript/bytearray/python/client.py gaesdk-python(Download)
""" import os from optparse import OptionParser
src/g/a/gaesdk-python-HEAD/lib/PyAMF/doc/tutorials/examples/actionscript/addressbook/python/server.py gaesdk-python(Download)
import optparse
import logging
import os, sys
from wsgiref import simple_server
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next