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.

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/archive%40mail-archive.com

Reply via email to