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/065178.html below:

[Python-Dev] A Horrible Inconsistency

[Python-Dev] A Horrible Inconsistency [Python-Dev] A Horrible InconsistencyGeorg Brandl g.brandl at gmx.net
Thu May 25 23:06:49 CEST 2006
Martin v. Löwis wrote:
> Fredrik Lundh wrote:
>>  >>> -1 * (1, 2, 3)
>> ()
>>  >>> -(1, 2, 3)
>> Traceback (most recent call last):
>>    File "<stdin>", line 1, in <module>
>> TypeError: bad operand type for unary -
>> 
>> We Really Need To Fix This!
> 
> I can't find this inconsistency horrible.
> 
> py> +"Hello"
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: bad operand type for unary +
> py> +1*"Hello"
> 'Hello'

Don't tell me that! I was actually working on a patch right now...

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