Commit e6b18c9
Muhamed Fazal PS
gh-153506: Fix IDLE crash on non-iterable __all__
When a module has __all__ set to a non-iterable value (like None),
pressing Tab for module-name completion raised an uncaught TypeError.
Now checks hasattr(__all__, '__iter__') before calling sorted(),
falling back to the standard private-name filtering.1 parent 0fff6bd commit e6b18c9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments