Jeremy Hylton
b85c8479eb
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
1998-09-02 21:53:16 +00:00
Jeremy Hylton
4722da6ebf
fix typo in keyword argument 'allow_frament' should be 'allow_fragment'
1998-08-25 19:45:24 +00:00
Guido van Rossum
f7edadbc58
Add Gopher to list of protocols that support query strings.
1998-01-19 22:27:21 +00:00
Guido van Rossum
e612be5926
Patch my Marc Lemburg to fix urljoin("/a", "..") and urljoin("/a", "..#1").
1997-12-03 22:38:56 +00:00
Guido van Rossum
7449540986
After some discussion with Jeremy and Fred, decided to limit the
...
default urlparse cache size to 20 instead of 2000. The main use of
the cache seems to be to gain some speed in Grail, which is calling
urljoin with the same base for each anchor. 2000 is a bit too big for
Jeremy, who doesn't need the cache at all. 20 should keep at least
95% of the Grail speedup while wasting an insignificant amount of
memory in Jeremy's application.
1997-07-14 19:08:15 +00:00
Guido van Rossum
185147f1d0
Test urlparse cache with try/except instead of has_key.
...
This makes it thread-safe again.
1997-07-11 20:13:10 +00:00
Guido van Rossum
b02092a9b2
Added characteristics of shttp, https, and snews.
1997-01-02 18:18:27 +00:00
Guido van Rossum
671dc20efc
Crude but effective hack to clear the parser cache every so often.
...
(Fred Drake.)
1996-12-27 15:26:15 +00:00
Guido van Rossum
3fd32ecd92
optimizations due to Fred Drake; added urldefrag() function
1996-05-28 23:54:24 +00:00
Guido van Rossum
5feb54c461
added hdl protocol properties
1996-05-28 23:10:02 +00:00
Guido van Rossum
ededb58c14
Update reference (it's now RFC 1808); added http to list of protocols
...
that use parameters.
1996-03-29 21:23:25 +00:00
Guido van Rossum
1a16c868d4
remove file: from list of protocols taking host
1995-08-10 19:45:41 +00:00
Guido van Rossum
fb1a0cd74f
subtle changes to relative rurl joins
1995-08-04 04:29:32 +00:00
Guido van Rossum
a1124700f8
Add hacks for switching protocol and path but leaving host unchanged
1994-12-30 17:18:59 +00:00
Guido van Rossum
23cb2a83a5
New tty/pty modules by Steen; new urlparser.
1994-09-12 10:36:35 +00:00