lar == None

Bug #525423 reported by kwgoodman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
larry
New
Low
kwgoodman

Bug Description

Add a special case in larry.__eq__ to handle lar == None. If other is None, return False.

kwgoodman (kwgoodman)
Changed in larry:
assignee: nobody → kwgoodman (kwgoodman)
importance: Undecided → Low
milestone: none → 0.2
Revision history for this message
Chris (chrispalm) wrote :

Same thing for lar == [None].

Revision history for this message
kwgoodman (kwgoodman) wrote :

Could you open a new bug report for lar == [None], Chris? When comparing a larry to a list (not currently supported), larry should probably convert the list to an array. But when it is not a list, the situation is different. Here's an example with numpy arrays:

>> a = np.array([1, 2, 3])
>> a == None
   False
>> a == [None]
   array([False, False, False], dtype=bool)

Revision history for this message
kwgoodman (kwgoodman) wrote :

I moved lar == [None] to a feature request in Bug #583992.

kwgoodman (kwgoodman)
Changed in larry:
milestone: 0.2 → 0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.