summaryrefslogtreecommitdiff
path: root/Python/mysnprintf.c
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-12-31 16:33:00 +0000
committerJust van Rossum <just@letterror.com>2002-12-31 16:33:00 +0000
commite29310a2b3e50958b00c0e92b142992599cf7ef1 (patch)
tree00e5356a13d849e24917891c66c4098ebf3762e0 /Python/mysnprintf.c
parentcbd6cd2312ee99d78bc3250cfdbfaff16dccb021 (diff)
downloadcpython-git-e29310a2b3e50958b00c0e92b142992599cf7ef1.tar.gz
patch attached to sf item #643711:
any_missing() returns less bogus missing modules. - I've rewritten scan_code() more or less from scratch, factored bits and pieces out for readability. - keep track of global assignments and failed imports per module; use this to determine whether the Y in "from X import Y" is a submodule or just a global name. This is not 100% doable: you can't tell which symbols are imported when doing a star import of a non-Python module short of actually importing it. - added a new method to ModuleFinder: any_missing_maybe(), which returns *two* lists, one with certain misses, one with possible misses. The possible misses are *very* often false alarms, so it's useful to keep this list separate. any_misses() now simply returns the union of any_missing_maybe(). TODO: documentation, test_modulefinder.py
Diffstat (limited to 'Python/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions