Patches item #1683908, was opened at 2007-03-19 13:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1683908&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Adam Olsen (rhamphoryncus)
Assigned to: Nobody/Anonymous (nobody)
Summary: PEP 361 Warnings
Initial Comment:
Attached is a patch that adds some of the warnings mentioned in PEP 361,
specifically:
* `repr`
* cmp() and __cmp__
* apply()
* coerce() and __coerce__
* reduce()
* {}.has_key()
I'm unsure what conclusions were reaches wrt py3k-specific command line options
or warning categories, so I've used DeprecationWarning as a placeholder. Not
surprisingly, this causes large amounts of noise in the test suite (but no
failures).
Thus far I've focused on warnings that (in my opinion) should be fixed in 2.x
code. Many of the other warnings (such as using {}.iteritems()) are better
handled using the 2to3 translator. Again though, I'm unsure if they will
ultimately be given a distinct warning category, so I await input on that.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1683908&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches