Fredrik Lundh wrote: > > M.-A. Lemburg <mal@lemburg.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" > mode) Right. > 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 ?! -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4