Menu

[r62]: / trunk / lang / python / python.comparison.php  Maximize  Restore  History

Download this file

15 lines (9 with data), 234 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?php
trait lang_python_comparison {
public static function python_comparison($expr1,$op,$expr2) {
switch($op) {
case '>': return $expr1 > $expr2;
case '<': return $expr1 < $expr2;
}
}
}
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.