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

[Python-Dev] Two patches

[Python-Dev] Two patches"Martin v. Löwis" martin at v.loewis.de
Tue Feb 21 22:53:40 CET 2006
Georg Brandl wrote:
> * I think I've submitted this one to the tracker, but can't remember:
>   It's for PySequence_SetItem and makes something like this possible:
> 
>   tup = ([], )
>   tup[0] += [1]

That definitely needs fixing:

py> tup = ([], )
py> tup[0] += [1]
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: object doesn't support item assignment
py> tup
([1],)

Errors should never pass silently, but success shouldn't cause
an error message, either.

> * One patch for staticmethod and classmethod, which currently silently
>   accept keyword arguments and throw them away. The patch adds error
>   messages.

Sounds good as well.

Regards,
Martin
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