A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/065224.html below:

[Python-Dev] A Horrible Inconsistency

[Python-Dev] A Horrible Inconsistency [Python-Dev] A Horrible InconsistencyGeorg Brandl g.brandl at gmx.net
Fri May 26 17:50:06 CEST 2006
Facundo Batista wrote:
> 2006/5/26, Sean Reifschneider <jafo-python-dev at tummy.com>:
> 
>> On Fri, May 26, 2006 at 12:37:02PM -0300, Facundo Batista wrote:
>> >- Treat the negative as a reverser, so we get back (3, 2, 1).
>>
>> Then we could get:
>>
>>    >>> print -123
>>    321
> 
> An integer is NOT a sequence.
> 
> OTOH, that should be consistent to
> 
>>>> -1 * "123"
> "321"

This is actually a nice idea, because it's even a more nonintuitive
answer for Python newbies posting to c.l.py asking how to reverse
a string <wink>

Georg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4