Skip to content

Commit 99e106a

Browse files
committed
Keep Levenshtein criterion, remove survey restriction per picnixz
1 parent 196dbe4 commit 99e106a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/traceback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,8 +1659,8 @@ def print(self, *, file=None, chain=True, **kwargs):
16591659
# Inclusion criteria:
16601660
# 1. Must have evidence of real cross-language confusion (Stack Overflow
16611661
# traffic, bug reports in production repos, developer survey data).
1662-
# 2. Must be from a top-4 language by Python co-usage: JavaScript, Java,
1663-
# C#, or Ruby (JetBrains/PSF Developer Survey 2024).
1662+
# 2. Must not be catchable by Levenshtein distance (too different from
1663+
# the correct Python method name).
16641664
#
16651665
# Each entry maps (builtin_type, wrong_name) to a (suggestion, is_raw) tuple.
16661666
# If is_raw is False, the suggestion is wrapped in "Did you mean '.X'?".

0 commit comments

Comments
 (0)