Menu

[r58]: / trunk / lang / python / python.memory.php  Maximize  Restore  History

Download this file

26 lines (17 with data), 398 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
class lang_python_memory {
##
static $mem = array();
##
public static function assign($testlist1,$testlist2) {
#var_dump($testlist1,$testlist2);
#die();
if (is_object($testlist1)) {
static::$mem[$testlist1->name] = $testlist2;
}
}
##
public static function get_value($literal) {
return static::$mem[$literal->name];
}
}
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.