Did I find the right examples for you? yes no

All Samples(519)  |  Call(460)  |  Derive(0)  |  Import(59)
Returns the machine type, e.g. 'i386'

An empty string is returned if the value cannot be determined.

        def machine():

    """ Returns the machine type, e.g. 'i386'

        An empty string is returned if the value cannot be determined.

    """
    return uname()[4]
        


src/b/e/BeginningPythonExercises-HEAD/other/system_admin/PULSA/pythonForSystemAdmin/src/example_8_1.py   BeginningPythonExercises(Download)
platform.libc_ver(),
platform.mac_ver(),
platform.machine(),
platform.node(),
platform.platform(),

src/b/o/bokeh_examples-HEAD/xbee_listen.py   bokeh_examples(Download)
PORT = ''
 
if platform.machine() == 'armv6l':
    PORT = '/dev/ttyAMA0' #set tty port BEAGLE BONE NOTE: O1 
else:

src/b/o/bokeh_examples-HEAD/api.py   bokeh_examples(Download)
            return jsonify(result_dict)
 
if platform.machine() == 'armv6l':
    class RSSIData(restful.Resource):
        def get(self,update_lim):

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/console/scripts/about.py   flyscript-portal(Download)
print 'release  :', platform.release()
print 'version  :', platform.version()
print 'machine  :', platform.machine()
print 'processor:', platform.processor()
 

src/f/o/foobnix-HEAD/foobnix/util/LOG.py   foobnix(Download)
    logging.debug('release  :' + platform.release())
    logging.debug('version  :' + platform.version())
    logging.debug('machine  :' + platform.machine())
    logging.debug('processor:' + platform.processor())
 

src/p/y/pyradar-0.2/pyradar/utils/system_info.py   pyradar(Download)
        'release': platform.release(),
        'version': platform.version(),
        'machine': platform.machine(),
        'processor': platform.processor(),
    }

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/report/utils.py   flyscript-portal(Download)
    output.append('release  : %s' % str(platform.release()))
    output.append('version  : %s' % str(platform.version()))
    output.append('machine  : %s' % str(platform.machine()))
    output.append('processor: %s' % str(platform.processor()))
 

src/f/i/FileRock-Client-HEAD/filerockclient/bugreporter/Collector.py   FileRock-Client(Download)
            "release": platform.release(),
            "version": platform.version(),
            "machine": platform.machine(),
            "processor": platform.processor()
        }

src/r/e/RedJack-0.3.0/redjack/agent.py   RedJack(Download)
        caps['system'] = platform.system()
        caps['libc'] = "-".join(platform.libc_ver())
        caps['machine'] = platform.machine()
        caps['node'] = platform.node()
        caps['platform'] = platform.platform()

src/f/l/flyscript-0.6.0/utilities/flyscript_about.py   flyscript(Download)
print 'release  :', platform.release()
print 'version  :', platform.version()
print 'machine  :', platform.machine()
print 'processor:', platform.processor()
 

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