Closed: (MODPYTHON-189) repr() for various objects doesn't
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Closed: (MODPYTHON-189) repr() for various objects doesn't




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Closed: (MODPYTHON-189) repr() for various objects doesn't  
Graham Dumpleton (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-07 12:12 PM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Graham Dumpleton closed MODPYTHON-189.
--------------------------------------


> repr() for various objects doesn't convert data members correctly.
> ------------------------------------------------------------------
>
>                 Key: MODPYTHON-189
>                 URL: https://issues.apache.org/jira/browse/MODPYTHON-189
>             Project: mod_python
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.3, 3.2.10
>            Reporter: Graham Dumpleton
>            Priority: Minor
>             Fix For: 3.3
>
>
> The repr() methods of various objects, eg., tableobject, use code like:
>             PyString_ConcatAndDel(&s, PyString_FromString("'"));
>             PyString_ConcatAndDel(&s, PyString_FromString(elts[i].key)
);
>             PyString_ConcatAndDel(&s, PyString_FromString("': '"));
>             PyString_ConcatAndDel(&s, PyString_FromString(elts[i].val)
);
>             PyString_ConcatAndDel(&s, PyString_FromString("'"));
> to construct the string. This doesn't though consider that values could ha
ve quotes in them.
> Instead of outputting quotes and string in between, should use something l
ike:
>                t = PyString_FromString(elts[i].val);
>                PyString_ConcatAndDel(&s, PyObject_Repr(t));
>                Py_XDECREF(t);
> Ie., let the repr() routine of the string to quote as appropriate.
> Since the repr() outputs of these objects are only used for debugging and can't be
 used to reconstruct objects, not too big a deal, but should be addressed.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:36 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register