[Python-3000-checkins] r56962 - python/branches/py3k/Modules/_fileio.c

Guido van Rossum guido at python.org
Mon Aug 13 04:43:39 CEST 2007


On 8/12/07, neal.norwitz <python-3000-checkins at python.org> wrote:
> @@ -337,6 +338,8 @@
>                 else
>                         self->seekable = 1;
>         }
> +       /* XXX(nnorwitz): should this return an int rather than a bool,
> +          since seekable could be -1, 0, or 1? */
>         return PyBool_FromLong((long) self->seekable);
>  }
>

If you read carefully it can't be -1 by the time you reach this point. :-)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000-checkins mailing list