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
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
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
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
Changes by AdamN a...@varud.com:
--
components: +Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8823
___
___
Python-bugs-list mailing
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
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
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
Changes by AdamN a...@varud.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8818
___
___
Python-bugs-list mailing list
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
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
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
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
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
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
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
16 matches
Mail list logo