[issue18537] bool.toggle()

James Lu report at bugs.python.org
Tue Jul 23 18:12:11 CEST 2013


James Lu added the comment:

I mean, return a value, some people like this style.

james

On Tue, Jul 23, 2013 at 12:10 PM, Eric V. Smith <report at bugs.python.org>wrote:

>
> Eric V. Smith added the comment:
>
> bool instances are immutable, so all "value.toggle()" could do is the same
> as "not value". That is, return a new bool with the "toggled" value.
>
> ----------
> nosy: +eric.smith
> resolution:  -> invalid
> status: open -> closed
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue18537>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18537>
_______________________________________


More information about the Python-bugs-list mailing list