[Python-Dev] repr vs. str and locales again
Mon, 22 May 2000 10:56:10 +0200
Fredrik Lundh wrote:
> M.-A. Lemburg <email@example.com> wrote:
> > > But then how can this have any effect on squishdot's indexing?
> > The only possible reason I can see is that this squishdot
> > application uses 'print' to write the data -- perhaps
> > it pipes it through some other tool ?
> but doesn't the patch only affects code that manages to call tp_print
> without the PRINT_RAW flag? (that is, in "repr" mode rather than "str"
> or to put it another way, if they manage to call tp_print without the
> PRINT_RAW flag, isn't that a bug in their code, rather than in Python?
Looking at the code, the 'print' statement doesn't set
PRINT_RAW -- still the output is written literally to
stdout. Don't know where PRINT_RAW gets set... perhaps
they use PyFile_WriteObject() directly ?!
Python Pages: http://www.lemburg.com/python/