On Friday, September 08, 2006, at 02:30PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
>On Fri, 8 Sep 2006 00:26:55 -0700, Hasan Diwan <[EMAIL PROTECTED]> wrote: >>On 08/09/06, Antoine Pitrou <[EMAIL PROTECTED]> wrote: >>> >>>Perhaps it would be good to drop those magic numbers (0, 1, 2) for >>>seek() ? They don't really help readibility except perhaps for people >>>who still do a lot of C ;) >> >>+1 >>If we can't don't want to eliminate the "magic numbers" entirely, perhaps we >>could assign symbolic constants to them? fileobj.seek(fileobj.START) for >>instance? > >Note that Python is _worse_ than C here. C has named constants for these, >Python does not expose them. What about os.SEEK_SET, os.SEEK_CUR, os.SEEK_END? The named constants are there, just not at the most convenient location. Ronald > >Jean-Paul >_______________________________________________ >Python-3000 mailing list >Python-3000@python.org >http://mail.python.org/mailman/listinfo/python-3000 >Unsubscribe: >http://mail.python.org/mailman/options/python-3000/ronaldoussoren%40mac.com > > _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com