Menu

Diff of /trunk/python/python-interface.php [r27] .. [r28]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/python/python-interface.php
+++ b/trunk/python/python-interface.php
@@ -1,7 +1,9 @@
 <?php
 
-function python_print($parms) {
-	echo $parms;	
+function python_print($a) {
+	if (is_object($a)) {		
+		$n=$a->name;global ${$n};echo ${$n};	
+	}
 }
 
 function python_command($cmd,$parms) {
@@ -18,9 +20,16 @@
 	echo "END-FOR";
 }
 
-function python_assign($names,$values) {
-	global ${$names};
-	${$names} = $values;
+function python_assign($a,$b,$c) {
+	if ($b=="=") {
+		if (is_object($a)) {
+			if (is_object($c)) {			
+				
+			} else {
+				$n=$a->name;global ${$n};${$n}=$c;
+			}
+		}
+	}	
 }
 
 function python_list($v) {
@@ -29,3 +38,5 @@
 	
 	return 1;
 }
+
+function python_mod($a,$b){return is_integer($a)?$a%$b:$a;}
\ No newline at end of file
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.