Changeset 28751 in vbox for trunk/src/VBox/Main/webservice
- Timestamp:
- Apr 26, 2010 2:38:45 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60631
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/websrv-python.xsl
r28675 r28751 416 416 if isinstance(other,int): 417 417 return self.handle == other 418 if isinstance(other,basestring): 419 return str(self) == other 418 420 return False 419 421 … … 423 425 if isinstance(other,int): 424 426 return self.handle != other 427 if isinstance(other,basestring): 428 return str(self) != other 425 429 return True 426 430 … … 530 534 def __ne__(self,other): 531 535 if self.isarray: 532 return not isinstance(other,String) or self.handle == other.handle536 return not isinstance(other,String) or self.handle != other.handle 533 537 if isinstance(other,String): 534 538 return self.handle != other.handle … … 639 643 def __float__(self): 640 644 return float(self.handle) 645 646 def __lt__(self, other): 647 if self.isarray: 648 return NotImplemented 649 else: 650 return self.handle < other 651 652 def __le__(self, other): 653 if self.isarray: 654 return NotImplemented 655 else: 656 return self.handle <= other 657 658 def __eq__(self, other): 659 return self.handle == other 660 661 def __ne__(self, other): 662 return self.handle != other 663 664 def __gt__(self, other): 665 if self.isarray: 666 return NotImplemented 667 else: 668 return self.handle > other 669 670 def __ge__(self, other): 671 if self.isarray: 672 return NotImplemented 673 else: 674 return self.handle >= other 641 675 642 676 import struct … … 784 818 def __str__(self): 785 819 return str(self.handle) 820 821 def __eq__(self, other): 822 return self.handle == other 823 824 def __ne__(self, other): 825 return self.handle != other 786 826 787 827 def __getattr__(self,attr):
Note:
See TracChangeset
for help on using the changeset viewer.