python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] In-place operators Hrvoje Niksic Wed Mar 18 05:00:53 2009
Martin v. Löwis wrote:
Certainly, the doc string is wrong: isub(a, b) -- Same as a -= b. That's not quite the same - you would have to write a = isub(a, b) -- Same as a -= b.
It seems a perfectly fine solution is simply to fix the docstring, exactly like that:
a = isub(a, b) -- Same as a -= b.This both corrects the error when using isub with immutable types and educates user as to how a -= b actually works.
_______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Benjamin Peterson
- Re: [Python-Dev] In-place operators Guido van Rossum
- Re: [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Antoine Pitrou
- Re: [Python-Dev] In-place operators Martin v. Löwis
- Re: [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Martin v. Löwis
- Re: [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Nick Coghlan
- Message not available
- Re: [Python-Dev] In-place operators Hrvoje Niksic <=
Re: [Python-Dev] In-place operators Terry Reedy