[Python-3000] [Python-3000-checkins] r45689 - in python/branches/p3yk: Include/bytesobject.h Lib/test/test_bytes.py Lib/test/test_file.py Objects/bytesobject.c Objects/fileobject.c
Guido van Rossum
guido at python.org
Mon Apr 24 20:18:11 CEST 2006
On 4/24/06, Thomas Wouters <thomas at python.org> wrote:
>
> On 4/24/06, guido.van.rossum <python-3000-checkins at python.org> wrote:
> > + new->ob_size = size;
>
> + if (size == 0)
> + new->ob_bytes = NULL;
> + else {
> + new->ob_bytes = PyMem_Malloc(size);
> + if (new->ob_bytes == NULL) {
> + Py_DECREF(new);
> + return NULL;
> + }
> + if (bytes != NULL)
> + memcpy(new->ob_bytes, bytes, size);
>
> Hmmm... Should we see this as official confirmation that PEP 7 is going to
> go to 4-space indents instead of tab ones, or is it just an editor
> accidentily left in Google-indent mode? (I think I prefer the former ;)
The former. I thought it was already decided? Of course, only for
*new* code so far, to ease merges.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list