Octal notation: severe deprecation

Tim Roberts timr at probo.com
Thu Jan 13 02:59:20 EST 2005


Stephen Thorne <stephen.thorne at gmail.com> wrote:

>On 12 Jan 2005 16:21:29 -0800, PJDM <PeterMayne at ap.spherion.com> wrote:
>> Maybe P3K will have an integer literal like "n_b" for "the integer n in
>> base b".
>
>I would actually like to see pychecker pick up conceptual errors like this:
>
>import datetime
>datetime.datetime(2005, 04,04)

Why is that a conceptual error?  Syntactically, this could be a valid call
to a function.  Even if you have parsed and executed datetime, so that you
know datetime.datetime is a class, it's quite possible that the creation
and destruction of an object might have useful side effects.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list