[FRPythoneers] Python documentation and default expression

Mike Olson Mike.Olson at fourthought.com
Sun Mar 17 08:08:27 MST 2002

On Fri, 2002-03-15 at 16:11, Sean Reifschneider wrote:
> On Fri, Mar 15, 2002 at 04:02:46PM -0700, Evelyn Mitchell wrote:
> >> If it doesn't do so already, this sounds like it could be a valuable 
> >> test in PyChecker.
> >
> >Submitted as feature request 530528.
> On that note, I wonder if pysco (is that it's name?  psyco?  the jit
> compiler thing for Python) does or should map "if foo != None" to "if foo
> is not None".

Again,  how can it know what you intend.  "!=" and "is not" mean two
different things and both have valid useages.  For what ever reason, I
could define a class like:

class Foo:
  def __cmp__(self,other):
     return cmp(None,other)


Foo == None  --> true
Foo is None --> False


> Sean
> -- 
>  A smart terminal is not a smart*ass* terminal, but rather a terminal
>  you can educate.  -- Rob Pike
> Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
> tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
> _______________________________________________
> This message sent by the FRPythoneers mailing list.
> Unsubscribe: echo unsubscribe | FRPythoneers-request at lists.community.tummy.com
> URL: http://lists.community.tummy.com/mailman/listinfo/frpythoneers
Mike Olson                                Principal Consultant
mike.olson at fourthought.com                +1 303 583 9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St,                      http://4Suite.org
Boulder, CO 80301-2537, USA
XML strategy, XML tools, knowledge management

More information about the FRPythoneers mailing list