M.-A. Lemburg <mal@lemburg.com> wrote: > I meant PyUnicode_* style APIs for dealing with all the aspects > of Unicode objects -- much like the PyString_* APIs available. it's already there, of course. see unicode.h in the unicode distribution (Mark is hopefully adding this to 1.6 in this very moment...) > > I very much disagree. To me, fp.write() is not about writing characters > > to a stream. I think it makes much more sense as "writing bytes to a > > stream" and the buffer interface fits that perfectly. > > This is perfectly ok, but shouldn't the behaviour of fp.write() > mimic that of previous Python versions ? How does JPython > write the data ? the crucial point is how an average user expects things to work. the current design is quite assymmetric -- you can easily *write* things that implement the buffer inter- face to a stream, but how the heck do you get them back? (as illustrated by the marshal buglet...) </F>
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