[issue1432] Strange behavior of urlparse.urljoin

2007-11-12 Thread yan
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

[issue1432] Strange behavior of urlparse.urljoin

2007-11-14 Thread yan
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>

[issue1432] Strange behavior of urlparse.urljoin

2007-11-16 Thread yan
yan added the comment: That sounds great, thanks a lot. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1432> __ ___ Python-bugs-list mailing list Unsubs

[issue12473] factory func of collections.defaultdict should receive the "missing key" as args when called.

2011-07-02 Thread HaiYun Yan
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

[issue12635] use "as" for block scope support

2011-07-25 Thread HaiYun Yan
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