3 Jul 2002 01:17
Re: [development doc updates]
Lalo Martins <lalo <at> laranja.org>
2002-07-02 23:17:15 GMT
2002-07-02 23:17:15 GMT
On Tue, Jul 02, 2002 at 06:28:13PM -0400, Fred L. Drake wrote: > The development version of the documentation has been updated: > > http://www.python.org/dev/doc/devel/ > > Many updates and corrections to the documentation, including docs for the > new textwrap module. Re: textwrap.TextWrapper.fix_sentence_endings } ... Furthermore, since it relies on string.lowercase ... it is specific to } English-language texts. Well, actually the convention of separating sentences by two spaces is also specific to the English language, so I don't see that as a problem. []s, |alo +---- -- It doesn't bother me that people say things like "you'll never get anywhere with this attitude". In a few decades, it will make a good paragraph in my biography. You know, for a laugh. -- http://www.laranja.org/ mailto:lalo <at> laranja.org pgp key: http://www.laranja.org/pessoal/pgp Eu jogo RPG! (I play RPG) http://www.eujogorpg.com.br/ Python Foundry Guide http://www.sf.net/foundry/python-foundry/(Continue reading)
>
> I use buffers to mean: this is a chunk of binary data. The purpose
> is to recognize this type of data for pickling via xml-rpc,
> soap and other rpc mechanisms etc.
How do you use buffers? Do you stick to their C API? Do you use the
Python-level buffer() function? If the latter, what do you do in Python
code with a buffer object after you get one? The only use I've seen made of
a buffer object in Python code is as a way to trick the interpreter into
crashing (via recycling the memory the buffer object points to).
And from where do you get a buffer? There are darned few types in Python
that buffer() accepts as an argument. Do your extension types implement
tp_as_buffer? I'm blindly casting for a reason why your appreciation of the
buffer object seems unique.
> Strings don't provide this information (since they can be a mix of
> text and binary data). Buffers are compatible enough with most tools
> working on strings that they represent a good alternative to tag data
> as being binary while not losing all the nice advantages of
.
I sympathize with the idea of making things more conform to the
platform standard, on the other hand I'm a bit reluctant to do
things differently again from what other Pythons do. But, one of
the things that is sorely missing from Python is a standard
place to install per-user extension modules, so this might well
be the thing that triggers inclusion of such functionality into
the grand scheme of things (including distutils support, etc).
--
- Jack Jansen <Jack.Jansen <at> oratrix.com>
RSS Feed