AdamN 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 trac
AdamN added the comment:
Nudge. Somebody with the authority needs to increment the stage to "patch
review".
--
nosy: +adamnelson
___
Python tracker
<http://bugs.python.org
Changes by AdamN :
--
components: +Library (Lib)
___
Python tracker
<http://bugs.python.org/issue8823>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by AdamN :
--
versions: +Python 2.6
___
Python tracker
<http://bugs.python.org/issue8823>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from AdamN :
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/ur
AdamN 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. If it is prepended
with a
AdamN 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?
AdamN 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 urls
AdamN added the comment:
Ok, you're right:
>>> urlsplit('cnn.com')
SplitResult(scheme='', netloc='', path='cnn.com', query='', fragment='')
>>> urlsplit('//cnn.com')
SplitResult(scheme='', n
AdamN added the comment:
The default_scheme issue I brought up has been fixed in #8818
--
___
Python tracker
<http://bugs.python.org/issue8653>
___
___
Python-bug
AdamN 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: clos
Changes by AdamN :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue8818>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.p
New submission from AdamN :
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/b
AdamN 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
<http://bugs.python.org/i
AdamN 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
<http
New submission from AdamN :
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 results (of True
16 matches
Mail list logo