Message9212

Author stefan.richthofer
Recipients stefan.richthofer
Date 2014-11-19.01:53:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416362027.11.0.834241946352.issue2231@psf.upfronthosting.co.za>
In-reply-to
Content
test0 = "test"
print test0.__doc__
print type(test0)


It should print (and does so in CPython):
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.


But it *does* print:
The most base type


Looking at the Java code everything looks fine. The expose-line of PyString reads
@ExposedType(name = "str", doc = BuiltinDocs.str_doc)
which should be correct I suppose.
With PyUnicode an equal line works perfectly well. In PyString case it somehow delegates the expose line to PyObject, but I can't see why.
Adding base = PyBaseString.class does not fix it. Any ideas?

I would not bother if the doc of PyString would just be wrong, but this might indicate a bug in the expose-mechanism, so I set severity to "major". Maybe this affects other exposes as well.
History
Date User Action Args
2014-11-19 01:53:47stefan.richthofersetrecipients: + stefan.richthofer
2014-11-19 01:53:47stefan.richthofersetmessageid: <1416362027.11.0.834241946352.issue2231@psf.upfronthosting.co.za>
2014-11-19 01:53:46stefan.richthoferlinkissue2231 messages
2014-11-19 01:53:45stefan.richthofercreate