New submission from yan:
When I use python 2.4/2.5, I found a strange behavior like this:
urlparse.urljoin("http://www.python.org/[EMAIL PROTECTED]","[EMAIL PROTECTED]")
It will return "http://www.python.org/[EMAIL PROTECTED]". But I think it
should be "htt
yan added the comment:
Not really, it's just for PATH component. But the QUERY and PARAMETER
are not the same.
just check the RFC1808.
5.1. Normal Examples
Base: http://a/b/c/d;p?q#f>
?y = http://a/b/c/d;p?y>
;x = http://a/b/c/d;x>
yan added the comment:
That sounds great, thanks a lot.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1432>
__
___
Python-bugs-list mailing list
Unsubs
New submission from HaiYun Yan :
for example:
def calc(params):
""" i am factoring numbers. """
# an expensive CPU cost function but
# passin params and return result are both lightweight
cachedcalc = collections.defaultdict(calc)
result = cachedcalc
New submission from HaiYun Yan :
use "as" for block scope support
just like mozilla javascript "let" extension
https://developer.mozilla.org/en/new_in_javascript_1.7#Block_scope_with_let_%28Merge_into_let_Statement%29
usage:
as_clause(as_declare): "as" NAME
a