[issue5434] datetime.monthdelta

2011-01-10 Thread AdamN
AdamN a...@varud.com added the comment: For future reference, python-dateutil seems like the maintained way to deal with human dates outside of the stdlib. http://pypi.python.org/pypi/python-dateutil -- nosy: +adamnelson ___ Python tracker rep

[issue1712522] urllib.quote throws exception on Unicode URL

2010-06-04 Thread AdamN
AdamN a...@varud.com added the comment: Nudge. Somebody with the authority needs to increment the stage to patch review. -- nosy: +adamnelson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1712522

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread AdamN
New submission from AdamN a...@varud.com: When running urllib2 and getting a BadStatus from an http server, this error is raised: File /var/www/pinax-env/pline/apps/page/models.py, line 303, in render content = urllib2.urlopen(self.url,timeout=10).read() File /usr/lib/python2.6/urllib2

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread AdamN
Changes by AdamN a...@varud.com: -- versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8823 ___ ___ Python-bugs-list mailing list

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread AdamN
Changes by AdamN a...@varud.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8823 ___ ___ Python-bugs-list mailing

[issue8653] urlparse.urlparse/urlsplit doc missing

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: Maybe he's referring to the fact that 'default_scheme' is referenced in the docs but in fact the parameter name is 'scheme'? -- nosy: +adamnelson ___ Python tracker rep...@bugs.python.org http

[issue8143] urlparse has a duplicate of urllib.unquote

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: I would vote to close this and focus any code cleanliness work on 3.x. The deep import is more trouble than it's worth. -- nosy: +adamnelson ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
New submission from AdamN a...@varud.com: urlsplit and urlparse place the host into the path when using a default scheme: (Pdb) urlsplit('regionalhelpwanted.com/browseads/?sn=2',scheme='http') SplitResult(scheme='http', netloc='', path='regionalhelpwanted.com/browseads/', query='sn=2

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
Changes by AdamN a...@varud.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8818 ___ ___ Python-bugs-list mailing list

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: Great, thanks. However urlsplit and urlparse still take what one would expect to be recognized as the netloc and assigns it to the 'path' key. If that is by design perhaps we should at least warn people? -- status: closed - open

[issue8653] urlparse.urlparse/urlsplit doc missing

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: The default_scheme issue I brought up has been fixed in #8818 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8653

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: Ok, you're right: urlsplit('cnn.com') SplitResult(scheme='', netloc='', path='cnn.com', query='', fragment='') urlsplit('//cnn.com') SplitResult(scheme='', netloc='cnn.com', path='', query='', fragment='') Although I see that nowhere

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: I appreciate what you're saying but nobody, I guarantee nobody, is using the '//cnn.com' semantics. Anyway, in RFC 3986 in the Syntax Components section, you'll see that the '://' is not part of scheme or netloc. I could imagine urlsplit() failing

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: I think I misspoke before. What I'm referring to is when somebody uses the 'scheme' parameter: urlsplit('cnn.com',scheme='http') Is there no way that we can document that this won't work the way that people think it will? Is it really reasonable

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: I would say right under: urlparse.urlparse(urlstring[, default_scheme[, allow_fragments]])ΒΆ Put: urlstring is a pseudo-url. If the string has a scheme, it will be interpreted as a scheme, followed by a path, querystring and fragment

[issue8562] hasattr(open, 'newlines') example gives incorrect results from PEP0278

2010-04-28 Thread AdamN
New submission from AdamN a...@varud.com: This bug from the Ubuntu list is being moved here: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/570737 Newlines support is enabled on Ubuntu but the example from: http://www.python.org/dev/peps/pep-0278/ Does not give the correct