summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>1998-09-02 21:53:16 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>1998-09-02 21:53:16 (GMT)
commitb85c8479eb0dd25968eceabf599c0c4616a3c59a (patch)
treeb3786c069d4c17a82728ae034d7bea07caa17393 /Python/bltinmodule.c
parentf6ae743cb53a2953c7fb063963ec48029206c8b0 (diff)
downloadcpython-b85c8479eb0dd25968eceabf599c0c4616a3c59a.zip
cpython-b85c8479eb0dd25968eceabf599c0c4616a3c59a.tar.gz
cpython-b85c8479eb0dd25968eceabf599c0c4616a3c59a.tar.bz2
Easy optimizations of urlparse for the common case of parsing an http URL.
1. use dict.get instead of try/except KeyError 2. if the url scheme is 'http' then avoid the series of 'if var in [someseq]:'. instead, inline all of the code. 3. find = string.find
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions