



Python for iPod

and other tools









Some pictures of the python interactive interpreter on iPod mini:







Downloads:

Version: Python 4 ipod release candidate 3 (uploaded June 28, 2005)

import sys sys.exit()

browser.c (modifications) ... static int is_script_type(char *extension) { return strcmp(extension, ".sh") == 0 || strcmp(extension, ".py") == 0; } ... static int is_binary_type(char *filename) { ... fread(header, sizeof(char), 12, fp); fclose(fp); if (!strncmp(header, "bFLT", 4) || \ !strncmp(header, "#!/bin/sh", 9) || \ !strncmp(header, "#!/bin/python", 13)) return 1; else return 0; } ... }









Python-ipod benchmarking (done with the lastest kernel on April 1st 2006) Pystone(1.1) time for 50000 passes = 171.36

This machine benchmarks at 291.783 pystones/second











WARNING

NOTE

ipodgetty (getty for iPod)

foo:bar:ipodgetty /bin/Sash