[Patches] [Patch #101390] Add special names to operator module as expected by user

noreply@sourceforge.net noreply@sourceforge.net
Sat, 16 Sep 2000 22:23:39 -0700


Patch #101390 has been updated. 

Project: 
Category: library
Status: Open
Summary: Add special names to operator module as expected by user

Follow-Ups:

Date: 2000-Sep-01 07:42
By: jhylton

Comment:
third one: postponed for now

-------------------------------------------------------

Date: 2000-Sep-15 10:03
By: gvanrossum

Comment:
This does several things. It adds and documents __contains__,
and it adds and documents __invert__ as an alias for __inv__.
I agree with the goal, but the implementation is imperfect.
E.g. it defines inv, __inv__, and __invert__, but not invert.
I think that instead of defining a new macro spam3() and using it twice, it can use two calls to spam2() for inv and invert, and something similar for contains and sequenceIncludes (the latter should be deprecated, BTW).
Fred, can you sort this mess out? I'd be happy to review the changes before you check them in.
-------------------------------------------------------

Date: 2000-Sep-16 22:23
By: fdrake

Comment:
Revise patch to address Guido's concerns.
Added :funcname to all calls to PyArg_ParseTuple().

Guido, please review.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101390&group_id=5470