@@ -16,8 +16,6 @@ abstract class SequenceObjectInternal extends ObjectInternal {
1616 /** Gets the `n`th item of this sequence, if one exists. */
1717 abstract ObjectInternal getItem ( int n ) ;
1818
19- /** The boolean value of this object, this may be both
20- * true and false if the "object" represents a set of possible objects. */
2119 override boolean booleanValue ( ) {
2220 this .length ( ) = 0 and result = false
2321 or
@@ -37,13 +35,11 @@ abstract class SequenceObjectInternal extends ObjectInternal {
3735abstract class TupleObjectInternal extends SequenceObjectInternal {
3836
3937 override string toString ( ) {
40- this .length ( ) = 0 and result = "()"
41- or
4238 result = "(" + this .contents ( 0 ) + ")"
4339 }
4440
4541 private string contents ( int n ) {
46- n = this .length ( ) - 1 and result = this . getItem ( n ) . toString ( )
42+ n = this .length ( ) and result = ""
4743 or
4844 result = this .getItem ( n ) .toString ( ) + ", " + this .contents ( n + 1 )
4945 }
@@ -149,6 +145,9 @@ class PythonTupleObjectInternal extends TPythonTuple, TupleObjectInternal {
149145
150146}
151147
148+ /** The `sys.version_info` object. We treat this specially to prevent premature pruning and
149+ * false positives when we are unsure of the actual version of Python that the code is expecting.
150+ */
152151class SysVersionInfoObjectInternal extends TSysVersionInfo , SequenceObjectInternal {
153152
154153 override string toString ( ) {
0 commit comments