#14500: python httplib produces an error
----------------------------+----------------------------------------------
Reporter: | Owner: tbd
zaza1851983 | Status: needs_review
Type: PLEASE | Milestone: sage-duplicate/invalid/wontfix
CHANGE | Resolution:
Priority: minor | Merged in:
Component: PLEASE | Reviewers: Jeroen Demeyer
CHANGE | Work issues:
Keywords: | Commit:
Authors: | Stopgaps:
Report Upstream: N/A |
Branch: |
Dependencies: |
----------------------------+----------------------------------------------
Changes (by jdemeyer):
* status: new => needs_review
* reviewer: => Jeroen Demeyer
* milestone: sage-6.4 => sage-duplicate/invalid/wontfix
Old description:
> If I run the following code in python it works fine
>
> {{{
> import httplib
> conn = httplib.HTTPConnection("google.de", 80)
> conn.request("GET", "/")
> }}}
>
> But in sage this piece prodces an error. The trackball is attached.
> In sage when I changed
>
> {{{
> conn = httplib.HTTPConnection("google.de", 80)
> }}}
>
> to
>
> {{{
> conn = httplib.HTTPConnection("google.de")
> }}}
>
> it worked.
> I tried replacing httplib.py and socket.py in sage with the files from
> python. but the problem persists
>
> Ubuntu 12.04 64 bit
> Python 2.7
> sage 5.8 installed from ubuntu repo
New description:
If I run the following code in python it works fine
{{{
import httplib
conn = httplib.HTTPConnection("google.de", 80)
conn.request("GET", "/")
}}}
But in sage this piece produces an error due to the Sage preparser
changing `80` to `Integer(80)`.
--
Comment:
This is not really a bug, although it is annoying. Since I don't see an
easy fix, close as invalid?
--
Ticket URL: <http://trac.sagemath.org/ticket/14500#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.