Commit bfc725b
committed
Changed PySequence_List() and PySequence_Tuple() to support
"indefinite length" sequences. These should still have a length, but
the length is only used as a hint -- the actual length of the sequence
is determined by the item that raises IndexError, which may be either
smaller or larger than what len() returns. (This is a novelty; map(),
filter() and reduce() only allow the actual length to be larger than
what len() returns, not shorter. I'll fix that shortly.)1 parent df901df commit bfc725b
1 file changed
Lines changed: 38 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
| 1008 | + | |
| 1009 | + | |
1027 | 1010 | | |
1028 | 1011 | | |
1029 | 1012 | | |
1030 | 1013 | | |
1031 | | - | |
1032 | 1014 | | |
1033 | 1015 | | |
1034 | 1016 | | |
| |||
1037 | 1019 | | |
1038 | 1020 | | |
1039 | 1021 | | |
1040 | | - | |
| 1022 | + | |
1041 | 1023 | | |
1042 | 1024 | | |
1043 | | - | |
1044 | | - | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1045 | 1031 | | |
1046 | 1032 | | |
1047 | | - | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1048 | 1042 | | |
| 1043 | + | |
| 1044 | + | |
1049 | 1045 | | |
1050 | 1046 | | |
1051 | 1047 | | |
| |||
1061 | 1057 | | |
1062 | 1058 | | |
1063 | 1059 | | |
1064 | | - | |
1065 | 1060 | | |
1066 | 1061 | | |
1067 | 1062 | | |
| |||
1070 | 1065 | | |
1071 | 1066 | | |
1072 | 1067 | | |
1073 | | - | |
| 1068 | + | |
1074 | 1069 | | |
1075 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1076 | 1082 | | |
1077 | 1083 | | |
1078 | 1084 | | |
1079 | 1085 | | |
1080 | | - | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1081 | 1092 | | |
1082 | 1093 | | |
1083 | 1094 | | |
| |||
0 commit comments