In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
440 bytes added ,  17:55, 8 June 2008
no edit summary
Line 5: Line 5:  
| type        = Scripting Language
 
| type        = Scripting Language
 
| author      = tehpola, comex
 
| author      = tehpola, comex
| download    = [http://serv.qoid.us/wiipy.elf wiipy.elf]<br>[http://www.cs.utexas.edu/~tehpola/PyOGC.cgi PyOGC] (for documentation)
+
| download    = [http://serv.qoid.us/wiipy_a2.elf wiipy_a2.elf]<br>[http://www.cs.utexas.edu/~tehpola/PyOGC.cgi PyOGC] (for documentation)
 
| peripherals = none
 
| peripherals = none
 
}}
 
}}
Line 21: Line 21:     
Besides the modules in PyOGC (the documentation for this is nonexistent, but you can look in the source) you have some basic modules (<tt>math</tt>, <tt>sys</tt>), and the standard <tt>open()</tt> function will open files on the SD card.  However, notably, <tt>time</tt> is presently not available, nor is <tt>os</tt> and maybe other things.
 
Besides the modules in PyOGC (the documentation for this is nonexistent, but you can look in the source) you have some basic modules (<tt>math</tt>, <tt>sys</tt>), and the standard <tt>open()</tt> function will open files on the SD card.  However, notably, <tt>time</tt> is presently not available, nor is <tt>os</tt> and maybe other things.
 +
 +
Alpha 2: Network is available, do this:
 +
import net, _socket as socket
 +
net.init()
 +
Then use the socket functions, but there are some bugs:
 +
* socket.accept won't actually tell you the IP address which connected
 +
* You must receive and send data in small chunks.  1024 works, 8192 doesn't (you get a socket error).  This is a limitation of the net functions, but future version will deal with this more smartly (chunk data up for you).
    
== Bugs ==
 
== Bugs ==
41

edits

Navigation menu